Merge pull request #48444 from mihir-kandoi/st42689

refactor: remove do_reposting_for_each_stock_transaction feature
This commit is contained in:
rohitwaghchaure
2025-07-08 12:31:06 +05:30
committed by GitHub
5 changed files with 5 additions and 69 deletions

View File

@@ -1771,14 +1771,9 @@ def is_reposting_pending():
)
def future_sle_exists(args, sl_entries=None, allow_force_reposting=True):
def future_sle_exists(args, sl_entries=None):
from erpnext.stock.utils import get_combine_datetime
if allow_force_reposting and frappe.get_single_value(
"Stock Reposting Settings", "do_reposting_for_each_stock_transaction"
):
return True
key = (args.voucher_type, args.voucher_no)
if not hasattr(frappe.local, "future_sle"):
frappe.local.future_sle = {}