mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 15:09:20 +00:00
Merge pull request #40583 from frappe/mergify/bp/version-14-hotfix/pr-40572
fix: PCV validation for previous fiscal year (backport #40572)
This commit is contained in:
@@ -121,7 +121,8 @@ class PeriodClosingVoucher(AccountsController):
|
|||||||
previous_fiscal_year = get_fiscal_year(last_year_closing, company=self.company, boolean=True)
|
previous_fiscal_year = get_fiscal_year(last_year_closing, company=self.company, boolean=True)
|
||||||
|
|
||||||
if previous_fiscal_year and not frappe.db.exists(
|
if previous_fiscal_year and not frappe.db.exists(
|
||||||
"GL Entry", {"posting_date": ("<=", last_year_closing), "company": self.company}
|
"GL Entry",
|
||||||
|
{"posting_date": ("<=", last_year_closing), "company": self.company, "is_cancelled": 0},
|
||||||
):
|
):
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user