feat: total price and products count display for deals

This commit is contained in:
2025-10-11 16:21:31 +04:00
parent a899177623
commit 2052737561
6 changed files with 55 additions and 14 deletions

View File

@ -855,6 +855,14 @@ export type DealSchema = {
* Createdat
*/
createdAt: string;
/**
* Productsquantity
*/
productsQuantity?: number;
/**
* Totalprice
*/
totalPrice?: number;
client?: ClientSchema | null;
};

View File

@ -327,6 +327,8 @@ export const zDealSchema = z.object({
createdAt: z.iso.datetime({
offset: true,
}),
productsQuantity: z.optional(z.int()).default(0),
totalPrice: z.optional(z.number()).default(0),
client: z.optional(z.union([zClientSchema, z.null()])),
});