feat: Publish manual journal api.

This commit is contained in:
Ahmed Bouhuolia
2020-04-08 20:18:46 +02:00
parent 4920d5f419
commit b1d924c3cc
3 changed files with 125 additions and 6 deletions

View File

@@ -255,6 +255,17 @@ export default class JournalPoster {
});
}
calculateEntriesBalanceChange() {
this.entries.forEach((entry) => {
if (entry.credit) {
this.setAccountBalanceChange(entry, 'credit');
}
if (entry.debit) {
this.setAccountBalanceChange(entry, 'debit');
}
});
}
static loadAccounts() {
}