Skip to content

Discount Policies

Backlog fieldValue
Story IDAP-GS-004
EpicGeneral Settings
Story typeMaster data / configuration
Review statusDraft - business analyst and business owner review required
Source evidenceAppsPortal.Apis controller, application command/query handlers, validators, domain entities, and matching MFE workflow where available
Last source review2026-07-10

User story

As commercial administrators, I want to define discount limits and assign them to users so that discounting follows commercial controls.

Acceptance criteria

  1. Only authorized users can view or execute the feature's actions.
  2. Required business data, active dependencies, tenant/branch scope, and current document state are validated.
  3. Invalid requests return actionable validation errors without applying a partial change.
  4. Search, list, view, print, and export operations use the same authorized business scope.
  5. Material create, edit, status, approval, posting, reversal, and integration actions are auditable where applicable.
  6. Financial or stock effects are applied atomically and no more than once.

Business rules

Required

Policy identity, scope, maximum percentage/amount, effective state, and applicable assignments are required.

Optional or conditional

Item/category/customer restrictions and date windows are optional.

Action behavior

Save changes future authorization; it does not alter posted discounts.

Blocking rule or downstream effect

A transaction exceeding user/policy/item maximum is blocked or requires configured approval.

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/pageComponentModeRoute permission/guardMapping confidenceSource
discount-policydiscoutPolicMainComponentList/navigationPermission: AppGeneralSettingsPermissions.DiscountPolicy_List; Guards: PolicyAuthGuardFeature token matchapps/erpHome/src/app/remote-entry/general-setting/general-setting.module.ts:180

Observed frontend fields and validation

ComponentControlObserved frontend ruleComponent source
--No reactive formControlName controls were found for the routed components; review template-driven/shared child components.Route sources above

Observed frontend actions

ComponentClick action/handlerBusiness review requirementComponent source
--No direct (click) handler was found; review shared toolbar/table commands and form submission bindings.Route sources above

Page-specific frontend acceptance criteria

  1. discount-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: AppGeneralSettingsPermissions.DiscountPolicy_List; Guards: PolicyAuthGuard

Internal Documentation — Microtec