[freeside-commits] branch master updated. 6639432aeb7ee7084ab2a318cd62bd7ca0fec8ab

Christopher Burger burgerc at freeside.biz
Fri Jan 4 08:42:04 PST 2019


The branch, master has been updated
       via  6639432aeb7ee7084ab2a318cd62bd7ca0fec8ab (commit)
      from  80cea05076d397b3b06246a3df4451aea415e9fc (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 6639432aeb7ee7084ab2a318cd62bd7ca0fec8ab
Author: Christopher Burger <burgerc at freeside.biz>
Date:   Fri Jan 4 11:41:34 2019 -0500

    RT# 37817 - Updated to set condition to check for invoice sending action

diff --git a/FS/FS/part_event/Condition/invoice_has_not_been_sent.pm b/FS/FS/part_event/Condition/invoice_has_not_been_sent.pm
index 882762dfe..f80508a9a 100644
--- a/FS/FS/part_event/Condition/invoice_has_not_been_sent.pm
+++ b/FS/FS/part_event/Condition/invoice_has_not_been_sent.pm
@@ -21,15 +21,19 @@ sub eventtable_hashref {
 sub condition {
   my($self, $cust_bill, %opt) = @_;
 
+  ## search actions for invoice send events.
+  my $extra_sql = " AND (action LIKE 'cust_bill_send%' OR action LIKE 'cust_bill_email%')";
+
   my $event = qsearchs( {
     'table'     => 'cust_event',
     'addl_from' => 'LEFT JOIN part_event USING ( eventpart )',
     'hashref'   => {
-    		'tablenum'  => $cust_bill->{Hash}->{invnum},
-    		'eventtable'  => 'cust_bill',
-		'status'    => 'done',
-    	},
+      'tablenum'   => $cust_bill->{Hash}->{invnum},
+      'eventtable' => 'cust_bill',
+      'status'     => 'done',
+    },
     'order_by'  => " LIMIT 1",
+    'extra_sql' => $extra_sql,
   } );
 
   return 0 if $event;

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/part_event/Condition/invoice_has_not_been_sent.pm | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)




More information about the freeside-commits mailing list