Fixed SKUs updating.

This commit is contained in:
Tom Butcher 2026-03-08 01:14:52 +00:00
parent 7eb774a297
commit acd4b375af
3 changed files with 3 additions and 12 deletions

View File

@ -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) {

View File

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

View File

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