mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
fix(Journal): account balance with journal entries.
This commit is contained in:
@@ -278,13 +278,13 @@ export default class JournalPoster implements IJournalPoster {
|
||||
let change = 0;
|
||||
|
||||
if (accountChange.credit) {
|
||||
change =
|
||||
change +=
|
||||
normal === 'credit'
|
||||
? accountChange.credit
|
||||
: -1 * accountChange.credit;
|
||||
}
|
||||
if (accountChange.debit) {
|
||||
change =
|
||||
change +=
|
||||
normal === 'debit' ? accountChange.debit : -1 * accountChange.debit;
|
||||
}
|
||||
mappedList.push({ account, change });
|
||||
|
||||
Reference in New Issue
Block a user