@@ -, +, @@ Modify - syspref AcqCreateItem : create items on RECEIVING - in a basket, create an order (quantity = 1) - save the order - reopen the order - change the quantity (2 instead of 1) - save the order - syspref AcqCreateItem : create items on CATALOGING - in a basket, create an order (quantity = 1) - save the order - reopen the order - change the quantity (2 instead of 1) - save the order - syspref AcqCreateItem : create items on ORDERING - in a basket, create an order (click on "add" to add an item => quantity = 1) - save the order - reopen the order - try to change the quantity (2 instead of 1), without clicking on "add" to create a new item => you cannot (alert message) --- acqui/neworderempty.pl | 1 + .../prog/en/modules/acqui/neworderempty.tt | 2 ++ 2 files changed, 3 insertions(+) --- a/acqui/neworderempty.pl +++ a/acqui/neworderempty.pl @@ -414,6 +414,7 @@ $template->param( barcode_subfield => $barcode_subfield, import_batch_id => $import_batch_id, subscriptionid => $subscriptionid, + acqcreate => C4::Context->preference("AcqCreateItem") eq "ordering" ? 1 : "", (uc(C4::Context->preference("marcflavour"))) => 1 ); --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt @@ -129,6 +129,7 @@ $(document).ready(function() //We apply the fonction only for modify option [% IF ( quantityrec ) %] + [% IF ( acqcreate ) %] $('#quantity').blur(function() { // if user decreases the quantity @@ -148,6 +149,7 @@ $(document).ready(function() } }); [% END %] + [% END %] //keep a copy of all budgets before removing the inactives disabledBudgetsCopy = $('#budget_id').html(); --