{% extends 'AppBundle:Documents:v2\\standard_layout.html.twig' %} {% import 'AppBundle:Documents:v2\\Import\\vehicle.html.twig' as vehicleF %} {% import 'AppBundle:Documents:v2\\Import\\vehicle_follow.html.twig' as vehicleFollowF %} {% import 'AppBundle:Documents:v2\\Import\\vehicle_purchase.html.twig' as vehiclePurchaseF %} {% import 'AppBundle:Documents:v2\\Import\\vehicle_invoice.html.twig' as vehicleInvoiceF %} {% import 'AppBundle:Documents:v2\\Import\\contact.html.twig' as contactF %} {% import 'AppBundle:Documents:v2\\Import\\address.html.twig' as addressF %} {% block header %} {% include 'AppBundle:Documents:v2\\Include\\Vehicle\\synthese_header.html.twig' with { 'asideLabel' : 'Numéro de police : ', 'asideValue' : vehicleF.getVo(vehicle, {'previousValue': ''}), 'title' : documentTemplate.getTitle(), } %} {% endblock %} {% block main_title %}{% endblock main_title %} {% block signature %}{% endblock signature %} {% block content %}
{% include 'AppBundle:Documents:v2\\Include\\Global\\array_content.html.twig' with { 'rowList' : [ { 'asideSpace' : true, 'widthCells' : [1,2,3,3], 'cellTdClass' : 'l-light-grey tab-light-grey', 'items' : [ {'label' : 'Type', 'value' : vehicleF.getTypeVoVn(vehicle, {})}, {'label' : 'Marque', 'value' : vehicleF.getBrand(vehicle, {'truncate': 40})}, {'label' : 'Modèle', 'value' : vehicleF.getModel(vehicle, {'truncate': 40})}, {'label' : 'Version', 'value' : vehicleF.getVersion(vehicle, {'truncate': 40})}, ] }, { 'asideSpace' : true, 'widthCells' : [1,2,2,4], 'items' : [ {'label' : 'Genre', 'value' : vehicleF.getVehicleType(vehicle, {})}, {'label' : 'Energie', 'value' : vehicleF.getEnergy(vehicle, {})}, {'label' : 'Puissance fiscale', 'value' : vehicleF.getTaxHorsePower(vehicle, {})}, {'label' : 'Numéro de série', 'value' : vehicleF.getVin(vehicle, {'truncate': 40})}, ] }, { 'asideSpace' : true, 'widthCells' : [2,2,2,3], 'items' : [ {'label' : 'Mise en circulation', 'value' : vehicleF.getDateOfDistribution(vehicle, {})}, {'label' : 'Couleur', 'value' : vehicleF.getColor(vehicle, {})}, {'label' : 'Immatriculation', 'value' : vehicleF.getLicenseNumber(vehicle, {"afterValue": ""})}, {'label' : 'Kilométrage non garanti', 'value' : vehicleF.getDistanceTraveled(vehicle, {"afterValue": "Km"})}, ] }, { 'asideSpace' : true, 'widthCells' : [2,2,5], 'items' : [ {'label' : 'Provenance', 'value' : vehicleFollowF.getOrigin(vehicle.follow, {'truncate': 40})}, {'label' : 'CO2', 'value' : vehicleF.getExtraUrbanKmConsumption(vehicle, {})}, {'label' : 'Garantie', 'value' : vehicleF.getWarranty(vehicle, {'truncate': 40})}, ] } ] } %}

Achats

Ventes

{% include 'AppBundle:Documents:v2\\Include\\Vehicle\\synthese_content.html.twig' with { 'label': 'Date', 'purchase': vehiclePurchaseF.getPurchaseDate(vehicle.purchase, {}), 'sale': vehicleInvoiceF.getInvoiceDate(vehicle_invoice, {}), 'tdClass': 'w-40 l-light-grey tab-light-grey' } %} {% include 'AppBundle:Documents:v2\\Include\\Vehicle\\synthese_content.html.twig' with { 'label': 'Zone', 'purchase': vehiclePurchaseF.getZonePurchase(vehicle.purchase, {}), 'sale': vehicleInvoiceF.getVehicleSellingListZone(vehicle_invoice, {}) } %} {% include 'AppBundle:Documents:v2\\Include\\Vehicle\\synthese_content.html.twig' with { 'label': 'Prix HT', 'purchase': vehiclePurchaseF.getPriceWithoutTax(vehicle.purchase, {}), 'sale': vehicleInvoiceF.getVehicleSellingListSellPriceWithoutTax(vehicle_invoice, {}) } %} {% include 'AppBundle:Documents:v2\\Include\\Vehicle\\synthese_content.html.twig' with { 'label': 'TVA', 'purchase': vehiclePurchaseF.getTax(vehicle.purchase, {}), 'sale': vehicleInvoiceF.getVehicleSellingListTax(vehicle_invoice, {}) } %} {% include 'AppBundle:Documents:v2\\Include\\Vehicle\\synthese_content.html.twig' with { 'label': 'Prix TTC', 'purchase': vehiclePurchaseF.getPriceWithTax(vehicle.purchase, {}), 'sale': vehicleInvoiceF.getVehicleSellingListSellPriceWithTax(vehicle_invoice, {}) } %} {% include 'AppBundle:Documents:v2\\Include\\Vehicle\\synthese_content.html.twig' with { 'label': 'Réglé', 'purchase': vehiclePurchaseF.getPaymentSettled(vehicle.purchase, {}), 'sale': vehicleInvoiceF.getBalance(vehicle_invoice, {}) } %}

Achats

Ventes

{% include 'AppBundle:Documents:v2\\Include\\Vehicle\\synthese_content.html.twig' with { 'label': 'Raison sociale ou particulier', 'purchase': contactF.getContactLabel(vehicle.purchase.newSupplier.contact, {}), 'sale': contactF.getContactLabel(vehicle_invoice.newCustomer.contact, {}), 'tdClass': 'w-40 l-light-grey tab-light-grey' } %} {% include 'AppBundle:Documents:v2\\Include\\Vehicle\\synthese_content.html.twig' with { 'label': 'Adresse', 'purchase': addressF.getAddress(vehicle.purchase.newSupplier.addressHistory, {}), 'sale': addressF.getAddress(vehicle_invoice.newCustomer.addressHistory, {}) } %} {% include 'AppBundle:Documents:v2\\Include\\Vehicle\\synthese_content.html.twig' with { 'label': 'Adresse bis', 'purchase': addressF.getAddress2(vehicle.purchase.newSupplier.addressHistory, {}), 'sale': addressF.getAddress2(vehicle_invoice.newCustomer.addressHistory, {}) } %} {% include 'AppBundle:Documents:v2\\Include\\Vehicle\\synthese_content.html.twig' with { 'label': 'Code postal', 'purchase': addressF.getPostalCode(vehicle.purchase.newSupplier.addressHistory, {}), 'sale': addressF.getPostalCode(vehicle_invoice.newCustomer.addressHistory, {}) } %} {% include 'AppBundle:Documents:v2\\Include\\Vehicle\\synthese_content.html.twig' with { 'label': 'Ville', 'purchase': addressF.getCity(vehicle.purchase.newSupplier.addressHistory, {}), 'sale': addressF.getCity(vehicle_invoice.newCustomer.addressHistory, {}) } %} {% include 'AppBundle:Documents:v2\\Include\\Global\\title_content.html.twig' with {'title' : 'Frais Réels HT'} %}

Total frais

{{ vehiclePurchaseF.getTotalChargeWithoutTax(vehicle.purchase, {}) }}  {{ currencySymbol }}

Coût de revient

{{ vehiclePurchaseF.getCostPriceWithoutTax(vehicle.purchase, {}) }}  {{ currencySymbol }}

Prix de vente

{{ vehicleInvoiceF.getSellPriceWithoutTax(vehicle_invoice, {}) }} {{ currencySymbol }}

Marge brute

{{ vehicleInvoiceF.getVehicleSellingGrossMargin(vehicle_invoice, {}) }} {{ currencySymbol }}

Marge net

{{ vehicleInvoiceF.getVehicleSellingNetMargin(vehicle_invoice, {}) }} {{ currencySymbol }}

{% endblock content %} {% block footer %} {% include 'AppBundle:Documents:v2\\Include\\Global\\footer.html.twig' with {'footerClass' : 'fs-6 lh-6 fw-400 fs-i ta-center t-dark-grey'} %} {% endblock footer %}