aggiornamento visualizzazione Ordini e Carrello

This commit is contained in:
Surya Paolo
2023-12-09 19:38:23 +01:00
parent 023ba26003
commit daacde7455
7 changed files with 68 additions and 32 deletions

View File

@@ -1799,6 +1799,7 @@ module.exports = {
return (myapp) ? this.decryptdata(myapp.email_pwd) : '';
},
getTelegramBotNameByIdApp: function (idapp) {
const myapp = this.MYAPPS.find((item) => item.idapp === idapp);
if (process.env.NODE_ENV === 'test')
@@ -3477,7 +3478,7 @@ module.exports = {
},
decryptdata(mydatacrypted) {
if (mydatacrypted === '')
if (mydatacrypted === '' || mydatacrypted === undefined)
return '';
// Decrypt
// const bytes = CryptoJS.AES.decrypt(mydatacrypted.toString(), process.env.SECRK);

View File

@@ -376,6 +376,7 @@ module.exports = {
ENTRA_RIS_ITALIA: 30,
},
OrderStatus: {
NONE: 0,
IN_CART: 1,
@@ -387,6 +388,14 @@ module.exports = {
CANCELED: 10,
},
OrderStatStr: {
IN_CORSO: 1,
CONFERMATI: 2,
PAGATI: 3,
COMPLETATI: 4,
CANCELLATI: 5,
},
OrderStatusView: {
CHECKOUT_SENT: 2,
ORDER_CONFIRMED: 3,