Add travel info to booking node view
This commit is contained in:
@@ -122,7 +122,7 @@ function _booking_process_payment($data) {
|
||||
return;
|
||||
}
|
||||
|
||||
watchdog('booking', 'Adding payment for user with node id: !id; event id: !eid', array('!id' => $nid, '!eid' => $eid));
|
||||
//watchdog('booking', 'Adding payment for user with node id: !id; event id: !eid', array('!id' => $nid, '!eid' => $eid));
|
||||
|
||||
$result = db_insert('booking_payment')
|
||||
->fields(array(
|
||||
@@ -145,11 +145,7 @@ function _booking_process_payment($data) {
|
||||
))
|
||||
->execute();
|
||||
|
||||
//Get the person's info
|
||||
//$payment = db_query("SELECT booking_amount_paid, booking_status, booking_total_pay_reqd, booking_partner_id FROM {booking_person} where nid = :nid",
|
||||
// array(':nid' => $nid))
|
||||
// ->fetchObject();
|
||||
|
||||
//Get the person's info
|
||||
$payment = db_select('booking_person', 'p')
|
||||
->condition('p.nid', $nid, '=')
|
||||
->fields('p', array('booking_amount_paid', 'booking_status', 'booking_total_pay_reqd', 'booking_partner_id'))
|
||||
@@ -241,15 +237,21 @@ function _booking_process_payment($data) {
|
||||
//send an email to the spouse
|
||||
_booking_registration_email($payment->booking_partner_id, TRUE);
|
||||
}
|
||||
/*
|
||||
elseif (variable_get('booking_enable_combined_pricing', 0) == 1)
|
||||
{
|
||||
watchdog('booking', 'Combined pricing is enabled, but this person has a partner id of !id.', array('!id' => $payment->booking_partner_id));
|
||||
} //end spouse check
|
||||
*/
|
||||
}
|
||||
//if this was an initial payment we need to send a notification
|
||||
//if this was an initial payment we might need to send a notification
|
||||
elseif ($balance_payment == FALSE)
|
||||
{
|
||||
_booking_registration_email($nid, FALSE);
|
||||
//send a notification email if we didn't automatically send one earlier
|
||||
if (variable_get('booking_auto_confirm_email', 0) == 0)
|
||||
{
|
||||
_booking_registration_email($nid, FALSE);
|
||||
}
|
||||
}
|
||||
else //this person still has an outstanding balance so just send a confirmation email
|
||||
{
|
||||
|
Reference in New Issue
Block a user