mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 11:19:09 +00:00
fix: warehouse not mapping correctly during Delivery Note creation.
(cherry picked from commit 3b9f8aa378)
This commit is contained in:
@@ -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.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):
|
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)
|
dn_item.serial_and_batch_bundle = get_ssb_bundle_for_voucher(sre)
|
||||||
|
|||||||
Reference in New Issue
Block a user