]> git.koha-community.org Git - koha.git/commit
Bug 23426: Add fine items to patron information response in SIP2
authorJan Kissig <jkissig@th-wildau.de>
Thu, 25 Apr 2024 09:13:55 +0000 (11:13 +0200)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 18 Dec 2024 13:29:35 +0000 (14:29 +0100)
commitc7df4b49434d000c4cf43283f4abc26fedb6f2e8
tree4851a3e33eea9eb873dc77330fd12ebe7890ecbe
parent2b785e30d364ca1dae80013d67a31c0031f181ef
Bug 23426: Add fine items to patron information response in SIP2

This patch adds fine items (AV) to patron information response in SIP2
In addition the active currency we be part of the response (BH)
This also fixes the number of items in the response which are specified in BP and BQ in the request

to test:
a) create a manual invoice for patron 23529000035676 : http://localhost:8081/cgi-bin/koha/members/maninvoice.pl?borrowernumber=19
b) in ktd call: perl /usr/share/koha/bin/sip_cli_emulator.pl -a 127.0.0.1 -p 6001 -su term1 -sp term1   -l CPL --patron 23529000035676 -m patron_information -s "      Y   "
c) verify that no |AV field is in response
d) apply patch
e) in ktd call: perl /usr/share/koha/bin/sip_cli_emulator.pl -a 127.0.0.1 -p 6001 -su term1 -sp term1   -l CPL --patron 23529000035676 -m patron_information -s "      Y   "
f) verify that response includes fields like '|AVManual fee '

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
[EDIT] Tidied inline
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 1d80470105e709e729a41ff52512dbcfd2992c69)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit d140000c989ee9ff09f7ba05003c7becd036c66d)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/SIP/ILS/Patron.pm
C4/SIP/Sip/MsgType.pm