Skip to content
Snippets Groups Projects
Commit 4e60f706 authored by mattwire's avatar mattwire
Browse files

Add support for a function getTotalAmount that could be used to retrieve...

Add support for a function getTotalAmount that could be used to retrieve amount from form if defined
parent 4e7864ce
No related branches found
No related tags found
1 merge request!1096.4
......@@ -545,6 +545,9 @@ CRM.$(function($) {
if (isEventAdditionalParticipants()) {
totalFee = null;
}
else if (CRM.payment && typeof CRM.payment.getTotalAmount == 'function') {
return CRM.payment.getTotalAmount(form.id);
}
else if (document.getElementById('totalTaxAmount') !== null) {
totalFee = parseFloat(calculateTaxAmount());
debugging('Calculated amount using internal calculateTaxAmount()');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment