Demo: filtrar por lista de precios en precios

This commit is contained in:
Cat /dev/Nulo 2021-11-22 15:34:52 -03:00
parent cf868a92e9
commit 555b118716
2 changed files with 6 additions and 1 deletions

View file

@ -93,7 +93,11 @@ setupForm("#save-token", async () => {
});
setupForm("#productos", () => getProductos(HOST, token(), {}));
setupForm("#publicaciones", () => getPublications(HOST, token(), {}));
setupForm("#price", () => getPrices(HOST, token(), {}));
setupForm("#price", (event) =>
getPrices(HOST, token(), {
filter: (event.target! as any).filter.value,
})
);
setupForm("#price-by-customer", (event) =>
getPricesByCustomer(HOST, token(), {
filter: (event.target! as any).filter.value,

View file

@ -56,6 +56,7 @@
<form id="price">
<button>Conseguir precios</button>
<input name="filter" type="text" placeholder="Filtro por lista de precios (ID, opcional)" />
<p class="status"></p>
</form>