other fixes

Arcadei
This commit is contained in:
Paolo Arena
2022-10-22 15:38:15 +02:00
parent 9f5bbb188a
commit 8a7767e3a4
6 changed files with 63 additions and 14 deletions

View File

@@ -113,7 +113,7 @@ MovementSchema.statics.addMov = async function(idapp, accountFromIdTable, accoun
// Update saldo dell'Account
await Account.addtoSaldo(accountToIdTable, amount);
await Account.addtoSaldo(accountFromIdTable, amount);
await Account.addtoSaldo(accountFromIdTable, -amount);
return mymov;
}