mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-28 14:18:24 +00:00
Revert "refactor(stock): use db.count for the empty ledger check (backport #58486)"
(cherry picked from commit 8287906a71)
# Conflicts:
# erpnext/stock/stock_ledger.py
This commit is contained in:
committed by
Mergify
parent
5a518951e4
commit
0e7be81f86
@@ -1758,9 +1758,14 @@ class update_entries_after:
|
||||
if not item_code or not warehouse or (item_code, warehouse) in self.prev_sle_dict:
|
||||
return
|
||||
|
||||
<<<<<<< HEAD
|
||||
if frappe.db.count(
|
||||
"Stock Ledger Entry",
|
||||
{"item_code": item_code, "warehouse": warehouse, "is_cancelled": 0},
|
||||
=======
|
||||
if frappe.db.exists(
|
||||
"Stock Ledger Entry", {"item_code": item_code, "warehouse": warehouse, "is_cancelled": 0}
|
||||
>>>>>>> 8287906 (Revert "refactor(stock): use db.count for the empty ledger check (backport #58486)")
|
||||
):
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user