{% extends "site_base.html" %} {% load staticfiles %} {% load i18n %} {% load bootstrap_tags %} {% block head_title %}{% trans "Value Equation Sandbox" %}{% endblock %} {% block extra_head %} {% endblock %} {% block body_class %}work{% endblock %} {% block body_base %}
{% include "_messages.html" %} {% trans "Value Equation Sandbox" %} {% trans "Edit Value Equation" %} {% if ve.live and user.is_staff %} {% trans "Distribute Income" %} {% endif %} {% trans "Value Equations List" %}
({% trans "Your distribution will be displayed but will not be saved." %})

{% trans "Distribution" %}:

{% csrf_token %}

{% trans "Value Equation" %}

{{ header_form.value_equation }}

Amount to distribute" %}

{{ header_form.amount_to_distribute }}

{% trans "Bucket filters" %}:
{% for bucket in buckets %}
{{ bucket.name }} {{ bucket.percentage }}%
{% if bucket.distribution_agent %}
Distribute to {{ bucket.distribution_agent.name }}
{% endif %} {% if bucket.filter_method %}
{% if bucket.filter_method == 'dates' %}

Enter start and end dates (both optional)

{{ bucket.form.start_date }}
through
{{ bucket.form.end_date }}

Select only from one organization?

{{ bucket.form.context_agent }}
{% else %} {{ bucket.form|as_bootstrap }} {% endif %}
{% endif %} {% endfor %}
{% if agent_totals %}
{% comment %}
{% endcomment %} Agent Totals: {% for at in agent_totals %} {% endfor %}
{% trans "Agent" %} {% trans "Distribution Amount" %}
{{ at.to_agent.name }} {{ at.quantity }}
Total {{ total }}
Subtotals: {% for sub in agent_subtotals %} {% endfor %}
{% trans "Agent" %} {% trans "Filter" %} {% trans "Qty" %} {% trans "Value Added" %} {% trans "Distr Amount" %} {% trans "Rate" %}
{{ sub.agent.nick }} {{ sub.bucket_rule.filter }} {{ sub.quantity }} {{ sub.value }} {{ sub.distr_amt }} {{ sub.rate }}
{% endif %}
{% if details %}
Details:* * Does not include buckets with a distribution directly to one agent.
Event count: {{ event_count }} {% for detail in details %} {% endfor %}
{% trans "Bucket" %} {% trans "Filter" %} {% trans "Contributor" %} {% trans "Contribution Date" %} {% trans "Contribution Type" %} {% trans "Contribution" %} {% trans "Claim equation" %} {% trans "Distributed" %} {% trans "Explanation" %}
{{ detail.vebr.value_equation_bucket.name }} {{ detail.vebr.filter }} {{ detail.from_agent.nick }} {{ detail.event_date }} {{ detail.event_type }} - {{ detail.resource_type }} {{ detail.quantity }} {% if detail.unit_of_quantity %} {{ detail.unit_of_quantity.abbrev }} {% endif %} {{ detail.vebr.claim_creation_equation }} {{ detail.distr_amt }} {{ detail.explanation }}
Total: {{ hours }}
{% endif %}
{% endblock %} {% block extra_script %} {% endblock %} {% block extra_body %} {{ block.super }} {% endblock %}