Merge pull request #40898 from frappe/mergify/bp/version-14/pr-40893

fix: incorrect operator causing incorrect validation (backport #40883) (backport #40893)
This commit is contained in:
rohitwaghchaure
2024-04-07 18:03:33 +05:30
committed by GitHub

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