{% extends 'base.html' %} {% block title %}{{ job.name }}{% endblock %} {% block content %}
Informations
{% if job.machine_profile_name %} {% endif %} {% if job.handling_profile_name %} {% endif %} {% if job.pricing_profile_name %} {% endif %}
Client{{ job.client_name or '—' }}
Matiere {% if job.material_name %} {{ job.material_type }} {{ job.material_name }} {% else %}—{% endif %}
Fichier source {{ job.source_file or '—' }}
Date{{ job.created_at[:10] }}
Poids filament{{ job.weight_g }} g
Duree impression{{ job.print_time_s | fmt_time }}
Coeff design×{{ job.design_multiplier }}
Marge brute{{ job.gross_margin_pct }} %
Remise{{ job.discount_pct }} %
Profil machine{{ job.machine_profile_name }}
Profil manutention{{ job.handling_profile_name }}
Profil tarif{{ job.pricing_profile_name }}
{% if job.notes %}
{{ job.notes }} {% endif %}
Decomposition du prix
Cout fixe
Matiere{{ "%.4f"|format(job.material_cost) }} €
Marge matiere{{ "%.4f"|format(job.material_margin) }} €
Usure machine{{ "%.4f"|format(job.wear_cost) }} €
Electricite{{ "%.4f"|format(job.electricity_cost) }} €
Total cout fixe {% if job.cout_fixe %}{{ "%.2f"|format(job.cout_fixe) }}{% else %}{{ "%.2f"|format(job.material_cost + job.material_margin + job.wear_cost + job.electricity_cost) }}{% endif %} €
Partie variable
Manutention{{ "%.4f"|format(job.handling_cost) }} €
Design (×{{ job.design_multiplier }}){{ "%.4f"|format(job.design_cost) }} €
Marge brute ({{ job.gross_margin_pct }}%){{ "%.2f"|format(job.margin_amount) }} €
Total marge {% if job.total_marge %}{{ "%.2f"|format(job.total_marge) }}{% else %}{{ "%.2f"|format(job.handling_cost + job.design_cost + job.margin_amount) }}{% endif %} €
Fiscal
Cotisations sociales {% if job.cotisations_amount %}{{ "%.2f"|format(job.cotisations_amount) }}{% else %}{{ "%.2f"|format(job.tax_amount) }}{% endif %} €
{% if job.vfl_amount and job.vfl_amount > 0 %}
VFL impot {{ "%.2f"|format(job.vfl_amount) }} €
{% endif %} {% if job.tva_amount and job.tva_amount > 0 %}
TVA {{ "%.2f"|format(job.tva_amount) }} €
{% endif %} {% if job.discount_pct > 0 %}
Remise ({{ job.discount_pct }}%) −{{ "%.2f"|format(job.final_price / (1 - job.discount_pct/100) * (job.discount_pct/100)) }} €
{% endif %}
PRIX FINAL {{ "%.2f"|format(job.final_price) }} €
{% set cout_f = job.cout_fixe or (job.material_cost + job.material_margin + job.wear_cost + job.electricity_cost) %} {% set tot_m = job.total_marge or (job.handling_cost + job.design_cost + job.margin_amount) %} {% set fiscal = (job.cotisations_amount or job.tax_amount or 0) + (job.vfl_amount or 0) + (job.tva_amount or 0) %} {% set total = job.final_price %} {% if total > 0 %}
Cout fixe ({{ (cout_f/total*100)|round(1) }}%) Marge ({{ (tot_m/total*100)|round(1) }}%) Fiscal ({{ (fiscal/total*100)|round(1) }}%)
{% endif %}
{% endblock %}