{% extends "industry_reforged/base.html" %} {% load i18n humanize %} {% load industry_tags %} {% block details %}

{% trans "Director Configurations" %}

{% trans "Back" %}

{% trans "Set corporate rules for production, material efficiency, and pricing overrides." %}

{% trans "Specific Item Rules" %}
{% trans "Add Item Rule" %}
{% for config in configs %} {% empty %} {% endfor %}
Item BOM Strategy ME/TE Price Override Threshold Auto Produce Actions
{{ config.item_type.name }} {{ config.item_type.name }}
{{ config.get_build_or_buy_display }} {{ config.get_bom_source_display }} ME: {{ config.manual_me }}%
TE: {{ config.manual_te }}%
{% if config.manual_price %}{{ config.manual_price|eve_isk }}{% else %}Auto (Fuzzwork){% endif %} {{ config.target_threshold|intcomma }} {% if config.auto_produce %}{% else %}{% endif %}
{% trans "No item rules configured. Global defaults apply." %}
{% trans "Global Pricing Configuration" %}
{% trans "Default Corporate Discount" %}

{% if pricing_config.default_discount_percent > 0 %} {{ pricing_config.default_discount_percent }}% OFF {% else %} 0% (Jita Price) {% endif %}

{% trans "Builder Reward" %}

{{ pricing_config.builder_reward_percent }}%

{% trans "Applied automatically to all member orders and tasks unless overridden." %}
{% trans "System Taxes & Fees" %}

{% trans "Industry Tax Rate" %}: {{ tax_config.industry_tax_rate }}%
{% trans "Broker Fee Rate" %}: {{ tax_config.broker_fee_rate }}%

{% trans "Used to calculate realistic build costs and margins." %}
{% trans "Type Discounts" %}
{% trans "Add Discount" %}
{% for d in type_discounts %} {% empty %} {% endfor %}
{% trans "Type / Group" %} {% trans "Rule Type" %} {% trans "Discount %" %} {% trans "Actions" %}
{% if d.eve_type %}
{{ d.eve_type.name }} {{ d.eve_type.name }}
{% endif %}
Specific Type -{{ d.discount_percent }}%
{% trans "No specific discounts configured. Everyone pays full price (or markup)." %}
{% trans "Tracked Hangars" %}
{% trans "Discover Hangars" %}
{% for hangar in hangars %} {% empty %} {% endfor %}
{% trans "Hangar Name/Flag" %} {% trans "Location ID" %} {% trans "Status" %} {% trans "Actions" %}
{{ hangar.description|default:hangar.flag_id }} {{ hangar.location_id }} {% if hangar.is_active %} {% trans "Active" %} {% else %} {% trans "Disabled" %} {% endif %}
{% csrf_token %} {% if hangar.is_active %} {% else %} {% endif %}
{% trans "No hangars discovered. Click 'Discover Hangars' to scan your corporate assets." %}
{% trans "Hangars must be active to be included in inventory syncs." %}
{% trans "Background Task Logs" %}
{% for log in task_logs %} {% empty %} {% endfor %}
{% trans "Task Name" %} {% trans "Status" %} {% trans "Last Run" %} {% trans "Duration" %} {% trans "Message" %}
{{ log.task_name }} {% if log.status == 'SUCCESS' %} Success {% elif log.status == 'FAILED' %} Failed {% else %} Running {% endif %} {{ log.last_run|naturaltime }} {{ log.duration_seconds|floatformat:2 }}s {% if log.status == 'FAILED' and log.message %} {% else %} {{ log.message|truncatechars:50 }} {% endif %}
{% trans "No tasks have run yet." %}
{% endblock %} {% block extra_javascript %} {{ block.super }} {% endblock %}