projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
show available discounts on invoice, #5318
[freeside.git]
/
FS
/
FS
/
part_pkg
/
recur_Common.pm
diff --git
a/FS/FS/part_pkg/recur_Common.pm
b/FS/FS/part_pkg/recur_Common.pm
index
719fb23
..
48e9307
100644
(file)
--- a/
FS/FS/part_pkg/recur_Common.pm
+++ b/
FS/FS/part_pkg/recur_Common.pm
@@
-19,6
+19,13
@@
sub base_recur {
$self->option('recur_fee', 1) || 0;
}
$self->option('recur_fee', 1) || 0;
}
+sub calc_setup {
+ # moved from all descendant packages which just had $self->option('setup_fee')
+ my($self, $cust_pkg, $sdate, $details, $param) = @_;
+ return 0 if $self->prorate_setup($cust_pkg, $sdate);
+ $self->option('setup_fee');
+}
+
sub cutoff_day {
# prorate/subscription only; we don't support sync_bill_date here
my $self = shift;
sub cutoff_day {
# prorate/subscription only; we don't support sync_bill_date here
my $self = shift;