Update passport validation and date parse routine for data import
This commit is contained in:
@@ -201,6 +201,14 @@ function _booking_process_payment($data) {
|
||||
//if ($total >= $person->booking_total_pay_reqd)
|
||||
if ($amount_owing == 0)
|
||||
{
|
||||
//set the payment complete flag
|
||||
db_update('booking_person')
|
||||
->fields(array(
|
||||
'booking_payment_complete' => 'Y',
|
||||
))
|
||||
->condition('nid', $nid)
|
||||
->execute();
|
||||
|
||||
//this should always be a balance payment type email, since that tells the user that their payment is completed
|
||||
_booking_registration_email($nid, TRUE);
|
||||
|
||||
@@ -229,6 +237,7 @@ function _booking_process_payment($data) {
|
||||
->fields(array(
|
||||
'booking_total_pay_reqd' => $spouse_new_amount_reqd,
|
||||
'booking_status' => $spouse_status,
|
||||
'booking_payment_complete' => 'Y',
|
||||
))
|
||||
->condition('nid', $person->booking_partner_id)
|
||||
->execute();
|
||||
|
Reference in New Issue
Block a user