From 6070574ca9f73132e83b8f4cd10c67b4ac376971 Mon Sep 17 00:00:00 2001 From: Nulo Date: Mon, 1 Nov 2021 17:48:57 -0300 Subject: [PATCH] PriceByCustomer: filtrar por SKU --- priceByCustomer.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/priceByCustomer.ts b/priceByCustomer.ts index b31b0af..c8df0c4 100644 --- a/priceByCustomer.ts +++ b/priceByCustomer.ts @@ -11,6 +11,7 @@ export interface PriceByCustomerQuery { paginacion?: Paginacion; /// Filtro por el código del cliente ("Code" en Customer.) filter?: string; + SKUCode?: string; customer?: QueryCustomer; } @@ -35,6 +36,9 @@ export async function getPricesByCustomer( if (options.filter) { searchParams.set("filter", options.filter); } + if (options.SKUCode) { + searchParams.set("SKUCode", options.SKUCode); + } if (options.customer) { queryCustomerToSearchParams(options.customer, searchParams); }