* @release SVN: $Id: dataEvents.php,v 1.0 2011/01/25 19:31:47 cscott Exp $
*/
+require_once GLM_MEMBERS_BILLING_PLUGIN_CLASS_PATH . '/billingSupport.php';
+
/**
* GlmDataBillingManagement class
*
* @access public
*/
public $fields = false;
+ /**
+ * Grab line items for each invoice
+ */
+ public $line_items_post = false;
/**
* Constructor
$r['id']
)
);
+ if ( $this->line_items_post ) {
+ // Get line items for each invoice
+ $Billing = new GlmBillingSupport( $this->wpdb, $this->config );
+ $r['line_items'] = $Billing->getLineItemsForInvoice( $r['id'] );
+ }
return $r;
}
// Get the list of invoices and determine number of invoices in list
$orderBy = 'transaction_time desc';
+ $this->line_items_post = true;
$invoicesResult = $this->getList($where, $orderBy, true, 'id', $start, $limit);
+ echo '<pre>$invoicesResult: ' . print_r( $invoicesResult, true ) . '</pre>';
+ $this->line_items_post = false;
// Get paging results
$numbDisplayed = $invoicesResult['returned'];
// Get the list of invoices and determine number of invoices in list
$orderBy = 'transaction_time desc';
+ $this->line_items_post = true;
$invoicesResult = $this->getList($where, $orderBy, true, 'id', $start, $limit);
+ echo '<pre>$invoicesResult: ' . print_r( $invoicesResult, true ) . '</pre>';
+ $this->line_items_post = false;
// Get paging results
$numbDisplayed = $invoicesResult['returned'];