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)
committerMatt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Fri, 15 Sep 2023 09:33:08 +0000 (09:33 +0000)
commit6c72cc1f211c10f0cfdefec605b594441d49582d
tree1ea3652fdc3319a685cceab51c1561a0b5e3d495
parent7d6656678eedb09b2174ae0b0e26e73ca8ad392a
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>
(cherry picked from commit 5cc97ab746463f9a48b54a6b5f9a81a83dc80d25)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Koha/Account.pm
t/db_dependent/Koha/Account.t