use Koha::Acquisition::Orders;
use Koha::Acquisition::Baskets;
use C4::Barcodes;
-use Koha::DateUtils;
+use Koha::DateUtils q( dt_from_string );
### "-------------------- addorder.pl ----------"
template_name => 'acqui/moddeliverydate.tt',
query => $input,
type => 'intranet',
- flagsrequired => { 'acquisition' => '*' },
+ flagsrequired => { 'acquisition' => 'order_manage' },
debug => 1,
} );
<td data-order="[% estimated_delivery_date | html %]">
<p class="delivery_date">
<span id="delivery_date_[% estimated_delivery_date | html %]">[% estimated_delivery_date | $KohaDates %]</span>
- <a class="edit_delivery_date noExport" data-ordernumber="[% lateorder.ordernumber | html %]" href="/cgi-bin/koha/acqui/moddeliverydate.pl?ordernumber=[% lateorder.ordernumber | html %]" title="Edit delivery date">
- <i class="fa fa-pencil"></i> Edit
- </a>
+ [% IF CAN_user_acquisition_order_manage %]
+ <a class="edit_delivery_date noExport" data-ordernumber="[% lateorder.ordernumber | html %]" href="/cgi-bin/koha/acqui/moddeliverydate.pl?ordernumber=[% lateorder.ordernumber | html %]" title="Edit delivery date">
+ <i class="fa fa-pencil"></i> Edit
+ </a>
+ [% END %]
</p>
</td>
<td>
</tbody>
<tfoot>
<tr>
- <th colspan="7">Total</th>
+ <th colspan="6">Total</th>
<th>[% total_quantity | html %]</th>
<th>[% total | $Price %]</th>
<th colspan="10"> </th>
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
-<title>Koha › Acquisition ›
- Change estimated delivery date
-</title>
+<title>Change estimated delivery date › Acquisitions › Koha</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>
<body id="acq_moddeliverydate" class="acq">
[% INCLUDE 'header.inc' %]
-<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisition</a> › <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | html %]">[% booksellername | html %]</a> › <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno | html %]">Basket [% basketname | html %] ([% basketno | html %])</a> › Change estimated delivery date</div>
+<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
+ <ol>
+ <li>
+ <a href="/cgi-bin/koha/mainpage.pl">Home</a>
+ </li>
+ <li>
+ <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisition</a>
+ </li>
+ <li>
+ <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | html %]">[% booksellername | html %]</a>
+ </li>
+ <li>
+ <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno | html %]">Basket [% basketname | html %] ([% basketno | html %])</a>
+ </li>
+ <li>
+ <a href="#" aria-current="page">Change estimated delivery date</a>
+ </li>
+ </ol>
+</nav>
<div class="main container-fluid">
<div class="row">