Update text for payment type to invoice type
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 18 Sep 2019 18:55:01 +0000 (14:55 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 18 Sep 2019 18:55:01 +0000 (14:55 -0400)
Changing the text

models/admin/member/billing.php
views/admin/billing/createInvoice.html
views/admin/billing/editAccount.html
views/admin/billing/editAccountAjax.html
views/admin/billing/editInvoice.html
views/admin/billing/exportBillingModal.html
views/admin/billing/exportReportModal.html
views/admin/billing/invoicing.html
views/admin/billing/reports.html
views/admin/billing/settings.html

index b7deda2..9096b8d 100644 (file)
@@ -251,7 +251,7 @@ class GlmMembersAdmin_member_billing // extends GlmDataBilling
                 $invoiceTypeId = $account['fieldData']['invoice_type']['value'];
             } else {
                 $invoiceError = true;
-                $messages[]   = 'No account Payment Type set!';
+                $messages[]   = 'No account Invoice Type set!';
             }
 
             // Create an invoice w/line item for this accounts payment type
@@ -308,7 +308,7 @@ class GlmMembersAdmin_member_billing // extends GlmDataBilling
                 $invoiceError = true;
                 $messages[]   = 'Missing Invoice Data';
                 if ( !$invoiceTypeId ) {
-                    $messages[] = 'Missing: Payment Type';
+                    $messages[] = 'Missing: Invoice Type';
                 }
                 if ( !$memberId ) {
                     $messages[] = 'Missing: Member Id';
index 60ed6a0..bfa1daf 100644 (file)
@@ -34,7 +34,7 @@
             {if $member_invoice}
             <div class="glm-billing-field">
                 <div class="glm-billing-label glm-required">
-                    Payment Type
+                    Invoice Type
                 </div>
                 <div class="glm-billing-input">
                     {$member_invoice.name} ${$member_invoice.amount}
index 57cdcdd..c0f053a 100644 (file)
@@ -67,7 +67,7 @@
         {if !$settings.member_types_enabled}
 
             <div class="glm-billing-field">
-                <div class="glm-billing-label{if $account.fieldRequired.invoice_type} glm-required{/if}">Payment Type</div>
+                <div class="glm-billing-label{if $account.fieldRequired.invoice_type} glm-required{/if}">Invoice Type</div>
                 <div class="glm-billing-input{if $account.fieldFail.invoice_type} glm-form-bad-input{/if}" data-tabid="glm-invoice-type">
                     <select name="invoice_type" required>
                         {foreach $account.fieldData.invoice_type.list as $type}
index 99bd4ba..59331f2 100644 (file)
 
                 {if !$settings.member_types_enabled}
 
-                    {* Payment Type *}
+                    {* Invoice Type *}
                     {$ui = [
                         'value'     => $data.fieldData.invoice_type.value,
                         'field'     => 'invoice_type',
-                        'label'     => 'Payment Type',
+                        'label'     => 'Invoice Type',
                         'list'      => $data.fieldData.invoice_type.list,
                         'l_label'   => 'name',
                         'l_value'   => 'value',
                         'l_blank'   => false,
                         'required'  => $data.fieldRequired.invoice_type,
-                        'errorText' => 'Payment Type is Required'
+                        'errorText' => 'Invoice Type is Required'
                     ]}
                     {include file='ui/f6/select.html'}
 
index 43f8618..20042e0 100644 (file)
                 {/if}
                 {if !$settings.member_types_enabled}
                     <div class="cell small-12">
-                        <label class="glm-required">Payment Types</label>
+                        <label class="glm-required">Invoice Types</label>
                         <select name="invoice_type" required>
                             <option value="0"></option>
                             {foreach $invoiceTypes as $type}
@@ -603,7 +603,7 @@ jQuery(document).ready(function($){
         allAccountFields.removeClass( 'ui-state-error' );
 
         valid = valid && checkRequired( ref_name, accountTips, 'Name is required!' );
-        valid = valid && checkRequired( invoice_type, accountTips, 'Payment Type is required!' );
+        valid = valid && checkRequired( invoice_type, accountTips, 'Invoice Type is required!' );
         {if $settings.account_number_enabled}
             valid = valid && checkRequired( account_number, accountTips, 'Account Number is required!' );
         {/if}
index e5f1f21..bc81bc2 100644 (file)
@@ -4,7 +4,7 @@
         <input type="hidden" name="glm_action" value="accountsListExport">
         <table class="glm-admin-table unstriped">
             <tr>
-                <th>Payment Types</th>
+                <th>Invoice Types</th>
                 <td>
                     <select multiple size="5" id="invoice_types" name="invoice_types[]">
                         {foreach $paymentTypes as $paymentType}
index 1025c65..a377f31 100644 (file)
@@ -4,7 +4,7 @@
         <input type="hidden" name="glm_action" value="reportsListExport">
         <table class="glm-admin-table unstriped">
             <tr>
-                <th>Payment Types</th>
+                <th>Invoice Types</th>
                 <td>
                     <select multiple size="5" id="invoice_types" name="invoice_types[]">
                         {foreach $paymentTypes as $paymentType}
index d58f4a2..fdda60d 100644 (file)
@@ -47,7 +47,7 @@
         <div class="grid-x grid-padding-x">
             {if $paymentTypes}
                 <div class="cell small-12 medium-3">
-                    <label>Payment Types:</label><br>
+                    <label>Invoice Types:</label><br>
                     <select multiple size="10" name="invoice_types[]">
                         {foreach $paymentTypes as $paymentType}
                             <option value="{$paymentType.id}"{if isset($smarty.request.invoice_types) && in_array( $paymentType.id, $smarty.request.invoice_types )} selected{/if}>{$paymentType.name}</option>
index d4c1f61..3803eba 100644 (file)
                 {if $paymentTypes}
                     <div class="cell small-12 medium-auto">
 
-                        {* Payment Types *}
+                        {* Invoice Types *}
                         {$ui = [
                             'value'     => $smarty.request.invoice_types|default:'',
                             'field'     => 'invoice_types',
-                            'label'     => 'Payment Types',
+                            'label'     => 'Invoice Types',
                             'list'      => $paymentTypes,
                             'l_label'   => 'name',
                             'l_value'   => 'id',
                             'l_blank'   => false,
                             'l_size'    => 10,
                             'required'  => false,
-                            'errorText' => 'Payment Types is Required',
+                            'errorText' => 'Invoice Types is Required',
                             'dataError' => ''
                         ]}
                         {include file='ui/f6/multiselect.html'}
                     {if isset( $settings.account_number_enabled ) && $settings.account_number_enabled}
                         <th style="width: 200px;"> Account Number </th>
                     {/if}
-                    <th style="width: 200px;"> Payment Type </th>
+                    <th style="width: 200px;"> Invoice Type </th>
                     <th style="width: 100px;"> Balance Due </th>
                 </tr>
             </thead>
index 837a312..9579429 100644 (file)
 </form>
 
 <div class="tabs-panel" id="panel2">
-    <p>Payment Types</p>
+    <p>Invoice Types</p>
 </div>
 <div class="tabs-panel" id="panel3">
     <p>Notifications</p>