Bug 21915: Call reconcile_balance on manual credit creation
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 30 Nov 2018 12:54:56 +0000 (09:54 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 10 Jan 2019 16:18:40 +0000 (16:18 +0000)
commit7a73983a9995e06c2ac27a484d5104a735dfb3aa
treed924a5e7e7603ca71178d87866bff5637c291bd4
parent86342bf68127192e0bc14767ef0f546ebdea4d97
Bug 21915: Call reconcile_balance on manual credit creation

This patch makes the manual credit creation step call
Koha::Account::reconcile_balance when the AccountAutoReconcile syspref
is set.

To test:
- Apply the patch
- Have some outstanding debits
- Create a manual credit
=> SUCCESS: Same behaviour as always
- Set AccountAutoReconcile
- Create a manual credit
=> SUCCESS: Reconcillation happened
- Sign off :-D

Sponsored-by: ByWater Solutions
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 0693052bfcd0b4259eb620233550f81eab49eabd)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
members/mancredit.pl