From 72cdddbeda50c1faf3fe66e9cb9724eb8288e9b6 Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Tue, 20 Jan 2026 19:30:42 +0530 Subject: [PATCH] Revert "perf: prevent duplicate reposting for the same item" (cherry picked from commit 6e4b90055f6058ec6ca65d0a858a498cf869cf16) --- erpnext/stock/stock_ledger.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/erpnext/stock/stock_ledger.py b/erpnext/stock/stock_ledger.py index 05a9c1adae3..7a9a2ad273a 100644 --- a/erpnext/stock/stock_ledger.py +++ b/erpnext/stock/stock_ledger.py @@ -758,8 +758,7 @@ class update_entries_after: self.distinct_item_warehouses[key] = val self.new_items_found = True elif ( - self.via_landed_cost_voucher - and dependant_sle.actual_qty > 0 + dependant_sle.actual_qty > 0 and dependant_sle.voucher_type == "Stock Entry" and is_transfer_stock_entry(dependant_sle.voucher_no) ):