Lines 43-54
function Check(ff) {
Link Here
|
43 |
_alertString += "\n- "+ _("You must select a fund"); |
43 |
_alertString += "\n- "+ _("You must select a fund"); |
44 |
} |
44 |
} |
45 |
|
45 |
|
46 |
[% UNLESS basket.is_standing %] |
|
|
47 |
if (!(isNum(ff.quantity,0)) || ff.quantity.value == 0){ |
46 |
if (!(isNum(ff.quantity,0)) || ff.quantity.value == 0){ |
48 |
ok=1; |
47 |
ok=1; |
49 |
_alertString += "\n- " + _("Quantity must be greater than '0'"); |
48 |
_alertString += "\n- " + _("Quantity must be greater than '0'"); |
50 |
} |
49 |
} |
51 |
[% END %] |
|
|
52 |
|
50 |
|
53 |
if (!(isNum(ff.listprice,0))){ |
51 |
if (!(isNum(ff.listprice,0))){ |
54 |
ok=1; |
52 |
ok=1; |
Lines 415-421
$(document).ready(function()
Link Here
|
415 |
</fieldset> |
413 |
</fieldset> |
416 |
[% END %] |
414 |
[% END %] |
417 |
|
415 |
|
418 |
[% UNLESS subscriptionid %][% # it is a suggestion, we have not items %] |
416 |
[% UNLESS subscriptionid || basket.is_standing %][% # it is a suggestion, we have not items %] |
419 |
[% IF (AcqCreateItemOrdering) %] |
417 |
[% IF (AcqCreateItemOrdering) %] |
420 |
|
418 |
|
421 |
<div id="items_list" style="display:none"> |
419 |
<div id="items_list" style="display:none"> |
Lines 461-492
$(document).ready(function()
Link Here
|
461 |
<fieldset class="rows"> |
459 |
<fieldset class="rows"> |
462 |
<legend>Accounting details</legend> |
460 |
<legend>Accounting details</legend> |
463 |
<ol> |
461 |
<ol> |
464 |
[% UNLESS basket.is_standing %] |
462 |
<li> |
465 |
<li> |
463 |
[% IF ( close ) %] |
466 |
[% IF ( close ) %] |
464 |
<span class="label required">Quantity: </span> |
467 |
<span class="label required">Quantity: </span> |
465 |
<input type="hidden" name="quantity" value="[% quantity %]" />[% quantity %] |
468 |
<input type="hidden" name="quantity" value="[% quantity %]" />[% quantity %] |
466 |
[% ELSE %] |
|
|
467 |
<label class="required" for="quantity">Quantity: </label> |
468 |
[% IF (AcqCreateItemOrdering) %] |
469 |
[% IF subscriptionid || basket.is_standing %] |
470 |
<input type="text" readonly="readonly" size="20" id="quantity" name="quantity" value="1" /> |
471 |
[% ELSE %] |
472 |
<input type="text" readonly="readonly" size="20" id="quantity" name="quantity" value="0" /> |
473 |
[% END %] |
469 |
[% ELSE %] |
474 |
[% ELSE %] |
470 |
<label class="required" for="quantity">Quantity: </label> |
475 |
[% IF subscriptionid || basket.is_standing %] |
471 |
[% IF (AcqCreateItemOrdering) %] |
476 |
<input type="text" readonly="readonly" size="20" id="quantity" name="quantity" value="1" /> |
472 |
[% IF subscriptionid %] |
|
|
473 |
<input type="text" readonly="readonly" size="20" id="quantity" name="quantity" value="1" /> |
474 |
[% ELSE %] |
475 |
<input type="text" readonly="readonly" size="20" id="quantity" name="quantity" value="0" /> |
476 |
[% END %] |
477 |
[% ELSE %] |
477 |
[% ELSE %] |
478 |
[% IF subscriptionid %] |
478 |
<input type="text" size="20" id="quantity" name="quantity" value="[% quantityrec %]" onchange="updateCosts();" /> |
479 |
<input type="text" readonly="readonly" size="20" id="quantity" name="quantity" value="1" /> |
|
|
480 |
[% ELSE %] |
481 |
<input type="text" size="20" id="quantity" name="quantity" value="[% quantityrec %]" onchange="updateCosts();" /> |
482 |
[% END %] |
483 |
[% END %] |
479 |
[% END %] |
484 |
<span class="required">Required</span> |
|
|
485 |
[% END %] |
480 |
[% END %] |
486 |
<!-- origquantityrec only here for javascript compatibility (additem.js needs it, useless here, usefull when receiveing an order --> |
481 |
<span class="required">Required</span> |
487 |
<input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="1" /> |
482 |
[% END %] |
488 |
</li> |
483 |
<!-- origquantityrec only here for javascript compatibility (additem.js needs it, useless here, usefull when receiveing an order --> |
489 |
[% END %] |
484 |
<input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="1" /> |
|
|
485 |
</li> |
490 |
<li> |
486 |
<li> |
491 |
[% IF ( close ) %] |
487 |
[% IF ( close ) %] |
492 |
<span class="label required">Fund: </span> |
488 |
<span class="label required">Fund: </span> |