projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
non-package fees, fixes for tax calculation and sales reports, #25899
[freeside.git]
/
FS
/
FS
/
part_event
/
Action
/
cust_bill_email.pm
diff --git
a/FS/FS/part_event/Action/cust_bill_email.pm
b/FS/FS/part_event/Action/cust_bill_email.pm
index
1a3bca4
..
3331a4c
100644
(file)
--- a/
FS/FS/part_event/Action/cust_bill_email.pm
+++ b/
FS/FS/part_event/Action/cust_bill_email.pm
@@
-9,14
+9,22
@@
sub eventtable_hashref {
{ 'cust_bill' => 1 };
}
{ 'cust_bill' => 1 };
}
+sub option_fields {
+ (
+ 'modenum' => { label => 'Invoice mode',
+ type => 'select-invoice_mode',
+ },
+ );
+}
+
sub default_weight { 51; }
sub do_action {
my( $self, $cust_bill ) = @_;
sub default_weight { 51; }
sub do_action {
my( $self, $cust_bill ) = @_;
- #my $cust_main = $self->cust_main($cust_bill);
my $cust_main = $cust_bill->cust_main;
my $cust_main = $cust_bill->cust_main;
+ $cust_bill->set('mode' => $self->option('modenum'));
$cust_bill->email unless $cust_main->invoice_noemail;
}
$cust_bill->email unless $cust_main->invoice_noemail;
}