// Now that the invoice is created. Do payment Processing.
- // If there's any rrors then re-show the form.
+ // If there's any errors then re-show the form.
if ( $error ) {
// Remove the invoice created.
if ( $invoice_id ) {
// Need to see if there's an account for this member.
$account = $Accounts->editEntry( $accountID );
+
+ // Need to get the accounts
+ $Accounts = new GlmDataAccounts( $this->wpdb, $this->config );
+ $accounts = $Accounts->getSimpleAccountList( "T.boss <> true AND T.boss IS NOT NULL AND T.invoice_type != 0", 'ref_name' );
+ // echo '<pre>$accounts: ' . print_r( $accounts, true ) . '</pre>';
+
+ $invoiceTypes = $BillingSupport->getAllPayableInvoiceTypes();
} else {
// Look at the payment option given
$payment_option = filter_var( $_REQUEST['payment_option'], FILTER_SANITIZE_STRING );
// Need to see if there's an account for this member.
$account = $Accounts->editEntry( $accountID );
+
+ // Need to get the accounts
+ $Accounts = new GlmDataAccounts( $this->wpdb, $this->config );
+ $accounts = $Accounts->getSimpleAccountList( "T.boss <> true AND T.boss IS NOT NULL AND T.invoice_type != 0", 'ref_name' );
+ // echo '<pre>$accounts: ' . print_r( $accounts, true ) . '</pre>';
+
+ $invoiceTypes = $BillingSupport->getAllPayableInvoiceTypes();
}
break;
case 'pay_by_check':