diff --git a/demo/demo.ts b/demo/demo.ts index ea4800b..4cfc3c3 100644 --- a/demo/demo.ts +++ b/demo/demo.ts @@ -11,6 +11,7 @@ import { Producto, Precio, getPublications, + getPriceLists, } from "../index.js"; // TODO: hacerlo input @@ -94,6 +95,11 @@ setupForm("#price-by-customer", (event) => filter: (event.target! as any).filter.value, }) ); +setupForm("#price-list", (event) => + getPriceLists(HOST, token(), { + filter: (event.target! as any).filter.value, + }) +); setupForm("#customers", () => getCustomers(HOST, token(), {})); let customer: Customer | null = null; diff --git a/demo/index.html b/demo/index.html index dc016c2..df7168b 100644 --- a/demo/index.html +++ b/demo/index.html @@ -59,6 +59,12 @@
+ +