- Aggiornamento template mail (tramite i campi in HTML)

- Aggiornato Carrello
This commit is contained in:
Surya Paolo
2023-12-28 00:50:35 +01:00
parent 15d831eecc
commit f23047bcd5
10 changed files with 96 additions and 29 deletions

View File

@@ -824,8 +824,7 @@ module.exports = {
headers: vapidHeaders,
};
console.log('************ INVIO WEBPUSH.SENDNOTIFICATION N° ',
conta, '/', trovati, 'A', subscription.browser);
// console.log('************ INVIO WEBPUSH.SENDNOTIFICATION N° ', conta, '/', trovati, 'A', subscription.browser);
const pushPayload = JSON.stringify(payload);
@@ -4368,5 +4367,15 @@ module.exports = {
return Object.keys(obj).length === 0;
},
getUnitsMeasure(unit, short) {
const unitrec = shared_consts.Units_Of_Measure_ListBox.find((rec) => rec.value === unit)
return unitrec ? (short ? unitrec.short : unitrec.label) : ''
},
getIdUnitsByText(unitstr) {
const unitrec = shared_consts.Units_Of_Measure_ListBox.find((rec) => rec.short === unitstr)
return unitrec ? unitrec.value : 0
},
};