- Email Ordine da template HTML

- Corretto altro
This commit is contained in:
Surya Paolo
2023-12-28 15:53:16 +01:00
parent d90b46c206
commit 196b19ac66
11 changed files with 21 additions and 27 deletions

View File

@@ -48,3 +48,8 @@
font-size: 0.75rem;
color: gray;
}
.label-qta{
font-size: 1.15rem;
font-weight: bold;
}

View File

@@ -181,8 +181,6 @@
{{ products.getQtyAvailable(myproduct) }}
</span>
<div class="prod_qtywarn">
{{ getQtyWarn() }}
<div
v-if="
tools.isManager() && !!myproduct.QuantitaOrdinateInAttesa
@@ -217,10 +215,6 @@
{{ products.getQtyBookableAvailable(myproduct) }}
</span>
<div class="prod_qtywarn">
<span v-if="getQtyWarnPreOrdered()">{{
getQtyWarnPreOrdered()
}}</span>
<div
v-if="
tools.isManager() && !!myproduct.QuantitaPrenotateInAttesa
@@ -281,11 +275,10 @@
<q-field
outlined
dense
style="width: 40px; height: 30px"
class="q-mx-xs"
>
<template v-slot:control>
<div class="self-center no-outline" tabindex="0">
<div class="no-outline label-qta text-center" tabindex="0">
{{ myorder.quantity + myorder.quantitypreordered }}
</div>
</template>

View File

@@ -43,3 +43,8 @@
.q-item__section--thumbnail img{
height: 100px;
}
.qta{
font-size: 1.15rem;
font-weight: bold;
}

View File

@@ -41,19 +41,10 @@
})
"
></q-btn>
<div v-if="showall" :class="`q-mx-sm text-blue-14`">
{{ order.quantity }}
</div>
<div v-if="order.quantity > 0 && order.quantitypreordered > 0">
+ {{ t('ecomm.preord') }}:
<div v-if="showall" :class="`q-mx-sm text-blue-14 qta` ">
{{ order.quantity + order.quantitypreordered }}
</div>
<div
v-if="order.quantitypreordered > 0"
:class="`q-mx-sm text-blue-14`"
>
{{ order.quantitypreordered }}
</div>
<q-btn
v-if="showall && !nomodif"
icon-right="fas fa-cart-plus"

View File

@@ -2738,19 +2738,19 @@ export const tools = {
})
},
showPositiveNotif(q: any, msg: string, time?: number) {
this.showNotif(q, msg, { color: 'positive', icon: 'notifications' }, time)
showPositiveNotif(q: any, msg: string, time?: number, group?: any) {
this.showNotif(q, msg, { color: 'positive', icon: 'notifications' }, time, group)
},
showNegativeNotif(q: any, msg: string, time = 5000) {
this.showNotif(q, msg, { color: 'negative', icon: 'notifications' }, time)
showNegativeNotif(q: any, msg: string, time = 5000, group?: any) {
this.showNotif(q, msg, { color: 'negative', icon: 'notifications' }, time, group)
},
showNeutralNotif(q: any, msg: string, time = 10000) {
this.showNotif(q, msg, { color: 'info', icon: 'notifications' }, time)
},
showNotif(q: any, msg: string, data?: INotify | null, time?: number) {
showNotif(q: any, msg: string, data?: INotify | null, time?: number, group?: any) {
let myicon = data ? data.icon : 'ion-add'
if (!myicon) {
myicon = 'ion-add'
@@ -2760,7 +2760,7 @@ export const tools = {
mycolor = 'primary'
}
q.notify({
// group: '',
group: group ?? '',
message: msg,
icon: myicon,
classes: 'my-notif-class',

View File

@@ -718,7 +718,7 @@ export const useProducts = defineStore('Products', {
if (qta > 1 || qta === 0)
strprod = t('ecomm.prodotti')
if (qta > 0) {
if (qta >= 0) {
msg = t('ecomm.prod_sul_carrello', { strprod, qty: qta })
}
@@ -726,7 +726,7 @@ export const useProducts = defineStore('Products', {
if (ris === null || ris.myord.quantity === 0)
tools.showNotif($q, msg)
else
tools.showPositiveNotif($q, msg)
tools.showPositiveNotif($q, msg, undefined, 'prodotto')
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 496 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 114 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB