projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b04e0ae
)
allow commissions based on setup fee, #23969, fallout from #6991
author
Mark Wells
<mark@freeside.biz>
Sun, 13 Oct 2013 01:45:26 +0000
(18:45 -0700)
committer
Mark Wells
<mark@freeside.biz>
Sun, 13 Oct 2013 01:45:26 +0000
(18:45 -0700)
FS/FS/part_pkg.pm
patch
|
blob
|
history
diff --git
a/FS/FS/part_pkg.pm
b/FS/FS/part_pkg.pm
index
184f1cb
..
9ba5bb0
100644
(file)
--- a/
FS/FS/part_pkg.pm
+++ b/
FS/FS/part_pkg.pm
@@
-1539,6
+1539,17
@@
sub cust_bill_pkg_recur {
$cust_bill_pkg->recur;
}
+=item unit_setup CUST_PKG
+
+Returns the setup fee for one unit of the package.
+
+=cut
+
+sub unit_setup {
+ my ($self, $cust_pkg) = @_;
+ $self->option('setup_fee') || 0;
+}
+
=item format OPTION DATA
Returns data formatted according to the function 'format' described