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) }} €
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) }} €
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 %}