mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-18 04:55:44 +00:00
always adjust pruchase price if one exists
This commit is contained in:
@ -257,7 +257,7 @@ class PurchaseOrder(Order):
|
|||||||
# update quantity and price
|
# update quantity and price
|
||||||
quantity_new = line.quantity + quantity
|
quantity_new = line.quantity + quantity
|
||||||
line.quantity = quantity_new
|
line.quantity = quantity_new
|
||||||
if purchase_price:
|
if line.purchase_price:
|
||||||
line.purchase_price = supplier_part.get_price(quantity_new) / quantity_new
|
line.purchase_price = supplier_part.get_price(quantity_new) / quantity_new
|
||||||
line.save()
|
line.save()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user