[IMP] chart of accounts: only display non-zero amounts

This commit is contained in:
Xavier Morel 2015-02-23 16:42:59 +01:00
parent caf4657408
commit 1570f58835

View File

@ -84,13 +84,15 @@
React.DOM.td({className: React.addons.classSet({ React.DOM.td({className: React.addons.classSet({
'text-right': true, 'text-right': true,
'highlight-op': highlight === 'debit' 'highlight-op': highlight === 'debit'
})}, data.get('debit')), })}, data.get('debit') || ''),
React.DOM.td({className: React.addons.classSet({ React.DOM.td({className: React.addons.classSet({
'text-right': true, 'text-right': true,
'highlight-op': highlight === 'credit' 'highlight-op': highlight === 'credit'
})}, data.get('credit')), })}, data.get('credit') || ''),
React.DOM.td({className: 'text-right'}, React.DOM.td(
data.get('debit') - data.get('credit')) {className: 'text-right'},
(data.get('debit') - data.get('credit')) || ''
)
); );
}).toArray() }).toArray()
) )