fix: duplicate validate for stock closing entry (#45016)

This commit is contained in:
rohitwaghchaure
2025-01-01 08:28:52 +05:30
committed by GitHub
parent 2cd915fb4d
commit a9cc23f242

View File

@@ -60,7 +60,7 @@ class StockClosingEntry(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) & (table.to_date >= self.to_date))
| ((self.from_date >= table.from_date) & (table.from_date >= self.to_date))
)
)
)