{% import 'AppBundle:Admin:CRUD\\Administrative\\Common\\Macro\\macro_rental_label.html.twig' as macro_label %} {% set hasVehicles = sellingVehicles is defined and sellingVehicles|length > 0 %} {% set hasServices = sellingServices is defined and sellingServices|length > 0 %} {% set hasRentalPricing = rentalPricing is defined and rentalPricingTotalPriceWithoutTax != 0 %} {% set hasRentalInsurance = rentalInsurance is defined and rentalInsurancePriceWithoutTax != 0 %}
{% if hasVehicles == true %} {% endif %} {% if hasVehicles == true %} {% include 'AppBundle:Admin:CRUD\\Administrative\\Common\\sale_margin_vehicle_selling_list.html.twig' with { 'sellingVehicles': sellingVehicles } %} {% include 'AppBundle:Admin:CRUD\\Administrative\\Common\\sale_margin_total.html.twig' with { 'analysisTitle': 'form.figures.total_margin_vehicle_title', 'hasVehicle': hasVehicles, 'totalPurchasePriceWithoutTax': totalVehiclePurchasePriceWithoutTax, 'totalPurchasePriceWithTax': totalVehiclePurchasePriceWithTax, 'totalChargesWithoutTax': totalVehicleChargesWithoutTax, 'totalPurchaseCostPriceWithoutTax': totalVehiclePurchaseCostPriceWithoutTax, 'totalSellingPriceWithoutTax': totalVehicleSellPriceWithoutTaxWithoutCollectedTax, 'totalSellingPriceWithTax': totalVehicleSellPriceWithTax, 'totalGrossMargin': totalVehicleGrossMargin, 'totalNetMargin': totalVehicleNetMargin, 'totalSellTotalCollectedTax': totalVehicleSellTotalCollectedTax } %} {% endif %} {# {% if partExchange is not empty and partExchange.vehicle is not empty %} {% include 'AppBundle:Admin:CRUD\\Administrative\\Common\\sale_margin_part_exchange.html.twig' with { 'partExchange': partExchange, 'hasVehicle': hasVehicles } %} {% endif %} #} {% if hasRentalPricing == true %} {% include 'AppBundle:Admin:CRUD\\Administrative\\Common\\sale_margin_pricing.html.twig' with { 'rentalLabel': macro_label.getLabel(rentalType), 'rentalZone': rentalPricing.priceZone, 'rentalTax': rentalPricing.priceTax, 'rentalPriceWithoutTax': rentalPricingTotalPriceWithoutTax, 'rentalPriceWithTax': rentalPricingTotalPriceWithTax, 'rentalCollectedTax': rentalPricingCollectedTax, 'rentalGrossMargin': rentalPricingTotalGrossMargin, 'rentalNetMargin': rentalPricingTotalNetMargin, 'hasVehicle': hasVehicles } %} {% endif %} {% if hasRentalInsurance == true %} {% include 'AppBundle:Admin:CRUD\\Administrative\\Common\\sale_margin_pricing.html.twig' with { 'rentalLabel': 'form.summary.label_assistance', 'rentalZone': rentalInsurance.assistanceZone, 'rentalTax': rentalInsurance.assistanceTax, 'rentalPriceWithoutTax': rentalInsurancePriceWithoutTax, 'rentalPriceWithTax': rentalInsurancePriceWithTax, 'rentalCollectedTax': rentalInsuranceCollectedTax, 'rentalGrossMargin': rentalInsuranceGrossMargin, 'rentalNetMargin': rentalInsuranceNetMargin, 'hasVehicle': hasVehicles } %} {% endif %} {% if hasRentalPricing == true or hasRentalInsurance == true %} {% include 'AppBundle:Admin:CRUD\\Administrative\\Common\\sale_margin_pricing_total.html.twig' with { 'rentalPricingTotalPriceWithoutTax': rentalPricingTotalPriceWithoutTax, 'rentalPricingTotalPriceWithTax': rentalPricingTotalPriceWithTax, 'rentalPricingCollectedTax': rentalPricingCollectedTax, 'rentalPricingTotalGrossMargin': rentalPricingTotalGrossMargin, 'rentalPricingTotalNetMargin': rentalPricingTotalNetMargin, 'rentalInsurancePriceWithoutTax': rentalInsurancePriceWithoutTax, 'rentalInsurancePriceWithTax': rentalInsurancePriceWithTax, 'rentalInsuranceCollectedTax': rentalInsuranceCollectedTax, 'rentalInsuranceGrossMargin': rentalInsuranceGrossMargin, 'rentalInsuranceNetMargin': rentalInsuranceNetMargin, 'hasVehicle': hasVehicles } %} {% endif %} {% if hasServices == true %} {% include 'AppBundle:Admin:CRUD\\Administrative\\Common\\sale_margin_service_selling_list.html.twig' with { 'sellingServices': sellingServices, 'hasVehicle': hasVehicles } %} {% include 'AppBundle:Admin:CRUD\\Administrative\\Common\\sale_margin_total.html.twig' with { 'analysisTitle': 'form.figures.total_margin_service_title', 'hasVehicle': hasVehicles, 'totalPurchasePriceWithoutTax': totalServicePurchasePriceWithoutTax, 'totalPurchasePriceWithTax': totalServicePurchasePriceWithTax, 'totalChargesWithoutTax': totalServiceChargesWithoutTax, 'totalPurchaseCostPriceWithoutTax': totalServicePurchaseCostPriceWithoutTax, 'totalSellingPriceWithoutTax': totalServiceSellPriceWithoutTaxWithoutCollectedTax, 'totalSellingPriceWithTax': totalServiceSellPriceWithTax, 'totalGrossMargin': totalServiceGrossMargin, 'totalNetMargin': totalServiceNetMargin, 'totalSellTotalCollectedTax': totalServiceSellTotalCollectedTax } %} {% endif %} {% include 'AppBundle:Admin:CRUD\\Administrative\\Common\\sale_margin_total.html.twig' with { 'analysisTitle': 'form.figures.total_margin_title', 'hasVehicle': hasVehicles, 'totalPurchasePriceWithoutTax': totalPurchasePriceWithoutTax, 'totalPurchasePriceWithTax': totalPurchasePriceWithTax, 'totalPurchaseCostPriceWithoutTax': totalPurchaseCostPriceWithoutTax, 'totalChargesWithoutTax': totalChargesWithoutTax, 'totalSellingPriceWithoutTax': totalSellingPriceWithoutTax, 'totalSellingPriceWithTax': totalSellingPriceWithTax, 'totalGrossMargin': totalGrossMargin, 'totalNetMargin': totalNetMargin, 'totalSellTotalCollectedTax': totalSellTotalCollectedTax } %}
Achat Vente
{{ 'form.figures.name'|trans({}, "CommonAdministrativeTrans") }} {{ 'form.figures.nb_days_in_parc'|trans({}, "CommonAdministrativeTrans") }} {{ 'form.figures.purchase_zone'|trans({}, "CommonAdministrativeTrans") }} {{ 'form.figures.purchase_price_ht'|trans({}, "CommonAdministrativeTrans") }} {{ 'form.figures.purchase_tax'|trans({}, "CommonAdministrativeTrans") }} {{ 'form.figures.purchase_price_ttc'|trans({}, "CommonAdministrativeTrans") }} {{ 'form.figures.total_charges_ht'|trans({}, "CommonAdministrativeTrans") }} {{ 'form.figures.income_price_ht'|trans({}, "CommonAdministrativeTrans") }} {{ 'form.figures.selling_zone'|trans({}, "CommonAdministrativeTrans") }} {{ 'form.figures.selling_price_ht'|trans({}, "CommonAdministrativeTrans") }} {{ 'form.figures.selling_tax'|trans({}, "CommonAdministrativeTrans") }} {{ 'form.figures.price_vat'|trans({}, "CommonAdministrativeTrans") }} {{ 'form.figures.selling_price_ttc'|trans({}, "CommonAdministrativeTrans") }} {{ 'form.figures.gross_profit_margin'|trans({}, "CommonAdministrativeTrans") }} {{ 'form.figures.net_margin'|trans({}, "CommonAdministrativeTrans") }}