]> git.koha-community.org Git - koha.git/commit
Bug 20978: Add Koha::Account::add_credit
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 21 Jun 2018 16:04:01 +0000 (13:04 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 6 Jul 2018 12:39:36 +0000 (12:39 +0000)
commita66542d67ba2cd6edb582055d38b1d577dd1be32
tree8303b0bdaa2e72ecf6f321c0847d402d3824781b
parent04cc45bb520b4621af84d3d13b7933f91222c1e4
Bug 20978: Add Koha::Account::add_credit

This patch adds:
- Koha::Account::add_credit
- A single source of truth for accounttype and offset_type values

To test:
- Apply the first patch
- Run:
  $ kshell
 k$ prove t/db_dependent/Koha/Account.t
=> FAIL: Tests fail!
- Apply this patch
- Run:
 k$ prove t/db_dependent/Koha/Account.t
=> SUCCESS: Tests pass!
- Sign off :-D

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Koha/Account.pm