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,
sort,
order,
populate: [{ path: 'filament', populate: 'costTaxRate' }, 'costTaxRate'],
populate: ['costTaxRate'],
});
if (result?.error) {

View File

@ -59,11 +59,7 @@ export const listPartSkusByPropertiesRouteHandler = async (
model: partSkuModel,
properties,
filter,
populate: [
{ path: 'part', populate: ['costTaxRate', 'priceTaxRate'] },
'priceTaxRate',
'costTaxRate',
],
populate: ['priceTaxRate', 'costTaxRate'],
masterFilter,
});

View File

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