projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
employee commission reporting, RT#6991
[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
da872e7
..
e7c92d6
100644
(file)
--- a/
FS/FS/part_event/Action/pkg_referral_credit.pm
+++ b/
FS/FS/part_event/Action/pkg_referral_credit.pm
@@
-23,7
+23,7
@@
sub option_fields {
}
sub do_action {
}
sub do_action {
- my( $self, $cust_pkg ) = @_;
+ my( $self, $cust_pkg
, $cust_event
) = @_;
my $cust_main = $self->cust_main($cust_pkg);
my $cust_main = $self->cust_main($cust_pkg);
@@
-43,8
+43,9
@@
sub do_action {
my $error = $referring_cust_main->credit(
$amount,
\$reasonnum,
my $error = $referring_cust_main->credit(
$amount,
\$reasonnum,
- 'addlinfo' =>
- 'for customer #'. $cust_main->display_custnum. ': '.$cust_main->name,
+ 'eventnum' => $cust_event->eventnum,
+ 'addlinfo' => 'for customer #'. $cust_main->display_custnum.
+ ': '.$cust_main->name,
);
die "Error crediting customer ". $cust_main->referral_custnum.
" for referral: $error"
);
die "Error crediting customer ". $cust_main->referral_custnum.
" for referral: $error"