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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/decimal-input-js.inc (-1 / +1 lines)
Lines 42-47 var decimal = (function() { Link Here
42
42
43
// equivalent of $(document).ready, jQuery hasn't load yet so vanilla JS version
43
// equivalent of $(document).ready, jQuery hasn't load yet so vanilla JS version
44
document.addEventListener("DOMContentLoaded", function() {
44
document.addEventListener("DOMContentLoaded", function() {
45
    $(".decimal-unformating").on("change", function() {decimal.handler_unformat_input(this)});
45
    $(".decimal-unformatting").on("change", function() {decimal.handler_unformat_input(this)});
46
});
46
});
47
</script>
47
</script>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/mancredit.tt (-1 / +1 lines)
Lines 42-48 Link Here
42
	<li><label for="barcode">Barcode: </label><input type="text" name="barcode" id="barcode" /></li>
42
	<li><label for="barcode">Barcode: </label><input type="text" name="barcode" id="barcode" /></li>
43
	<li><label for="desc">Description: </label><input type="text" name="desc" size="50" id="desc" /></li>
43
	<li><label for="desc">Description: </label><input type="text" name="desc" size="50" id="desc" /></li>
44
    <li><label for="note">Note: </label><input type="text" name="note" size="50" id="note" /></li>
44
    <li><label for="note">Note: </label><input type="text" name="note" size="50" id="note" /></li>
45
    <li><label for="amount">Amount: </label><input name="amount" id="amount" class="decimal-unformating" required="required" /> <span>Example:</span> 5[% Koha.Preference('DecimalSeparators') | truncate(1, '') %]12</li>
45
    <li><label for="amount">Amount: </label><input name="amount" id="amount" class="decimal-unformatting" required="required" /> <span>Example:</span> 5[% Koha.Preference('DecimalSeparators') | truncate(1, '') %]12</li>
46
46
47
</ol></fieldset>
47
</ol></fieldset>
48
48
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/maninvoice.tt (-1 / +1 lines)
Lines 54-60 Link Here
54
	<li><label for="barcode">Barcode: </label><input type="text" name="barcode" id="barcode" /></li>
54
	<li><label for="barcode">Barcode: </label><input type="text" name="barcode" id="barcode" /></li>
55
	<li><label for="desc">Description: </label><input type="text" name="desc" id="desc" size="50" /></li>
55
	<li><label for="desc">Description: </label><input type="text" name="desc" id="desc" size="50" /></li>
56
    <li><label for="note">Note: </label><input type="text" name="note" size="50" id="note" /></li>
56
    <li><label for="note">Note: </label><input type="text" name="note" size="50" id="note" /></li>
57
    <li><label for="amount">Amount: </label><input name="amount" id="amount" class="decimal-unformating" required="required" /> <span>Example:</span> 5[% Koha.Preference('DecimalSeparators') | truncate(1, '') %]12</li>
57
    <li><label for="amount">Amount: </label><input name="amount" id="amount" class="decimal-unformatting" required="required" /> <span>Example:</span> 5[% Koha.Preference('DecimalSeparators') | truncate(1, '') %]12</li>
58
	</ol></fieldset>
58
	</ol></fieldset>
59
<fieldset class="action"><input type="submit" name="add" value="Save" /> <a class="cancel" href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber %]">Cancel</a></fieldset>
59
<fieldset class="action"><input type="submit" name="add" value="Save" /> <a class="cancel" href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber %]">Cancel</a></fieldset>
60
</form>
60
</form>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt (-4 / +3 lines)
Lines 85-91 Link Here
85
    <li>
85
    <li>
86
        <label for="paid">Collect from patron: </label>
86
        <label for="paid">Collect from patron: </label>
87
            <!-- default to paying all -->
87
            <!-- default to paying all -->
88
        <input name="paid" id="paid" class="decimal-unformating" value="[% amountoutstanding %]" />
88
        <input name="paid" id="paid" class="decimal-unformatting" value="[% amountoutstanding %]" />
89
    </li>
89
    </li>
90
    [% SET payment_types = AuthorisedValues.GetAuthValueDropbox('PAYMENT_TYPE') %]
90
    [% SET payment_types = AuthorisedValues.GetAuthValueDropbox('PAYMENT_TYPE') %]
91
    [% IF payment_types %]
91
    [% IF payment_types %]
Lines 139-145 Link Here
139
                <li>
139
                <li>
140
                    <label for="paid">Writeoff amount: </label>
140
                    <label for="paid">Writeoff amount: </label>
141
                    <!-- default to writing off all -->
141
                    <!-- default to writing off all -->
142
                    <input name="amountwrittenoff" id="amountwrittenoff" class="decimal-unformating" value="[% amountoutstanding %]" />
142
                    <input name="amountwrittenoff" id="amountwrittenoff" class="decimal-unformatting" value="[% amountoutstanding %]" />
143
                </li>
143
                </li>
144
            </ol>
144
            </ol>
145
        </fieldset>
145
        </fieldset>
Lines 164-170 Link Here
164
    <li>
164
    <li>
165
        <label for="paid">Collect from patron: </label>
165
        <label for="paid">Collect from patron: </label>
166
        <!-- default to paying all -->
166
        <!-- default to paying all -->
167
        <input name="paid" id="paid" class="decimal-unformating" value="[% total | format('%.2f') %]" />
167
        <input name="paid" id="paid" class="decimal-unformatting" value="[% total | format('%.2f') %]" />
168
    </li>
168
    </li>
169
    [% SET payment_types = AuthorisedValues.GetAuthValueDropbox('PAYMENT_TYPE') %]
169
    [% SET payment_types = AuthorisedValues.GetAuthValueDropbox('PAYMENT_TYPE') %]
170
    [% IF payment_types %]
170
    [% IF payment_types %]
171
- 

Return to bug 12310