Commit Graph
6 Commits
Author SHA1 Message Date
objecttothis 1932251a73 fix(items): enhance named attribute search with improved type handling
- Add support for searching named attributes with decimal and date types.
- Extend parsing logic to handle locale-specific decimal separators.
- Update `applyNamedAttributeSearch` to return consumed names for better compatibility with free-text search.
- Refine regex matching for combined attribute search syntax.
- Expand test coverage for named attribute search across various scenarios.

Signed-off-by: objecttothis <17935339+objecttothis@users.noreply.github.com>
2026-08-21 15:41:47 +04:00
objecttothis 80f5d4cd57 refactor(items): streamline column sorting and attribute search logic
- Replace static column list in `item_sort_columns` with dynamic headers.
- Simplify `sanitizeSortColumn` for accurate key validation.
- Revise attribute join logic to improve query efficiency and maintain integrity.
- Refactor tests to handle cache issues in configuration settings.

Signed-off-by: objecttothis <17935339+objecttothis@users.noreply.github.com>
2026-08-21 14:27:21 +04:00
objecttothis 55fd835e70 fix(items): implement named attribute search and optimize attribute handling
- This commit harmonizes #4442 with this PR.
- Add `applyNamedAttributeSearch` method to enable searching by named attributes with specific values.
- Refactor `applyAttributeSort` to accept pre-resolved definition info, improving query integrity.
- Enhance free-text search to support combined attribute name:value syntax.
- Add tests for named attribute search and free-text parsing compatibility.

Signed-off-by: objecttothis <17935339+objecttothis@users.noreply.github.com>
2026-08-21 14:07:25 +04:00
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