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