Skip to content

Commit eff9595

Browse files
rohitwaghchauremergify[bot]
authored andcommitted
perf: prevent duplicate reposting for the same item
(cherry picked from commit 7535931)
1 parent 8847e1c commit eff9595

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

erpnext/stock/stock_ledger.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,8 @@ def update_distinct_item_warehouses(self, dependant_sle):
752752
self.distinct_item_warehouses[key] = val
753753
self.new_items_found = True
754754
elif (
755-
dependant_sle.actual_qty > 0
755+
self.via_landed_cost_voucher
756+
and dependant_sle.actual_qty > 0
756757
and dependant_sle.voucher_type == "Stock Entry"
757758
and is_transfer_stock_entry(dependant_sle.voucher_no)
758759
):

0 commit comments

Comments
 (0)