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:
2026-08-09 12:00:13 +03:30
co-authored by Cursor
parent 06e5f48d07
commit d4aaa8e997
102 changed files with 2989 additions and 509 deletions
-6
View File
@@ -18,7 +18,6 @@ export declare class CartsController {
productCode: string;
color: string;
meterage: number;
unitPrice: number | undefined;
notes: string | undefined;
companyId: string;
companyName: string;
@@ -42,7 +41,6 @@ export declare class CartsController {
productCode: string;
color: string;
meterage: number;
unitPrice: number | undefined;
notes: string | undefined;
companyId: string;
companyName: string;
@@ -66,7 +64,6 @@ export declare class CartsController {
productCode: string;
color: string;
meterage: number;
unitPrice: number | undefined;
notes: string | undefined;
companyId: string;
companyName: string;
@@ -90,7 +87,6 @@ export declare class CartsController {
productCode: string;
color: string;
meterage: number;
unitPrice: number | undefined;
notes: string | undefined;
companyId: string;
companyName: string;
@@ -114,7 +110,6 @@ export declare class CartsController {
productCode: string;
color: string;
meterage: number;
unitPrice: number | undefined;
notes: string | undefined;
companyId: string;
companyName: string;
@@ -138,7 +133,6 @@ export declare class CartsController {
productCode: string;
color: string;
meterage: number;
unitPrice: number | undefined;
notes: string | undefined;
companyId: string;
companyName: string;
-6
View File
@@ -17,7 +17,6 @@ export declare class CartsService {
productCode: string;
color: string;
meterage: number;
unitPrice: number | undefined;
notes: string | undefined;
companyId: string;
companyName: string;
@@ -41,7 +40,6 @@ export declare class CartsService {
productCode: string;
color: string;
meterage: number;
unitPrice: number | undefined;
notes: string | undefined;
companyId: string;
companyName: string;
@@ -65,7 +63,6 @@ export declare class CartsService {
productCode: string;
color: string;
meterage: number;
unitPrice: number | undefined;
notes: string | undefined;
companyId: string;
companyName: string;
@@ -89,7 +86,6 @@ export declare class CartsService {
productCode: string;
color: string;
meterage: number;
unitPrice: number | undefined;
notes: string | undefined;
companyId: string;
companyName: string;
@@ -113,7 +109,6 @@ export declare class CartsService {
productCode: string;
color: string;
meterage: number;
unitPrice: number | undefined;
notes: string | undefined;
companyId: string;
companyName: string;
@@ -137,7 +132,6 @@ export declare class CartsService {
productCode: string;
color: string;
meterage: number;
unitPrice: number | undefined;
notes: string | undefined;
companyId: string;
companyName: string;
-3
View File
@@ -47,7 +47,6 @@ let CartsService = class CartsService {
data: {
meterage: newMeterage,
notes: dto.notes?.trim() || existing.notes,
unitPrice: product.basePrice,
},
});
}
@@ -61,7 +60,6 @@ let CartsService = class CartsService {
productCode: product.code,
color: product.color,
meterage: dto.meterage,
unitPrice: product.basePrice,
notes: dto.notes?.trim() || null,
companyId: product.companyId,
companyName: product.company.name,
@@ -168,7 +166,6 @@ let CartsService = class CartsService {
productCode: item.productCode,
color: item.color,
meterage: item.meterage,
unitPrice: item.unitPrice ?? undefined,
notes: item.notes ?? undefined,
companyId: item.companyId,
companyName: item.companyName,
+1 -1
View File
File diff suppressed because one or more lines are too long