Fixed SKUs updating.
This commit is contained in:
parent
7eb774a297
commit
acd4b375af
@ -35,7 +35,7 @@ export const listFilamentSkusRouteHandler = async (
|
|||||||
search,
|
search,
|
||||||
sort,
|
sort,
|
||||||
order,
|
order,
|
||||||
populate: [{ path: 'filament', populate: 'costTaxRate' }, 'costTaxRate'],
|
populate: ['costTaxRate'],
|
||||||
});
|
});
|
||||||
|
|
||||||
if (result?.error) {
|
if (result?.error) {
|
||||||
|
|||||||
@ -59,11 +59,7 @@ export const listPartSkusByPropertiesRouteHandler = async (
|
|||||||
model: partSkuModel,
|
model: partSkuModel,
|
||||||
properties,
|
properties,
|
||||||
filter,
|
filter,
|
||||||
populate: [
|
populate: ['priceTaxRate', 'costTaxRate'],
|
||||||
{ path: 'part', populate: ['costTaxRate', 'priceTaxRate'] },
|
|
||||||
'priceTaxRate',
|
|
||||||
'costTaxRate',
|
|
||||||
],
|
|
||||||
masterFilter,
|
masterFilter,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -59,12 +59,7 @@ export const listProductSkusByPropertiesRouteHandler = async (
|
|||||||
model: productSkuModel,
|
model: productSkuModel,
|
||||||
properties,
|
properties,
|
||||||
filter,
|
filter,
|
||||||
populate: [
|
populate: ['priceTaxRate', 'costTaxRate'],
|
||||||
{ path: 'product', populate: ['costTaxRate', 'priceTaxRate'] },
|
|
||||||
'priceTaxRate',
|
|
||||||
'costTaxRate',
|
|
||||||
'parts.partSku',
|
|
||||||
],
|
|
||||||
masterFilter,
|
masterFilter,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user