add email preselection for refund required
This commit is contained in:
@@ -446,6 +446,7 @@ function booking_manual_email_form($form, &$form_state)
|
||||
$email_options_array['complete'] = 'Payment Complete Email';
|
||||
$email_options_array['withdrawal'] = 'Withdrawal Processed Email';
|
||||
$email_options_array['missedpayment'] = 'Missed Payment Email';
|
||||
$email_options_array['refundreqd'] = 'Refund Required';
|
||||
$email_options_array['initialtravelrequired'] = 'Initial Travel Form Required Email';
|
||||
$email_options_array['remindertravelrequired'] = 'Reminder Travel Form Required Email';
|
||||
$email_options_array['travelcomplete'] = 'Travel Form Complete Email';
|
||||
@@ -743,6 +744,11 @@ function _booking_email_get_default_selection_callback($form, $form_state) {
|
||||
$defaults[] = $person->nid;
|
||||
}
|
||||
break;
|
||||
case 'refundreqd':
|
||||
if ($person->booking_status == 3 && $person->booking_refund_processed == 'N') {
|
||||
$defaults[] = $person->nid;
|
||||
}
|
||||
break;
|
||||
case 'unpaid':
|
||||
if ($person->booking_payment_complete == 'N' && $person->booking_status == 1) {
|
||||
$defaults[] = $person->nid;
|
||||
|
Reference in New Issue
Block a user