Update pagos.js

This commit is contained in:
Naiel
2025-12-13 12:59:03 +01:00
committed by GitHub
parent 4d1952d998
commit a32aa89a56

View File

@@ -449,7 +449,7 @@ PAGES.pagos = {
newBalance = currentBalance - monto; newBalance = currentBalance - monto;
} }
persona.Monedero_Balance = newBalance; persona.Monedero_Balance = fixfloat(newBalance);
TS_encrypt(persona, SECRET, (encrypted) => { TS_encrypt(persona, SECRET, (encrypted) => {
betterGunPut(gun.get(TABLE).get("personas").get(personaId), encrypted); betterGunPut(gun.get(TABLE).get("personas").get(personaId), encrypted);
@@ -527,7 +527,7 @@ PAGES.pagos = {
if (persona) { if (persona) {
var currentBalance = parseFloat(persona.Monedero_Balance || 0); var currentBalance = parseFloat(persona.Monedero_Balance || 0);
var newBalance = currentBalance + bonusAmount; var newBalance = currentBalance + bonusAmount;
persona.Monedero_Balance = newBalance; persona.Monedero_Balance = fixfloat(newBalance);
TS_encrypt(persona, SECRET, (encrypted) => { TS_encrypt(persona, SECRET, (encrypted) => {
betterGunPut( betterGunPut(
@@ -829,7 +829,7 @@ PAGES.pagos = {
newBalance = currentBalance - monto; newBalance = currentBalance - monto;
} }
persona.Monedero_Balance = newBalance; persona.Monedero_Balance = fixfloat(newBalance);
TS_encrypt(persona, SECRET, (encrypted) => { TS_encrypt(persona, SECRET, (encrypted) => {
betterGunPut( betterGunPut(