diff options
author | Ivan Kohler <ivan@freeside.biz> | 2012-08-26 13:27:14 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2012-08-26 13:27:14 -0700 |
commit | 1c7805046b0d15dd57db594211b924bc10e48ab7 (patch) | |
tree | 8f9a6ae9702c44278c3ebe659de0191f66a5d0e5 | |
parent | a9303743bcdfb2e440d8e80b76c3683e6089f8ea (diff) |
fix listing of previous balances when two customer invoices are generated in the same second, RT#18928
-rw-r--r-- | FS/FS/cust_bill.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm index c5b707bb1..c48c80627 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; } |