mise en prod
This commit is contained in:
@@ -135,7 +135,7 @@
|
|||||||
<div class="col-xs-8">
|
<div class="col-xs-8">
|
||||||
<select class="form-control" id="motif" name="motif">
|
<select class="form-control" id="motif" name="motif">
|
||||||
<option selected> </option>
|
<option selected> </option>
|
||||||
<div tal:repeat="item motif">
|
<div tal:repeat="item motifs">
|
||||||
<option>${item.code} | ${item.libelle}</option>
|
<option>${item.code} | ${item.libelle}</option>
|
||||||
</div>
|
</div>
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2>Evolution du CA sur les 3 dernières années (global)</h2>
|
<h2>Evolution du CA global sur les 3 dernières années</h2>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<!-- camembert 1 -->
|
<!-- camembert 1 -->
|
||||||
<div class="col-sm-4">
|
<div class="col-sm-4">
|
||||||
@@ -80,41 +80,37 @@
|
|||||||
var options_ca_12m = {
|
var options_ca_12m = {
|
||||||
title: '${title}',
|
title: '${title}',
|
||||||
vAxis: {title: "Chiffre d'Affaires en €"},
|
vAxis: {title: "Chiffre d'Affaires en €"},
|
||||||
colors: ['#dc3912', 'ff9900', 'green', 'purple', '3366cc'],
|
|
||||||
isStacked: true
|
isStacked: true
|
||||||
};
|
};
|
||||||
|
|
||||||
var options_ca_3y_1 = {
|
var options_ca_3y_1 = {
|
||||||
title: '${title1}',
|
title: 'CA groupe ${annee1}',
|
||||||
colors: ['purple', 'ff9900', '#dc3912', '3366cc', 'green'],
|
|
||||||
pieHole: 0.3,
|
pieHole: 0.3,
|
||||||
};
|
};
|
||||||
|
|
||||||
var options_ca_3y_2 = {
|
var options_ca_3y_2 = {
|
||||||
title: '${title2}',
|
title: 'CA groupe ${annee2}',
|
||||||
colors: ['purple', 'ff9900', '#dc3912', '3366cc', 'green'],
|
|
||||||
pieHole: 0.3,
|
pieHole: 0.3,
|
||||||
};
|
};
|
||||||
|
|
||||||
var options_ca_3y_3 = {
|
var options_ca_3y_3 = {
|
||||||
title: '${title3}',
|
title: 'CA groupe ${annee3}',
|
||||||
colors: ['purple', 'ff9900', '#dc3912', '3366cc', 'green'],
|
|
||||||
pieHole: 0.3,
|
pieHole: 0.3,
|
||||||
};
|
};
|
||||||
|
|
||||||
var options_ca_3y_1_x = {
|
var options_ca_3y_1_x = {
|
||||||
title: '${title1}',
|
title: 'CA global ${annee1}',
|
||||||
colors: ['gray', 'green', '#3366cc', 'purple', 'ff9900', 'dc3912'],
|
pieHole: 0.3,
|
||||||
};
|
};
|
||||||
|
|
||||||
var options_ca_3y_2_x = {
|
var options_ca_3y_2_x = {
|
||||||
title: '${title2}',
|
title: 'CA global ${annee2}',
|
||||||
colors: ['gray', 'green', '#3366cc', 'purple', 'ff9900', 'dc3912'],
|
pieHole: 0.3,
|
||||||
};
|
};
|
||||||
|
|
||||||
var options_ca_3y_3_x = {
|
var options_ca_3y_3_x = {
|
||||||
title: '${title3}',
|
title: 'CA global ${annee3}',
|
||||||
colors: ['gray', 'green', '#3366cc', 'purple', 'ff9900', 'dc3912'],
|
pieHole: 0.3,
|
||||||
};
|
};
|
||||||
|
|
||||||
var chart_ca_12m = new google.visualization.ColumnChart(document.getElementById('chart_ca_12m'));
|
var chart_ca_12m = new google.visualization.ColumnChart(document.getElementById('chart_ca_12m'));
|
||||||
|
|||||||
@@ -42,6 +42,7 @@
|
|||||||
|
|
||||||
var options_delais_p = {
|
var options_delais_p = {
|
||||||
title: '${title}',
|
title: '${title}',
|
||||||
|
pieHole: 0.3,
|
||||||
};
|
};
|
||||||
|
|
||||||
var chart_delais_p = new google.visualization.PieChart(document.getElementById('chart_delais_p'));
|
var chart_delais_p = new google.visualization.PieChart(document.getElementById('chart_delais_p'));
|
||||||
|
|||||||
@@ -57,28 +57,28 @@
|
|||||||
|
|
||||||
var options_devis_y1 = {
|
var options_devis_y1 = {
|
||||||
title: '${title_devis1}',
|
title: '${title_devis1}',
|
||||||
pieHole: 0.4,
|
pieHole: 0.3,
|
||||||
};
|
};
|
||||||
var options_devis_y2 = {
|
var options_devis_y2 = {
|
||||||
title: '${title_devis2}',
|
title: '${title_devis2}',
|
||||||
pieHole: 0.4,
|
pieHole: 0.3,
|
||||||
};
|
};
|
||||||
var options_devis_y3 = {
|
var options_devis_y3 = {
|
||||||
title: '${title_devis3}',
|
title: '${title_devis3}',
|
||||||
pieHole: 0.4,
|
pieHole: 0.3,
|
||||||
};
|
};
|
||||||
|
|
||||||
var options_fact_y1 = {
|
var options_fact_y1 = {
|
||||||
title: '${title_fact1}',
|
title: '${title_fact1}',
|
||||||
pieHole: 0.4,
|
pieHole: 0.3,
|
||||||
};
|
};
|
||||||
var options_fact_y2 = {
|
var options_fact_y2 = {
|
||||||
title: '${title_fact2}',
|
title: '${title_fact2}',
|
||||||
pieHole: 0.4,
|
pieHole: 0.3,
|
||||||
};
|
};
|
||||||
var options_fact_y3 = {
|
var options_fact_y3 = {
|
||||||
title: '${title_fact3}',
|
title: '${title_fact3}',
|
||||||
pieHole: 0.4,
|
pieHole: 0.3,
|
||||||
};
|
};
|
||||||
|
|
||||||
var chart_devis_y1 = new google.visualization.PieChart(document.getElementById('chart_devis_y1'));
|
var chart_devis_y1 = new google.visualization.PieChart(document.getElementById('chart_devis_y1'));
|
||||||
|
|||||||
@@ -202,9 +202,6 @@ def ca_groupes(request):
|
|||||||
chart_ca_3y_1.append(('Groupe', 'CA', { 'type':'string','role': 'tooltip'}))
|
chart_ca_3y_1.append(('Groupe', 'CA', { 'type':'string','role': 'tooltip'}))
|
||||||
chart_ca_3y_2.append(('Groupe', 'CA', { 'type':'string','role': 'tooltip'}))
|
chart_ca_3y_2.append(('Groupe', 'CA', { 'type':'string','role': 'tooltip'}))
|
||||||
chart_ca_3y_3.append(('Groupe', 'CA', { 'type':'string','role': 'tooltip'}))
|
chart_ca_3y_3.append(('Groupe', 'CA', { 'type':'string','role': 'tooltip'}))
|
||||||
title1 = 'CA ' + str(thisyear - 2)
|
|
||||||
title2 = 'CA ' + str(thisyear - 1)
|
|
||||||
title3 = 'CA ' + str(thisyear)
|
|
||||||
for item in items:
|
for item in items:
|
||||||
# construire la liste pour donut cible
|
# construire la liste pour donut cible
|
||||||
tooltip_y1 = item.groupe + ' \nCA: '+str(item.Annee1) + ' €\nDossiers: '+str(round(item.Count1))
|
tooltip_y1 = item.groupe + ' \nCA: '+str(item.Annee1) + ' €\nDossiers: '+str(round(item.Count1))
|
||||||
@@ -227,9 +224,9 @@ def ca_groupes(request):
|
|||||||
chart_ca_3y_1_x.append(('Groupe', 'CA', { 'type':'string','role': 'tooltip'}))
|
chart_ca_3y_1_x.append(('Groupe', 'CA', { 'type':'string','role': 'tooltip'}))
|
||||||
chart_ca_3y_2_x.append(('Groupe', 'CA', { 'type':'string','role': 'tooltip'}))
|
chart_ca_3y_2_x.append(('Groupe', 'CA', { 'type':'string','role': 'tooltip'}))
|
||||||
chart_ca_3y_3_x.append(('Groupe', 'CA', { 'type':'string','role': 'tooltip'}))
|
chart_ca_3y_3_x.append(('Groupe', 'CA', { 'type':'string','role': 'tooltip'}))
|
||||||
title1 = 'CA ' + str(thisyear - 2)
|
annee1 = str(thisyear - 2)
|
||||||
title2 = 'CA ' + str(thisyear - 1)
|
annee2 = str(thisyear - 1)
|
||||||
title3 = 'CA ' + str(thisyear)
|
annee3 = str(thisyear)
|
||||||
for item in items:
|
for item in items:
|
||||||
# construire la liste pour donut cible
|
# construire la liste pour donut cible
|
||||||
tooltip_y1 = item.groupe + ' \nCA: '+str(item.Annee1) + ' €\nDossiers: '+str(round(item.Count1))
|
tooltip_y1 = item.groupe + ' \nCA: '+str(item.Annee1) + ' €\nDossiers: '+str(round(item.Count1))
|
||||||
@@ -255,9 +252,9 @@ def ca_groupes(request):
|
|||||||
'chart_ca_3y_2_x': json.dumps(chart_ca_3y_2_x),
|
'chart_ca_3y_2_x': json.dumps(chart_ca_3y_2_x),
|
||||||
'chart_ca_3y_3_x': json.dumps(chart_ca_3y_3_x),
|
'chart_ca_3y_3_x': json.dumps(chart_ca_3y_3_x),
|
||||||
'title': title,
|
'title': title,
|
||||||
'title1': title1,
|
'annee1': annee1,
|
||||||
'title2': title2,
|
'annee2': annee2,
|
||||||
'title3': title3,
|
'annee3': annee3,
|
||||||
'societes': societes,
|
'societes': societes,
|
||||||
'societe': societe,
|
'societe': societe,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user