More accurately show price owed when viewing a booking node
This commit is contained in:
@@ -1406,7 +1406,13 @@ function booking_view($node, $view_mode) {
|
|||||||
$travel_rows = array();
|
$travel_rows = array();
|
||||||
|
|
||||||
//calculate the price owed by this person
|
//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 . ')';
|
$payment_type = $node->booking_price_descrip . ' ($' . $price . ')';
|
||||||
|
|
||||||
//look up the actual name for a linked partner
|
//look up the actual name for a linked partner
|
||||||
@@ -1431,8 +1437,7 @@ function booking_view($node, $view_mode) {
|
|||||||
else
|
else
|
||||||
$bf_gf = "N/A";
|
$bf_gf = "N/A";
|
||||||
|
|
||||||
//$header = array('Attribute', 'Value');
|
//define column widths along with the header
|
||||||
|
|
||||||
$header = array(
|
$header = array(
|
||||||
array('data' => t('Attribute'), 'width' => '40%'),
|
array('data' => t('Attribute'), 'width' => '40%'),
|
||||||
array('data' => t('Value'), 'width' => '60%'),
|
array('data' => t('Value'), 'width' => '60%'),
|
||||||
|
Reference in New Issue
Block a user