We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 262798e + cd72532 commit 0bd80f9Copy full SHA for 0bd80f9
1 file changed
erpnext/patches/v15_0/recalculate_amount_difference_field.py
@@ -62,6 +62,14 @@ def execute():
62
):
63
posting_date = period_closing_voucher[0].period_end_date
64
65
+ acc_frozen_upto = frappe.db.get_single_value("Accounts Settings", "acc_frozen_upto")
66
+ if acc_frozen_upto and getdate(acc_frozen_upto) > getdate(posting_date):
67
+ posting_date = acc_frozen_upto
68
+
69
+ stock_frozen_upto = frappe.db.get_single_value("Stock Settings", "stock_frozen_upto")
70
+ if stock_frozen_upto and getdate(stock_frozen_upto) > getdate(posting_date):
71
+ posting_date = stock_frozen_upto
72
73
fiscal_year = get_fiscal_year(frappe.utils.datetime.date.today(), raise_on_missing=False)
74
if fiscal_year and getdate(fiscal_year[1]) > getdate(posting_date):
75
posting_date = fiscal_year[1]
0 commit comments