Update billing notices merge tags.
authorSteve Sutton <steve@gaslightmedia.com>
Mon, 16 Jul 2018 14:43:52 +0000 (10:43 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Mon, 16 Jul 2018 14:43:52 +0000 (10:43 -0400)
Adding Billing First and Last names.
Adding notes to where the {$data} merge tags can be used.

classes/notifications.php
views/admin/settings/editNotificationType.html

index b1f91cb..5ecf746 100644 (file)
@@ -119,14 +119,16 @@ class GlmNotifications
 
         $account_data = array(
             'account' => array(
-                'name'  => $account['ref_name'],
-                'email' => $account['email'],
-                'addr1' => $account['billing_addr1'],
-                'addr2' => $account['billing_addr2'],
-                'city'  => $account['billing_city'],
-                'state' => $account['billing_state'],
-                'zip'   => $account['billing_zip'],
-                'phone' => $account['billing_phone'],
+                'name'       => $account['ref_name'],
+                'email'      => $account['email'],
+                'first_name' => $account['billing_fname'],
+                'last_name'  => $account['billing_lname'],
+                'addr1'      => $account['billing_addr1'],
+                'addr2'      => $account['billing_addr2'],
+                'city'       => $account['billing_city'],
+                'state'      => $account['billing_state'],
+                'zip'        => $account['billing_zip'],
+                'phone'      => $account['billing_phone'],
             )
         );
         // Merge any data passed into this method
index f306130..1076829 100644 (file)
                         <th>{literal}{$account.name}{/literal}</th>
                         <td>Name of Account</td>
                     </tr>
+                    <tr>
+                        <th>{literal}{$account.first_name}{/literal}</th>
+                        <td>Billing First Name</td>
+                    </tr>
+                    <tr>
+                        <th>{literal}{$account.last_name}{/literal}</th>
+                        <td>Billing Last Name</td>
+                    </tr>
                     <tr>
                         <th>{literal}{$account.addr1}{/literal}</th>
                         <td>Billing Address 1</td>
                         <th>{literal}{$account.phone}{/literal}</th>
                         <td>Billing Phone</td>
                     </tr>
+                    <tr>
+                        <td colspan="2">Only available using Immediate Action - Create Invoice</td>
+                    </tr>
                     <tr>
                         <th>{literal}{$data.amount}{/literal}</th>
                         <td>Invoice Amount</td>
                     </tr>
+                    <tr>
+                        <td colspan="2">Only available using Immediate Action - Received Payment</td>
+                    </tr>
                     <tr>
                         <th>{literal}{$data.payment}{/literal}</th>
                         <td>Payment Amount</td>