fix: transaction
This commit is contained in:
parent
d36de7d966
commit
17c68fa402
|
@ -30,5 +30,5 @@ export class Transactions extends BaseModel {
|
|||
@Column({
|
||||
nullable: true,
|
||||
})
|
||||
userDestination: string;
|
||||
user_destination: string;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user