TT#78467 enforce 2 fractional digits for total_customer_cost

Change-Id: I7b7b6ecf35d404f633878a07f47d792d0fbd17ec
(cherry picked from commit 735df73e43)
changes/44/39344/2
Rene Krenn 6 years ago
parent ff73ab66ea
commit b1ada974ec

@ -37,7 +37,7 @@
<span <span
class="csc-entity-subtitle" class="csc-entity-subtitle"
> >
{{ call.total_customer_cost | wholeCurrency }} {{ totalCustomerCostRounded | wholeCurrency }}
</span> </span>
<span <span
v-if="call.currency.length > 0" v-if="call.currency.length > 0"
@ -167,6 +167,14 @@
return this.call.caller; return this.call.caller;
} }
}, },
totalCustomerCostRounded() {
const formatter = new Intl.NumberFormat('en-US', {
minimumFractionDigits: 2,
maximumFractionDigits: 2,
});
return formatter.format(this.call.total_customer_cost);
},
numberDialBack() { numberDialBack() {
if (_.isObject(this.call.relatedCall)) { if (_.isObject(this.call.relatedCall)) {
return this.call.relatedCall.caller; return this.call.relatedCall.caller;

Loading…
Cancel
Save