From 7a2601fc699bcc084cc48e53cde8465a2320a320 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Tue, 17 Feb 2026 10:20:11 +0000 Subject: [PATCH] Bug 41861: Update how cost and price_paid show 1) Enabled ILLModule 2) Create a new ILL request, set a title, '42' for cardnumber and any library: /cgi-bin/koha/ill/ill-requests.pl?method=create&backend=Standard 3) (k-t-d required, cost is not editable in UI, but backends may set it) Run the following query: koha-mysql kohadev update illrequests set cost = 1; 4) Notice cost shows, now run the same but set to 0: update illrequests set cost = 1; 5) Notice it doesn't show. 6) Apply patch. Refresh. Notice is shows '0' now. --- koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt index 237f3392f79..87b13cfd5ea 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt @@ -434,7 +434,7 @@
  • - [% IF request.cost %][% request.cost | $Price %][% ELSE %]N/A[% END %] + [% IF request.cost.defined %][% request.cost | $Price %][% ELSE %]N/A[% END %]
  • @@ -717,13 +717,13 @@ [% type_disclaimer_date | $KohaDates with_hours => 1 %]
  • [% END %] - [% IF request.cost %] + [% IF request.cost.defined %]
  • Cost: [% request.cost | $Price %]
  • [% END %] - [% IF request.price_paid %] + [% IF request.price_paid.defined %]
  • Price paid: [% request.price_paid | $Price %] -- 2.39.5