Bug 24389: Better error handle when claiming late orders
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 16 Dec 2019 16:15:19 +0000 (17:15 +0100)
committerHayley Mapley <hayleymapley@catalyst.net.nz>
Tue, 17 Mar 2020 21:32:29 +0000 (10:32 +1300)
commite4e45fab6cae6f46db5643c2fa8f150067954e63
tree10ce0656a74f02efe5c68c90cb183177156598b7
parent41213f62d4e4b9940ef5a0e808dd4299124379a5
Bug 24389: Better error handle when claiming late orders

A successful message says that the email has been sent and the order has
been claimed, but nothing happened.

Test plan:
0. Do not apply this patch
1. Create a new vendor, does not create a contact
2. Create some orders, close the basket
3. Go to the late orders page and claims some orders
=> You get a successful message, but the claim has not been done!
4. Apply this patch
5. Claim the orders
=> You get an error
6. Set a contact for the vendor
7. Claim the orders
=> Success

In the docker container, you may need to:
% apt install postfix
% postfix start
Edit /etc/hosts
127.0.0.1       localhost localhost.localdomain

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
(cherry picked from commit c2c7c6e754c0cf44ce0f99798f5115731a61868e)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 5bccfa152ab90183e84b7e5b03536b05efc71abd)
Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz>
acqui/lateorders.pl