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