- aggiungo campo "sfuso"
- aggiunto totale al carrello
This commit is contained in:
@@ -17,6 +17,7 @@ export interface IProductInfo {
|
|||||||
weight_lordo?: number,
|
weight_lordo?: number,
|
||||||
unit: number,
|
unit: number,
|
||||||
unit_lordo?: number,
|
unit_lordo?: number,
|
||||||
|
sfuso?: boolean,
|
||||||
stars?: number,
|
stars?: number,
|
||||||
date?: Date,
|
date?: Date,
|
||||||
icon?: string,
|
icon?: string,
|
||||||
|
|||||||
@@ -503,7 +503,7 @@ export default defineComponent({
|
|||||||
} else if ((cmd === shared_consts.Cmd.PRODUCTS) || (cmd === shared_consts.Cmd.PRODUCTS_V2)) {
|
} else if ((cmd === shared_consts.Cmd.PRODUCTS) || (cmd === shared_consts.Cmd.PRODUCTS_V2)) {
|
||||||
let options = { aggiornaStockQty: checkAggiornaQta.value }
|
let options = { aggiornaStockQty: checkAggiornaQta.value }
|
||||||
if (importasulserver.value)
|
if (importasulserver.value)
|
||||||
userStore.importToServerCmd($q, t, cmd, { arrdata: strris, options })
|
userStore.importToServerCmd($q, t, cmd, { arrdata: JSON.stringify(strris, null, 2), options })
|
||||||
}
|
}
|
||||||
risultato = strris
|
risultato = strris
|
||||||
|
|
||||||
|
|||||||
@@ -89,6 +89,7 @@ const msg_it = {
|
|||||||
barcode: 'BarCode',
|
barcode: 'BarCode',
|
||||||
price_acquistato: 'Prezzo Acquistato',
|
price_acquistato: 'Prezzo Acquistato',
|
||||||
vegan: 'Vegano',
|
vegan: 'Vegano',
|
||||||
|
sfuso: 'Sfuso',
|
||||||
gasordine: 'Ordine Gas',
|
gasordine: 'Ordine Gas',
|
||||||
select_gasordine: 'Scegli l\'Ordine del GAS',
|
select_gasordine: 'Scegli l\'Ordine del GAS',
|
||||||
productInfo: 'Info Prodotto',
|
productInfo: 'Info Prodotto',
|
||||||
@@ -1677,7 +1678,7 @@ const msg_it = {
|
|||||||
area_personale: 'Per poter fare un Ordine occorre essere Registrati ed accedere con le proprie credenziali (username e password)',
|
area_personale: 'Per poter fare un Ordine occorre essere Registrati ed accedere con le proprie credenziali (username e password)',
|
||||||
prodotto: 'prodotto',
|
prodotto: 'prodotto',
|
||||||
prodotti: 'prodotti',
|
prodotti: 'prodotti',
|
||||||
prod_sul_carrello: '{qty} {strprod} sul Carrello',
|
prod_sul_carrello: '{qty} {strprod} sul Carrello (Totale: {tot})',
|
||||||
prodotto_tolto: 'Il prodotto è stato tolto dal Carrello',
|
prodotto_tolto: 'Il prodotto è stato tolto dal Carrello',
|
||||||
error_cart: 'Errore durante l\'inserimento del prodotto sul carrello, riprovare.',
|
error_cart: 'Errore durante l\'inserimento del prodotto sul carrello, riprovare.',
|
||||||
completa_ord: 'Invia l\'Ordine',
|
completa_ord: 'Invia l\'Ordine',
|
||||||
|
|||||||
@@ -2043,6 +2043,7 @@ export const colTableProductInfos = [
|
|||||||
AddCol({ name: 'weight', label_trans: 'products.weight', fieldtype: costanti.FieldType.number }),
|
AddCol({ name: 'weight', label_trans: 'products.weight', fieldtype: costanti.FieldType.number }),
|
||||||
AddCol({ name: 'weight_lordo', label_trans: 'products.weight_lordo', fieldtype: costanti.FieldType.number }),
|
AddCol({ name: 'weight_lordo', label_trans: 'products.weight_lordo', fieldtype: costanti.FieldType.number }),
|
||||||
AddCol({ name: 'vegan', label_trans: 'products.vegan', fieldtype: costanti.FieldType.boolean }),
|
AddCol({ name: 'vegan', label_trans: 'products.vegan', fieldtype: costanti.FieldType.boolean }),
|
||||||
|
AddCol({ name: 'sfuso', label_trans: 'products.sfuso', fieldtype: costanti.FieldType.boolean }),
|
||||||
AddCol({
|
AddCol({
|
||||||
name: 'unit', label_trans: 'products.unit',
|
name: 'unit', label_trans: 'products.unit',
|
||||||
fieldtype: costanti.FieldType.select, jointable: 'units',
|
fieldtype: costanti.FieldType.select, jointable: 'units',
|
||||||
|
|||||||
@@ -880,8 +880,11 @@ export const useProducts = defineStore('Products', {
|
|||||||
if (qta > 1 || qta === 0)
|
if (qta > 1 || qta === 0)
|
||||||
strprod = t('ecomm.prodotti')
|
strprod = t('ecomm.prodotti')
|
||||||
|
|
||||||
|
|
||||||
if (qta >= 0) {
|
if (qta >= 0) {
|
||||||
msg = t('ecomm.prod_sul_carrello', { strprod, qty: qta })
|
let totalPrice = this.cart.totalPrice ? this.cart.totalPrice.toFixed(2): 0
|
||||||
|
let tot = totalPrice + ' €'
|
||||||
|
msg = t('ecomm.prod_sul_carrello', { strprod, qty: qta, tot })
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user