[freeside-commits] freeside/FS/FS/part_pkg flat.pm,1.28,1.29
Ivan,,,
ivan at wavetail.420.am
Sun Feb 22 02:58:52 PST 2009
Update of /home/cvs/cvsroot/freeside/FS/FS/part_pkg
In directory wavetail.420.am:/tmp/cvs-serv2451
Modified Files:
flat.pm
Log Message:
don't do a credit for unused time for packages that don't have a last bill date. really. RT#4881
Index: flat.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_pkg/flat.pm,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- flat.pm 22 Nov 2008 22:17:28 -0000 1.28
+++ flat.pm 22 Feb 2009 10:58:50 -0000 1.29
@@ -161,7 +161,10 @@
}
my $next_bill = $cust_pkg->getfield('bill') || 0;
- my $last_bill = $cust_pkg->last_bill || 0;
+
+ #my $last_bill = $cust_pkg->last_bill || 0;
+ my $last_bill = $cust_pkg->get('last_bill') || 0; #->last_bill falls back to setup
+
return 0 if ! $self->base_recur
|| ! $self->option('unused_credit', 1)
|| ! $last_bill
More information about the freeside-commits
mailing list