]> git.koha-community.org Git - koha.git/commit
Bug 21607: Make Koha::Account::Line->apply store credits as negative amounts
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 18 Oct 2018 14:39:37 +0000 (11:39 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 19 Oct 2018 17:27:43 +0000 (17:27 +0000)
commitdf91e14135454825d1ffdf504d072973efbeeedc
treedd42c86da20194b94b2def2fa2bcb4f12e03b82d
parent422034aae6e929f3d37f80ec19323cdca4d9ddcd
Bug 21607: Make Koha::Account::Line->apply store credits as negative amounts

This is a trivial patch, that makes offsets have 'amount' stored as
negative values for applied credits.

The behaviour is changed on the tests and adjusted in the code. To test:
- Run
  $ kshell
 k$ prove t/db_dependent/Koha/Account/Lines.t
=> SUCCESS: Tests pass!
- Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Michal Denar <black23@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Koha/Account/Line.pm
t/db_dependent/Koha/Account/Lines.t