diff --git a/src/components/COrdersCart/COrdersCart.ts b/src/components/COrdersCart/COrdersCart.ts index abf85baf..5f12c238 100755 --- a/src/components/COrdersCart/COrdersCart.ts +++ b/src/components/COrdersCart/COrdersCart.ts @@ -43,6 +43,8 @@ export default defineComponent({ const myrec = ref([]) const oldrec = ref([]) const note = ref('') + const note_per_gestore = ref('') + const note_per_admin = ref('') const endload = ref(false) const recOrderCart = ref({}) @@ -86,7 +88,7 @@ export default defineComponent({ } function change_field(fieldname: string) { - if (myrec.value[fieldname] !== oldrec.value[fieldname]) { + if ((!oldrec.value.hasOwnProperty(fieldname)) || (myrec.value[fieldname] !== oldrec.value[fieldname])) { myrec.value[fieldname] = oldrec.value[fieldname] const mydata = { @@ -129,6 +131,8 @@ export default defineComponent({ if (recOrderCart.value) { oldrec.value = myrec.value note.value = recOrderCart.value.note! + note_per_gestore.value = recOrderCart.value.note_per_gestore! + note_per_admin.value = recOrderCart.value.note_per_admin! } allTotalPrice.value = recOrderCart.value.totalPrice endload.value = true @@ -254,6 +258,8 @@ export default defineComponent({ changeTotalPrice, updateTotalPrice, myTotalPriceCalc, + note_per_gestore, + note_per_admin, } } }) diff --git a/src/components/COrdersCart/COrdersCart.vue b/src/components/COrdersCart/COrdersCart.vue index e7f25471..2e2fcdd6 100755 --- a/src/components/COrdersCart/COrdersCart.vue +++ b/src/components/COrdersCart/COrdersCart.vue @@ -54,20 +54,21 @@ >
- {{ t('ecomm.totale') }}: - € {{ myTotalPrice() }} -
-
+ {{ t('ecomm.totale') }}: + € {{ myTotalPrice() }} +
+
Note: {{ note }} + + + + +
diff --git a/src/statics/lang/it.js b/src/statics/lang/it.js index b64fd887..cdaca838 100755 --- a/src/statics/lang/it.js +++ b/src/statics/lang/it.js @@ -1714,11 +1714,14 @@ const msg_it = { offerta_gas: 'Offerta valida al raggiungimento di {qta} {unit}', offerta_gas_raggiunta: 'Complimenti! Gli ordini hanno superato il minimo quantitativo di {qta} {unit}', note: 'Note', + note_per_gestore: 'Note per il Gestore', + note_per_admin: 'Note per l\'Admin', apriordine: 'Vedi Ordine', ordine_scaduto: 'l\'Ordine è Chiuso !', ricarica: 'Ricarica', active: 'Prodotto Acquistabile', not_active: 'Prodotto Non Acquistabile', + totalPrice: 'Totale', }, gas: { name: 'Ordine Gas',