PriceByCustomer: filtrar por SKU
This commit is contained in:
parent
452502835d
commit
6070574ca9
1 changed files with 4 additions and 0 deletions
|
@ -11,6 +11,7 @@ export interface PriceByCustomerQuery {
|
||||||
paginacion?: Paginacion;
|
paginacion?: Paginacion;
|
||||||
/// Filtro por el código del cliente ("Code" en Customer.)
|
/// Filtro por el código del cliente ("Code" en Customer.)
|
||||||
filter?: string;
|
filter?: string;
|
||||||
|
SKUCode?: string;
|
||||||
customer?: QueryCustomer;
|
customer?: QueryCustomer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,6 +36,9 @@ export async function getPricesByCustomer(
|
||||||
if (options.filter) {
|
if (options.filter) {
|
||||||
searchParams.set("filter", options.filter);
|
searchParams.set("filter", options.filter);
|
||||||
}
|
}
|
||||||
|
if (options.SKUCode) {
|
||||||
|
searchParams.set("SKUCode", options.SKUCode);
|
||||||
|
}
|
||||||
if (options.customer) {
|
if (options.customer) {
|
||||||
queryCustomerToSearchParams(options.customer, searchParams);
|
queryCustomerToSearchParams(options.customer, searchParams);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue