More code to support welfare required flag

This commit is contained in:
2014-01-30 20:58:25 +11:00
parent d36a027a00
commit 50dae61740
2 changed files with 14 additions and 1 deletions

View File

@@ -32,6 +32,7 @@ function booking_report_summary() {
array('data' => t('Email'), 'field' => 'booking_email', 'sort' => 'asc'),
array('data' => t('Payment To Date'), 'field' => 'booking_amount_paid', 'sort' => 'asc'),
array('data' => t('Total Payment Required'), 'field' => 'booking_total_pay_reqd', 'sort' => 'asc'),
array('data' => t('Welfare Required?'), 'field' => 'booking_welfare_required', 'sort' => 'asc'),
);
$rows = array();
@@ -116,7 +117,8 @@ function booking_report_summary() {
t('!first !last', array('!first' => ucwords($person->booking_firstname), '!last' => ucwords($person->booking_lastname))),
t('!email', array('!email' => $person->booking_email)),
t('!payment', array('!payment' => $person->booking_amount_paid)),
t('!payment', array('!payment' => $person->booking_total_pay_reqd)),
t('!payment', array('!payment' => $person->booking_total_pay_reqd)),
t($person->booking_welfare_required == 'Y' ? 'Yes' : 'No'),
);
$total_paid += $person->booking_amount_paid;