Bug fix for receiving line item event (#9071) (#9072)

- Use StockItem ID correctly
- Provide line ID

(cherry picked from commit f27a84a7e5)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
This commit is contained in:
github-actions[bot] 2025-02-13 14:46:55 +11:00 committed by GitHub
parent eef1aad464
commit 28726db86f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -887,7 +887,10 @@ class PurchaseOrder(TotalPriceMixin, Order):
)
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