- aggiornamento di tante cose...
- generazione Volantini - pagina RIS
This commit is contained in:
@@ -151,7 +151,7 @@ export const useCircuitStore = defineStore('CircuitStore', {
|
||||
circuitId: string,
|
||||
username: string,
|
||||
groupname?: string
|
||||
): number | string {
|
||||
): number {
|
||||
if (myuser && myuser.profile.useraccounts) {
|
||||
const account = myuser.profile.useraccounts.find(
|
||||
(rec: IAccount) =>
|
||||
@@ -161,7 +161,7 @@ export const useCircuitStore = defineStore('CircuitStore', {
|
||||
);
|
||||
return account ? account.fidoConcesso : 0;
|
||||
} else {
|
||||
return '';
|
||||
return 0;
|
||||
}
|
||||
},
|
||||
getMaxAccumuloByUsername(
|
||||
@@ -169,7 +169,7 @@ export const useCircuitStore = defineStore('CircuitStore', {
|
||||
circuitId: string,
|
||||
username: string,
|
||||
groupname?: string
|
||||
): number | string {
|
||||
): number {
|
||||
if (myuser && myuser.profile.useraccounts) {
|
||||
const account = myuser.profile.useraccounts.find(
|
||||
(rec: IAccount) =>
|
||||
@@ -179,7 +179,7 @@ export const useCircuitStore = defineStore('CircuitStore', {
|
||||
);
|
||||
return account ? account.qta_maxConcessa : 0;
|
||||
} else {
|
||||
return '';
|
||||
return 0;
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -6826,6 +6826,16 @@ export const colmyUserCircuit = [
|
||||
label_trans: 'account.importo_iniziale',
|
||||
fieldtype: costanti.FieldType.number,
|
||||
}),
|
||||
AddCol({
|
||||
name: 'received',
|
||||
label_trans: 'account.received',
|
||||
fieldtype: costanti.FieldType.number,
|
||||
}),
|
||||
AddCol({
|
||||
name: 'sent',
|
||||
label_trans: 'account.sent',
|
||||
fieldtype: costanti.FieldType.number,
|
||||
}),
|
||||
AddCol({
|
||||
name: 'saldo',
|
||||
label_trans: 'account.saldo',
|
||||
|
||||
@@ -8347,6 +8347,7 @@ export const tools = {
|
||||
shared_consts.CIRCUIT_PARAMS.SCOPERTO_MAX_CONTO_COMUNITARIO,
|
||||
valuta_per_euro: 1,
|
||||
totTransato: 0,
|
||||
numTransazioni: 0,
|
||||
totCircolante: 0,
|
||||
};
|
||||
},
|
||||
@@ -10437,6 +10438,13 @@ export const tools = {
|
||||
return { str: mystr.trim(), tipocontofrom, tipocontoto };
|
||||
},
|
||||
|
||||
isMovRicevuto(myusername: string, mymov: IMovVisu): boolean {
|
||||
return myusername && mymov.userto && mymov.userto.username === myusername;
|
||||
},
|
||||
isMovInviato(myusername: string, mymov: IMovVisu): boolean {
|
||||
return myusername && mymov.userfrom && mymov.userfrom.username === myusername;
|
||||
},
|
||||
|
||||
getUsernameOrGroupOrContoComByMov(mov: IMovQuery, from: boolean) {
|
||||
let mystrfrom = '';
|
||||
let mystrto = '';
|
||||
@@ -11489,7 +11497,9 @@ export const tools = {
|
||||
return shared_consts.Preferences.find((p) => p.value === id);
|
||||
},
|
||||
|
||||
// FINE !
|
||||
convertDateToTimestamp(mydate: Date | null | undefined): number {
|
||||
return mydate instanceof Date && !isNaN(mydate.getTime()) ? mydate.getTime() : 0;
|
||||
},
|
||||
|
||||
// getLocale() {
|
||||
// if (navigator.languages && navigator.languages.length > 0) {
|
||||
|
||||
@@ -785,7 +785,7 @@ export const useUserStore = defineStore('UserStore', {
|
||||
return tools.getUrlSite() + '/my/' + username;
|
||||
},
|
||||
|
||||
getLinkProfileAndRIS(username: string, qtyris: string, causale: string = ''): string {
|
||||
getLinkProfileAndRIS(circuitsel: string, username: string, qtyris: string, causale: string = ''): string {
|
||||
let myparams = '';
|
||||
if (username === '') username = this.my.username;
|
||||
let mylink = tools.getUrlSite() + '/my/' + username;
|
||||
@@ -799,6 +799,10 @@ export const useUserStore = defineStore('UserStore', {
|
||||
if (myparams) myparams += `&`;
|
||||
myparams += `cd=${tools.convertStringToUrl(causale)}`;
|
||||
}
|
||||
if (circuitsel) {
|
||||
if (myparams) myparams += `&`;
|
||||
myparams += `cs=${tools.convertStringToUrl(circuitsel)}`;
|
||||
}
|
||||
return mylink + (myparams ? '?' + myparams : '');
|
||||
},
|
||||
|
||||
|
||||
@@ -181,6 +181,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
bookingEvents: false,
|
||||
enableEcommerce: false,
|
||||
enableAI: false,
|
||||
enablePoster: false,
|
||||
enableGroups: false,
|
||||
enableCircuits: false,
|
||||
enableProj: false,
|
||||
@@ -840,6 +841,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
const adminRoutes = routesAdmin.routesAd(this.site);
|
||||
const ecommRoutes = routesECommerce.routesEcomm(this.site);
|
||||
const AIRoutes = routesAI.routesAI(this.site);
|
||||
const PosterRoutes = routesAI.routesPoster(this.site);
|
||||
|
||||
const last = {
|
||||
active: true,
|
||||
@@ -875,6 +877,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
...adminRoutes,
|
||||
...arrpagesroute,
|
||||
...AIRoutes,
|
||||
...PosterRoutes,
|
||||
last,
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user