projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT#25563: Better handling of commissions which do not have rates configured [more...
[freeside.git]
/
FS
/
FS
/
part_event
/
Action
/
pkg_employee_credit.pm
diff --git
a/FS/FS/part_event/Action/pkg_employee_credit.pm
b/FS/FS/part_event/Action/pkg_employee_credit.pm
index
6cbe9bc
..
838d175
100644
(file)
--- a/
FS/FS/part_event/Action/pkg_employee_credit.pm
+++ b/
FS/FS/part_event/Action/pkg_employee_credit.pm
@@
-19,8
+19,9
@@
sub do_action {
my $employee_cust_main = $employee->user_cust_main;
#? or return "No customer record for employee ". $employee->username;
my $employee_cust_main = $employee->user_cust_main;
#? or return "No customer record for employee ". $employee->username;
- my $amount = $self->_calc_credit($cust_pkg, $employee);
- return '' unless $amount > 0;
+ my $warning = '';
+ my $amount = $self->_calc_credit($cust_pkg, $employee, \$warning);
+ return $warning unless $amount > 0;
my $reasonnum = $self->option('reasonnum');
my $reasonnum = $self->option('reasonnum');