Update _booking_amount_owing to use $person object instead of just a node id
This commit is contained in:
@@ -1495,7 +1495,8 @@ function booking_view($node, $view_mode) {
|
||||
$travel_rows = array();
|
||||
|
||||
//calculate the price owed by this person
|
||||
if (_booking_is_earlybird() == true || _booking_amount_owing($node->nid) == 0)
|
||||
//if (_booking_is_earlybird() == true || _booking_amount_owing($node->nid) == 0)
|
||||
if (_booking_is_earlybird() == true || _booking_amount_owing($node) == 0 || $node->booking_committee_member == 'Y' || $node->booking_welfare_required == 'Y')
|
||||
{
|
||||
$price = $node->booking_price;
|
||||
}
|
||||
|
Reference in New Issue
Block a user