Start updates for uptravel
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 9 Nov 2018 20:31:53 +0000 (15:31 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 9 Nov 2018 20:31:53 +0000 (15:31 -0500)
Setup initial bulk add invoice.

models/admin/billing/invoices.php
views/admin/billing/bulkAddInvoices.html [new file with mode: 0644]
views/admin/billing/subHeader.html
views/admin/billing/viewInvoice.html

index b45718e..3417e49 100644 (file)
@@ -137,6 +137,9 @@ class GlmMembersAdmin_billing_invoices extends GlmDataInvoices
 
         // Do selected option
         switch ($option) {
+        case 'bulkadd':
+            $view = 'bulkAddInvoices';
+            break;
 
         case 'add':
             $invoices        = $this->newEntry();
diff --git a/views/admin/billing/bulkAddInvoices.html b/views/admin/billing/bulkAddInvoices.html
new file mode 100644 (file)
index 0000000..e1ffec7
--- /dev/null
@@ -0,0 +1,8 @@
+{include file='admin/billing/header.html'}
+
+{include file='admin/billing/subHeader.html'}
+
+<h2>Bulk Create Invoices</h2>
+Test
+
+{include file='admin/footer.html'}
index f7fcaf2..5f5266a 100644 (file)
@@ -3,4 +3,6 @@
         class="nav-tab{if $option == 'list'} nav-tab-active{/if}">Search Invoices</a>
     <a href="{$thisUrl}?page=glm-members-admin-menu-billing&glm_action=invoices&option=add"
         class="nav-tab{if $option == 'add' || $option == 'edit'} nav-tab-active{/if}">Create Invoice</a>
+    <a href="{$thisUrl}?page=glm-members-admin-menu-billing&glm_action=invoices&option=bulkadd"
+        class="nav-tab{if $option == 'bulkadd'} nav-tab-active{/if}">Create Bulk Invoices</a>
 </h2>
index 8d9bd0a..b7f1efc 100644 (file)
@@ -30,7 +30,7 @@ jQuery(document).ready(function($) {
             popX:       500,       // popup window screen X position
             popY:       500,       // popup window screen Y position
             popTitle:   'Invoice', // popup window title element
-            popClose:   true,      // popup window close after printing
+            popClose:   false,      // popup window close after printing
             extraCss:   '',        // Comma separated list of extra css to include
             extraHead:  '',        // Comma separated list of extra elements to be appended to head tag
             strict:     false      // strict or looseTransitional html 4.01 document standard or undefined to not include at all only for popup option