|
{{ reception.supplier.name }}
{{ reception.address.street }} {% if reception.address.street2 %} {{ reception.address.street2 }} {% endif %} {{ reception.address.postalCode }} {{ reception.address.city }} {% if reception.supplier.phone %} {{ reception.supplier.phone }} {% endif %} {% if reception.supplier.email %} {{ reception.supplier.email}} {% endif %} |
| Code fournisseur | Date | N° réception |
|---|---|---|
| {{ reception.supplier.name }} | {{ reception.receptionDate|date('d/m/Y') }} | {{ reception.identificationNumber }} |
| Désignation | Qté livrée (kg) |
|---|---|
|
{{ reception.receptionType.label }}
{% set grossWeight = null %}
{% set tareWeight = null %}
{% for weight in reception.weights %}
{% if weight.type == 'gross' %}
{% set grossWeight = weight %}
Poids à plein : {{ grossWeight.weight }}kg (pesée n°{{ grossWeight.dsd }} {{ grossWeight.weighedAt|date('d/m/Y H:i:s') }}) {% elseif weight.type == 'tare' %} {% set tareWeight = weight %}Poids à vide : {{ tareWeight.weight }}kg (pesée n°{{ tareWeight.dsd }} {{ tareWeight.weighedAt|date('d/m/Y H:i:s') }}) {% endif %} {% endfor %} |
{% if grossWeight and tareWeight %} {{ grossWeight.weight - tareWeight.weight }} {% else %} 0 {% endif %} |
|
{% if reception.merchandiseType %}
{{ reception.merchandiseType.label }}
{% else %}
-
{% endif %}
{% if reception.merchandiseType and reception.merchandiseType.code == 'AUTRES' and reception.merchandiseDetail %}
Précision : {{ reception.merchandiseDetail }} {% endif %} {% if reception.merchandiseType and reception.merchandiseType.code == 'GRANULE' %} {% set pelletGroups = {} %} {% for selection in reception.pelletBuildings %} {% set pelletLabel = selection.pelletType.label %} {% if pelletGroups[pelletLabel] is not defined %} {% set pelletGroups = pelletGroups|merge({ (pelletLabel): [] }) %} {% endif %} {% set pelletGroups = pelletGroups|merge({ (pelletLabel): pelletGroups[pelletLabel]|merge([selection.building.label]) }) %} {% endfor %} {% for pelletLabel, buildingLabels in pelletGroups %}{{ pelletLabel }} : {{ buildingLabels|join(', ') }} {% else %}Aucun dépôt de granulés renseigné. {% endfor %} {% else %} {% set buildingLabels = [] %} {% for building in reception.buildings %} {% set buildingLabels = buildingLabels|merge([building.label]) %} {% endfor %} {% if buildingLabels %}Ferme : {{ buildingLabels|join(', ') }} {% else %}Aucun bâtiment renseigné. {% endif %} {% endif %} |
|
Signature les Nauds :
Signature transporteur :
|