summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2013-10-12 18:45:26 -0700
committerMark Wells <mark@freeside.biz>2013-10-12 18:45:26 -0700
commit00d1a5be415015a90c17912304835307a8fc4e7e (patch)
treedee3bed6fac8e4c76e9e913240de38283b3126f4
parentb04e0aefbeaf39edd930290694a2675be81f6831 (diff)
allow commissions based on setup fee, #23969, fallout from #6991
-rw-r--r--FS/FS/part_pkg.pm11
1 files changed, 11 insertions, 0 deletions
diff --git a/FS/FS/part_pkg.pm b/FS/FS/part_pkg.pm
index 184f1cb9e..9ba5bb087 100644
--- 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