Skip to content

Commit f6a1ea8

Browse files
thomasantony12mergify[bot]
authored andcommitted
fix: Add handling for Sales Invoice Item quantity field
Add handling for Sales Invoice Item quantity field (cherry picked from commit edfcaee)
1 parent d7b61b9 commit f6a1ea8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

erpnext/stock/doctype/serial_and_batch_bundle/serial_and_batch_bundle.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,6 +1028,8 @@ def get_qty_field(self, row, qty_field=None) -> str:
10281028
qty_field = "consumed_qty"
10291029
elif row.get("doctype") == "Stock Entry Detail":
10301030
qty_field = "transfer_qty"
1031+
elif row.get("doctype") == "Sales Invoice Item":
1032+
qty_field = "stock_qty"
10311033

10321034
return qty_field
10331035

0 commit comments

Comments
 (0)