fix: sales return for multi-uom (#45303)

This commit is contained in:
rohitwaghchaure
2025-01-17 16:35:59 +05:30
committed by GitHub
parent 0e7e9b5f0a
commit 9163f60191
2 changed files with 3 additions and 3 deletions

View File

@@ -1020,7 +1020,7 @@ def get_serial_and_batch_bundle(field, doctype, reference_ids, is_rejected=False
def filter_serial_batches(parent_doc, data, row, warehouse_field=None, qty_field=None):
if not qty_field:
qty_field = "qty"
qty_field = "stock_qty"
if not warehouse_field:
warehouse_field = "warehouse"
@@ -1109,7 +1109,7 @@ def make_serial_batch_bundle_for_return(data, child_doc, parent_doc, warehouse_f
warehouse_field = "warehouse"
if not qty_field:
qty_field = "qty"
qty_field = "stock_qty"
warehouse = child_doc.get(warehouse_field)
if parent_doc.get("is_internal_customer"):