From fee90fd966e97e01c571fbaa07761cf54f37f952 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Tue, 10 Oct 2017 23:30:41 -0400 Subject: Additional statistics added to the driver summary page --- .../templates/dispatch/drivers/detail.html | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'app/dispatch/templates') diff --git a/app/dispatch/templates/dispatch/drivers/detail.html b/app/dispatch/templates/dispatch/drivers/detail.html index 24afcc1..2c28064 100644 --- a/app/dispatch/templates/dispatch/drivers/detail.html +++ b/app/dispatch/templates/dispatch/drivers/detail.html @@ -10,6 +10,37 @@ +
+
+ + + + + + + + + + + + + +
Number of LoadsTotal Load costAverage Load cost
{{stats.count}}{{stats.sum}}{{stats.average|stringformat:".3f"}}
+
+
+ +{% if stats.incomplete_loads > 0 %} +
+
+

+ + Note: One or more loads has a 0 amount that needs attention + +

+

+
+{% endif %} +
arrow_back Prev @@ -20,6 +51,7 @@
+ {% load dynamic_key %} {% for date in loads %}
@@ -37,7 +69,11 @@ {% for load in loads|keyvalue:date %} {{ load.company.name }} + {% if load.amount == 0 %} + {{ load.amount }} + {% else %} {{ load.amount }} + {% endif %} Edit View -- cgit v1.2.3