]> git.koha-community.org Git - koha.git/commit
Bug 34620: Do not throw expection if payment type is writeoff
authorLucas Gass <lucas@bywatersolutions.com>
Fri, 25 Aug 2023 15:49:09 +0000 (15:49 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 8 Sep 2023 06:42:15 +0000 (20:42 -1000)
commit5cc97ab746463f9a48b54a6b5f9a81a83dc80d25
treef70d75851a14fefbb1f5afe24668ae3182e1b718
parent702356084a3e4726e27f3f03d468b628f87bf23b
Bug 34620: Do not throw expection if payment type is writeoff

To test:
1. Turn on RequirePaymentType
2. Create a manual invoice and then attempt to write it off.
3. 500 error
4. Turn of RequirePaymentType, no error.
5. Apply patch, restart_all
6. Try step 2 again, you should not get an error
7. prove t/db_dependent/Koha/Account.t
8. Make sure tests pass

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit d77aa887e4b9df61493837b9d88a80537c525471)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/Account.pm
t/db_dependent/Koha/Account.t