From: Steve Sutton Date: Fri, 26 Apr 2019 14:22:28 +0000 (-0400) Subject: Fix edit invoice form X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=14cfb259915049b0d1d404c4f27b9367d7e9b815;p=WP-Plugins%2Fglm-member-db-billing.git Fix edit invoice form Fixing issue with edit invoice not saving data correctly. Saving of payment method now working. --- diff --git a/config/plugin.ini b/config/plugin.ini index e39a6c8..82e728d 100644 --- a/config/plugin.ini +++ b/config/plugin.ini @@ -18,12 +18,29 @@ transaction_numb['Payment'] = 20; transaction_numb['Adjustment'] = 30; transaction_numb['Comment'] = 40; -; Payment Methods -payment_method[10] = "Check" -payment_method[20] = "Credit Card" -payment_method[30] = "Cash" -payment_method[40] = "Other" - +; +; Payment Method - Use as Bitmap Index or List +; +payment_method[1] = 'No Charge' +payment_method[2] = 'Pay On Arrival' +payment_method[3] = 'Cash' +payment_method[4] = 'Check' +; payment_method[5] = 'Call from Merchant' +payment_method[6] = 'Credit Card' +payment_method[7] = 'PayPal' +payment_method [10] = 'Payment Pending' + +payment_method_numb['NoCharge'] = 1 +payment_method_numb['OnArrival'] = 2 +payment_method_numb['Cash'] = 3 +payment_method_numb['Check'] = 4 +; payment_method_numb['CallFromMerchant'] = 5 +payment_method_numb['CreditCard'] = 6 +payment_method_numb['PayPal'] = 7 +payment_method_numb['Pending'] = 10 + +; Default payment method is Credit Card +default_payment_method = 6 ; Alternate Payment Methods alt_payment_method[10] = "Check" alt_payment_method[20] = "Credit Card" diff --git a/models/admin/billing/invoices.php b/models/admin/billing/invoices.php index eb09b0e..2b23b10 100644 --- a/models/admin/billing/invoices.php +++ b/models/admin/billing/invoices.php @@ -187,7 +187,7 @@ class GlmMembersAdmin_billing_invoices extends GlmDataInvoices if ( isset( $_REQUEST['id'] ) ) { $BillingSupport = new GlmBillingSupport( $this->wpdb, $this->config ); $this->invoice_id = filter_var( $_REQUEST['id'], FILTER_VALIDATE_INT ); - $nvoices = $this->editEntry( $this->invoice_id ); + $invoices = $this->editEntry( $this->invoice_id ); // echo '
$invoices: ' . print_r( $invoices, true ) . '
'; $view = 'editInvoice'; $InvoiceTypesObj = new GlmDataInvoiceTypes( $this->wpdb, $this->config );