Clip prices to 2 digits in logging.

This commit is contained in:
Chloe Herd 2024-01-31 13:50:04 -05:00
parent ab62270d53
commit 978f9c948d

View file

@ -155,10 +155,9 @@ export default {
...(lineItems.vaps ?? []), ...(lineItems.vaps ?? []),
...(lineItems.promos ?? []), ...(lineItems.promos ?? []),
]; ];
const subtotal = baseMixin.methods.getTotalPriceOfAllLineItemsAndChildParts( const subtotal = baseMixin.methods
combinedLineItems, .getTotalPriceOfAllLineItemsAndChildParts(combinedLineItems, false)
false .toFixed(2);
);
// // get correct zip code // // get correct zip code
const providerZip = order.serviceLocation.provider.address.zipCode; const providerZip = order.serviceLocation.provider.address.zipCode;
@ -168,10 +167,9 @@ export default {
: providerZip; : providerZip;
// // calculate total // // calculate total
const total = baseMixin.methods.getTotalPriceOfAllLineItemsAndChildParts( const total = baseMixin.methods
combinedLineItems, .getTotalPriceOfAllLineItemsAndChildParts(combinedLineItems, true)
true .toFixed(2);
);
const payload = { const payload = {
serviceZipCode: serviceZip, serviceZipCode: serviceZip,