projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT# 37817 - added a declaration to cust bill event actions that send out invoices
[freeside.git]
/
FS
/
FS
/
part_event
/
Action
/
pkg_referral_credit.pm
diff --git
a/FS/FS/part_event/Action/pkg_referral_credit.pm
b/FS/FS/part_event/Action/pkg_referral_credit.pm
index
9d7bbf8
..
a85a3a1
100644
(file)
--- a/
FS/FS/part_event/Action/pkg_referral_credit.pm
+++ b/
FS/FS/part_event/Action/pkg_referral_credit.pm
@@
-23,8
+23,9
@@
sub do_action {
return 'Referring customer is cancelled'
if $referring_cust_main->status eq 'cancelled';
return 'Referring customer is cancelled'
if $referring_cust_main->status eq 'cancelled';
- my $amount = $self->_calc_credit($cust_pkg, $referring_cust_main);
- return '' unless $amount > 0;
+ my $warning = '';
+ my $amount = $self->_calc_credit($cust_pkg, $referring_cust_main, \$warning);
+ return $warning unless $amount > 0;
my $reasonnum = $self->option('reasonnum');
my $reasonnum = $self->option('reasonnum');