Hacer que SKUCode en pedidos sea obligatorio

Fixes #1
This commit is contained in:
Cat /dev/Nulo 2022-05-12 18:48:22 +00:00
parent 555b118716
commit fd8c81f21d
2 changed files with 2 additions and 1 deletions

View file

@ -197,6 +197,7 @@ setupForm("#pedido", async () => {
UnitPrice: precio.Price, UnitPrice: precio.Price,
Quantity: 1, Quantity: 1,
ProductCode: producto.SKUCode, ProductCode: producto.SKUCode,
SKUCode: producto.SKUCode,
})), })),
Customer: { Customer: {
CustomerID: 1, CustomerID: 1,

View file

@ -59,7 +59,7 @@ export interface CustomerDto {
} }
export interface OrderItemDto { export interface OrderItemDto {
ProductCode: string; ProductCode: string;
SKUCode?: null | string; SKUCode: string;
VariantCode?: null | string; VariantCode?: null | string;
Description: string; Description: string;
VariantDescription?: null | string; VariantDescription?: null | string;