Issue Overview:
The current implementation of the getGrandTotalExclTax function in the module is flawed.
view/frontend/web/js/view/checkout/summary/grand-total.js
It calculates the grand total excluding tax using a manual subtraction of the tax amount from the grand total.
This method is prone to errors and may not always produce accurate results.
Proposed Solution:
Utilize the simplified and more reliable implementation of the getGrandTotalExclTax function from Magento 2 default.
This implementation directly returns the grand total from the 'total' object, ensuring accurate calculations without the need for manual adjustments.
Proposed Changes:
Replace the existing getGrandTotalExclTax function in the module with the simplified implementation from Magento 2 default.
Issue Overview: The current implementation of the getGrandTotalExclTax function in the module is flawed. view/frontend/web/js/view/checkout/summary/grand-total.js
It calculates the grand total excluding tax using a manual subtraction of the tax amount from the grand total. This method is prone to errors and may not always produce accurate results.
Proposed Solution: Utilize the simplified and more reliable implementation of the getGrandTotalExclTax function from Magento 2 default. This implementation directly returns the grand total from the 'total' object, ensuring accurate calculations without the need for manual adjustments.
Proposed Changes: