feat: total price and products count display for deals
This commit is contained in:
@ -855,6 +855,14 @@ export type DealSchema = {
|
||||
* Createdat
|
||||
*/
|
||||
createdAt: string;
|
||||
/**
|
||||
* Productsquantity
|
||||
*/
|
||||
productsQuantity?: number;
|
||||
/**
|
||||
* Totalprice
|
||||
*/
|
||||
totalPrice?: number;
|
||||
client?: ClientSchema | null;
|
||||
};
|
||||
|
||||
|
||||
@ -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()])),
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user