Don't send invoice in notifications when create an invoice.
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 15 May 2018 20:15:21 +0000 (16:15 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 15 May 2018 20:15:21 +0000 (16:15 -0400)
This should be an option maybe.

classes/notifications.php

index b1f91cb..055f15e 100644 (file)
@@ -142,9 +142,9 @@ class GlmNotifications
 
         // Setup the invoice html
         $invoice_html = '';
-        if ( isset( $data['type'] ) && $data['type'] == $this->config['transaction_numb']['Invoice'] ) {
-            $invoice_html = $BillingSupport->viewInvoice( $data['type_id'] );
-        }
+        // if ( isset( $data['type'] ) && $data['type'] == $this->config['transaction_numb']['Invoice'] ) {
+        //     $invoice_html = $BillingSupport->viewInvoice( $data['type_id'] );
+        // }
 
         $smarty->templateAssign( 'invoice_html', $invoice_html );