https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22588

Tomás Cohen Arazi <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #4 from Tomás Cohen Arazi <[email protected]> ---
I like the idea in general but:
- shouldn't we be using line.{is_debit|is_credit} instead of comparing
line.amount > 0? Keep in mind that we found pathological cases in the wild
where the amountoutstanding got flipped. We better rely on the methods we have.
- The fact that we aren't using $account->outstanding_debits and
$account->outstanding_credits but instead keep searching for all accountlines
makes some noise to me. I guess it is not straightforward as we want to display
all outstanding debits and credits ordered by date. Just something to think
about a bit. Maybe we should add amountountstanding => { '!=' => 0  } to the
search line.
- We could replace the search with 

  my $account = $patron->account;
  my $total   = $account->balance;
  my $lines   = $account->lines;

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to