From 89fc2807a18915363ee24d1dd5ea6e681c7108b6 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 22 Jan 2020 16:19:13 +0100 Subject: [PATCH] Bug 20212: Display correct number of items --- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 7312c7f467..2e0f76cab4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt @@ -715,7 +715,7 @@ + _("Cancel order") + '
'; } - if ( row.items.length > 0 ) { + if ( row.biblio.items_count - row.items.length > 0 ) { result += '' + (row.biblio.items_count - row.items.length) + _(" item(s) left") + '
'; -- 2.11.0