SCEA LES NAUDS
14 Allée d’Argenson
Z.I Nord – Secteur Est
86100 CHATELLERAULT
Tel. : 05 49 20 09 10
Email : lpc.contacts@lpc-liot.fr
RCS Châtellerault B 444 262 455
{{ reception.supplier ? reception.supplier.name : '-' }}
{{ reception.address ? reception.address.street : '' }}
{% if reception.address and reception.address.street2 %} {{ reception.address.street2 }}
{% endif %} {% if reception.address %} {{ reception.address.postalCode }} {{ reception.address.city }}
{% endif %} {% if reception.supplier and reception.supplier.phone %} {{ reception.supplier.phone }}
{% endif %} {% if reception.supplier and reception.supplier.email %} {{ reception.supplier.email}}
{% endif %}
BON DE RECEPTION
Code fournisseur Date N° réception
{{ reception.supplier ? reception.supplier.name : '-' }} {{ reception.receptionDate|date('d/m/Y') }} {{ reception.identificationNumber }}
Désignation Qté livrée (kg)
{{ reception.receptionType ? reception.receptionType.label : '-' }}

{% set grossWeight = null %} {% set tareWeight = null %} {% for weight in reception.weights|default([]) %} {% 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.receptionType and reception.receptionType.code == 'BOVINS' %} Type de bovins {% else %} Type de marchandises {% endif %}

{% if reception.receptionType and reception.receptionType.code == 'BOVINS' %} {% if reception.bovinesTypes is not empty %} {% for entry in reception.bovinesTypes %}

{{ entry.bovineType ? entry.bovineType.label : '-' }} : {{ entry.quantity ?? 0 }}

{% endfor %} {% else %}

-

{% endif %} {% if reception.bovineDetail %}

Autres : {{ reception.bovineDetail }}

{% endif %} {% else %} {% 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|default([]) %} {% 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 %} {% if reception.merchandiseType %}

{{ reception.merchandiseType.label }}

{% endif %} {% set buildingLabels = [] %} {% for building in reception.buildings|default([]) %} {% set buildingLabels = buildingLabels|merge([building.label]) %} {% endfor %} {% if buildingLabels %}

Ferme : {{ buildingLabels|join(', ') }}

{% else %}

Aucun bâtiment renseigné.

{% endif %} {% endif %} {% endif %}