mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-24 21:52:21 +01:00
fix: preview stock ledger for manual serial and batch values
(cherry picked from commit c5f68d0b27)
This commit is contained in:
@@ -1544,7 +1544,9 @@ def get_stock_ledger_preview(doc, filters):
|
|||||||
|
|
||||||
if doc.get("update_stock") or doc.doctype in ("Purchase Receipt", "Delivery Note"):
|
if doc.get("update_stock") or doc.doctype in ("Purchase Receipt", "Delivery Note"):
|
||||||
doc.docstatus = 1
|
doc.docstatus = 1
|
||||||
|
doc.make_bundle_using_old_serial_batch_fields()
|
||||||
doc.update_stock_ledger()
|
doc.update_stock_ledger()
|
||||||
|
|
||||||
columns = get_sl_columns(filters)
|
columns = get_sl_columns(filters)
|
||||||
sl_entries = get_sl_entries_for_preview(doc.doctype, doc.name, fields)
|
sl_entries = get_sl_entries_for_preview(doc.doctype, doc.name, fields)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user