fix: more patch related changes

This commit is contained in:
khushi8112
2025-12-02 17:49:16 +05:30
parent 4f33ee01cf
commit 404e68bdc2
3 changed files with 5 additions and 5 deletions

View File

@@ -58,9 +58,9 @@ def execute():
):
posting_date = period_closing_voucher[0].period_end_date
acc_frozen_till_date = frappe.db.get_value("Company", company, "accounts_frozen_till_date")
if acc_frozen_till_date and getdate(acc_frozen_till_date) > getdate(posting_date):
posting_date = acc_frozen_till_date
acc_frozen_upto = frappe.db.get_single_value("Accounts Settings", "acc_frozen_upto")
if acc_frozen_upto and getdate(acc_frozen_upto) > getdate(posting_date):
posting_date = acc_frozen_upto
stock_frozen_upto = frappe.db.get_single_value("Stock Settings", "stock_frozen_upto")
if stock_frozen_upto and getdate(stock_frozen_upto) > getdate(posting_date):