mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-25 14:11:45 +01:00
fix: add purchase invoice as well
(cherry picked from commit 1fc2eddf6f)
This commit is contained in:
@@ -1032,7 +1032,7 @@ 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") == "Sales Invoice Item":
|
elif row.get("doctype") in ["Sales Invoice Item", "Purchase Invoice Item"]:
|
||||||
qty_field = "stock_qty"
|
qty_field = "stock_qty"
|
||||||
|
|
||||||
return qty_field
|
return qty_field
|
||||||
|
|||||||
Reference in New Issue
Block a user