From 892e0c1fe42c2ffb3c9abdcc70ebedfe5fc4773a Mon Sep 17 00:00:00 2001 From: kevin Date: Thu, 19 Feb 2026 08:42:07 +0100 Subject: [PATCH] feat : mettre a jour l'entite shipment et bovin_shipment --- CHANGELOG.md | 1 + .../components/shipment/shipment-weight.vue | 2 +- frontend/pages/shipment/finish-shipment.vue | 21 +++++++++-------- frontend/pages/shipment/waiting-shipment.vue | 23 ++++++++++--------- 4 files changed, 25 insertions(+), 22 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 70c1510..daaca58 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -49,6 +49,7 @@ Ajouter dans le fichier .env du frontend * fix layout admin * Creation page admin listing bovins * Creation page admin ajout/modification bovins +* [#331] Mettre à jour l'entité Shipment et bovin_shipment ### Changed ### Fixed diff --git a/frontend/components/shipment/shipment-weight.vue b/frontend/components/shipment/shipment-weight.vue index 4f8766b..0876f79 100644 --- a/frontend/components/shipment/shipment-weight.vue +++ b/frontend/components/shipment/shipment-weight.vue @@ -75,7 +75,7 @@ const printReceipt = async () => { await saveWeight() const shipment = shipmentStore.current - const filename = `${shipment.identificationNumber ?? shipment.id}_${shipment.customer?.name ?? 'client'}_${shipment.licencePlate ?? 'immat'}.pdf` + const filename = `${shipment.identificationNumber ?? shipment.id}_${shipment.customer?.label ?? 'client'}_${shipment.licencePlate ?? 'immat'}.pdf` await printPdf(`/shipments/${shipment.id}/receipt`, filename) // Laisse le temps a la boite de dialogue d'impression de s'ouvrir. diff --git a/frontend/pages/shipment/finish-shipment.vue b/frontend/pages/shipment/finish-shipment.vue index 4a0cee2..451da2c 100644 --- a/frontend/pages/shipment/finish-shipment.vue +++ b/frontend/pages/shipment/finish-shipment.vue @@ -28,9 +28,9 @@
{{ shipment.customer?.name }}
{{ shipment.address?.fullAddress }}
-