2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-12-15 08:48:11 +00:00

Add integration of django-money

- Proper currency support
- Add PurchasePrice field to StockItem model
- This keeps track of both the price and the currency
- Display purchase price on the stockitem detail page
This commit is contained in:
Oliver Walters
2020-11-10 16:22:42 +11:00
parent 9d9ef5fc9c
commit 734436b02e
6 changed files with 47 additions and 0 deletions

View File

@@ -124,6 +124,7 @@ class CreateStockItemForm(HelperForm):
fields = [
'part',
'supplier_part',
'purchase_price',
'location',
'quantity',
'batch',
@@ -399,6 +400,7 @@ class EditStockItemForm(HelperForm):
'serial',
'batch',
'status',
'purchase_price',
'link',
'delete_on_deplete',
]