Skip to content

Commit edfcaee

Browse files
fix: Add handling for Sales Invoice Item quantity field
Add handling for Sales Invoice Item quantity field
1 parent 31ec3af commit edfcaee

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
@@ -1026,6 +1026,8 @@ def get_qty_field(self, row, qty_field=None) -> str:
10261026
qty_field = "consumed_qty"
10271027
elif row.get("doctype") == "Stock Entry Detail":
10281028
qty_field = "transfer_qty"
1029+
elif row.get("doctype") == "Sales Invoice Item":
1030+
qty_field = "stock_qty"
10291031

10301032
return qty_field
10311033

0 commit comments

Comments
 (0)