VCST-3989: Add support for order search by promotion ID(s)#478
Conversation
feat: Enable filtering customer orders by single or multiple promotion IDs. Promotion IDs from discounts in orders, line items, payments, and shipments are now indexed and filterable. Updated search criteria, indexing, and query logic to support both indexed and database search for orders associated with specified promotions.
vc-ci
left a comment
There was a problem hiding this comment.
Test Suite: Test Suites/Modules/module_Assets
Tests: 13
Failures: 0
Errors: 0
Time: 7.373
Timestamp: 22-12-2025T15:58:29
vc-ci
left a comment
There was a problem hiding this comment.
Test Suite: Test Suites/Modules/module_Assets
Tests: 13
Failures: 0
Errors: 0
Time: 7.856
Timestamp: 22-12-2025T16:19:18
src/VirtoCommerce.OrdersModule.Web/Scripts/blades/operation-discounts.tpl.html
Show resolved
Hide resolved
vc-ci
left a comment
There was a problem hiding this comment.
Test Suite: Test Suites/Modules/module_Assets
Tests: 13
Failures: 0
Errors: 0
Time: 7.38
Timestamp: 23-12-2025T09:39:35
src/VirtoCommerce.OrdersModule.Core/Model/Search/CustomerOrderSearchCriteria.cs
Outdated
Show resolved
Hide resolved
vc-ci
left a comment
There was a problem hiding this comment.
Test Suite: Test Suites/Modules/module_Assets
Tests: 13
Failures: 0
Errors: 0
Time: 7.541
Timestamp: 26-12-2025T11:57:28
vc-ci
left a comment
There was a problem hiding this comment.
Test Suite: Test Suites/Modules/module_Assets
Tests: 13
Failures: 0
Errors: 0
Time: 8.141
Timestamp: 26-12-2025T15:15:38
vc-ci
left a comment
There was a problem hiding this comment.
Test Suite: Test Suites/Modules/module_Assets
Tests: 13
Failures: 0
Errors: 0
Time: 7.722
Timestamp: 14-01-2026T19:22:13
|



Description
feat: Enable filtering customer orders by single or multiple promotion IDs. Promotion IDs from discounts in orders, line items, payments, and shipments are now indexed and filterable. Updated search criteria, indexing, and query logic to support both indexed and database search for orders associated with specified promotions.
References
QA-test:
Jira-link:
https://virtocommerce.atlassian.net/browse/VCST-3989
Artifact URL:
https://vc3prerelease.blob.core.windows.net/packages/VirtoCommerce.Orders_3.866.0-pr-478-9a95.zip
Note
Adds promotion-aware order search and a small UI to view discounts.
CustomerOrderSearchCriteriawithPromotionId/PromotionIdsPromotionIdfrom discounts on orders, line items, payments, and shipments; add filterablepromotionidfieldCustomerOrderSearchRequestBuilder,CustomerOrderSearchService)Written by Cursor Bugbot for commit 9a956c7. This will update automatically on new commits. Configure here.