tweaks to travel report
This commit is contained in:
@@ -458,7 +458,8 @@ function booking_report_travel() {
|
||||
$db_or->condition('p.booking_status', 1, '=');
|
||||
$db_or->condition('p.booking_status', 2, '=');
|
||||
$db_or->condition('p.booking_status', 5, '=');
|
||||
$db_and = db_and()->condition($db_or)->condition('p.booking_eventid', $event->eid, '=');
|
||||
$db_and = db_and()->condition('p.booking_eventid', $event->eid, '=')->condition($db_or);
|
||||
$query->condition($db_and);
|
||||
$query->fields('p')->fields('t');
|
||||
//allow user to sort columns
|
||||
$table_sort = $query->extend('TableSort')->orderbyHeader($header);
|
||||
@@ -475,7 +476,7 @@ function booking_report_travel() {
|
||||
$this_row[] = _booking_status_generate($person->booking_status);
|
||||
|
||||
//calculate the travel link
|
||||
if ($person->tid > 0) {
|
||||
//if ($person->tid > 0) {
|
||||
//$travel_link = l(t('Travel'), t('node/!id/edit', array('!id' => $person->tid)));
|
||||
$this_row[] = t('!transport', array('!transport' => $person->booking_transport_type));
|
||||
$this_row[] = t('!train', array('!train' => $person->booking_transport_from_morriset_reqd == 1 ? 'Yes' : 'No'));
|
||||
@@ -487,7 +488,7 @@ function booking_report_travel() {
|
||||
$person->booking_flight_datetime_outbound == 0 ? '' : format_date($person->booking_flight_datetime_outbound, 'custom', 'd/m/Y H:i')));
|
||||
$this_row[] = t('!beforeaccom', array('!beforeaccom' => $person->booking_accom_before_reqd == 1 ? 'Yes' : 'No'));
|
||||
$this_row[] = t('!afteraccom', array('!afteraccom' => $person->booking_accom_after_reqd == 1 ? 'Yes' : 'No'));
|
||||
}
|
||||
//}
|
||||
|
||||
$rows[] = $this_row;
|
||||
}
|
||||
|
Reference in New Issue
Block a user