forked from DGNum/gestioCOF
Affichage COF/Non-COF K-Psul
This commit is contained in:
parent
47146a2ced
commit
2cc488a710
|
@ -164,9 +164,14 @@ $(document).ready(function() {
|
||||||
var balance = account_data['trigramme'] != 'LIQ' ? account_data['balance'] : '';
|
var balance = account_data['trigramme'] != 'LIQ' ? account_data['balance'] : '';
|
||||||
if (balance != '')
|
if (balance != '')
|
||||||
balance = amountToUKF(account_data['balance'], account_data['is_cof']);
|
balance = amountToUKF(account_data['balance'], account_data['is_cof']);
|
||||||
|
var is_cof = account_data['trigramme'] ? account_data['is_cof'] : '';
|
||||||
|
if (is_cof !== '')
|
||||||
|
is_cof = is_cof ? '<b>COF</b>' : '<b>Non-COF</b>';
|
||||||
for (var elem in account_data) {
|
for (var elem in account_data) {
|
||||||
if (elem == 'balance') {
|
if (elem == 'balance') {
|
||||||
$('#account-balance').text(balance);
|
$('#account-balance').text(balance);
|
||||||
|
} else if (elem == 'is_cof') {
|
||||||
|
$('#account-is_cof').html(is_cof);
|
||||||
} else {
|
} else {
|
||||||
$('#account-'+elem).text(account_data[elem]);
|
$('#account-'+elem).text(account_data[elem]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue