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 45-51 Link Here
45
	<li><label for="barcode">Barcode: </label><input type="text" name="barcode" id="barcode" /></li>
45
	<li><label for="barcode">Barcode: </label><input type="text" name="barcode" id="barcode" /></li>
46
	<li><label for="desc">Description: </label><input type="text" name="desc" size="50" id="desc" /></li>
46
	<li><label for="desc">Description: </label><input type="text" name="desc" size="50" id="desc" /></li>
47
    <li><label for="note">Note: </label><input type="text" name="note" size="50" id="note" /></li>
47
    <li><label for="note">Note: </label><input type="text" name="note" size="50" id="note" /></li>
48
    <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>
48
    <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>
49
49
50
</ol></fieldset>
50
</ol></fieldset>
51
51
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/maninvoice.tt (-1 / +1 lines)
Lines 57-63 Link Here
57
	<li><label for="barcode">Barcode: </label><input type="text" name="barcode" id="barcode" /></li>
57
	<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>
58
	<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>
59
    <li><label for="note">Note: </label><input type="text" name="note" size="50" id="note" /></li>
60
    <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>
60
    <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>
61
	</ol></fieldset>
61
	</ol></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>
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>
63
</form>
63
</form>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt (-4 / +3 lines)
Lines 101-107 Link Here
101
    <li>
101
    <li>
102
        <label for="paid">Collect from patron: </label>
102
        <label for="paid">Collect from patron: </label>
103
            <!-- default to paying all -->
103
            <!-- default to paying all -->
104
        <input name="paid" id="paid" class="decimal-unformating" value="[% amountoutstanding | html %]" />
104
        <input name="paid" id="paid" class="decimal-unformatting" value="[% amountoutstanding | html %]" />
105
    </li>
105
    </li>
106
    [% SET payment_types = AuthorisedValues.GetAuthValueDropbox('PAYMENT_TYPE') %]
106
    [% SET payment_types = AuthorisedValues.GetAuthValueDropbox('PAYMENT_TYPE') %]
107
    [% IF payment_types %]
107
    [% IF payment_types %]
Lines 157-163 Link Here
157
                <li>
157
                <li>
158
                    <label for="paid">Writeoff amount: </label>
158
                    <label for="paid">Writeoff amount: </label>
159
                    <!-- default to writing off all -->
159
                    <!-- default to writing off all -->
160
                    <input name="amountwrittenoff" id="amountwrittenoff" class="decimal-unformating" value="[% amountoutstanding | $Price on_editing => 1 | html %]" />
160
                    <input name="amountwrittenoff" id="amountwrittenoff" class="decimal-unformatting" value="[% amountoutstanding | $Price on_editing => 1 | html %]" />
161
                </li>
161
                </li>
162
            </ol>
162
            </ol>
163
        </fieldset>
163
        </fieldset>
Lines 198-204 Link Here
198
            <label for="paid">Collect from patron: </label>
198
            <label for="paid">Collect from patron: </label>
199
        [% END %]
199
        [% END %]
200
        <!-- default to paying all -->
200
        <!-- default to paying all -->
201
        <input name="paid" id="paid" class="decimal-unformating" value="[% total | format('%.2f') %]" />
201
        <input name="paid" id="paid" class="decimal-unformatting" value="[% total | format('%.2f') %]" />
202
    </li>
202
    </li>
203
    [% SET payment_types = AuthorisedValues.GetAuthValueDropbox('PAYMENT_TYPE') %]
203
    [% SET payment_types = AuthorisedValues.GetAuthValueDropbox('PAYMENT_TYPE') %]
204
    [% IF payment_types %]
204
    [% IF payment_types %]
205
- 

Return to bug 12310