- Togliere la terza cifra nell'invio dei RIS... massimo 0.99
This commit is contained in:
@@ -1,8 +1,11 @@
|
|||||||
p Ciao #{name},
|
p Ciao #{name},
|
||||||
p Hai ricevuto
|
p Hai ricevuto
|
||||||
strong #{qty} #{symbol}
|
strong #{qty} #{symbol}
|
||||||
| da parte di #{mittente} sul
|
| da parte di #{mittente} in data #{transactionDate} sul
|
||||||
strong #{nomecircuito} !
|
strong #{nomecircuito} !
|
||||||
|
if causale
|
||||||
|
p <br>
|
||||||
|
p Commento: #{causale}
|
||||||
p <br>
|
p <br>
|
||||||
p Apri #{nomeapp} per vedere il tuo nuovo saldo.
|
p Apri #{nomeapp} per vedere il tuo nuovo saldo.
|
||||||
p <br>
|
p <br>
|
||||||
|
|||||||
25
logtrans.txt
25
logtrans.txt
@@ -305,3 +305,28 @@ Dom 29/09 ORE 23:24: [<b>Circuito RIS Bologna</b>]: Inviate Monete da pontiUmani
|
|||||||
Saldi:
|
Saldi:
|
||||||
pontiUmani (Anna50823): -397.00 RIS]
|
pontiUmani (Anna50823): -397.00 RIS]
|
||||||
franz12090: 20.00 RIS]
|
franz12090: 20.00 RIS]
|
||||||
|
Lun 30/09 ORE 22:42: [<b>Circuito RIS Italia</b>]: Inviate Monete da laura.nocera a Emilie 4 RIS [causale: carissima siccome ieri non ho potuto darli subito te li invio ora, inoltre un piccolo regalo per i tuoi bei figli per cui ti mando 4 ris invece che 2, un abbraccio e civediamo alla prossima ]
|
||||||
|
Saldi:
|
||||||
|
laura.nocera: -4.00 RIS]
|
||||||
|
Emilie: 4.00 RIS]
|
||||||
|
Lun 30/09 ORE 22:48: [<b>Circuito RIS Foggia</b>]: Inviate Monete da sergiomazzanti a pomps61 5 RIS [causale: ]
|
||||||
|
Saldi:
|
||||||
|
sergiomazzanti: 20.00 RIS]
|
||||||
|
pomps61: 0.00 RIS]
|
||||||
|
Lun 30/09 ORE 22:52: [<b>Circuito RIS Bologna</b>]: Inviate Monete da pontiUmani (Anna50823) a Naanbe 15 RIS [causale: ]
|
||||||
|
Saldi:
|
||||||
|
pontiUmani (Anna50823): -412.00 RIS]
|
||||||
|
Naanbe: 3.00 RIS]
|
||||||
|
Lun 30/09 ORE 22:54: [<b>Circuito RIS Bologna</b>]: Inviate Monete da ZeoPleiadi a pepedielena 1.5 RIS [causale: ]
|
||||||
|
Saldi:
|
||||||
|
ZeoPleiadi: 8.00 RIS]
|
||||||
|
pepedielena: 1.50 RIS]
|
||||||
|
Lun 30/09 ORE 22:55: [<b>Circuito RIS Bologna</b>]: Inviate Monete da paoloar77 a ElenaEspx 1 RIS [causale: Mio Commento !!! Ciaoooooooo.
|
||||||
|
Ecome stai ????]
|
||||||
|
Saldi:
|
||||||
|
paoloar77: 21.00 RIS]
|
||||||
|
ElenaEspx: 29.40 RIS]
|
||||||
|
Lun 30/09 ORE 22:58: [<b>Circuito RIS Bologna</b>]: Inviate Monete da paoloar77 a ElenaEspx 0.01 RIS [causale: Prova del commento. Ciaooo come stai . Tutto benekfaòjd ask dakisj dlaks jdlkas jdlakdklasj dlkas jdlasd]
|
||||||
|
Saldi:
|
||||||
|
paoloar77: 20.99 RIS]
|
||||||
|
ElenaEspx: 29.41 RIS]
|
||||||
@@ -772,11 +772,17 @@ CircuitSchema.statics.sendCoins = async function (onlycheck, idapp, usernameOrig
|
|||||||
let mittente = orig;
|
let mittente = orig;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
const paramsrec = {
|
||||||
|
mittente, nomecircuito: circuittable.name,
|
||||||
|
symbol: circuittable.symbol, qty: myqty,
|
||||||
|
transactionDate: ris.rec.transactionDate,
|
||||||
|
causale: extrarec.causal,
|
||||||
|
};
|
||||||
if (extrarec.dest) {
|
if (extrarec.dest) {
|
||||||
let myuserDest = await User.getUserByUsername(idapp, extrarec.dest);
|
let myuserDest = await User.getUserByUsername(idapp, extrarec.dest);
|
||||||
|
|
||||||
// Invia una email al destinatario !
|
// Invia una email al destinatario !
|
||||||
await sendemail.sendEmail_RisRicevuti(myuserDest.lang, myuserDest, myuserDest.email, idapp, { mittente, nomecircuito: circuittable.name, symbol: circuittable.symbol, qty: myqty });
|
await sendemail.sendEmail_RisRicevuti(myuserDest.lang, myuserDest, myuserDest.email, idapp, paramsrec);
|
||||||
|
|
||||||
} else if (extrarec.groupdest || extrarec.contoComDest) {
|
} else if (extrarec.groupdest || extrarec.contoComDest) {
|
||||||
let arrusers = await MyGroup.getListAdminsByGroupName(idapp, groupDestoContoCom);
|
let arrusers = await MyGroup.getListAdminsByGroupName(idapp, groupDestoContoCom);
|
||||||
@@ -788,7 +794,7 @@ CircuitSchema.statics.sendCoins = async function (onlycheck, idapp, usernameOrig
|
|||||||
let myuserDest = await User.getUserByUsername(idapp, arrusers[i].username);
|
let myuserDest = await User.getUserByUsername(idapp, arrusers[i].username);
|
||||||
|
|
||||||
// Invia una email al destinatario !
|
// Invia una email al destinatario !
|
||||||
await sendemail.sendEmail_RisRicevuti(myuserDest.lang, myuserDest, myuserDest.email, idapp, { mittente, nomecircuito: circuittable.name, symbol: circuittable.symbol, qty: myqty });
|
await sendemail.sendEmail_RisRicevuti(myuserDest.lang, myuserDest, myuserDest.email, idapp, paramsrec);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3339,32 +3339,34 @@ UserSchema.statics.setCircuitCmd = async function (idapp, usernameOrig, circuitn
|
|||||||
outres.cansend = true;
|
outres.cansend = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cmd === shared_consts.CIRCUITCMD.SENDCOINS_ACCEPT && outcheck.cansend) {
|
if (outcheck) {
|
||||||
if (!await Movement.checkIfCoinsAlreadySent(extrarec.notifId)) {
|
if (cmd === shared_consts.CIRCUITCMD.SENDCOINS_ACCEPT && outcheck.cansend) {
|
||||||
outres = await Circuit.sendCoins(false, idapp, usernameOrig, extrarec);
|
if (!await Movement.checkIfCoinsAlreadySent(extrarec.notifId)) {
|
||||||
|
outres = await Circuit.sendCoins(false, idapp, usernameOrig, extrarec);
|
||||||
|
|
||||||
|
} else {
|
||||||
|
outcheck.cansend = false; //GIA INVIATO
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (outcheck.cansend) {
|
||||||
|
// Invia una notifica di moneta (accettata o rifiutata) alla persona
|
||||||
|
const out = await tools.sendNotificationByCircuit(idapp, usernameOrig, circuitname, cmd, false, true, username_action, extrarec);
|
||||||
|
|
||||||
|
if (outres && extrarec.groupname) {
|
||||||
|
// Setta agli altri admin,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
outres.recnotif = await SendNotif.getRecNotif(extrarec.notifId);
|
||||||
|
outres.arrrecnotif = await SendNotif.findAllNotifByUsernameIdAndIdApp(username_action, extrarec.lastdr, idapp, shared_consts.LIMIT_NOTIF_FOR_USER);
|
||||||
|
if (await User.isAdminByUsername(idapp, username_action)) {
|
||||||
|
outres.arrrecnotifcoins = await SendNotif.findAllNotifCoinsAllIdAndIdApp(idapp);
|
||||||
} else {
|
} else {
|
||||||
outcheck.cansend = false; //GIA INVIATO
|
outres.arrrecnotifcoins = await SendNotif.findAllNotifByUsernameIdAndIdApp(username_action, extrarec.lastdr, idapp, shared_consts.LIMIT_NOTIFCOINS_FOR_USER, shared_consts.QualiNotifs.CIRCUITS);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (outcheck.cansend) {
|
|
||||||
// Invia una notifica di moneta (accettata o rifiutata) alla persona
|
|
||||||
const out = await tools.sendNotificationByCircuit(idapp, usernameOrig, circuitname, cmd, false, true, username_action, extrarec);
|
|
||||||
|
|
||||||
if (outres && extrarec.groupname) {
|
|
||||||
// Setta agli altri admin,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
outres.recnotif = await SendNotif.getRecNotif(extrarec.notifId);
|
|
||||||
outres.arrrecnotif = await SendNotif.findAllNotifByUsernameIdAndIdApp(username_action, extrarec.lastdr, idapp, shared_consts.LIMIT_NOTIF_FOR_USER);
|
|
||||||
if (await User.isAdminByUsername(idapp, username_action)) {
|
|
||||||
outres.arrrecnotifcoins = await SendNotif.findAllNotifCoinsAllIdAndIdApp(idapp);
|
|
||||||
} else {
|
|
||||||
outres.arrrecnotifcoins = await SendNotif.findAllNotifByUsernameIdAndIdApp(username_action, extrarec.lastdr, idapp, shared_consts.LIMIT_NOTIFCOINS_FOR_USER, shared_consts.QualiNotifs.CIRCUITS);
|
|
||||||
}
|
|
||||||
|
|
||||||
//----
|
//----
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -316,7 +316,9 @@ module.exports = {
|
|||||||
qty: myrec.qty,
|
qty: myrec.qty,
|
||||||
mittente: decode(myrec.mittente),
|
mittente: decode(myrec.mittente),
|
||||||
nomecircuito: decode(myrec.nomecircuito),
|
nomecircuito: decode(myrec.nomecircuito),
|
||||||
|
transactionDate: tools.getstrDate_DD_MM_YYYY(myrec.transactionDate),
|
||||||
symbol: myrec.symbol,
|
symbol: myrec.symbol,
|
||||||
|
causale: myrec.causale,
|
||||||
};
|
};
|
||||||
|
|
||||||
mylocalsconf = this.setParamsForTemplate(userDest, mylocalsconf);
|
mylocalsconf = this.setParamsForTemplate(userDest, mylocalsconf);
|
||||||
|
|||||||
Reference in New Issue
Block a user