Update the statements page
authorSteve Sutton <steve@gaslightmedia.com>
Mon, 12 Mar 2018 20:19:31 +0000 (16:19 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Mon, 12 Mar 2018 20:19:31 +0000 (16:19 -0400)
Adding the Balance due for each invoice.
Removing the total on bottom.

views/admin/billing/statements.html

index 390ff70..2dee7da 100644 (file)
@@ -8,10 +8,12 @@
     <table class="glm-admin-table wp-list-table widefat">
         <thead>
             <tr>
+                <th>ID</th>
                 <th>Date</th>
                 <th>Due Date</th>
                 <th>Type</th>
                 <th>Amount</th>
+                <th>Balance</th>
                 <th>&nbsp;</th>
             </tr>
         </thead>
         {foreach $transactions as $transaction}
             <tr{if $alt % 2 == 0} class="alternate"{/if}>
                 {if $transaction.type == '10'}
+                    <td>{$transaction.transaction_data.id}</td>
                     <td>{$transaction.transaction_data.transaction_time|date_format:"%D"}</td>
                     <td>{$transaction.transaction_data.due_date|date_format:"%D"}</td>
                     <td>{$transaction_types[$transaction.type]}</td>
                     <td>${$transaction.transaction_data.amount_total}</td>
+                    <td>${$transaction.transaction_data.balance}</td>
                     <td> <a href="{$thisUrl}?page={$thisPage}&glm_action=billing&option=view&member={$memberID}&id={$transaction.type_id}">View</a> </td>
                 {elseif $transaction.type == '20'}
+                    <td>{$transaction.transaction_data.id}</td>
                     <td>{$transaction.transaction_data.transaction_time|date_format:"%D"}</td>
-                    <td></td>
+                    <td>&nbsp;</td>
                     <td>{$transaction_types[$transaction.type]}</td>
                     <td>${$transaction.transaction_data.amount}</td>
                     <td>&nbsp;</td>
+                    <td>&nbsp;</td>
                 {/if}
             </tr>
             {$alt = $alt + 1}
         {/foreach}
+
+<!--
         <tr{if $alt % 2 == 0} class="alternate"{/if}>
-            <td></td>
-            <td></td>
+            <td>&nbsp;</td>
+            <td>&nbsp;</td>
+            <td>&nbsp;</td>
+            <td>&nbsp;</td>
             <td>Balance Due</td>
             <td>${$balance_due|string_format:"%.2f"}</td>
+            <td>&nbsp;</td>
         </tr>
+-->
         </tbody>
     </table>