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

Allow the client to override CRM.payment.getTotalAmount() function

parent 9c7df627
No related branches found
Tags 0.4.2
1 merge request!90.9
......@@ -157,6 +157,10 @@
CRM.payment = payment;
}
else {
if (CRM.payment.hasOwnProperty('getTotalAmount')) {
delete(payment.getTotalAmount);
payment.debugging(payment.scriptName, 'Deferring to client getTotalAmount function');
}
$.extend(CRM.payment, payment);
}
......
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