mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-30 12:08:26 +00:00
Merge pull request #52490 from thomasantony12/patch-1
fix: Add handling for Sales Invoice Item quantity field
This commit is contained in:
@@ -1027,6 +1027,8 @@ class SerialandBatchBundle(Document):
|
||||
qty_field = "consumed_qty"
|
||||
elif row.get("doctype") == "Stock Entry Detail":
|
||||
qty_field = "transfer_qty"
|
||||
elif row.get("doctype") in ["Sales Invoice Item", "Purchase Invoice Item"]:
|
||||
qty_field = "stock_qty"
|
||||
|
||||
return qty_field
|
||||
|
||||
|
||||
Reference in New Issue
Block a user