Appearance
Price Policies
| Backlog field | Value |
|---|---|
| Story ID | AP-SAL-007 |
| Epic | Sales |
| Story type | Master data / configuration |
| Review status | Draft - business analyst and business owner review required |
| Source evidence | AppsPortal.Apis controller, application command/query handlers, validators, domain entities, and matching MFE workflow where available |
| Last source review | 2026-07-10 |
User story
As commercial managers, I want to maintain item prices and customer pricing rules so that sales use authorized prices for the effective context.
Acceptance criteria
- Only authorized users can view or execute the feature's actions.
- Required business data, active dependencies, tenant/branch scope, and current document state are validated.
- Invalid requests return actionable validation errors without applying a partial change.
- Search, list, view, print, and export operations use the same authorized business scope.
- Material create, edit, status, approval, posting, reversal, and integration actions are auditable where applicable.
- Financial or stock effects are applied atomically and no more than once.
Business rules
Required
Policy identity, currency/effective state, item-variant/UOM prices, and applicable scope are required.
Optional or conditional
Customer/category/branch/date restrictions, discounts, and VAT-included flags are optional/conditional.
Action behavior
Save changes future price resolution and does not rewrite posted invoice prices.
Blocking rule or downstream effect
The most specific valid policy/default precedence must be deterministic and unauthorized override is blocked.
Frontend page coverage
The following UI coverage is sourced from the pulled MFE route configuration. A Module-level supporting artifact mapping is evidence of a reachable screen, but requires BA confirmation that it belongs to this story rather than a more specific feature story.
| Route/page | Component | Mode | Route permission/guard | Mapping confidence | Source |
|---|---|---|---|---|---|
| price-policy | PricePolicyMainComponent | List/navigation | Permission: AppSalesPermissions.PricePolicy_List; Guards: PolicyAuthGuard | Feature token match | apps/sales/src/app/remote-entry/sales/sales.module.ts:198 |
Observed frontend fields and validation
| Component | Control | Observed frontend rule | Component source |
|---|---|---|---|
| - | - | No reactive formControlName controls were found for the routed components; review template-driven/shared child components. | Route sources above |
Observed frontend actions
| Component | Click action/handler | Business review requirement | Component source |
|---|---|---|---|
| - | - | No direct (click) handler was found; review shared toolbar/table commands and form submission bindings. | Route sources above |
Page-specific frontend acceptance criteria
- price-policy - List/navigation: Load an authorized paged/searchable list or navigation page; preserve filters/sort/paging and expose only permitted row and bulk actions. Security observed: Permission: AppSalesPermissions.PricePolicy_List; Guards: PolicyAuthGuard