@@ -, +, @@ - changed the the link from 'Edit Catalog' to 'Edit record' (like on result list) - changed position of 'Edit record' to be shown behind the label 'Catalog details' instead of showing behind the Title. --- .../prog/en/modules/acqui/neworderempty.tmpl | 38 ++++++++++++++++---- 1 files changed, 31 insertions(+), 7 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tmpl +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tmpl @@ -63,8 +63,29 @@ if (ok) { ff.submit(); } - - +$(document).ready(function() + { + //We apply the fonction only for modify option + + $('#quantity').blur(function() + { + // if user decreases the quantity + if($(this).val() < ) + { + alert("You have deleted item(s) in the order, don't forget to delete it(them) in the catalog"); + return true; + } + else + { + // if user increases the quantity + alert("You can't add a new item, please create a new order line"); + // and we replace the original value + $(this).val() + return false; + } + }); + + }); //]]> @@ -83,7 +104,7 @@ ff.submit();

- Modify order details (line #) + Modify order line New order @@ -132,7 +153,10 @@ ff.submit();
- Catalog details + + Catalog details + "> Edit record + @@ -361,10 +385,10 @@ ff.submit();
  • - +
  • The 2 following fields are available for your own usage. They can be useful for statistical purposes
    - + @@ -374,7 +398,7 @@ ff.submit();
  • - + --