From ca232c1de5290fef1f0d398e556763e05d41d6a0 Mon Sep 17 00:00:00 2001 From: Mathieu Saby Date: Thu, 17 Apr 2014 20:28:15 +0200 Subject: [PATCH] Bug 10869: Followup : update the receipt page (parcel.tt) (Fixed after test by Lyon3 : a bad name was used for a variable. Now "Deleted record..." should NOT be displayed if the record has not been deleted) In main patch, I forgot to made some changes in the parcel.tt page This patch fixes that bu giving the librarian the ability to cancel an order in receipt page if the record is deleted. It also displays the message "Deleted bibliographic record, can't find title" in Summary Note that this behavior will be improved by bug 10758 To test : - create a basket and an order - delete the record used by that order - go on receipt page - in the line matching this order, you should see instead of the title "Deleted bibliographic record, can't find title" - click on "Delete order" : you should be able to delete the order - go to the basket, to check the order was properly cancelled - in receipt page, try to delete an other order (always linked to a record), to be sure there is no regression --- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt index 1980e93b84..6c5d3f9805 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt @@ -140,7 +140,11 @@ [% loop_order.ordernumber | html %] + [% IF (loop_order.biblionumber) %] [% loop_order.title | html %] + [% ELSE %] + Deleted bibliographic record, can't find title
+ [% END %] [% IF ( loop_order.author ) %] by [% loop_order.author | html %][% END %] [% IF ( loop_order.isbn ) %] – [% loop_order.isbn | html %][% END %] [% IF ( loop_order.publishercode ) %] @@ -182,6 +186,9 @@ Transfer + [% UNLESS (books_loo.biblionumber) %] + Delete order
+ [% ELSE %] [% IF ( loop_order.left_holds_on_order ) %] Can't cancel order
[% ELSE %] @@ -204,6 +211,7 @@ [% IF ( loop_order.left_holds ) %] [% loop_order.holds | html %] hold(s) left [% END %] + [% END %] [% END %] -- 2.11.0