diff --git a/src/services/serversideVendorsService.ts b/src/services/serversideVendorsService.ts index 15f2474d..3db2aee9 100644 --- a/src/services/serversideVendorsService.ts +++ b/src/services/serversideVendorsService.ts @@ -164,15 +164,15 @@ export const applyStandingToVendorManifest = ( if (offer.RegularPrice) { offer.RegularPriceBeforeDiscount = offer.RegularPrice; offer.RegularPrice = [ - offer.RegularPriceBeforeDiscount[0] * factor, - offer.RegularPriceBeforeDiscount[1] * factor + Math.trunc(offer.RegularPriceBeforeDiscount[0] * factor), + Math.trunc(offer.RegularPriceBeforeDiscount[1] * factor) ]; } if (offer.ItemPrices) { offer.ItemPricesBeforeDiscount = offer.ItemPrices; offer.ItemPrices = []; for (const item of offer.ItemPricesBeforeDiscount) { - offer.ItemPrices.push({ ...item, ItemCount: item.ItemCount * factor }); + offer.ItemPrices.push({ ...item, ItemCount: Math.trunc(item.ItemCount * factor) }); } } }