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