{% extends "layout_report.html" %} {% load tz %} {% load humanize %} {% load app_filters %} {% block content %} {{ block.super }}
Job Ref
Line
Disposition
NCM
Box
Reason
Reslt
Date
Shift
Begin
Prod
Cons
End
Location
PostedBy
{% regroup ncmtrx_list by ncm.disposition.name as disposition_list %} {% for disposition in disposition_list %} {% regroup disposition.list by ncm.ncm as ncm_list %} {% for ncmgroup in ncm_list %} {% for ncmtrx in ncmgroup.list %}
{% ifchanged ncmtrx.ncm %}{{ ncmtrx.job }}{% endifchanged %}
{% ifchanged ncmtrx.ncm %}{{ ncmtrx.line }}{% endifchanged %}
{% ifchanged ncmtrx.ncm %}{{ ncmtrx.disp | truncatechars:10 }}{% endifchanged %}
{% ifchanged ncmtrx.ncm %}{{ ncmtrx.ncm }}{% endifchanged %}
{% ifchanged ncmtrx.ncm %}{{ ncmtrx.ncm.box | default_if_none:"" | truncatechars:6 }}{% endifchanged %}
{% ifchanged ncmtrx.ncm %}{{ ncmtrx.ncm.reason | truncatechars:18 }}{% endifchanged %}
{% ifchanged ncmtrx.ncm %}{{ ncmtrx.ncm.result | truncatechars:4 }}{% endifchanged %}
{{ ncmtrx.transaction_date }}
{{ ncmtrx.shift }}
{{ ncmtrx.begin | floatformat:'0' | intcomma }}
{{ ncmtrx.produced | floatformat:'0' | intcomma }}
{{ ncmtrx.consumed | floatformat:'0' | intcomma }}
{{ ncmtrx.end | floatformat:'0' | intcomma }}
{{ ncmtrx.location | default_if_none:"" }}
{{ ncmtrx.postedby }}
{% endfor %}
 
 
 
 
{{ ncmgroup.list | running_total_produced | floatformat:'0' | intcomma }}
{{ ncmgroup.list | running_total_consumed | floatformat:'0' | intcomma }}
{{ ncmgroup.list | produced_less_consumed | floatformat:'0' | intcomma }}
 
 
{% endfor %}
 
 
 
 
{{ disposition.list | running_total_produced | floatformat:'0' | intcomma }}
{{ disposition.list | running_total_consumed | floatformat:'0' | intcomma }}
{{ disposition.list | produced_less_consumed | floatformat:'0' | intcomma }}
 
 
{% endfor %}
{% endblock content %}