fix: Duplicate Closing Stock Balance (backport #39262) (#39263)

fix: Duplicate Closing Stock Balance

(cherry picked from commit b15795392b)

Co-authored-by: s-aga-r <sagarsharma.s312@gmail.com>
This commit is contained in:
mergify[bot]
2024-01-09 20:37:49 +05:30
committed by GitHub
parent a15ad804d0
commit a3146c39dd

View File

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