Bug 31513: (QA follow-up) Keep price formatting on non-editable text fields
Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
9d02c71166
commit
c4e8f0af70
|
|
@ -327,6 +327,7 @@
|
|||
|
||||
[% MACRO jsinclude BLOCK %]
|
||||
[% INCLUDE 'datatables.inc' %]
|
||||
[% INCLUDE 'format_price.inc' %]
|
||||
[% INCLUDE 'columns_settings.inc' %]
|
||||
[% INCLUDE 'str/members-menu.inc' %]
|
||||
[% Asset.js("js/members-menu.js") | $raw %]
|
||||
|
|
@ -371,7 +372,7 @@
|
|||
var accountline = button.data('accountline');
|
||||
$('#payoutline').val(accountline);
|
||||
var amount = button.data('amount') * -1;
|
||||
$("#paid + span").replaceWith(amount);
|
||||
$("#paid + span").replaceWith(amount.format_price());
|
||||
$("#amount").attr({ "value": amount, "max": amount, "min": 0 });
|
||||
$("#amount, #payout_transaction_type").focus();
|
||||
});
|
||||
|
|
@ -385,7 +386,7 @@
|
|||
var amount = button.data('amount');
|
||||
var amountoutstanding = button.data('amountoutstanding') || 0;
|
||||
var paid = amount - amountoutstanding;
|
||||
$("#paid + span").replaceWith(paid);
|
||||
$("#paid + span").replaceWith(paid.format_price());
|
||||
$("#returned").attr({ "value": paid, "max": paid, "min": 0 });
|
||||
var member = button.data('member');
|
||||
if ( member === '' ) {
|
||||
|
|
@ -403,7 +404,7 @@
|
|||
var accountline = button.data('accountline');
|
||||
$('#discountline').val(accountline);
|
||||
var amount = button.data('amount');
|
||||
$("#charged + span").replaceWith(amount);
|
||||
$("#charged + span").replaceWith(amount.format_price());
|
||||
$("#discount").attr({ "max": amount, "min": 0 });
|
||||
$("#discount").focus();
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue