View | Details | Raw Unified | Return to bug 28283
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt (-5 / +4 lines)
Lines 309-333 Link Here
309
           </span></li>
309
           </span></li>
310
        <li><label for="quantity">Quantity received: </label>
310
        <li><label for="quantity">Quantity received: </label>
311
          [% IF order.subscriptionid %]
311
          [% IF order.subscriptionid %]
312
              <input type="text" size="20" name="quantityrec" id="quantity" value="[% order.quantity | html %]" />
312
              <input type="text" inputmode="numeric" pattern="[0-9]*" size="20" name="quantityrec" id="quantity" value="[% order.quantity | html %]" />
313
              <input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="[% order.quantityreceived | html %]" />
313
              <input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="[% order.quantityreceived | html %]" />
314
          [% ELSIF AcqCreateItem == 'receiving' %]
314
          [% ELSIF AcqCreateItem == 'receiving' %]
315
              <input readonly="readonly" type="text" size="20" name="quantityrec" id="quantity" value="0" />
315
              <input readonly="readonly" type="text" size="20" name="quantityrec" id="quantity" value="0" />
316
          [% ELSE %]
316
          [% ELSE %]
317
            [% IF ( order.quantityreceived ) %]
317
            [% IF ( order.quantityreceived ) %]
318
                [% IF ( edit ) %]
318
                [% IF ( edit ) %]
319
                    <input type="text" size="20" name="quantityrec" id="quantity" value="[% order.quantityreceived | html %]" />
319
                    <input type="text" inputmode="numeric" pattern="[0-9]*" size="20" name="quantityrec" id="quantity" value="[% order.quantityreceived | html %]" />
320
                    <input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="[% order.quantityreceived | html %]" />
320
                    <input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="[% order.quantityreceived | html %]" />
321
                [% ELSE %]
321
                [% ELSE %]
322
                    [% IF ( order.items.count ) %]
322
                    [% IF ( order.items.count ) %]
323
                        <input readonly="readonly" type="text" size="20" name="quantityrec" id="quantity" value="[% order.quantityreceived + 1 | html %]" />
323
                        <input readonly="readonly" type="text" size="20" name="quantityrec" id="quantity" value="[% order.quantityreceived + 1 | html %]" />
324
                    [% ELSE %]
324
                    [% ELSE %]
325
                        <input type="text" size="20" name="quantityrec" id="quantity" value="[% quantityreceived + 1 | html %]" />
325
                        <input type="text" inputmode="numeric" pattern="[0-9]*" size="20" name="quantityrec" id="quantity" value="[% quantityreceived + 1 | html %]" />
326
                    [% END %]
326
                    [% END %]
327
                    <input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="[% order.quantityreceived | html %]" />
327
                    <input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="[% order.quantityreceived | html %]" />
328
                [% END %]
328
                [% END %]
329
            [% ELSE %]
329
            [% ELSE %]
330
                <input type="text" id="quantity" size="20" name="quantityrec" value="1" />
330
                <input type="text" inputmode="numeric" pattern="[0-9]*" id="quantity" size="20" name="quantityrec" value="1" />
331
                <input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="0" />
331
                <input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="0" />
332
            [% END %]
332
            [% END %]
333
            <div id="qtyrecerror" style="display:none">
333
            <div id="qtyrecerror" style="display:none">
334
- 

Return to bug 28283