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>
This commit is contained in:
parent
0c43fa326a
commit
0693052bfc
|
|
@ -90,6 +90,10 @@ if ($add){
|
|||
user_id => $logged_in_user->id
|
||||
});
|
||||
|
||||
if ( C4::Context->preference('AccountAutoReconcile') ) {
|
||||
$patron->account->reconcile_balance;
|
||||
}
|
||||
|
||||
print $input->redirect("/cgi-bin/koha/members/boraccount.pl?borrowernumber=$borrowernumber");
|
||||
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue