projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix on-demand credit cards not being masked in UI. i believe huntsburg is in the...
[freeside.git]
/
FS
/
FS
/
part_pkg
/
flat.pm
diff --git
a/FS/FS/part_pkg/flat.pm
b/FS/FS/part_pkg/flat.pm
index
131f850
..
f2f3a8d
100644
(file)
--- a/
FS/FS/part_pkg/flat.pm
+++ b/
FS/FS/part_pkg/flat.pm
@@
-4,6
+4,7
@@
use strict;
use vars qw(@ISA %info);
#use FS::Record qw(qsearch);
use FS::part_pkg;
use vars qw(@ISA %info);
#use FS::Record qw(qsearch);
use FS::part_pkg;
+use Date::Manip;
@ISA = qw(FS::part_pkg);
@ISA = qw(FS::part_pkg);
@@
-48,7
+49,7
@@
sub calc_remain {
my $next_bill = $cust_pkg->getfield('bill') || 0;
my $last_bill = $cust_pkg->last_bill || 0;
return 0 if ! $self->base_recur
my $next_bill = $cust_pkg->getfield('bill') || 0;
my $last_bill = $cust_pkg->last_bill || 0;
return 0 if ! $self->base_recur
- || ! $self->option('unused_credit')
+ || ! $self->option('unused_credit'
, 1
)
|| ! $last_bill
|| ! $next_bill;
|| ! $last_bill
|| ! $next_bill;
@@
-77,4
+78,8
@@
sub is_free_options {
qw( setup_fee recur_fee );
}
qw( setup_fee recur_fee );
}
+sub is_prepaid {
+ 0; #no, we're postpaid
+}
+
1;
1;