Variable CreateSalesOrderSchemaConst
CreateSalesOrderSchema: ZodObject<
{
number: ZodString;
clientId: ZodString;
clientOrderNumber: ZodString;
orderDate: ZodString;
deliveryDate: ZodOptional<ZodString>;
requestedDepartureDate: ZodOptional<ZodString>;
confirmedDepartureDate: ZodOptional<ZodString>;
status: ZodDefault<
ZodEnum<
[
"DRAFT",
"PENDING_CONFIRMATION",
"CONFIRMED",
"IN_PRODUCTION",
"READY_TO_SHIP",
"SHIPPED",
"DELIVERED",
"COMPLETED",
"CANCELLED",
"PARTIAL",
],
>,
>;
totalAmount: ZodNumber;
currencyId: ZodString;
salesOfferId: ZodOptional<ZodString>;
opportunityId: ZodOptional<ZodString>;
transportDelay: ZodOptional<ZodNumber>;
notes: ZodOptional<ZodString>;
lines: ZodArray<
ZodObject<
{
id: ZodOptional<ZodString>;
finishedProductId: ZodOptional<ZodString>;
description: ZodString;
quantity: ZodNumber;
unitPrice: ZodNumber;
totalPrice: ZodNumber;
taxId: ZodOptional<ZodString>;
taxRate: ZodNumber;
taxAmount: ZodNumber;
deliveredQuantity: ZodNumber;
remainingQuantity: ZodNumber;
notes: ZodOptional<ZodString>;
sequence: ZodDefault<ZodOptional<ZodNumber>>;
clientProductCode: ZodOptional<ZodString>;
requestedDepartureDate: ZodOptional<ZodString>;
confirmedDepartureDate: ZodOptional<ZodString>;
unitOfMeasureId: ZodOptional<ZodString>;
unitOfPriceId: ZodOptional<ZodString>;
salesMultiple: ZodOptional<ZodNumber>;
minimumQuantity: ZodOptional<ZodNumber>;
},
"strip",
ZodTypeAny,
{
id?: string;
finishedProductId?: string;
description: string;
quantity: number;
unitPrice: number;
totalPrice: number;
taxId?: string;
taxRate: number;
taxAmount: number;
deliveredQuantity: number;
remainingQuantity: number;
notes?: string;
sequence: number;
clientProductCode?: string;
requestedDepartureDate?: string;
confirmedDepartureDate?: string;
unitOfMeasureId?: string;
unitOfPriceId?: string;
salesMultiple?: number;
minimumQuantity?: number;
},
{
id?: string;
finishedProductId?: string;
description: string;
quantity: number;
unitPrice: number;
totalPrice: number;
taxId?: string;
taxRate: number;
taxAmount: number;
deliveredQuantity: number;
remainingQuantity: number;
notes?: string;
sequence?: number;
clientProductCode?: string;
requestedDepartureDate?: string;
confirmedDepartureDate?: string;
unitOfMeasureId?: string;
unitOfPriceId?: string;
salesMultiple?: number;
minimumQuantity?: number;
},
>,
"many",
>;
},
"strip",
ZodTypeAny,
{
number: string;
clientId: string;
clientOrderNumber: string;
orderDate: string;
deliveryDate?: string;
requestedDepartureDate?: string;
confirmedDepartureDate?: string;
status: | "DRAFT"
| "CANCELLED"
| "COMPLETED"
| "CONFIRMED"
| "PENDING_CONFIRMATION"
| "IN_PRODUCTION"
| "READY_TO_SHIP"
| "SHIPPED"
| "DELIVERED"
| "PARTIAL";
totalAmount: number;
currencyId: string;
salesOfferId?: string;
opportunityId?: string;
transportDelay?: number;
notes?: string;
lines: {
id?: string;
finishedProductId?: string;
description: string;
quantity: number;
unitPrice: number;
totalPrice: number;
taxId?: string;
taxRate: number;
taxAmount: number;
deliveredQuantity: number;
remainingQuantity: number;
notes?: string;
sequence: number;
clientProductCode?: string;
requestedDepartureDate?: string;
confirmedDepartureDate?: string;
unitOfMeasureId?: string;
unitOfPriceId?: string;
salesMultiple?: number;
minimumQuantity?: number;
}[];
},
{
number: string;
clientId: string;
clientOrderNumber: string;
orderDate: string;
deliveryDate?: string;
requestedDepartureDate?: string;
confirmedDepartureDate?: string;
status?: | "DRAFT"
| "CANCELLED"
| "COMPLETED"
| "CONFIRMED"
| "PENDING_CONFIRMATION"
| "IN_PRODUCTION"
| "READY_TO_SHIP"
| "SHIPPED"
| "DELIVERED"
| "PARTIAL";
totalAmount: number;
currencyId: string;
salesOfferId?: string;
opportunityId?: string;
transportDelay?: number;
notes?: string;
lines: {
id?: string;
finishedProductId?: string;
description: string;
quantity: number;
unitPrice: number;
totalPrice: number;
taxId?: string;
taxRate: number;
taxAmount: number;
deliveredQuantity: number;
remainingQuantity: number;
notes?: string;
sequence?: number;
clientProductCode?: string;
requestedDepartureDate?: string;
confirmedDepartureDate?: string;
unitOfMeasureId?: string;
unitOfPriceId?: string;
salesMultiple?: number;
minimumQuantity?: number;
}[];
},
> = ...