Pont-bascule connecté
+Poids à plein : {{ grossWeight.weight }}kg (pesée n°{{ grossWeight.dsd }} {{ grossWeight.weighedAt|date('d/m/Y H:i:s') }})
@@ -219,45 +221,57 @@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(', ') }}
+ {% 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 %} -Aucun dépôt de granulés renseigné.
- {% endfor %} +-
+ {% endif %} + + {% if reception.bovineDetail %} +Autres : {{ reception.bovineDetail }}
+ {% endif %} {% else %} - {% set buildingLabels = [] %} - {% for building in reception.buildings %} - {% set buildingLabels = buildingLabels|merge([building.label]) %} - {% endfor %} - {% if buildingLabels %} -Ferme : {{ buildingLabels|join(', ') }}
+ {% 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 %} -Aucun bâtiment renseigné.
+ {% 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 %}
+
|
+
+
+
+ {{ shipment.customer ? shipment.customer.label : '-' }}
+ + {{ shipment.address ? shipment.address.street : '' }} + {% if shipment.address and shipment.address.street2 %} + {{ shipment.address.street2 }} + {% endif %} + {% if shipment.address %} + {{ shipment.address.postalCode }} {{ shipment.address.city }} + {% endif %} + |
+
| Code client | +Date | +N° expédition | +
|---|---|---|
| + {{ shipment.customer ? shipment.customer.code : '-' }} + | ++ {{ shipment.shipmentDate|date('d/m/Y') }} + | ++ {{ shipment.identificationNumber ?? '-' }} + | +
| Désignation | +Qté expédiée (kg) | +
|---|---|
|
+ Expédition +
+ {% for weight in shipment.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 %} + | +
|
+ Bovin +
+ {% if shipment.bovinShipments is not empty %}
+ {% for entry in shipment.bovinShipments %}
+
+
+ + {{ entry.shipmentType ? entry.shipmentType.label : '-' }} : + {{ entry.nbBovinSend ?? 0 }} + + {% endfor %} + {% else %} +- + {% endif %} + |
+ + | +
| + + | + +
+ Signature les Nauds :
+ Signature transporteur :
+ |
+