[freeside-commits] branch FREESIDE_3_BRANCH updated. 06da4d2867c15a1d52b4d7615a4738b1bd9a59f5
Ivan
ivan at 420.am
Sun Dec 28 15:25:38 PST 2014
The branch, FREESIDE_3_BRANCH has been updated
via 06da4d2867c15a1d52b4d7615a4738b1bd9a59f5 (commit)
from af9b59cca47d3b7757ba71a7c8bbafabc505381b (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 06da4d2867c15a1d52b4d7615a4738b1bd9a59f5
Author: Ivan Kohler <ivan at freeside.biz>
Date: Sun Dec 28 15:25:37 2014 -0800
add option to skip customers without postal invocing to print event instead of the condition, RT#32648
diff --git a/FS/FS/part_event/Action/cust_bill_print.pm b/FS/FS/part_event/Action/cust_bill_print.pm
index ea6e0aa..8a9d369 100644
--- a/FS/FS/part_event/Action/cust_bill_print.pm
+++ b/FS/FS/part_event/Action/cust_bill_print.pm
@@ -14,6 +14,9 @@ sub option_fields {
'modenum' => { label => 'Invoice mode',
type => 'select-invoice_mode',
},
+ 'skip_nopost' => { label => 'Skip customers without postal billing enabled',
+ type => 'checkbox',
+ },
);
}
@@ -26,7 +29,8 @@ sub do_action {
my $cust_main = $cust_bill->cust_main;
$cust_bill->set('mode' => $self->option('modenum'));
- $cust_bill->print;
+ $cust_bill->print unless $self->option('skip_nopost')
+ && ! grep { $_ eq 'POST' } $cust_main->invoicing_list;
}
1;
-----------------------------------------------------------------------
Summary of changes:
FS/FS/part_event/Action/cust_bill_print.pm | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
More information about the freeside-commits
mailing list