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 }}
-