]> git.koha-community.org Git - koha.git/commit
Bug 17100: Do not display payments if patron has nothing to pay
authorMarc Véron <veron@veron.ch>
Wed, 10 Aug 2016 09:42:28 +0000 (11:42 +0200)
committerFrédéric Demians <f.demians@tamil.fr>
Tue, 23 Aug 2016 10:51:00 +0000 (12:51 +0200)
commit7602198e60e0a43c1d35164db2c49d26412bfc08
tree64993759e3d973f9d065af209462647c82c5943a
parent2ce7bf6ed5c6d74e3635666f93ef9e1f90d091c0
Bug 17100: Do not display payments if patron has nothing to pay

This alternative patch moves logic and formatting to the template file.

To test:
* without patch
  1/ find a patron with no lines in accountlines table : print summary shows no "account fines and payments" => OK
  2/ find a patron with some lines in accountlines table and the total amount > 0 : print summary shows a table "account fines and payments" with fines to recover => OK
  3/ find a patron with some lines in accountlines table but the total amount = 0 : print summary shows a table "account fines and payments" with nothing in it => NOK

* with the patch, same cases as before :
  1/ same as without patch
  2/ same as without patch
  3/ print summary does not show "account fines and payments"

- Additionally, verify that formatting follows syspref 'CurrencyFormat'
- Verify that amount column is right-aligned

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 492a64cef95c6afb1644cbb4f1be181c2442cbd8)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt
members/summary-print.pl