TT#78467 enforce 2 fractional digits for total_customer_cost

Change-Id: I7b7b6ecf35d404f633878a07f47d792d0fbd17ec
changes/43/39343/2
Rene Krenn 5 years ago
parent c7c50345d6
commit 735df73e43

@ -37,7 +37,7 @@
<span
class="csc-entity-subtitle"
>
{{ call.total_customer_cost | wholeCurrency }}
{{ totalCustomerCostRounded | wholeCurrency }}
</span>
<span
v-if="call.currency.length > 0"
@ -167,6 +167,14 @@
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() {
if (_.isObject(this.call.relatedCall)) {
return this.call.relatedCall.caller;

Loading…
Cancel
Save