Update _booking_amount_owing to use $person object instead of just a node id

This commit is contained in:
2014-05-14 18:04:29 +10:00
parent 71772edbd5
commit 0bfa363bcd
6 changed files with 38 additions and 30 deletions

View File

@@ -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;
}