- Aggiornamento template mail (tramite i campi in HTML)
- Aggiornato Carrello
This commit is contained in:
@@ -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
|
||||
},
|
||||
|
||||
|
||||
};
|
||||
|
||||
@@ -348,22 +348,27 @@ module.exports = {
|
||||
Units_Of_Measure_ListBox: [
|
||||
{
|
||||
label: '[Nessuno]',
|
||||
short: '',
|
||||
value: 0,
|
||||
},
|
||||
{
|
||||
label: 'Grammi (g)',
|
||||
short: 'g',
|
||||
value: 1,
|
||||
},
|
||||
{
|
||||
label: 'Chili (kg)',
|
||||
short: 'Kg',
|
||||
value: 2,
|
||||
},
|
||||
{
|
||||
label: 'Litri (l)',
|
||||
label: 'Litri (L)',
|
||||
short: 'L',
|
||||
value: 3,
|
||||
},
|
||||
{
|
||||
label: 'Pezzi (p)',
|
||||
short: 'p',
|
||||
value: 4,
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user