diff --git a/docs/PHASES.md b/docs/PHASES.md index 2b92016..ffa1ce0 100644 --- a/docs/PHASES.md +++ b/docs/PHASES.md @@ -54,4 +54,6 @@ Customer and administration screens are implemented, with recovery, pricing, sto - Price-list UAT should verify that unverified accounts and competing active lists cannot activate a draft, archived terms stay read-only, and price checks reject quantities below the variant minimum. - Staff can issue B2B quotations from account-specific price lists, review saved profile and pricing snapshots, and record acceptance, decline, or withdrawal before expiry. - Quotation UAT should verify minimum quantities, expiry, immutable snapshots after archiving a price list, and exact retries for issuance and responses. -- Credit policies, samples, artwork, partner orders and payments, custom requests and reporting remain open. +- B2B credit policies support immutable proposals, independent approval or rejection, and suspension with decision history. +- Credit policy UAT should verify that unverified accounts and self-review are rejected, a second active policy in the same currency cannot be approved, and suspension permits a replacement. +- Samples, artwork, partner orders and payments, custom requests and reporting remain open. diff --git a/src/App.tsx b/src/App.tsx index 88367be..397719e 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -32,6 +32,7 @@ const MaterialStockPage = lazy(() => import("@/pages/MaterialStockPage")); const BusinessAccountsPage = lazy(() => import("@/pages/BusinessAccountsPage")); const PriceListsPage = lazy(() => import("@/pages/PriceListsPage")); const QuotesPage = lazy(() => import("@/pages/QuotesPage")); +const CreditPoliciesPage = lazy(() => import("@/pages/CreditPoliciesPage")); const MaterialCostRatesPage = lazy(() => import("@/pages/MaterialCostRatesPage")); const ProcurementPage = lazy(() => import("@/pages/ProcurementPage")); const BomPage = lazy(() => import("@/pages/BomPage")); @@ -93,6 +94,17 @@ function Router() { {(params) => } + {() => } + {() => } + + {(params) => } + + + {(params) => } + + + {(params) => } + {() => } {(params) => } diff --git a/src/components/WorkspaceShell.tsx b/src/components/WorkspaceShell.tsx index 67e9846..80d2bc4 100644 --- a/src/components/WorkspaceShell.tsx +++ b/src/components/WorkspaceShell.tsx @@ -73,6 +73,7 @@ export function WorkspaceNavigation() { { label: "Business accounts", path: "/admin/business-accounts", permission: "b2b.read" }, { label: "B2B price lists", path: "/admin/b2b-price-lists", permission: "b2b.price.read" }, { label: "B2B quotations", path: "/admin/b2b-quotes", permission: "b2b.quote.read" }, + { label: "B2B credit policies", path: "/admin/b2b-credit-policies", permission: "b2b.credit.read" }, ]; return (