mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-16 12:05:53 +00:00
Bug fix for receiving line item event (#9071)
- Use StockItem ID correctly - Provide line ID
This commit is contained in:
@ -938,7 +938,10 @@ class PurchaseOrder(TotalPriceMixin, Order):
|
|||||||
)
|
)
|
||||||
|
|
||||||
trigger_event(
|
trigger_event(
|
||||||
PurchaseOrderEvents.ITEM_RECEIVED, order_id=self.pk, item_id=self.pk
|
PurchaseOrderEvents.ITEM_RECEIVED,
|
||||||
|
order_id=self.pk,
|
||||||
|
item_id=item.pk,
|
||||||
|
line_id=line.pk,
|
||||||
)
|
)
|
||||||
|
|
||||||
# Update the number of parts received against the particular line item
|
# Update the number of parts received against the particular line item
|
||||||
|
Reference in New Issue
Block a user