Bug 21915: Call reconcile_balance on manual invoice creation
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 30 Nov 2018 12:45:19 +0000 (09:45 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 10 Jan 2019 16:18:22 +0000 (16:18 +0000)
commit86342bf68127192e0bc14767ef0f546ebdea4d97
tree27b7b0d8febc1cb0250e29d6ced55317bc0f88b0
parent9765cab77792f50195454581adaa597eb86b5688
Bug 21915: Call reconcile_balance on manual invoice creation

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

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

Sponsored-by: ByWater Solutions
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
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 0c43fa326afa23ef9c98ae2e7b464f6a0e55d880)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
members/maninvoice.pl