Bugfix 1 - don't send balance payment complete email for partial payments

Bugfix 2 - don't display married couple specific text on balance page when they've completed payment
This commit is contained in:
2014-02-08 22:25:54 +11:00
parent e27c80f276
commit fa2fb84f0e
2 changed files with 5 additions and 7 deletions

View File

@@ -54,12 +54,9 @@ function booking_balance_page() {
else else
{ {
$output = token_replace(variable_get('booking_regn_balance_page'), $tokens); $output = token_replace(variable_get('booking_regn_balance_page'), $tokens);
} //optional additional text for married people
if ($person->booking_married == 'Y')
//optional additional text for married people $output .= token_replace(variable_get('booking_regn_balance_married_text'), $tokens);
if ($person->booking_married == 'Y')
{
$output .= token_replace(variable_get('booking_regn_balance_married_text'), $tokens);
} }
//put all the bits together //put all the bits together

View File

@@ -237,7 +237,8 @@ function _booking_process_payment($data) {
} }
else //this person still has an outstanding balance so just send a confirmation email else //this person still has an outstanding balance so just send a confirmation email
{ {
_booking_registration_email($nid, $balance_payment); //TODO: create an email specifically for partial-balance payments
//_booking_registration_email($nid, $balance_payment);
} }
} }
else //couldn't find a matching nid for this invoice else //couldn't find a matching nid for this invoice