{% extends 'base.html' %} {% block title %}{{ job.name }}{% endblock %} {% block content %}
Informations
Client{{ job.client_name or '—' }}
Matière {% 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
Durée impression{{ job.print_time_s | fmt_time }}
Coeff design×{{ job.design_multiplier }}
Marge brute{{ job.gross_margin_pct }} %
Remise{{ job.discount_pct }} %
{% if job.notes %}
{{ job.notes }} {% endif %}
Décomposition du prix
Matière{{ "%.4f"|format(job.material_cost) }} €
Marge matière{{ "%.4f"|format(job.material_margin) }} €
Design (×{{ job.design_multiplier }}){{ "%.4f"|format(job.design_cost) }} €
Manutention{{ "%.4f"|format(job.handling_cost) }} €
Usure machine{{ "%.4f"|format(job.wear_cost) }} €
Électricité{{ "%.4f"|format(job.electricity_cost) }} €
Sous-total coûts {{ "%.2f"|format(job.subtotal) }} €
Marge brute ({{ job.gross_margin_pct }}%) {{ "%.2f"|format(job.margin_amount) }} €
Cotisations micro-ent. {{ "%.2f"|format(job.tax_amount) }} €
{% if job.discount_pct > 0 %}
Remise ({{ job.discount_pct }}%) −{{ "%.2f"|format((job.subtotal + job.margin_amount + job.tax_amount) * job.discount_pct / 100) }} €
{% endif %}
PRIX FINAL {{ "%.2f"|format(job.final_price) }} €
{% set total = job.final_price %} {% if total > 0 %}
Coûts ({{ (job.subtotal/total*100)|round(1) }}%) Marge ({{ (job.margin_amount/total*100)|round(1) }}%) Taxes ({{ (job.tax_amount/total*100)|round(1) }}%)
{% endif %}
{% endblock %}