minor fix stats devis
This commit is contained in:
@@ -20,7 +20,7 @@ pyramid.includes =
|
|||||||
|
|
||||||
|
|
||||||
sqlalchemy.url = mysql://phuoc:phuoc!@localhost/bddevfac?charset=utf8
|
sqlalchemy.url = mysql://phuoc:phuoc!@localhost/bddevfac?charset=utf8
|
||||||
# sqlalchemy.url = mysql://phuoc:phuoc!@192.168.15.33/bddevfac?charset=utf8
|
# sqlalchemy.url = mysql://phuoc:phuoc!@192.168.1.14/bddevfac?charset=utf8
|
||||||
# sqlalchemy.url = mysql://phuoc:phuoc!@192.168.0.31/bddevfac?charset=utf8
|
# sqlalchemy.url = mysql://phuoc:phuoc!@192.168.0.31/bddevfac?charset=utf8
|
||||||
|
|
||||||
mondumas.admin_email = cao.thien-phuoc@orange.fr
|
mondumas.admin_email = cao.thien-phuoc@orange.fr
|
||||||
|
|||||||
@@ -19,16 +19,16 @@
|
|||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<!-- CAMENBERT DU NOMBRE DE DEVIS FACTURES -->
|
<!-- CAMENBERT DU NOMBRE DE DEVIS FACTURES -->
|
||||||
<div id="chart_devis_y1" style="width: 100%; height: 500px;"></div>
|
<div class="col-sm-4"><div id="chart_devis_y1" style="width: 100%; height: 500px;"></div></div>
|
||||||
<div id="chart_devis_y2" style="width: 100%; height: 500px;"></div>
|
<div class="col-sm-4"><div id="chart_devis_y2" style="width: 100%; height: 500px;"></div></div>
|
||||||
<div id="chart_devis_y3" style="width: 100%; height: 500px;"></div>
|
<div class="col-sm-4"><div id="chart_devis_y3" style="width: 100%; height: 500px;"></div></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<!-- CAMEMBERT DU NOMBRE DE FACTURES AVEC DEVIS -->
|
<!-- CAMEMBERT DU NOMBRE DE FACTURES AVEC DEVIS -->
|
||||||
<div id="chart_fact_y1" style="width: 100%; height: 500px;"></div>
|
<div class="col-sm-4"><div id="chart_fact_y1" style="width: 100%; height: 500px;"></div></div>
|
||||||
<div id="chart_fact_y2" style="width: 100%; height: 500px;"></div>
|
<div class="col-sm-4"><div id="chart_fact_y2" style="width: 100%; height: 500px;"></div></div>
|
||||||
<div id="chart_fact_y3" style="width: 100%; height: 500px;"></div>
|
<div class="col-sm-4"><div id="chart_fact_y3" style="width: 100%; height: 500px;"></div></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@@ -69,7 +69,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
var options_fact_y1 = {
|
var options_fact_y1 = {
|
||||||
title: '${title_fact2}',
|
title: '${title_fact1}',
|
||||||
pieHole: 0.4,
|
pieHole: 0.4,
|
||||||
};
|
};
|
||||||
var options_fact_y2 = {
|
var options_fact_y2 = {
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
<div class="col-sm-3">
|
<div class="col-sm-3">
|
||||||
<a href="${request.application_url}/pourcentage_devis/PE" tal:condition="access > 0">
|
<a href="${request.application_url}/pourcentage_devis/PE" tal:condition="access > 0">
|
||||||
<span class="glyphicon glyphicon-equalizer logo-warning"></span>
|
<span class="glyphicon glyphicon-equalizer logo-warning"></span>
|
||||||
<h4>POURCENTAGE DEVIS</h4></a>
|
<h4>NB DEVIS/FACTURES</h4></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -434,19 +434,19 @@ def pourcentage_devis(request):
|
|||||||
title_devis2 = 'NB DEVIS ' + str(thisyear - 1)
|
title_devis2 = 'NB DEVIS ' + str(thisyear - 1)
|
||||||
title_devis3 = 'NB DEVIS ' + str(thisyear)
|
title_devis3 = 'NB DEVIS ' + str(thisyear)
|
||||||
for item in items:
|
for item in items:
|
||||||
d1 = ('Nb de devis facturés', item.devis_fact_y1)
|
d1 = ('Nb de devis facturés', float(item.devis_fact_y1))
|
||||||
chart_devis_y1.append(d1)
|
chart_devis_y1.append(d1)
|
||||||
d1 = ('Nb de devis non facturés', item.devis_non_fact_y1)
|
d1 = ('Nb de devis non facturés', float(item.devis_non_fact_y1))
|
||||||
chart_devis_y1.append(d1)
|
chart_devis_y1.append(d1)
|
||||||
|
|
||||||
d2 = ('Nb de devis facturés', item.devis_fact_y2)
|
d2 = ('Nb de devis facturés', float(item.devis_fact_y2))
|
||||||
chart_devis_y2.append(d2)
|
chart_devis_y2.append(d2)
|
||||||
d2 = ('Nb de devis non facturés', item.devis_non_fact_y2)
|
d2 = ('Nb de devis non facturés', float(item.devis_non_fact_y2))
|
||||||
chart_devis_y2.append(d2)
|
chart_devis_y2.append(d2)
|
||||||
|
|
||||||
d3 = ('Nb de devis facturés', item.devis_fact_y3),
|
d3 = ('Nb de devis facturés', float(item.devis_fact_y3))
|
||||||
chart_devis_y3.append(d3)
|
chart_devis_y3.append(d3)
|
||||||
d3 = ('Nb de devis non facturés', item.devis_non_fact_y3)
|
d3 = ('Nb de devis non facturés', float(item.devis_non_fact_y3))
|
||||||
chart_devis_y3.append(d3)
|
chart_devis_y3.append(d3)
|
||||||
|
|
||||||
# lire le nb de devis facturés
|
# lire le nb de devis facturés
|
||||||
@@ -462,23 +462,23 @@ def pourcentage_devis(request):
|
|||||||
title_fact2 = 'NB FACTURES ' + str(thisyear - 1)
|
title_fact2 = 'NB FACTURES ' + str(thisyear - 1)
|
||||||
title_fact3 = 'NB FACTURES ' + str(thisyear)
|
title_fact3 = 'NB FACTURES ' + str(thisyear)
|
||||||
for item in items:
|
for item in items:
|
||||||
d1 = ("Nb de factures avec devis", item.fact_w_devis_y1)
|
d1 = ("Nb de factures avec devis", float(item.fact_w_devis_y1))
|
||||||
chart_fact_y1.append(d1)
|
chart_fact_y1.append(d1)
|
||||||
d1 = ("Nb de factures sans devis", item.fact_wo_devis_y1)
|
d1 = ("Nb de factures sans devis", float(item.fact_wo_devis_y1))
|
||||||
chart_fact_y1.append(d1)
|
chart_fact_y1.append(d1)
|
||||||
|
|
||||||
d2 = ("Nb de factures avec devis", item.fact_w_devis_y2)
|
d2 = ("Nb de factures avec devis", float(item.fact_w_devis_y2))
|
||||||
chart_fact_y2.append(d2)
|
chart_fact_y2.append(d2)
|
||||||
d2 = ("Nb de factures sans devis", item.fact_wo_devis_y2)
|
d2 = ("Nb de factures sans devis", float(item.fact_wo_devis_y2))
|
||||||
chart_fact_y2.append(d2)
|
chart_fact_y2.append(d2)
|
||||||
|
|
||||||
d3 = ("Nb de factures avec devis", item.fact_w_devis_y3)
|
d3 = ("Nb de factures avec devis", float(item.fact_w_devis_y3))
|
||||||
chart_fact_y3.append(d3)
|
chart_fact_y3.append(d3)
|
||||||
d3 = ("Nb de factures sans devis", item.fact_wo_devis_y3)
|
d3 = ("Nb de factures sans devis", float(item.fact_wo_devis_y3))
|
||||||
chart_fact_y3.append(d3)
|
chart_fact_y3.append(d3)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'page_title': "Pourcentage de délais inférieurs à 2 jours",
|
'page_title': "Nombre de devis facturés et de factures avec devis",
|
||||||
'url': url,
|
'url': url,
|
||||||
'chart_devis_y1': json.dumps(chart_devis_y1),
|
'chart_devis_y1': json.dumps(chart_devis_y1),
|
||||||
'chart_devis_y2': json.dumps(chart_devis_y2),
|
'chart_devis_y2': json.dumps(chart_devis_y2),
|
||||||
|
|||||||
Reference in New Issue
Block a user