projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix a problem running "letter" events more than once in a process, #32603
[freeside.git]
/
FS
/
FS
/
part_event
/
Action
/
cust_bill_realtime_card.pm
diff --git
a/FS/FS/part_event/Action/cust_bill_realtime_card.pm
b/FS/FS/part_event/Action/cust_bill_realtime_card.pm
index
471c946
..
1a2d046
100644
(file)
--- a/
FS/FS/part_event/Action/cust_bill_realtime_card.pm
+++ b/
FS/FS/part_event/Action/cust_bill_realtime_card.pm
@@
-8,17
+8,13
@@
sub description {
'Run card with a Business::OnlinePayment realtime gateway';
}
'Run card with a Business::OnlinePayment realtime gateway';
}
-sub deprecated {
- 1;
-}
+sub deprecated { 1; }
sub eventtable_hashref {
{ 'cust_bill' => 1 };
}
sub eventtable_hashref {
{ 'cust_bill' => 1 };
}
-sub default_weight {
- 30;
-}
+sub default_weight { 30; }
sub do_action {
my( $self, $cust_bill ) = @_;
sub do_action {
my( $self, $cust_bill ) = @_;
@@
-26,7
+22,8
@@
sub do_action {
#my $cust_main = $self->cust_main($cust_bill);
my $cust_main = $cust_bill->cust_main;
#my $cust_main = $self->cust_main($cust_bill);
my $cust_main = $cust_bill->cust_main;
- $cust_bill->realtime_card;
+ my %opt = ('cc_surcharge_from_event' => 1);
+ $cust_bill->realtime_card(%opt);
}
1;
}
1;