diff --git a/booking.register.inc b/booking.register.inc index b01af4b..5351075 100644 --- a/booking.register.inc +++ b/booking.register.inc @@ -1406,7 +1406,13 @@ function booking_view($node, $view_mode) { $travel_rows = array(); //calculate the price owed by this person - $price = _booking_is_earlybird() == true ? $node->booking_price : $node->booking_late_price; + if (_booking_is_earlybird() == true || _booking_amount_owing($node->nid) == 0) + { + $price = $node->booking_price; + } + else + $price = $node->booking_late_price; + //include the price description to display with this view $payment_type = $node->booking_price_descrip . ' ($' . $price . ')'; //look up the actual name for a linked partner @@ -1431,8 +1437,7 @@ function booking_view($node, $view_mode) { else $bf_gf = "N/A"; - //$header = array('Attribute', 'Value'); - + //define column widths along with the header $header = array( array('data' => t('Attribute'), 'width' => '40%'), array('data' => t('Value'), 'width' => '60%'),