Update _booking_amount_owing to use $person object instead of just a node id

This commit is contained in:
2014-05-14 18:04:29 +10:00
parent 71772edbd5
commit 0bfa363bcd
6 changed files with 38 additions and 30 deletions

View File

@@ -103,7 +103,8 @@ function booking_report_summary() {
foreach ($result as $person) {
$amount_owing = _booking_amount_owing($person->nid, 0, FALSE);
//$amount_owing = _booking_amount_owing($person->nid, 0, FALSE);
$amount_owing = _booking_amount_owing($person, 0, FALSE);
$rows[] = array(
l(t('!id', array('!id' => $person->nid)), t('node/!id', array('!id' => $person->nid))),
@@ -549,7 +550,7 @@ function booking_csv_report() {
{
$output[] = $value;
//this is really hacky since it does another database query for each person
$output[] = _booking_amount_owing($value, 0, FALSE);
//$output[] = _booking_amount_owing($value, 0, FALSE);
//$output[] = _booking_amount_owing($value);
continue;
}