fix: transaction

This commit is contained in:
ilham
2021-12-10 13:42:03 +07:00
parent d36de7d966
commit 17c68fa402
2 changed files with 4 additions and 6 deletions

View File

@@ -427,11 +427,9 @@ export class TransactionService {
return a.plus(b);
}, new Decimal(0));
const coa = coas.find((it) => {
(it) => {
return it.id.toLowerCase() === coaId.toLowerCase();
};
});
let coa = coas.find(
(it) => it.id.toLowerCase() === coaId.toLowerCase(),
);
let balance = new Decimal(coa.amount);