Further tweaks for reading groups
This commit is contained in:
@@ -492,6 +492,8 @@ function booking_csv_report() {
|
||||
$nullToMysqlNull = true;
|
||||
$delimiter_esc = preg_quote($delimiter, '/');
|
||||
$enclosure_esc = preg_quote($enclosure, '/');
|
||||
|
||||
$readinggroup = "session" . variable_get('booking_readinggroup_id','7');
|
||||
|
||||
/*
|
||||
$fields_to_skip = array('booking_payment_id', 'booking_event_id', 'booking_skills_childminding', 'booking_passport_issue_date',
|
||||
@@ -619,7 +621,13 @@ function booking_csv_report() {
|
||||
if ($key == 'booking_room_bedtype') {
|
||||
$output[] = _booking_room_bedtype_lookup($value);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
//reading group team colour
|
||||
if ($key == $readinggroup) {
|
||||
$output[] = _booking_readinggroup_colour_lookup($value);
|
||||
continue;
|
||||
}
|
||||
|
||||
//add in the amount owing using the nid as the key
|
||||
if ($key == 'nid')
|
||||
|
Reference in New Issue
Block a user