mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-22 08:08:29 +00:00
@@ -1089,17 +1089,14 @@ class StockReconciliation(StockController):
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
if (
|
if add_new_sle and not frappe.db.get_value(
|
||||||
add_new_sle
|
"Stock Ledger Entry",
|
||||||
and not frappe.db.get_value(
|
{"voucher_detail_no": row.name, "actual_qty": ("<", 0), "is_cancelled": 0},
|
||||||
"Stock Ledger Entry",
|
"name",
|
||||||
{"voucher_detail_no": row.name, "actual_qty": ("<", 0), "is_cancelled": 0},
|
|
||||||
"name",
|
|
||||||
)
|
|
||||||
and not row.current_serial_and_batch_bundle
|
|
||||||
):
|
):
|
||||||
self.set_current_serial_and_batch_bundle(voucher_detail_no, save=True)
|
if not not row.current_serial_and_batch_bundle:
|
||||||
row.reload()
|
self.set_current_serial_and_batch_bundle(voucher_detail_no, save=True)
|
||||||
|
row.reload()
|
||||||
|
|
||||||
self.add_missing_stock_ledger_entry(row, voucher_detail_no, sle_creation)
|
self.add_missing_stock_ledger_entry(row, voucher_detail_no, sle_creation)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user