refactor: remove do_reposting_for_each_stock_transaction feature

This commit is contained in:
Mihir Kandoi
2025-07-08 11:35:45 +05:30
parent 7ec4d16403
commit e342b1f7bd
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 = {}