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