-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: stock analytics report shows incorrect data there's no stock mov…
…ement in a period (backport #30945) (#30980) * test: basic test for stock analytics report (cherry picked from commit d81422f) * fix: consider previous balance is missing Also remove `total`, total of total is a meaningless value. (cherry picked from commit 6ab0046) * fix: batch_no doesn't maintain qty_after_transaction (cherry picked from commit 287b255) * fix: only carry-forward balances till today's period Showing data in future doesn't make sense. Only carry-forward till last bucket that contains today's day. (cherry picked from commit 198b91f) Co-authored-by: Ankush Menat <me@ankush.dev>
- Loading branch information
1 parent
d697515
commit 295ffb3
Showing
2 changed files
with
131 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters