From fd8c81f21db0aeb8d422524b86bbb37ee410bdd3 Mon Sep 17 00:00:00 2001 From: Nulo Date: Thu, 12 May 2022 18:48:22 +0000 Subject: [PATCH] Hacer que SKUCode en pedidos sea obligatorio Fixes #1 --- demo/demo.ts | 1 + order.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/demo/demo.ts b/demo/demo.ts index a11f3bd..d734dbd 100644 --- a/demo/demo.ts +++ b/demo/demo.ts @@ -197,6 +197,7 @@ setupForm("#pedido", async () => { UnitPrice: precio.Price, Quantity: 1, ProductCode: producto.SKUCode, + SKUCode: producto.SKUCode, })), Customer: { CustomerID: 1, diff --git a/order.ts b/order.ts index 5af037e..d99230e 100644 --- a/order.ts +++ b/order.ts @@ -59,7 +59,7 @@ export interface CustomerDto { } export interface OrderItemDto { ProductCode: string; - SKUCode?: null | string; + SKUCode: string; VariantCode?: null | string; Description: string; VariantDescription?: null | string;