fix: warehouse not mapping correctly during Delivery Note creation.

This commit is contained in:
vishnu
2024-08-18 09:56:12 +00:00
parent 5f3963b3e6
commit 3b9f8aa378

View File

@@ -1043,6 +1043,7 @@ def make_delivery_note(source_name, target_doc=None, kwargs=None):
)
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)