Further tweaks for reading groups

This commit is contained in:
2014-06-19 13:07:03 +10:00
parent 478d093bb9
commit 1293dae510
2 changed files with 38 additions and 12 deletions

View File

@@ -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')