X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=koha-tmpl%2Fintranet-tmpl%2Fprog%2Fen%2Fmodules%2Facqui%2Fneworderempty.tmpl;h=0eacf1972ed38ce3188cda3a783fd34e45cbcd40;hb=36efd0d4d0cfe5bbdcd9a4b48e0e417a59aaa63a;hp=53c0474454cc74caf337ca753c7e2235135263f2;hpb=1e98195b1014f9b0680be9d6ea9e8e8132821158;p=koha.git diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tmpl index 53c0474454..0eacf1972e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tmpl @@ -18,6 +18,11 @@ function Check(ff) { ok=1; _alertString += "\n- " + _("Title cannot be empty"); } + + if(isNull(ff.budget_id,1)){ + ok=1; + _alertString += "\n- "+ _("You must select a budget"); + } if (!(isNum(ff.quantity,0))){ ok=1; @@ -64,7 +69,39 @@ 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; + } + }); + + + $('#showallbudgets').click(function() { + if ( $('#budget_id .b_inactive').is(":visible") ) + { + $('#budget_id .b_inactive').hide(); + } + else { + $('#budget_id .b_inactive').show(); + } + }); + }); //]]> @@ -83,7 +120,7 @@ ff.submit();

- Modify order details (line #) + Modify order line New order @@ -132,7 +169,12 @@ ff.submit();
- Catalog details + + Catalog details + + "> Edit record + + @@ -143,7 +185,7 @@ ff.submit(); " /> " /> " /> - " /> +" />--> " /> " /> " /> @@ -151,7 +193,7 @@ ff.submit(); " /> - " value="" /> + " name="" value="" />
  1. @@ -273,20 +315,35 @@ ff.submit(); - + + + + +
  2. +
  3. + + Currency: + " /> + + + + +
  4. Vendor price: " /> - " onchange="calcNeworderTotal()" /> (entered as ) - + " onchange="calcNeworderTotal()" />
  5. @@ -350,10 +407,10 @@ ff.submit();
  6. - +
  7. The 2 following fields are available for your own usage. They can be useful for statistical purposes
    - + @@ -363,7 +420,7 @@ ff.submit();
  8. - +