]> git.koha-community.org Git - koha.git/commit
Bug 28994: Fix logical errors with amount vs amoutoutstanding
authorMagnus Enger <magnus@libriotech.no>
Tue, 9 Nov 2021 10:13:05 +0000 (10:13 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 15 Nov 2021 11:38:39 +0000 (12:38 +0100)
commit88e9cca3594c42c1eb430b3155c47a4a6fcab761
tree3bb9305cc315600a1c2a2270fb48cb5b50be452d
parenta4c44ac212078a956d0bdb088af9170ab3fa9c64
Bug 28994: Fix logical errors with amount vs amoutoutstanding

The writeoff debts script contained an error whereby we could writeoff
more than the current outstanding debt of a charge.  This patch corrects
that mistake by passing amountoutstanding in place of amount in the
writeoff and offset creation lines.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
misc/cronjobs/writeoff_debts.pl