Update _booking_amount_owing to use $person object instead of just a node id
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user