{% extends 'layout.html.twig' %} {% block content %}

SHOW Preventive maintenance report:

REF. REPORT {{ maintenancereport.reference }}
CLIENT: {{ maintenancereport.maintenance.systeme.client.nom }}
CUSTOMER NAMED MACHINE {{ maintenancereport.maintenance.systeme.nom }}
TECHNO {{ maintenancereport.maintenance.systeme.technology }}
TYPE {{ maintenancereport.maintenance.systeme.type }}
SN/WA: {{ maintenancereport.maintenance.systeme.numero }}
CREATED BY: {{maintenancereport.createdBy}}
CREATED AT {% if maintenancereport.createdAt %}{{ maintenancereport.createdAt|date('d/m/Y H:i') }}{% endif %}
UPDATED BY: {{maintenancereport.updatedBy}}
UPDATE AT: {% if maintenancereport.updatedAt %}{{ maintenancereport.updatedAt|date('d/m/Y H:i') }}{% endif %}
REMARK/COMMENTS: {{ maintenancereport.commentaire }}
version {{ maintenancereport.maintenance.systeme.version }}
versioninterupgrade {% if versionInterUpgrade!= '' %}{{versionInterUpgrade}} from {{referenceCall}}{% endif %}
versionmaintupgrade {{maintenancereport.versionmaintupgrade}}
date ups battery exchanged {% if maintenancereport.upsdatebatteryexchanged %}{{ maintenancereport.upsdatebatteryexchanged|date('d/m/Y H:i') }}{% endif %}
date installation {% if dateInstallation %}{{ dateInstallation|date('Y/m/d') }}{% endif %}
Number of year since installation date: {% set difference = date(dateaujourdhui).diff(date(dateInstallation)).format('%Y') %} {{ difference }} Year(s)
Number of year since last UPS's battery exchanged: {% set difference = date(dateaujourdhui).diff(date(maintenancereport.upsdatebatteryexchanged)).format('%Y') %} {{ difference }} Year(s)

ENCLOSED PM'S FILE(S) {% for i, imageMaintenance in maintenancereport.maintenance.imageMaintenance %} {{ i != 0 and i % 5 == 0 ? "" : "" }} {% endfor %}
{{imageMaintenance.nom}}
Generate PDF Edit

Back to PM
Back to system
Back to customer
Back to home page {% endblock %}