mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 07:54:46 +00:00
Merge pull request #52787 from frappe/mergify/bp/version-15-hotfix/pr-52490
fix: Add handling for Sales Invoice Item quantity field (backport #52490)
This commit is contained in:
@@ -1032,6 +1032,8 @@ class SerialandBatchBundle(Document):
|
|||||||
qty_field = "consumed_qty"
|
qty_field = "consumed_qty"
|
||||||
elif row.get("doctype") == "Stock Entry Detail":
|
elif row.get("doctype") == "Stock Entry Detail":
|
||||||
qty_field = "transfer_qty"
|
qty_field = "transfer_qty"
|
||||||
|
elif row.get("doctype") in ["Sales Invoice Item", "Purchase Invoice Item"]:
|
||||||
|
qty_field = "stock_qty"
|
||||||
|
|
||||||
return qty_field
|
return qty_field
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user