[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:
parent
4a41d8f40d
commit
0852064281
@ -88,7 +88,9 @@
|
|||||||
})}, data.get('credit') || ''),
|
})}, data.get('credit') || ''),
|
||||||
React.DOM.td(
|
React.DOM.td(
|
||||||
{className: 'text-right'},
|
{className: 'text-right'},
|
||||||
(data.get('debit') - data.get('credit')) || ''
|
((data.get('debit') || data.get('credit'))
|
||||||
|
? data.get('debit') - data.get('credit')
|
||||||
|
: '')
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user