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