Rebuild order flow: settle after pricing, notifications, and invoice expiry.
Hide prices until admin sends the invoice, enforce status transitions, add customer/admin SMS+in-app notifications, schedule cash invoice reminders, and ship updated dist/prisma-client/deploy-bundle for git-pull deploys. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Vendored
+10
-8
@@ -7,22 +7,24 @@ const client_1 = require("@prisma/client");
|
||||
exports.ADMIN_STATUS_MAP = {
|
||||
pending_review: [
|
||||
client_1.OrderStatus.cart,
|
||||
client_1.OrderStatus.awaiting_settlement,
|
||||
client_1.OrderStatus.cash_in_progress,
|
||||
client_1.OrderStatus.check_in_progress,
|
||||
client_1.OrderStatus.submitted,
|
||||
client_1.OrderStatus.awaiting_review,
|
||||
client_1.OrderStatus.pricing,
|
||||
],
|
||||
awaiting_customer: [
|
||||
client_1.OrderStatus.awaiting_settlement,
|
||||
client_1.OrderStatus.awaiting_settlement_fix,
|
||||
client_1.OrderStatus.check_in_progress,
|
||||
client_1.OrderStatus.cash_in_progress,
|
||||
client_1.OrderStatus.cash_invoice_issued,
|
||||
client_1.OrderStatus.awaiting_cash_payment,
|
||||
],
|
||||
pending_check: [client_1.OrderStatus.awaiting_check_review],
|
||||
pending_payment: [
|
||||
client_1.OrderStatus.cash_payment_submitted,
|
||||
client_1.OrderStatus.awaiting_cash_confirmation,
|
||||
],
|
||||
pending_check: [client_1.OrderStatus.awaiting_check_review],
|
||||
needs_correction: [
|
||||
client_1.OrderStatus.needs_correction,
|
||||
client_1.OrderStatus.awaiting_settlement_fix,
|
||||
],
|
||||
needs_correction: [client_1.OrderStatus.needs_correction],
|
||||
check_correction: [client_1.OrderStatus.check_needs_fix, client_1.OrderStatus.check_rejected],
|
||||
final_approval: [
|
||||
client_1.OrderStatus.final_approved,
|
||||
|
||||
Reference in New Issue
Block a user