[FIX] show CoA balance if account debited or credited

Hiding of 0-values was only for accounts which hadn't been operated
on (for balance, or operations which had not happened for
debit/credit). Balanced account balances should not be hidden.
This commit is contained in:
Xavier Morel 2015-03-11 14:51:46 +01:00
parent 4a41d8f40d
commit 0852064281

View File

@ -88,7 +88,9 @@
})}, data.get('credit') || ''),
React.DOM.td(
{className: 'text-right'},
(data.get('debit') - data.get('credit')) || ''
((data.get('debit') || data.get('credit'))
? data.get('debit') - data.get('credit')
: '')
)
);
})