{% extends "layout_report.html" %} {% load static %} {% load app_filters %} {% load humanize %} {% load tz %} {% block content %} {{ block.super }} {% if show_filters %}

Filters:

{% if qstr.customer %}

Customer: {{ qstr.customer }}

{% endif %} {% if qstr.inv_class %}

Inv Class: {{ qstr.inv_class }}

{% endif %} {% if qstr.group %}

Group: {{ qstr.group }}

{% endif %} {% if qstr.package %}

Package: {{ qstr.package }}

{% endif %} {% if qstr.cust_item_code %}

Cust Item Code: {{ qstr.cust_item_code }}

{% endif %} {% if qstr.item %}

Item: {{ qstr.item }}

{% endif %} {% if qstr.description %}

Description: {{ qstr.description }}

{% endif %}

{% endif %}
Filter:
View by:
{% if qstr.sort_by == 'receiver' %} {% if invlog_filtered %} {% regroup invlog_filtered by customer as customer_list %} {% for customer in customer_list %} {% regroup customer.list by inv_class as inv_class_list %} {% for inv_class in inv_class_list %} {% regroup inv_class.list by group as group_list %} {% for group in group_list %}
Inventory Owner: {{ customer.grouper}}
Inventory Class: {{ inv_class.grouper }}
Group: {{ group.grouper }}
Receiver
Item
Item Code
Description/Car
Lot
CofAMFR
Package
Unit Weight
Qty. On Hand
{% for record in group.list %}
{{ record.receiver }}
{{ record.item }}
{{ record.cust_item_code }}
{% if record.car %}{{ record.car }}-{{ record.car_location }}{% else %}{{ record.description|default_if_none:"" }}{% endif %}
{{ record.lot }}
{{ record.cofa_mfr | floatformat:'4' | intcomma }}
{{ record.package }}
{{ record.unit_weight | floatformat:'0' | intcomma }}
{{ record.qty_on_hand | floatformat:'0' | intcomma }}
{% endfor %}
Group Total Qty_on_hand for {{ group.grouper }} = {{ group.list | running_total | floatformat:'0' | intcomma }}
{% endfor %} {% endfor %} {% endfor %}
Total Qty on hand: {{ total.qty_on_hand__sum | floatformat:'0' | intcomma }}
{% else %}

There are no records in the log.

{% endif %} {% elif qstr.sort_by == 'item' %}
Item
Qty On Hand
{% regroup invlog_filtered by customer as customer_list %} {% for customer in customer_list %} {% regroup customer.list by inv_class as inv_class_list %} {% for inv_class in inv_class_list %} {% regroup inv_class.list by group as group_list %} {% for group in group_list %} {% regroup group.list by item as item_list %}
Inventory Owner: {{ customer.grouper}}
Inventory Class: {{ inv_class.grouper }}
Group: {{ group.grouper }}
{% for item in item_list %}
{{ item.grouper }}
{{ item.list.0.total_item | floatformat:'0' | intcomma }}
{% endfor %}
{% endfor %} {% endfor %} {% endfor %} {% elif qstr.sort_by == 'package' %}
Class
Package
Qty On Hand
{% regroup invlog_filtered by inv_class as class_list %} {% for inv_class in class_list %} {% regroup inv_class.list by package as package_list %} {% for package in package_list %}
{{ inv_class.grouper }}
{{ package.grouper }}
{{ package.list.0.total_class_package | floatformat:'0' | intcomma }}
{% endfor %} {% endfor %} {% else %}

Report Type Invalid

{% endif %} {% endblock content%} {% block body_scripts %} {{ block.super }} {% endblock body_scripts %}