- pagine admin: Accounts, Movements e Circuits.
- add change min e max range circuiti (per tutti i record).
This commit is contained in:
@@ -2880,7 +2880,7 @@ export const colTableCircuitComplete = [
|
||||
]
|
||||
|
||||
export const colTableCircuit = [
|
||||
// AddCol({ name: 'groupnameId', label_trans: 'circuit.groupnameId', fieldtype: costanti.FieldType.select, jointable: 'mygroups' }), // da togliere poi
|
||||
AddCol({ name: '_id', label_trans: 'circuit.Id' }), // da togliere poi
|
||||
AddCol({
|
||||
name: 'name', label_trans: 'circuit.name',
|
||||
required: true,
|
||||
@@ -2986,9 +2986,36 @@ export const colTableCircuit = [
|
||||
]
|
||||
|
||||
export const colmyUserCircuit = [
|
||||
AddCol({ name: 'circuitId', label_trans: 'account.circuitId', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'userId', label_trans: 'account.users', fieldtype: costanti.FieldType.select, jointable: 'users' }),
|
||||
AddCol({ name: 'name', label_trans: 'circuit.name' }),
|
||||
AddCol({
|
||||
name: 'circuitId', label_trans: 'account.circuitId',
|
||||
fieldtype: costanti.FieldType.select,
|
||||
jointable: 'listcircuits',
|
||||
}),
|
||||
AddCol({ name: 'username', label_trans: 'account.users', fieldtype: costanti.FieldType.username_chip,
|
||||
tipovisu: costanti.TipoVisu.LINK }),
|
||||
|
||||
AddCol({
|
||||
name: 'contocom',
|
||||
label_trans: 'movement.accountFromComId',
|
||||
foredit: false,
|
||||
tipovisu: costanti.TipoVisu.LINK,
|
||||
fieldtype: costanti.FieldType.username_chip,
|
||||
link: '/circuits/contocom',
|
||||
noshowlabel: true,
|
||||
tipoconto: costanti.AccountType.COMMUNITY_ACCOUNT,
|
||||
}),
|
||||
|
||||
AddCol({
|
||||
name: 'groupname',
|
||||
label_trans: 'circuit.contocoll',
|
||||
foredit: false,
|
||||
tipovisu: costanti.TipoVisu.LINK,
|
||||
fieldtype: costanti.FieldType.username_chip,
|
||||
link: '/circuits/groupname',
|
||||
noshowlabel: true,
|
||||
tipoconto: costanti.AccountType.COLLECTIVE_ACCOUNT,
|
||||
}),
|
||||
|
||||
AddCol({ name: 'deperibile', label_trans: 'account.deperibile', fieldtype: costanti.FieldType.boolean }),
|
||||
AddCol({ name: 'fidoConcesso', label_trans: 'account.fidoConcesso', fieldtype: costanti.FieldType.number }),
|
||||
AddCol({ name: 'qta_maxConcessa', label_trans: 'account.qta_maxConcessa', fieldtype: costanti.FieldType.number }),
|
||||
@@ -3022,8 +3049,10 @@ export const colTableNotifCoins = [
|
||||
|
||||
export const colTableMovement = [
|
||||
AddCol({ name: 'transactionDate', label_trans: 'movement.transactionDate', fieldtype: costanti.FieldType.date }),
|
||||
AddCol({ name: 'accountFromId', label_trans: 'movement.accountFromId', fieldtype: costanti.FieldType.string, required: true }),
|
||||
AddCol({ name: 'accountToId', label_trans: 'movement.accountToId', fieldtype: costanti.FieldType.string, required: true }),
|
||||
AddCol({ name: 'accountFromId', label_trans: 'movement.accountFromId', fieldtype: costanti.FieldType.select,
|
||||
required: true, jointable: 'listaccounts', }),
|
||||
AddCol({ name: 'accountToId', label_trans: 'movement.accountToId', fieldtype: costanti.FieldType.select,
|
||||
required: true, jointable: 'listaccounts' }),
|
||||
AddCol({ name: 'amount', label_trans: 'movement.amount', fieldtype: costanti.FieldType.number, required: true }),
|
||||
AddCol({ name: 'causal', label_trans: 'movement.causal' }),
|
||||
AddCol({ name: 'causal_table', label_trans: 'movement.causal_table' }),
|
||||
@@ -3423,6 +3452,30 @@ export const fieldsTable = {
|
||||
collabel: 'username',
|
||||
noshow: true,
|
||||
},
|
||||
{
|
||||
value: 'circuits',
|
||||
label: 'Circuiti',
|
||||
columns: colTableCircuit,
|
||||
colkey: '_id',
|
||||
collabel: 'name',
|
||||
noshow: true,
|
||||
},
|
||||
{
|
||||
value: 'listcircuits',
|
||||
label: 'Lista Circuiti',
|
||||
columns: colTableGeneric,
|
||||
colkey: 'value',
|
||||
collabel: 'label',
|
||||
noshow: true,
|
||||
},
|
||||
{
|
||||
value: 'listaccounts',
|
||||
label: 'Lista Account',
|
||||
columns: colTableGeneric,
|
||||
colkey: 'value',
|
||||
collabel: 'label',
|
||||
noshow: true,
|
||||
},
|
||||
{
|
||||
value: 'visibility',
|
||||
label: 'Visibilità Permessi',
|
||||
@@ -3710,13 +3763,6 @@ export const fieldsTable = {
|
||||
colkey: 'value',
|
||||
collabel: 'label',
|
||||
},
|
||||
{
|
||||
value: 'circuits',
|
||||
label: 'Circuiti',
|
||||
columns: colTableCircuit,
|
||||
colkey: '_id',
|
||||
collabel: 'name',
|
||||
},
|
||||
{
|
||||
value: toolsext.TABTYPEHOSP,
|
||||
label: 'Tipo Ospitalità',
|
||||
|
||||
Reference in New Issue
Block a user