fix: warehouse not mapping correctly during Delivery Note creation.

(cherry picked from commit 3b9f8aa378)
This commit is contained in:
vishnu
2024-08-18 09:56:12 +00:00
committed by ruthra kumar
parent 60ffcd0574
commit 24c84822ac

View File

@@ -1040,6 +1040,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)