fix: fiscal year overlap validation for company-specific years

(cherry picked from commit 57aaf34d3e)
This commit is contained in:
Rehan Ansari
2025-10-14 23:38:17 +05:30
committed by Mergify
parent 41694d3751
commit 482a796212

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"):