{% 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{% if job.material_name %} {{ job.material_name }}{% endif %}{{ "%.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) }} €
{% set cout_f = job.cout_fixe or (job.material_cost + job.material_margin + job.wear_cost + job.electricity_cost) %}
Total cout fixe {{ "%.2f"|format(cout_f) }} €
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) }} €
{% set tot_m = job.total_marge or (job.handling_cost + job.design_cost + job.margin_amount) %} {% set prix_ttc = job.final_price / (1 - job.discount_pct / 100) if job.discount_pct < 100 else job.final_price %} {% set prix_ht_net = prix_ttc - (job.tva_amount or 0) %} {% set marge_pct_ht = (tot_m / prix_ht_net * 100)|round(1) if prix_ht_net > 0 else 0 %}
Total marge ({{ marge_pct_ht }}% du HT) {{ "%.2f"|format(tot_m) }} €
Fiscal
Cotisations BIC vente {% if job.cotisations_amount %}{{ "%.2f"|format(job.cotisations_amount) }}{% else %}{{ "%.2f"|format(job.tax_amount or 0) }}{% endif %} €
{% if job.vfl_amount and job.vfl_amount > 0 %}
VFL impot {{ "%.2f"|format(job.vfl_amount) }} €
{% endif %} {% if job.other_taxes_amount and job.other_taxes_amount > 0 %}
Autres taxes / CFE {{ "%.2f"|format(job.other_taxes_amount) }} €
{% endif %}
Prix HT {{ "%.2f"|format(prix_ht_net) }} €
{% 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(prix_ttc * job.discount_pct / 100) }} €
{% endif %}
PRIX FINAL TTC {{ "%.2f"|format(job.final_price) }} €
{% set fiscal = (job.cotisations_amount or job.tax_amount or 0) + (job.vfl_amount or 0) + (job.other_taxes_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 %}