Affichage COF/Non-COF K-Psul

This commit is contained in:
Aurélien Delobelle 2016-09-03 17:51:12 +02:00
parent 47146a2ced
commit 2cc488a710

View file

@ -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]);
}