Commit c0702f11 authored by mattwire's avatar mattwire
Browse files

Clarify multi-event registration

parent f6d01511
......@@ -11,6 +11,8 @@
getTotalAmount: function() {
var totalAmount = 0.0;
if (CRM.payment.isEventAdditionalParticipants()) {
// We MUST return null because 0.0 is treated as a non-stripe submit.
// In this case the amount is not 0, we just don't know what it is yet.
totalAmount = null;
}
else if (document.getElementById('totalTaxAmount') !== null) {
......@@ -91,7 +93,7 @@
isEventAdditionalParticipants: function() {
if ((document.getElementById('additional_participants') !== null) &&
(document.getElementById('additional_participants').value.length !== 0)) {
this.debugging(this.scriptName, 'We don\'t know the final price - registering additional participants');
this.debugging(this.scriptName, 'Event has additional participants');
return true;
}
return false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment