@@ -, +, @@ permissions --- acqui/addorder.pl | 2 +- acqui/moddeliverydate.pl | 2 +- .../prog/en/modules/acqui/lateorders.tt | 10 ++++---- .../prog/en/modules/acqui/moddeliverydate.tt | 24 +++++++++++++++---- 4 files changed, 28 insertions(+), 10 deletions(-) --- a/acqui/addorder.pl +++ a/acqui/addorder.pl @@ -137,7 +137,7 @@ use Koha::Acquisition::Currencies qw( get_active ); use Koha::Acquisition::Orders; use Koha::Acquisition::Baskets; use C4::Barcodes; -use Koha::DateUtils; +use Koha::DateUtils q( dt_from_string ); ### "-------------------- addorder.pl ----------" --- a/acqui/moddeliverydate.pl +++ a/acqui/moddeliverydate.pl @@ -43,7 +43,7 @@ my ($template, $loggedinuser, $cookie, $flags) = get_template_and_user( { template_name => 'acqui/moddeliverydate.tt', query => $input, type => 'intranet', - flagsrequired => { 'acquisition' => '*' }, + flagsrequired => { 'acquisition' => 'order_manage' }, debug => 1, } ); --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt @@ -110,9 +110,11 @@
[% estimated_delivery_date | $KohaDates %] - - Edit - + [% IF CAN_user_acquisition_order_manage %] + + Edit + + [% END %]