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.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,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue