Skip to content

Commit 67f6f46

Browse files
committed
ACP2E-964: grand_total and base_grand_total have different values, although we have only ONE currency
1 parent d48a458 commit 67f6f46

File tree

1 file changed

+6
-2
lines changed
  • app/code/Magento/Tax/view/frontend/web/js/view/checkout/summary

1 file changed

+6
-2
lines changed

app/code/Magento/Tax/view/frontend/web/js/view/checkout/summary/grand-total.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,13 @@ define([
6767
return 0;
6868
}
6969

70-
amount = this.getFormattedPrice(total['grand_total'] - total['tax_amount']);
70+
amount = total['grand_total'] - total['tax_amount'];
7171

72-
return amount < 0 ? 0 : amount;
72+
if (amount < 0) {
73+
amount = 0;
74+
}
75+
76+
return this.getFormattedPrice(amount);
7377
},
7478

7579
/**

0 commit comments

Comments
 (0)