[IMP] chart of accounts: only display non-zero amounts
This commit is contained in:
parent
caf4657408
commit
1570f58835
@ -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()
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user