PriceByCustomer: filtrar por SKU

This commit is contained in:
Cat /dev/Nulo 2021-11-01 17:48:57 -03:00
parent 452502835d
commit 6070574ca9

View file

@ -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);
}