mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-13 20:05:09 +00:00
fix: fiscal year overlap validation for company-specific years
(cherry picked from commit 57aaf34d3e)
This commit is contained in:
@@ -99,7 +99,7 @@ class FiscalYear(Document):
|
|||||||
)
|
)
|
||||||
|
|
||||||
overlap = False
|
overlap = False
|
||||||
if not self.get("companies") or not company_for_existing:
|
if not self.get("companies") and not company_for_existing:
|
||||||
overlap = True
|
overlap = True
|
||||||
|
|
||||||
for d in self.get("companies"):
|
for d in self.get("companies"):
|
||||||
|
|||||||
Reference in New Issue
Block a user