Update pagos.js
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user