- aggiornato tabella modifica prodotti.

- codice sconto etichetta.
This commit is contained in:
Surya Paolo
2025-10-03 18:02:26 +02:00
parent b07d4c822f
commit e827744f51
13 changed files with 223 additions and 98 deletions

View File

@@ -16,6 +16,7 @@ const DeleteRec = {
field: costanti.NOFIELD,
sortable: false,
icon: 'fas fa-trash-alt',
color: 'negative',
action: lists.MenuAction.DELETE_RECTABLE,
askaction: 'db.deletetherecord',
// required: true,
@@ -31,6 +32,7 @@ const ModifRec = {
icon: 'fas fa-pencil-alt',
action: lists.MenuAction.CAN_EDIT_TABLE,
askaction: '',
color: 'primary',
// required: true,
visuonlyEditVal: true,
};
@@ -42,6 +44,7 @@ const DuplicateRec = {
field: costanti.NOFIELD,
sortable: false,
icon: 'fas fa-copy',
color: 'positive',
action: lists.MenuAction.DUPLICATE_RECTABLE,
askaction: 'db.duplicatedrecordquestion',
visuonlyEditVal: true,
@@ -100,6 +103,7 @@ function AddCol(params: IColGridTable) {
link: params.link === undefined ? '' : params.link,
typeobj: params.typeobj === undefined ? '' : params.typeobj,
inline: params.inline === undefined ? '' : params.inline,
color: params.color === undefined ? '' : params.color,
askaction: params.askaction === undefined ? '' : params.askaction,
tablesel: params.tablesel === undefined ? '' : params.tablesel,
jointable: params.jointable === undefined ? '' : params.jointable,
@@ -1008,6 +1012,7 @@ export const colmyscrapingbook = [
];
export const colmypage = [
AddCol(ModifRec),
AddCol({
name: '_id',
label_trans: 'index',
@@ -1167,7 +1172,6 @@ export const colmypage = [
fieldtype: costanti.FieldType.string,
}),
AddCol(DeleteRec),
AddCol(ModifRec),
AddCol(DuplicateRec),
];
@@ -1357,6 +1361,7 @@ const colTableCard = [
];
export const colTableProducer = [
AddCol(ModifRec),
AddCol({ name: 'name', label_trans: 'producer.name' }),
AddCol({ name: 'description', label_trans: 'producer.description' }),
AddCol({ name: 'referent', label_trans: 'producer.referent' }),
@@ -1365,7 +1370,6 @@ export const colTableProducer = [
AddCol({ name: 'city', label_trans: 'producer.city' }),
AddCol({ name: 'img', label_trans: 'producer.img' }),
AddCol({ name: 'website', label_trans: 'reg.website' }),
AddCol(ModifRec),
AddCol(DeleteRec),
AddCol(DuplicateRec),
];
@@ -4460,6 +4464,7 @@ export const colTableOrdersCart = [
];
export const colTableProdShort = [
AddCol(ModifRec),
AddCol({
name: 'active',
label_trans: 'products.active',
@@ -4540,6 +4545,10 @@ export const colTableProdShort = [
fieldtype: costanti.FieldType.html,
field: 'productInfo',
subfield: 'description',
showWhen:
costanti.showWhen.NewRec +
costanti.showWhen.InPage +
costanti.showWhen.InEdit,
}),
AddCol({
name: 'productInfo.imagefile',
@@ -4755,10 +4764,10 @@ const colcontribtype = [
];
const colpaymenttype = [
AddCol(ModifRec),
AddCol({ name: '_id', label_trans: 'others.value' }),
AddCol({ name: 'key', label_trans: 'reg.key' }),
AddCol({ name: 'label', label_trans: 'proj.longdescr' }),
AddCol(ModifRec),
AddCol(DeleteRec),
AddCol(DuplicateRec),
];