diff --git a/docs/PHASES.md b/docs/PHASES.md index 6af63b3..b7cc1f2 100644 --- a/docs/PHASES.md +++ b/docs/PHASES.md @@ -62,4 +62,6 @@ Customer and administration screens are implemented, with recovery, pricing, sto - Artwork UAT should use separate uploader, reviewer, and reader accounts. Exercise the 2 MiB upload limit through ingress, approval and rejection, download permissions, and preservation of prior approved versions. - Partner orders support conversion from accepted, unexpired quotations, immutable merchandise snapshots, and reasoned cancellation. - Partner order UAT should verify expired quotes, duplicate references and quote conversion, exact retries, and cancellation blocked by an active payment receipt. -- Partner payments, custom requests and reporting remain open. +- Partner payments support manual external receipts, exact paid and outstanding merchandise balances, receipt details, and confirmed reasoned reversals. Read and manage permissions are separate, and payment readers can open an order's payment history without order-read permission. +- Partner payment UAT should exercise partial and full receipts, duplicate references, overpayments, cancelled orders, exact retries for recording and reversal, restored balances, and cancellation after reversing all active receipts. References normalize to uppercase and remain reserved after reversal. +- Custom requests and reporting remain open. diff --git a/src/App.tsx b/src/App.tsx index 930e8f4..0e8bf65 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -36,6 +36,7 @@ const CreditPoliciesPage = lazy(() => import("@/pages/CreditPoliciesPage")); const SamplesPage = lazy(() => import("@/pages/SamplesPage")); const ArtworkPage = lazy(() => import("@/pages/ArtworkPage")); const PartnerOrdersPage = lazy(() => import("@/pages/PartnerOrdersPage")); +const PartnerPaymentsPage = lazy(() => import("@/pages/PartnerPaymentsPage")); const MaterialCostRatesPage = lazy(() => import("@/pages/MaterialCostRatesPage")); const ProcurementPage = lazy(() => import("@/pages/ProcurementPage")); const BomPage = lazy(() => import("@/pages/BomPage")); @@ -130,6 +131,10 @@ function Router() { {(params) => } + {() => } + + {(params) => } + {() => } {() => } diff --git a/src/components/WorkspaceShell.tsx b/src/components/WorkspaceShell.tsx index 45f144a..4d676be 100644 --- a/src/components/WorkspaceShell.tsx +++ b/src/components/WorkspaceShell.tsx @@ -77,6 +77,7 @@ export function WorkspaceNavigation() { { label: "B2B samples", path: "/admin/b2b-samples", permission: "b2b.sample.read" }, { label: "B2B artwork", path: "/admin/b2b-artwork", permission: "b2b.artwork.read" }, { label: "B2B partner orders", path: "/admin/b2b-partner-orders", permission: "b2b.order.read" }, + { label: "B2B partner payments", path: "/admin/b2b-payments", permission: "b2b.payment.read" }, ]; return (