[freeside-commits] freeside/FS/FS cust_bill.pm, 1.163.2.20, 1.163.2.21
Ivan,,,
ivan at wavetail.420.am
Tue Apr 1 02:19:38 PDT 2008
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv23390
Modified Files:
Tag: FREESIDE_1_7_BRANCH
cust_bill.pm
Log Message:
don't show services on invoices that are newer than the invoice, closes: #3032
Index: cust_bill.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_bill.pm,v
retrieving revision 1.163.2.20
retrieving revision 1.163.2.21
diff -u -d -r1.163.2.20 -r1.163.2.21
--- cust_bill.pm 15 Mar 2008 19:53:00 -0000 1.163.2.20
+++ cust_bill.pm 1 Apr 2008 09:19:36 -0000 1.163.2.21
@@ -2419,6 +2419,8 @@
my @b = ();
foreach my $cust_bill_pkg ( @$cust_bill_pkg ) {
+ my $cust_pkg = $cust_bill_pkg->cust_pkg;
+
my $desc = $cust_bill_pkg->desc;
if ( $cust_bill_pkg->pkgnum > 0 ) {
@@ -2426,7 +2428,7 @@
if ( $cust_bill_pkg->setup != 0 ) {
my $description = $desc;
$description .= ' Setup' if $cust_bill_pkg->recur != 0;
- my @d = $cust_bill_pkg->cust_pkg->h_labels_short($self->_date);
+ my @d = $cust_pkg->h_labels_short($self->_date);
push @d, $cust_bill_pkg->details if $cust_bill_pkg->recur == 0;
push @b, {
description => $description,
@@ -2449,8 +2451,11 @@
pkgnum => $cust_bill_pkg->pkgnum,
amount => sprintf("%.2f", $cust_bill_pkg->recur),
ext_description =>
- [ $cust_bill_pkg->cust_pkg->h_labels_short( $cust_bill_pkg->edate,
- $cust_bill_pkg->sdate),
+ #at least until cust_bill_pkg has "past" ranges in addition to
+ #the "future" sdate/edate ones... see #3032
+ [ $cust_pkg->h_labels_short( $self->_date ),
+ #$cust_bill_pkg->edate,
+ #$cust_bill_pkg->sdate),
$cust_bill_pkg->details,
],
};
More information about the freeside-commits
mailing list