mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-13 10:11:20 +00:00
Merge pull request #46258 from mihir-kandoi/46196
fix: delivery note from sales order uom conversion mistake
This commit is contained in:
@@ -1063,7 +1063,7 @@ def make_delivery_note(source_name, target_doc=None, kwargs=None):
|
|||||||
ignore_permissions=True,
|
ignore_permissions=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
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
|
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):
|
||||||
|
|||||||
Reference in New Issue
Block a user