Merge pull request #51260 from frappe/mergify/bp/version-15-hotfix/pr-51258

Revert "fix: performance of the reposting" (backport #51258)
This commit is contained in:
rohitwaghchaure
2025-12-22 17:15:12 +05:30
committed by GitHub

View File

@@ -718,13 +718,6 @@ class update_entries_after:
{"item_code": self.item_code, "warehouse": self.args.warehouse}
)
key = (self.item_code, self.args.warehouse)
if key in self.distinct_item_warehouses and self.distinct_item_warehouses[key].get(
"transfer_entry_to_repost"
):
# only repost stock entries
args["filter_voucher_type"] = "Stock Entry"
return list(self.get_sle_after_datetime(args))
def get_dependent_entries_to_fix(self, entries_to_fix, sle):
@@ -1848,9 +1841,6 @@ def get_stock_ledger_entries(
if operator in (">", "<=") and previous_sle.get("name"):
conditions += " and name!=%(name)s"
if previous_sle.get("filter_voucher_type"):
conditions += " and voucher_type = %(filter_voucher_type)s"
if extra_cond:
conditions += f"{extra_cond}"