Appearance
Purchase General Settings
| Backlog field | Value |
|---|---|
| Story ID | AP-PUR-002 |
| Epic | Purchase |
| 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 purchasing administrators, I want to configure purchase defaults, accounts, and policies so that purchase workflows behave consistently.
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
Enabled purchase workflows require default accounts, taxes, warehouses, payment terms, sequences, and policy switches they consume.
Optional or conditional
Unused defaults and optional tolerances are not required.
Action behavior
Save affects future orders/invoices/returns; posted documents retain snapshots.
Blocking rule or downstream effect
Missing consumed settings blocks Post with an actionable configuration error.
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 |
|---|---|---|---|---|---|
| general-settings | GeneralSettingPurchaseComponent | List/navigation | Permission: AppPurchasePermissions.PurchaseGeneralSettings_View , AppPurchasePermissions.PurchaseGeneralSettings_Edit; Guards: PolicyAuthGuard | Feature token match | apps/purchase/src/app/remote-entry/purchase/purchase.module.ts:159 |
Observed frontend fields and validation
| Component | Control | Observed frontend rule | Component source |
|---|---|---|---|
| GeneralSettingPurchaseComponent | defaultWarehouseId | Visible control; optional or API-dependent | apps/purchase/src/app/remote-entry/purchase/pages/general-setting-purchase/general-setting-purchase.component.ts |
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
- general-settings - 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: AppPurchasePermissions.PurchaseGeneralSettings_View , AppPurchasePermissions.PurchaseGeneralSettings_Edit; Guards: PolicyAuthGuard