$where = implode( ' AND ', $where_params );
// Get the list of invoices and determine number of invoices in list
- $orderBy = 'transaction_time desc';
+ $orderBy = 'due_date ASC, 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>';
$where = implode( ' AND ', $where_params );
// Get the list of invoices and determine number of invoices in list
- $orderBy = 'transaction_time desc';
+ $orderBy = 'due_date ASC, 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>';