diff --git a/demo/demo.ts b/demo/demo.ts index a11f3bd..0ac21b7 100644 --- a/demo/demo.ts +++ b/demo/demo.ts @@ -3,6 +3,7 @@ import { getProductos, getPrices, getPricesByCustomer, + getStocks, getCustomers, order, OrderDto, @@ -98,6 +99,12 @@ setupForm("#price", (event) => filter: (event.target! as any).filter.value, }) ); +setupForm("#stock", (event) => + getStocks(HOST, token(), { + filter: (event.target! as any).filter.value, + warehouseCode: (event.target! as any).warehouseCode.value, + }) +); setupForm("#price-by-customer", (event) => getPricesByCustomer(HOST, token(), { filter: (event.target! as any).filter.value, diff --git a/demo/index.html b/demo/index.html index 111431f..0295284 100644 --- a/demo/index.html +++ b/demo/index.html @@ -72,6 +72,13 @@
+ +