fix: incorrect operator causing incorrect validation

(cherry picked from commit 6b317b0c0d)
This commit is contained in:
Rohit Waghchaure
2024-04-06 15:29:00 +05:30
committed by Mergify
parent 0f9af4b82c
commit 7e1ab75b38

View File

@@ -44,7 +44,7 @@ class ClosingStockBalance(Document):
& (
(table.from_date.between(self.from_date, self.to_date))
| (table.to_date.between(self.from_date, self.to_date))
| (table.from_date >= self.from_date and table.to_date >= self.to_date)
| ((table.from_date >= self.from_date) & (table.to_date >= self.to_date))
)
)
)