[Supplier] Phase 5: Batch Price Updates & Save Action #199
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Overview
Provide a responsive floating save bar and an atomic server action to persist batch price adjustments to the inventory table, update the supplier's check timestamp, and write an immutable audit log record.
Principles Applied
principle-make-operations-idempotent: Atomic PostgreSQL transaction for batch updates.principle-prove-it-works: Verify state persistence across page refreshes.Scope & Tasks
fixed bottom-20 md:bottom-6 inset-x-0 mx-auto w-[calc(100%-1.5rem)] max-w-md z-40) visible whenever catalog items have pending edits.updateSupplierPrices:requireAdmin().inventory.sellPriceand/orinventory.buyPricein a PostgreSQL transaction.suppliers.lastCheckedAtto current timestamp.actionLogs.markSupplierCheckedfor recording price verification when no prices change.Acceptance Criteria
suppliers.last_checked_atatomically.pnpm verify:managementpasses.[Pemasok] Phase 5: Batch Price Updates & Save Actionto [Supplier] Phase 5: Batch Price Updates & Save Action