Clip prices to 2 digits in logging.
This commit is contained in:
parent
ab62270d53
commit
978f9c948d
1 changed files with 6 additions and 8 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue