Skip to content

Commit

Permalink
fix: warehouse not mapping correctly during Delivery Note creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
vishnu committed Aug 18, 2024
1 parent 5f3963b commit 3b9f8aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions erpnext/selling/doctype/sales_order/sales_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -1043,6 +1043,7 @@ def update_dn_item(source, target, source_parent):
)

dn_item.qty = flt(sre.reserved_qty) * flt(dn_item.get("conversion_factor", 1))
dn_item.warehouse = sre.warehouse

if sre.reservation_based_on == "Serial and Batch" and (sre.has_serial_no or sre.has_batch_no):
dn_item.serial_and_batch_bundle = get_ssb_bundle_for_voucher(sre)
Expand Down

0 comments on commit 3b9f8aa

Please sign in to comment.