correction new_home + stats + dem_devis
This commit is contained in:
@@ -1551,7 +1551,7 @@ def dem_devis(request):
|
||||
dossiers_traites = get_dossiers_traites(request)
|
||||
|
||||
return {
|
||||
'page_title': 'Dossiers générés à traiter',
|
||||
'page_title': 'Dossiers avec statut: "A TRAITER"',
|
||||
'url': url,
|
||||
'dossiers_traites':dossiers_traites,
|
||||
}
|
||||
|
||||
@@ -176,8 +176,7 @@ def ca_groupes(request):
|
||||
print(datedeb)
|
||||
chart_ca_12m = []
|
||||
# titre des colonnes
|
||||
chart_ca_12m.append(('Mois', 'AXA', { 'type':'string','role': 'tooltip'},'DOMUS', { 'type':'string','role': 'tooltip'},
|
||||
'GMF', { 'type':'string','role': 'tooltip'},'MACIF', { 'type':'string','role': 'tooltip'}, 'MAIF', { 'type':'string','role': 'tooltip'}))
|
||||
chart_ca_12m.append(('Mois', 'MAIF', { 'type':'string','role': 'tooltip'}, 'MACIF', { 'type':'string','role': 'tooltip'}, 'GMF', { 'type':'string','role': 'tooltip'},'DOMUS', { 'type':'string','role': 'tooltip'}, 'AXA', { 'type':'string','role': 'tooltip'}))
|
||||
title = 'CA sur 12 mois'
|
||||
for item in items:
|
||||
date_aff = item.date[:3] + ' ' + item.date[-4:]
|
||||
@@ -188,7 +187,7 @@ def ca_groupes(request):
|
||||
tooltipGMF = "GMF - " + date_aff + ' \nCA: '+str(item.GMF_ca) + ' €\nDossiers: '+str(round(item.GMF_nb))
|
||||
tooltipMACIF = "MACIF - " + date_aff + ' \nCA: '+str(item.MACIF_ca) + ' €\nDossiers: '+str(round(item.MACIF_nb))
|
||||
# ('+str(item.population)+')/n'
|
||||
d = (item.mois[:3], float(item.AXA_ca), tooltipAXA, float(item.DOMUS_ca), tooltipDOMUS, float(item.GMF_ca), tooltipGMF, float(item.MACIF_ca), tooltipMACIF, float(item.MAIF_ca), tooltipMAIF)
|
||||
d = (item.mois[:3], float(item.MAIF_ca), tooltipMAIF, float(item.MACIF_ca), tooltipMACIF, float(item.GMF_ca), tooltipGMF, float(item.DOMUS_ca), tooltipDOMUS, float(item.AXA_ca), tooltipAXA)
|
||||
chart_ca_12m.append(d)
|
||||
|
||||
# debut = aujourd'hui - 11 mois
|
||||
@@ -254,9 +253,9 @@ def ca_clients(request):
|
||||
print(datedeb)
|
||||
chart_ca_12m = []
|
||||
# titre des colonnes
|
||||
chart_ca_12m.append(('Mois', 'ASSURANCES', { 'type':'string','role': 'tooltip'}, 'EXPERTS', { 'type':'string','role': 'tooltip'},
|
||||
'GROUPEMENT', { 'type':'string','role': 'tooltip'}, 'PARTICULIER', { 'type':'string','role': 'tooltip'},
|
||||
'REGIES', { 'type':'string','role': 'tooltip'}, 'SOCIETE', { 'type':'string','role': 'tooltip'}))
|
||||
chart_ca_12m.append(('Mois', 'SOCIETE', { 'type':'string','role': 'tooltip'}, 'REGIES', { 'type':'string','role': 'tooltip'},
|
||||
'PARTICULIER', { 'type':'string','role': 'tooltip'}, 'GROUPEMENT', { 'type':'string','role': 'tooltip'}, 'EXPERTS',
|
||||
{ 'type':'string','role': 'tooltip'}, 'ASSURANCES', { 'type':'string','role': 'tooltip'}))
|
||||
title = 'CA sur 12 mois'
|
||||
for item in items:
|
||||
date_aff = item.date[:3] + ' ' + item.date[-4:]
|
||||
@@ -268,8 +267,8 @@ def ca_clients(request):
|
||||
tooltipR = date_aff + ' \nCA: '+str(item.R_ca) + ' €\nDossiers: '+str(round(item.R_nb))
|
||||
tooltipS = date_aff + ' \nCA: '+str(item.S_ca) + ' €\nDossiers: '+str(round(item.S_nb))
|
||||
# ('+str(item.population)+')/n'
|
||||
d = (item.mois[:3], float(item.A_ca), tooltipA, float(item.E_ca), tooltipE, float(item.G_ca), tooltipG,
|
||||
float(item.P_ca), tooltipP, float(item.R_ca), tooltipR, float(item.S_ca), tooltipS)
|
||||
d = (item.mois[:3], float(item.S_ca), tooltipS, float(item.R_ca), tooltipR, float(item.P_ca), tooltipP,
|
||||
float(item.G_ca), tooltipG, float(item.E_ca), tooltipE, float(item.A_ca), tooltipA)
|
||||
chart_ca_12m.append(d)
|
||||
|
||||
# debut = aujourd'hui - 11 mois
|
||||
|
||||
Reference in New Issue
Block a user