mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Fixe calculation of the new balance.
This commit is contained in:
parent
0da5c3d2c8
commit
df393c4ea8
@ -180,7 +180,7 @@ export class AdminResolver {
|
|||||||
} else {
|
} else {
|
||||||
newBalance = lastUserTransaction.balance
|
newBalance = lastUserTransaction.balance
|
||||||
}
|
}
|
||||||
newBalance += Number(parseInt(pendingCreation.amount.toString()) / 10000)
|
newBalance = Number(newBalance) + Number(parseInt(pendingCreation.amount.toString()) / 10000)
|
||||||
|
|
||||||
const newUserTransaction = new UserTransaction()
|
const newUserTransaction = new UserTransaction()
|
||||||
newUserTransaction.userId = pendingCreation.userId
|
newUserTransaction.userId = pendingCreation.userId
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user