{% extends "admin/base.html" %} {% block title %}Cost Factors Management{% endblock %} {% block content %}

Cost Factors Management

Configure calculation parameters and factors

Back to Dashboard
{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %} {% endfor %} {% endif %} {% endwith %}

Calculation Logic

graph TD A[Base Cost] --> B[Base Factors] B --> C[Mold Factors] C --> D[Complexity Factors] D --> E[Texture Factors] E --> F[Tax Factors] F --> G[Final Cost] B --> B1[Base Factor 1] B --> B2[Base Factor 2] C --> C1[Mold Factor 1] C --> C2[Mold Factor 2] D --> D1[Complexity Factor 1] D --> D2[Complexity Factor 2] E --> E1[Texture Factor 1] E --> E2[Texture Factor 2] F --> F1[Tax Rate]

{{ base_factors|length if base_factors else 0 }}

Base Factors

{{ mold_factors|length if mold_factors else 0 }}

Mold Factors

{{ complexity_factors|length if complexity_factors else 0 }}

Complexity

{{ texture_factors|length if texture_factors else 0 }}

Texture

{{ tax_factors|length if tax_factors else 0 }}

Tax Factors

Base Factors {{ base_factors|length if base_factors else 0 }}

{% if base_factors %}
{% for factor in base_factors %} {% endfor %}
Factor Name Value Description Actions
{{ factor.name }}
{{ factor.category }}
{{ "%.2f"|format(factor.factor_value) }} {{ factor.description or 'Base calculation factor' }} Edit History
{% else %}

No base factors found.

{% endif %}

Mold Factors {{ mold_factors|length if mold_factors else 0 }}

{% if mold_factors %}
{% for factor in mold_factors %} {% endfor %}
Factor Name Value Description Actions
{{ factor.name }}
{{ factor.category }}
{{ "%.2f"|format(factor.factor_value) }} {{ factor.description or 'Mold-related factor' }} Edit History
{% else %}

No mold factors found.

{% endif %}

Complexity Factors {{ complexity_factors|length if complexity_factors else 0 }}

{% if complexity_factors %}
{% for factor in complexity_factors %} {% endfor %}
Factor Name Value Description Actions
{{ factor.name }}
{{ factor.category }}
{{ "%.2f"|format(factor.factor_value) }} {{ factor.description or 'Complexity-related factor' }} Edit History
{% else %}

No complexity factors found.

{% endif %}

Texture Factors {{ texture_factors|length if texture_factors else 0 }}

{% if texture_factors %}
{% for factor in texture_factors %} {% endfor %}
Factor Name Value Description Actions
{{ factor.name }}
{{ factor.category }}
{{ "%.2f"|format(factor.factor_value) }} {{ factor.description or 'Texture-related factor' }} Edit History
{% else %}

No texture factors found.

{% endif %}

Tax Factors {{ tax_factors|length if tax_factors else 0 }}

{% if tax_factors %}
{% for factor in tax_factors %} {% endfor %}
Country/Region Tax Rate Actions
{{ factor.name }}
{{ factor.description or 'Tax rate' }}
{{ "%.1f"|format(factor.factor_value * 100) }}% Edit History
{% else %}

No tax factors found.

{% endif %}
{% block styles %} {{ super() }} {% endblock %} {% endblock %}