Koha-clms/t/db_dependent/SIP
Matthias Meusburger 72fae3a9c9
Bug 25813: Enhance patron expiration in SIP display
Currently, the patron information returned by SIP only shows
 "PATRON EXPIRED" when the patron card has expired.

 This patch makes the display more consistant with the Opac display
 and also complies with the NotifyBorrowerDeparture system preference.

 Test plan:

  - apply the patch

  - set NotifyBorrowerDeparture to 0

  - check that nothing is ever displayed about the card expiration

  - set NotifyBorrowerDeparture to a value greater than 0

  - check that the following message will be displayed for a card that will
    expire within NotifyBorrowerDeparture days:
    "Your card will expire on {correctly formatted date}"

  - check that the following message will be displayed for a card that has
    expired:
    "Your account has expired as of {correctly formatted date}"

 You can use src/C4/SIP/interactive_patron_dump.pl for easier testing.

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-03-22 15:07:31 +01:00
..
ILS.t Bug 32496: Fix tests 2023-09-22 12:35:47 -03:00
Message.t Bug 35461: Add unit tests 2024-01-26 15:13:56 +01:00
Patron.t Bug 25813: Enhance patron expiration in SIP display 2024-03-22 15:07:31 +01:00
SIPServer.t Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
Transaction.t Bug 34868: (QA follow-up) Rename new option, add comments 2023-11-10 10:59:38 -03:00