Tweaks for trave lform
This commit is contained in:
@@ -1276,7 +1276,7 @@ function _booking_update($node) {
|
||||
'booking_payment_id' => $node->booking_payment_id,
|
||||
'booking_total_pay_reqd' => $node->booking_total_pay_reqd,
|
||||
'booking_amount_paid' => $node->booking_amount_paid,
|
||||
'booking_refund_due' => $node->booking_refund_due,
|
||||
'booking_refund_due' => $node->booking_refund_due == '' ? 0 : $node->booking_refund_due,
|
||||
'booking_guardian_name' => $node->booking_guardian_name,
|
||||
'booking_guardian_type' => $node->booking_guardian_type,
|
||||
'booking_guardian_phone' => $node->booking_guardian_phone,
|
||||
@@ -1505,16 +1505,21 @@ function _booking_update($node) {
|
||||
->execute()
|
||||
->fetchObject();
|
||||
|
||||
/*
|
||||
//check for early bird rate or full rate
|
||||
if (_booking_is_earlybird() == TRUE)
|
||||
$total_due = $price->booking_price;
|
||||
else
|
||||
$total_due = $price->booking_late_price;
|
||||
*/
|
||||
|
||||
//always set the payment required to the "early" price, since the late price is calculated dynamically if required
|
||||
|
||||
|
||||
//update the person with the new total pay required
|
||||
db_update('booking_person')
|
||||
->fields(array(
|
||||
'booking_total_pay_reqd' => $total_due,
|
||||
'booking_total_pay_reqd' => $price->booking_price,
|
||||
))
|
||||
->condition('nid', $node->nid)
|
||||
->execute();
|
||||
|
Reference in New Issue
Block a user