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

@ -30,5 +30,5 @@ export class Transactions extends BaseModel {
@Column({ @Column({
nullable: true, nullable: true,
}) })
userDestination: string; user_destination: string;
} }

View File

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