{% extends "admin/base.html" %} {% block title %}Edit Cost Factor: {{ factor.name }}{% endblock %} {% block content %}

Edit Cost Factor

{{ factor.name }} ({{ factor.category }})

{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %} {% endfor %} {% endif %} {% endwith %}
Edit Factor Details
{% if factor.category == 'tax' %} Enter as decimal (e.g., 0.06 for 6%) {% elif factor.category == 'base' %} Enter the base price value {% else %} Enter the multiplier factor {% endif %}
{% if factor.calculation_formula %}
{% endif %} {% if factor.percentage %}
{% endif %}
This will be recorded in the change history for audit purposes.
Cancel
Current Information
Category
{{ factor.category }}
Name
{{ factor.name }}
Current Value
{{ "%.4f"|format(factor.factor_value) }}
Status
{% if factor.is_active %} Active {% else %} Inactive {% endif %}
Created
{{ factor.created_at.strftime('%Y-%m-%d %H:%M') if factor.created_at else 'Unknown' }}
Last Updated
{{ factor.updated_at.strftime('%Y-%m-%d %H:%M') if factor.updated_at else 'Never' }}
{% if factor.updater %}
Updated By
{{ factor.updater.username }}
{% endif %}
{% endblock %}