Lines 43-64
Link Here
|
43 |
<ol> |
43 |
<ol> |
44 |
<li> |
44 |
<li> |
45 |
<label for="type">Type: </label> |
45 |
<label for="type">Type: </label> |
46 |
<select name="type" id="invoice_type"> |
46 |
<select name="type" id="type"> |
47 |
<option value="L">Lost item</option> |
47 |
[% FOREACH debit_type IN debit_types %] |
48 |
<option value="F">Fine</option> |
48 |
<option value="[% debit_type.type_code %]">[% debit_type.description %]</option> |
49 |
<option value="A">Account management fee</option> |
|
|
50 |
<option value="N">New card</option> |
51 |
<option value="M">Sundry</option> |
52 |
[% FOREACH invoice_types_loo IN invoice_types_loop %] |
53 |
<option value="[% invoice_types_loo.authorised_value | html %]">[% invoice_types_loo.authorised_value | html %]</option> |
54 |
[% END %] |
49 |
[% END %] |
55 |
</select> |
50 |
</select> |
56 |
</li> |
51 |
</li> |
57 |
<li><label for="barcode">Barcode: </label><input type="text" name="barcode" id="barcode" /></li> |
52 |
<li><label for="barcode">Barcode: </label><input type="text" name="barcode" id="barcode" /></li> |
58 |
<li><label for="desc">Description: </label><input type="text" name="desc" id="desc" size="50" /></li> |
53 |
<li><label for="desc">Description: </label><input type="text" name="desc" id="desc" size="50" /></li> |
59 |
<li><label for="note">Note: </label><input type="text" name="note" size="50" id="note" /></li> |
54 |
<li><label for="note">Note: </label><input type="text" name="note" size="50" id="note" /></li> |
60 |
<li><label for="amount">Amount: </label><input type="number" name="amount" id="amount" required="required" value="" step="any" min="0" /> Example: 5.00</li> |
55 |
<li><label for="amount">Amount: </label><input type="number" name="amount" id="amount" required="required" value="" step="any" min="0" /> Example: 5.00</li> |
61 |
</ol></fieldset> |
56 |
</ol> |
|
|
57 |
</fieldset> |
62 |
<fieldset class="action"><input type="submit" name="add" value="Save" /> <a class="cancel" href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber | html %]">Cancel</a></fieldset> |
58 |
<fieldset class="action"><input type="submit" name="add" value="Save" /> <a class="cancel" href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber | html %]">Cancel</a></fieldset> |
63 |
</form> |
59 |
</form> |
64 |
|
60 |
|
Lines 90-97
Link Here
|
90 |
this.form.desc.value = this.options[this.selectedIndex].value; |
86 |
this.form.desc.value = this.options[this.selectedIndex].value; |
91 |
this.form.amount.value = type_fees[this.options[this.selectedIndex].value]; |
87 |
this.form.amount.value = type_fees[this.options[this.selectedIndex].value]; |
92 |
}); |
88 |
}); |
|
|
89 |
$("#maninvoice #desc").val($("#maninvoice #type option:selected").text()); |
90 |
$("#maninvoice #amount").val(type_fees[$("#maninvoice #type option:selected").val()]); |
91 |
$("#maninvoice #type").change(function(){ |
92 |
$("#maninvoice #desc").val($(this).find("option:selected").text()); |
93 |
$("#maninvoice #amount").val(type_fees[$(this).val()]); |
94 |
}); |
93 |
}); |
95 |
}); |
94 |
</script> |
96 |
</script> |
95 |
[% END %] |
97 |
[% END %] |
96 |
|
98 |
|
|
|
99 |
|
97 |
[% INCLUDE 'intranet-bottom.inc' %] |
100 |
[% INCLUDE 'intranet-bottom.inc' %] |