Bug 15202: Fix date display when transferring an order
authorKatrin Fischer <Katrin.Fischer.83@web.de>
Sun, 22 Nov 2015 01:31:10 +0000 (02:31 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 11 Dec 2015 16:22:54 +0000 (16:22 +0000)
The date a basket was created was not displayed
according to the dateformat system preference.

Also fixes wording of the message shown when there
are no baskets for a chosen vendor.

To test:
- Create an order with an order line
- Click on the "Transfer" link on the basket
  summary page
- Search for a vendor without open baskets
- Verify change of message shown:
  "There are no open baskets for this vendor."
- Choose another vendor with open baskets
- Verify the creation date of the basket is
  displayed correctly formatted.

Followed test plan, works as expected.
Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/transferorder.tt

index 261d658..68e76e4 100644 (file)
@@ -1,5 +1,6 @@
 [% INCLUDE 'doc-head-open.inc' %]
 <title>Koha &rsaquo; Acquisitions &rsaquo; Transfer order</title>
+[%- USE KohaDates -%]
 [% INCLUDE 'doc-head-close.inc' %]
     <style type="text/css">
     #custom-doc { width:44.46em;*width:43.39em;min-width:578px; margin:auto; text-align:left; }
                           <tr>
                             <td>[% basket.basketname %] (#[% basket.basketno %])</td>
                             <td>[% basket.createdby %]</td>
-                            <td>[% basket.creationdate %]</td>
+                            <td>[% basket.creationdate | $KohaDates %]</td>
                             <td><a href="transferorder.pl?basketno=[% basket.basketno %]&ordernumber=[% ordernumber %]" onclick="return confirmtransfer();">Choose</a>
                           </tr>
                         [% END %]
                     </tbody>
                 </table>
             [% ELSE %]
-                <p>There is no open baskets for this supplier.</p>
+                <p>There are no open baskets for this vendor.</p>
             [% END %]
         [% END %]
         [% IF ( ordersloop ) %]