Bug 6077: qty not incremented for AcqCreateItem=recieve
authorPaul Poulain <paul.poulain@biblibre.com>
Wed, 6 Apr 2011 08:02:31 +0000 (10:02 +0200)
committerChris Cormack <chrisc@catalyst.net.nz>
Thu, 7 Apr 2011 03:35:01 +0000 (15:35 +1200)
When you want to create items on order recieve, the qty was not incremented
when the librarian adds an item with the +

This was because the js was expecting the qty field to be id=quantity

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tmpl

index 8206ec4..99d3189 100644 (file)
     <legend>Accounting details</legend>
        <ol>
        <li><label for="datereceived">Date received: </label><span class="label"> <!-- TMPL_VAR NAME="datereceived" --> </span></li>
-       <li><label for="quantity">Quantity to receive: </label><span class="label">
+       <li><label for="quantityto">Quantity to receive: </label><span class="label">
            <!-- TMPL_IF name="edit" -->
                <input type="text" name="quantity" value="<!-- TMPL_VAR NAME="quantity" -->" />
            <!-- TMPL_ELSE -->
                <input type="text" READONLY name="quantity" value="<!-- TMPL_VAR NAME="quantity" -->" />
            <!-- /TMPL_IF -->
            </span></li>
-        <li><label for="quantityrec">Quantity received: </label>
+        <li><label for="quantity">Quantity received: </label>
             <!-- TMPL_IF NAME="quantityreceived" -->
                 <!-- TMPL_IF name="edit" -->
-                    <input id="quantityrec" type="text" size="20" name="quantityrec" value="<!-- TMPL_VAR NAME="quantityreceived" -->" />
+                    <input type="text" size="20" name="quantityrec" id="quantity" value="<!-- TMPL_VAR NAME="quantityreceived" -->" />
                     <input id="origquantityrec" READONLY type="hidden" name="origquantityrec" value="<!-- TMPL_VAR NAME="quantityreceived" -->" />
                 <!-- TMPL_ELSE -->
                 <!-- TMPL_IF name="items" -->
-                    <input id="quantityrec" READONLY type="text" size="20" name="quantityrec" value="<!-- TMPL_VAR NAME="quantityreceivedplus1" -->" />
+                    <input READONLY type="text" size="20" name="quantityrec" id="quantity" value="<!-- TMPL_VAR NAME="quantityreceivedplus1" -->" />
                 <!-- TMPL_ELSE -->
-                    <input id="quantityrec" type="text" size="20" name="quantityrec" value="<!-- TMPL_VAR NAME="quantityreceivedplus1" -->" />
+                    <input type="text" size="20" name="quantityrec" id="quantity" value="<!-- TMPL_VAR NAME="quantityreceivedplus1" -->" />
                 <!-- /TMPL_IF -->
                 <input id="origquantityrec" READONLY type="hidden" name="origquantityrec" value="<!-- TMPL_VAR NAME="quantityreceived" -->" />
                 <!-- /TMPL_IF -->
             <!-- TMPL_ELSE -->
                 <!-- TMPL_IF name="items" -->
-                    <input id="quantityrec" READONLY type="text" size="20" name="quantityrec" value="1" />
+                    <input READONLY type="text" id="quantity" size="20" name="quantityrec" value="1" />
                 <!-- TMPL_ELSE -->
-                    <input id="quantityrec" type="text" size="20" name="quantityrec" value="1" />
+                    <input type="text" size="20" id="quantity" name="quantityrec" value="1" />
                 <!-- /TMPL_IF -->
                 <input id="origquantityrec" READONLY type="hidden" name="origquantityrec" value="0" />
             <!-- /TMPL_IF -->
-               <!--    <input type="text" size="20" name="quantityrec" id="quantityrec" value="<!-- TMPL_VAR NAME="quantityreceived" -->" /> --></li>
+               </li>
         <li><label for="rrp">Replacement cost: </label><input type="text" size="20" name="rrp" id="rrp" value="<!-- TMPL_VAR NAME="rrp" -->" /></li>
         <li><label for="ecost">Budgeted cost: </label><input type="text" size="20" name="ecost" id="ecost" value="<!-- TMPL_VAR NAME="ecost" -->" /></li>
         <li><label for="cost">Actual cost:</label>