chore: fix test case

(cherry picked from commit d191b80587)
This commit is contained in:
rohitwaghchaure
2025-12-22 16:22:44 +05:30
committed by Mergify
parent c89fe9f1ca
commit aefde87a0c

View File

@@ -751,8 +751,10 @@ class update_entries_after:
if getdate(existing_sle.get("posting_date")) > getdate(dependant_sle.posting_date): if getdate(existing_sle.get("posting_date")) > getdate(dependant_sle.posting_date):
self.distinct_item_warehouses[key] = val self.distinct_item_warehouses[key] = val
self.new_items_found = True self.new_items_found = True
elif dependant_sle.voucher_type == "Stock Entry" and is_transfer_stock_entry( elif (
dependant_sle.voucher_no dependant_sle.actual_qty > 0
and dependant_sle.voucher_type == "Stock Entry"
and is_transfer_stock_entry(dependant_sle.voucher_no)
): ):
if self.distinct_item_warehouses[key].get("transfer_entry_to_repost"): if self.distinct_item_warehouses[key].get("transfer_entry_to_repost"):
return return