|
Lines 70-76
type_fees['[% invoice_types_loo.authorised_value %]'] = "[% invoice_types_loo.li
Link Here
|
| 70 |
<li><label for="barcode">Barcode: </label><input type="text" name="barcode" id="barcode" /></li> |
70 |
<li><label for="barcode">Barcode: </label><input type="text" name="barcode" id="barcode" /></li> |
| 71 |
<li><label for="desc">Description: </label><input type="text" name="desc" id="desc" size="50" /></li> |
71 |
<li><label for="desc">Description: </label><input type="text" name="desc" id="desc" size="50" /></li> |
| 72 |
<li><label for="note">Note: </label><input type="text" name="note" size="50" id="note" /></li> |
72 |
<li><label for="note">Note: </label><input type="text" name="note" size="50" id="note" /></li> |
| 73 |
<li><label for="amount">Amount: </label><input type="number" name="amount" id="amount" required="required" value="" step="any" min="0" /> Example: 5.00</li> |
73 |
<li><label for="amount">Amount: </label><input type="text" name="amount" id="amount" required="required"/> </li> |
| 74 |
</ol></fieldset> |
74 |
</ol></fieldset> |
| 75 |
<fieldset class="action"><input type="submit" name="add" value="Save" /> <a class="cancel" href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% borrowernumber %]">Cancel</a></fieldset> |
75 |
<fieldset class="action"><input type="submit" name="add" value="Save" /> <a class="cancel" href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% borrowernumber %]">Cancel</a></fieldset> |
| 76 |
</form> |
76 |
</form> |
|
Lines 85-88
type_fees['[% invoice_types_loo.authorised_value %]'] = "[% invoice_types_loo.li
Link Here
|
| 85 |
[% INCLUDE 'circ-menu.inc' %] |
85 |
[% INCLUDE 'circ-menu.inc' %] |
| 86 |
</div> |
86 |
</div> |
| 87 |
</div> |
87 |
</div> |
|
|
88 |
|
| 89 |
[% INCLUDE 'prices.inc' %] |
| 90 |
|
| 91 |
<script type="text/javascript"> |
| 92 |
$('#maninvoice').on('submit', function(){Check(this)}); |
| 93 |
function Check(f){ |
| 94 |
var ok=1; |
| 95 |
var _alertString=""; |
| 96 |
var alertString2; |
| 97 |
if (!(isPrice(f.amount.value))) { |
| 98 |
_alertString += "\n- " + _("Amount must be a valid number, or empty"); |
| 99 |
}else{ |
| 100 |
f.amount.value=Price_from_string(f.amount.value); |
| 101 |
} |
| 102 |
if (_alertString.length==0) { |
| 103 |
return true; |
| 104 |
} else { |
| 105 |
alertString2 = _("Form not submitted because of the following problem(s)"); |
| 106 |
alertString2 += "\n------------------------------------------------------------------------------------\n"; |
| 107 |
alertString2 += _alertString; |
| 108 |
alert(alertString2); |
| 109 |
return false; |
| 110 |
} |
| 111 |
} |
| 112 |
</script> |
| 113 |
|
| 88 |
[% INCLUDE 'intranet-bottom.inc' %] |
114 |
[% INCLUDE 'intranet-bottom.inc' %] |
| 89 |
- |
|
|