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)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 5 Sep 2023 17:35:33 +0000 (14:35 -0300)
commitd77aa887e4b9df61493837b9d88a80537c525471
treedc3687b03088757e7f5ae9e9f9f7f129eb56a955
parente3d579a01805e512c7c919e56a7da5bd88a04e3c
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>
Koha/Account.pm
t/db_dependent/Koha/Account.t