From 4ee5893fd9c82228c62306fc7f5babdfc602e4c4 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Tue, 24 Oct 2017 16:59:26 -0400 Subject: Massive updates to the invoice system. Printable invoices work properly and required changes to materialize --- .../templates/dispatch/drivers/detail.html | 50 ++++++++++++++++------ app/dispatch/templates/dispatch/nav.html | 1 + 2 files changed, 39 insertions(+), 12 deletions(-) (limited to 'app/dispatch/templates') diff --git a/app/dispatch/templates/dispatch/drivers/detail.html b/app/dispatch/templates/dispatch/drivers/detail.html index 21d2432..fc197b5 100644 --- a/app/dispatch/templates/dispatch/drivers/detail.html +++ b/app/dispatch/templates/dispatch/drivers/detail.html @@ -10,42 +10,68 @@ +
+ +
+ +{% if not request.user.is_superuser %}
- - - + + + + - - - - - + + {% for load in loads_nosplit %} + + + + + + + {% endfor %} +
Number of LoadsTotal Load costAverage Load costDateDescriptionTotal
{{stats.count}}${{stats.sum}}${{stats.average|stringformat:".3f"}}
{{load.date}}{{load.description}}{{load.amount}} + + View + +
- +{% endif %}
- - - + + + + + + + +
DateDescriptionTotalNumber of LoadsAverage Load costTotal Load cost
{{stats.count}}${{stats.average|stringformat:".3f"}}${{stats.sum}}
+ +
arrow_back Prev diff --git a/app/dispatch/templates/dispatch/nav.html b/app/dispatch/templates/dispatch/nav.html index 20a2e83..532b2a9 100644 --- a/app/dispatch/templates/dispatch/nav.html +++ b/app/dispatch/templates/dispatch/nav.html @@ -3,6 +3,7 @@ {% if request.user.is_superuser %}
  • Drivers
  • Customers
  • +
  • Invoices
  • {% else %}
  • Summary
  • My Account
  • -- cgit v1.2.3