2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-01 19:20:55 +00:00

Fix for supplier price breaks

- Make "price" field an InvenTreeMoneySerializer instance
- Add client-side validation for number inputs
This commit is contained in:
Oliver
2021-10-26 01:55:41 +11:00
parent e7bd91096c
commit 2d910022ac
6 changed files with 82 additions and 18 deletions

View File

@ -148,7 +148,6 @@ class StockItemSerializer(InvenTreeModelSerializer):
purchase_price = InvenTreeMoneySerializer(
label=_('Purchase Price'),
max_digits=19, decimal_places=4,
allow_null=True
)