From: Steve Sutton Date: Mon, 23 Apr 2018 20:34:42 +0000 (-0400) Subject: Mark paid X-Git-Tag: v1.0.0^2~39 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=3c69a068d8afcc6f3ee98461cbc170569c165524;p=WP-Plugins%2Fglm-member-db-billing.git Mark paid Mark paid is working on the payment form. --- diff --git a/models/admin/member/billing.php b/models/admin/member/billing.php index 499e56c..a6df1a3 100644 --- a/models/admin/member/billing.php +++ b/models/admin/member/billing.php @@ -126,6 +126,7 @@ class GlmMembersAdmin_member_billing // extends GlmDataBilling $payable_types = false; $account_status = false; $accounts = false; + $errors = false; // For lockedToMember. $lockedToMember = false; @@ -551,16 +552,27 @@ class GlmMembersAdmin_member_billing // extends GlmDataBilling } else { $paymentSuccess = true; } - - break; + case 'pay_by_check': break; + case 'mark_paid': // Mark this invoice as paid + // Create new payment. + $payment_id = $BillingSupport->createPayment( $account_id, $amount, 'Marked Paid' ); + + // Record the payment. + $BillingSupport->recordPayment( $payment_id, $account_id, $amount, $invoices ); + + break; + + default: + break; } + $view = 'statements'; break;