Merge pull request #48570 from frappe/mergify/bp/version-15-hotfix/pr-48568

fix: recalculate qty issue for stock reco (backport #48568)
This commit is contained in:
rohitwaghchaure
2025-07-14 18:16:48 +05:30
committed by GitHub

View File

@@ -1089,15 +1089,12 @@ class StockReconciliation(StockController):
}
)
if (
add_new_sle
and not frappe.db.get_value(
if add_new_sle and not frappe.db.get_value(
"Stock Ledger Entry",
{"voucher_detail_no": row.name, "actual_qty": ("<", 0), "is_cancelled": 0},
"name",
)
and not row.current_serial_and_batch_bundle
):
if not row.current_serial_and_batch_bundle:
self.set_current_serial_and_batch_bundle(voucher_detail_no, save=True)
row.reload()