mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 15:09:20 +00:00
fix: fiscal year overlap validation for company-specific years
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