Commit Graph
3 Commits
Author SHA1 Message Date
objecttothis 50d07108a2 fix(tests): update quantity aggregation test for multi-location support
- Add test case for verifying quantity aggregation across multiple locations.
- Update assertion to reflect new total quantity calculation logic.

Signed-off-by: objecttothis <17935339+objecttothis@users.noreply.github.com>
2026-08-21 12:57:15 +04:00
objecttothis 9138127a67 fix(items): optimize quantity sum handling and add test to prevent over-counting
- Refactor quantity sum calculation by introducing a subquery to handle SUM without over-counting due to joins.
- Update search logic and related query clauses for consistent sorting by total quantities across locations.
- Add test to verify correct quantity aggregation without duplication.

Signed-off-by: objecttothis <17935339+objecttothis@users.noreply.github.com>
2026-08-21 12:49:51 +04:00
objecttothis 410c6649e0 refactor(items): streamline tax computation and add tests for getItemDataRow
Signed-off-by: objecttothis <17935339+objecttothis@users.noreply.github.com>
2026-08-20 21:28:56 +04:00