fix: fiscal year overlap validation for company-specific years

This commit is contained in:
Rehan Ansari
2025-10-14 23:38:17 +05:30
parent 270520a9fc
commit 57aaf34d3e

View File

@@ -99,7 +99,7 @@ class FiscalYear(Document):
)
overlap = False
if not self.get("companies") or not company_for_existing:
if not self.get("companies") and not company_for_existing:
overlap = True
for d in self.get("companies"):