[freeside-commits] branch master updated. 236f5573c4210299bf05561c699295ae3da8d73e

Christopher Burger burgerc at freeside.biz
Fri Jan 4 13:15:33 PST 2019


The branch, master has been updated
       via  236f5573c4210299bf05561c699295ae3da8d73e (commit)
      from  6639432aeb7ee7084ab2a318cd62bd7ca0fec8ab (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 236f5573c4210299bf05561c699295ae3da8d73e
Author: Christopher Burger <burgerc at freeside.biz>
Date:   Fri Jan 4 16:13:05 2019 -0500

    RT# 37817 - Added more invoice sending actions

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 f80508a9a..4868f6636 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
@@ -22,7 +22,14 @@ 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 @send_actions = (
+    "action LIKE 'cust_bill_send%'",
+    "action LIKE 'cust_bill_email%'",
+    "action LIKE 'cust_bill_print%'",
+    "action LIKE 'cust_bill_fsinc_print%'",
+  );
+  my $actions = join ' OR ', @send_actions;
+  my $extra_sql = " AND ($actions)";
 
   my $event = qsearchs( {
     'table'     => 'cust_event',

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

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




More information about the freeside-commits mailing list