Struttura Scheda Prodotti...
This commit is contained in:
@@ -1949,6 +1949,8 @@ export const colTableProducts = [
|
||||
AddCol({ name: 'canBeShipped', label_trans: 'products.canBeShipped', fieldtype: costanti.FieldType.boolean }),
|
||||
AddCol({ name: 'canBeBuyOnline', label_trans: 'products.canBeBuyOnline', fieldtype: costanti.FieldType.boolean }),
|
||||
AddCol({ name: 'weight', label_trans: 'products.weight', fieldtype: costanti.FieldType.number }),
|
||||
AddCol({ name: 'unit', label_trans: 'products.unit',
|
||||
fieldtype: costanti.FieldType.select, jointable: 'units', }),
|
||||
AddCol({ name: 'stars', label_trans: 'products.stars', fieldtype: costanti.FieldType.number }),
|
||||
AddCol({ name: 'date', label_trans: 'products.date', fieldtype: costanti.FieldType.date }),
|
||||
AddCol(DeleteRec),
|
||||
@@ -4052,6 +4054,15 @@ export const fieldsTable = {
|
||||
colicon: 'icon',
|
||||
noshow: true,
|
||||
},
|
||||
{
|
||||
value: toolsext.TABUNITS,
|
||||
label: 'Unità di Misura',
|
||||
columns: colTableGeneric,
|
||||
colkey: 'value',
|
||||
collabel: 'label',
|
||||
colicon: 'icon',
|
||||
noshow: true,
|
||||
},
|
||||
],
|
||||
|
||||
}
|
||||
|
||||
@@ -8227,6 +8227,12 @@ export const tools = {
|
||||
}
|
||||
return 0
|
||||
},
|
||||
|
||||
getUnitsMeasure(unit: number, short: boolean) {
|
||||
const unitrec = shared_consts.Units_Of_Measure_ListBox.find((rec: any) => rec.value === unit)
|
||||
return unitrec ? (short ? unitrec.short : unitrec.label) : ''
|
||||
},
|
||||
|
||||
isPartecipero(myrec: any) {
|
||||
const userStore = useUserStore()
|
||||
if (myrec && myrec.mybookings && myrec.mybookings.length > 0) {
|
||||
|
||||
@@ -96,6 +96,7 @@ export const toolsext = {
|
||||
TABPREF: 'hosps_preferences',
|
||||
TABPEOPLE: 'people',
|
||||
TABCIRCUITS: 'circuits',
|
||||
TABUNITS: 'units',
|
||||
SERVKEY_VERS: 'vers',
|
||||
|
||||
ERR_GENERICO: -1,
|
||||
|
||||
Reference in New Issue
Block a user