Skip to content

Commit 2fc3e30

Browse files
mihir-kandoimergify[bot]
authored andcommitted
fix: add purchase invoice as well
(cherry picked from commit 1fc2edd)
1 parent 41c7890 commit 2fc3e30

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

erpnext/stock/doctype/serial_and_batch_bundle/serial_and_batch_bundle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1032,7 +1032,7 @@ def get_qty_field(self, row, qty_field=None) -> str:
10321032
qty_field = "consumed_qty"
10331033
elif row.get("doctype") == "Stock Entry Detail":
10341034
qty_field = "transfer_qty"
1035-
elif row.get("doctype") == "Sales Invoice Item":
1035+
elif row.get("doctype") in ["Sales Invoice Item", "Purchase Invoice Item"]:
10361036
qty_field = "stock_qty"
10371037

10381038
return qty_field

0 commit comments

Comments
 (0)