- Aggiungere un campo "Vagliato dall'Editore" e aggiungere anche il campo "chi" e delle Note

This commit is contained in:
Surya Paolo
2025-05-02 19:11:29 +02:00
parent 8a20186e59
commit 70f1e5cbf1
24 changed files with 745 additions and 207 deletions

View File

@@ -488,6 +488,7 @@ export const costanti = {
arrmenu: 18000,
op_andor: 19000,
editor_nohtml: 20000,
verifica: 21000,
},
@@ -557,6 +558,12 @@ export const costanti = {
OP_ANDOR: {
OP_OR: 0,
OP_AND: 1,
},
VALIDATO: {
NO: 0,
SI: 1,
TO_RESOLV: -1,
}
}

View File

@@ -2748,6 +2748,7 @@ 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: 'validaprod', label_trans: 'products.validaprod', fieldtype: costanti.FieldType.verifica }),
AddCol(DeleteRec),
AddCol(DuplicateRec),
]

View File

@@ -9905,6 +9905,18 @@ export const tools = {
}
},
isDateValid(mydate: Date) {
try {
return (
mydate instanceof Date &&
isFinite(mydate.getTime()) &&
mydate.toISOString().split("T")[0] !== "1970-01-01"
)
} catch {
return false
}
},
// FINE !