mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-11 13:41:47 +00:00
Merge pull request #57113 from PranavDarade/fix/transfer-reservation-stock-uom
fix(stock): set stock_uom on transferred Stock Reservation Entries
This commit is contained in:
@@ -1316,6 +1316,7 @@ class StockReservation:
|
||||
"voucher_type": entry.voucher_type or to_doctype,
|
||||
"voucher_no": entry.voucher_no,
|
||||
"voucher_detail_no": entry.voucher_detail_no,
|
||||
"stock_uom": entry.stock_uom,
|
||||
"serial_nos": [],
|
||||
"sre_names": defaultdict(float),
|
||||
"batches": defaultdict(float),
|
||||
@@ -1373,6 +1374,7 @@ class StockReservation:
|
||||
sre.voucher_qty = entry.required_qty
|
||||
sre.item_code = entry.item_code
|
||||
sre.warehouse = entry.warehouse
|
||||
sre.stock_uom = entry.stock_uom
|
||||
sre.reserved_qty = min(sre.available_qty, entry.qty)
|
||||
sre.has_serial_no = frappe.get_value("Item", sre.item_code, "has_serial_no")
|
||||
sre.has_batch_no = frappe.get_value("Item", sre.item_code, "has_batch_no")
|
||||
|
||||
Reference in New Issue
Block a user