start work on the payment page.
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 18 Apr 2018 20:52:22 +0000 (16:52 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 18 Apr 2018 20:52:22 +0000 (16:52 -0400)
Need to work on adding option for Admin user to mark the invoice paid.

models/admin/member/billing.php
views/common/billing/paymentForm.html

index 7169c16..86caab2 100644 (file)
@@ -490,6 +490,9 @@ class GlmMembersAdmin_member_billing // extends GlmDataBilling
                 break;
             case 'pay_by_check':
                 break;
+            case 'mark_paid':
+                // Mark this invoice as paid
+                break;
             }
 
             $view = 'statements';
index c669b99..fc8e8c0 100644 (file)
@@ -78,6 +78,9 @@
             <div class="glm-billing-input">
                 <label> <input class="payment_option" type="radio" name="payment_option" value="pay_by_credit_card" checked> Pay by Credit Card </label>
                 <label> <input class="payment_option" type="radio" name="payment_option" value="pay_by_check"> Pay by Check </label>
+                {if !$lockedToMember}
+                <label> <input class="payment_option" type="radio" name="payment_option" value="mark_paid"> Mark Paid </label>
+                {/if}
             </div>
         </div>
 
@@ -192,6 +195,9 @@ jQuery(document).ready(function($){
         if ( payment_option == 'pay_by_check' ) {
             $('.glm-billing-credit').hide();
             $('.ccard').prop('disabled', true);
+        } else if ( payment_option == 'mark_paid' ) {
+            $('.glm-billing-credit').hide();
+            $('.ccard').prop('disabled', true);
         } else {
             $('.glm-billing-credit').show();
             $('.ccard').prop('disabled', false);