[freeside-commits] branch master updated. 1c7805046b0d15dd57db594211b924bc10e48ab7
Ivan
ivan at 420.am
Sun Aug 26 13:27:39 PDT 2012
The branch, master has been updated
via 1c7805046b0d15dd57db594211b924bc10e48ab7 (commit)
from a9303743bcdfb2e440d8e80b76c3683e6089f8ea (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 1c7805046b0d15dd57db594211b924bc10e48ab7
Author: Ivan Kohler <ivan at freeside.biz>
Date: Sun Aug 26 13:27:14 2012 -0700
fix listing of previous balances when two customer invoices are generated in the same second, RT#18928
diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm
index c5b707b..c48c806 100644
--- a/FS/FS/cust_bill.pm
+++ b/FS/FS/cust_bill.pm
@@ -433,7 +433,8 @@ sub previous {
my @cust_bill = sort { $a->_date <=> $b->_date }
grep { $_->owed != 0 }
qsearch( 'cust_bill', { 'custnum' => $self->custnum,
- '_date' => { op=>'<', value=>$self->_date },
+ #'_date' => { op=>'<', value=>$self->_date },
+ 'invnum' => { op=>'<', value=>$self->invnum },
} )
;
foreach ( @cust_bill ) { $total += $_->owed; }
-----------------------------------------------------------------------
Summary of changes:
FS/FS/cust_bill.pm | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
More information about the freeside-commits
mailing list