Change CSV processing and studygroup display info
This commit is contained in:
@@ -636,6 +636,7 @@ function booking_csv_report() {
|
||||
//keep a list of any fields that we need to handle as dates
|
||||
$datetime_fields = array('booking_outflight_origin_ts', 'booking_outflight_destination_ts', 'booking_rtrnflight_origin_ts',
|
||||
'booking_rtrnflight_destination_ts', 'booking_timestamp', 'booking_flight_datetime_inbound', 'booking_flight_datetime_outbound');
|
||||
$number_only_fields = array('booking_postcode', 'booking_mobile', 'booking_phone');
|
||||
|
||||
//look up the titles of the study groups and add to array for updating in the header
|
||||
$studygroup_descriptions = array();
|
||||
@@ -760,6 +761,12 @@ function booking_csv_report() {
|
||||
continue;
|
||||
}
|
||||
|
||||
//handle numerical fields
|
||||
if (in_array($key, $number_only_fields)) {
|
||||
$output[] = $value . "\t";
|
||||
continue;
|
||||
}
|
||||
|
||||
//booking status
|
||||
if ($key == 'booking_status') {
|
||||
$output[] = _booking_status_generate($value);
|
||||
|
Reference in New Issue
Block a user