Bug 8230: (follow-up) fix detection of cancelled orders
authorGalen Charlton <gmc@esilibrary.com>
Fri, 13 Dec 2013 23:19:55 +0000 (23:19 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 13 Dec 2013 23:23:31 +0000 (23:23 +0000)
This patch fixes a problem where the quantity / items column
in the acquisitions detail table would display ilnks to
items for cancelled orders.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt

index 612532b..0a44dbf 100644 (file)
@@ -831,7 +831,7 @@ function verify_images() {
       <thead>
         <tr>
           <th>Basket</th>
-          <th>Ordernumber</th>
+          <th>Order number</th>
           <th>Creation date</th>
           <th>Receive date</th>
           <th>Status</th>
@@ -860,7 +860,7 @@ function verify_images() {
             </td>
             <td>
               [% order.quantity %]
-              [% IF order.itemnumbers.size > 0 && order.orderstatus != '4' %]
+              [% IF order.itemnumbers.size > 0 && order.orderstatus != 'cancelled' %]
                 (
                   [% FOR itemnumber IN order.itemnumbers %]
                     <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% biblionumber %]#item[% itemnumber %]">[% itemnumber %]</a>