From 05ea33735d095b97a0c991d8123afb4ad4c85944 Mon Sep 17 00:00:00 2001 From: kevin Date: Thu, 12 Feb 2026 08:57:40 +0000 Subject: [PATCH 1/2] =?UTF-8?q?[#275]=20Lister=20les=20exp=C3=A9ditions=20?= =?UTF-8?q?en=20attente=20(!23)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit | Numéro du ticket | Titre du ticket | |------------------|-----------------| | #275 | Lister les expéditions en attente | ## Description de la PR ## Modification du .env ## Check list - [x] Pas de régression - [ ] TU/TI/TF rédigée - [x] TU/TI/TF OK - [x] CHANGELOG modifié Co-authored-by: Matteo Reviewed-on: https://gitea.malio.fr/MALIO-DEV/Ferme/pulls/23 Reviewed-by: Autin Co-authored-by: kevin Co-committed-by: kevin --- CHANGELOG.md | 2 + frontend/pages/index.vue | 4 +- frontend/pages/shipment/finish-shipment.vue | 81 ++++++++++++++++++++ frontend/pages/shipment/waiting-shipment.vue | 73 ++++++++++++++++++ frontend/services/dto/shipment-data.ts | 2 + src/Entity/Shipment.php | 3 + 6 files changed, 163 insertions(+), 2 deletions(-) create mode 100644 frontend/pages/shipment/finish-shipment.vue create mode 100644 frontend/pages/shipment/waiting-shipment.vue diff --git a/CHANGELOG.md b/CHANGELOG.md index 9631bd5..7b4eff4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -41,6 +41,8 @@ Ajouter dans le fichier .env du frontend * [#256] Créer une nouvelle réception (étape 3 - bovin) * [#314] Création d'une page d'administration : listing des utilisateurs * [#313] Admin modification creation fournisseur +* [#275] Lister les expéditions en attente +* [#276] Lister les expéditions terminées ### Changed diff --git a/frontend/pages/index.vue b/frontend/pages/index.vue index 52d3da7..67079c2 100644 --- a/frontend/pages/index.vue +++ b/frontend/pages/index.vue @@ -6,10 +6,10 @@ - + - + diff --git a/frontend/pages/shipment/finish-shipment.vue b/frontend/pages/shipment/finish-shipment.vue new file mode 100644 index 0000000..59c340b --- /dev/null +++ b/frontend/pages/shipment/finish-shipment.vue @@ -0,0 +1,81 @@ + + + diff --git a/frontend/pages/shipment/waiting-shipment.vue b/frontend/pages/shipment/waiting-shipment.vue new file mode 100644 index 0000000..4a35459 --- /dev/null +++ b/frontend/pages/shipment/waiting-shipment.vue @@ -0,0 +1,73 @@ + + + diff --git a/frontend/services/dto/shipment-data.ts b/frontend/services/dto/shipment-data.ts index a78016a..8a5dbfd 100644 --- a/frontend/services/dto/shipment-data.ts +++ b/frontend/services/dto/shipment-data.ts @@ -1,6 +1,7 @@ import type {CarrierData} from '~/services/dto/carrier-data' import type {TruckData} from '~/services/dto/truck-data' import type {CustomerData} from '~/services/dto/customer-data' +import type {AddressData} from "~/services/dto/address-data"; export interface ShipmentTypeData { id: number @@ -21,6 +22,7 @@ export type ShipmentData = { shipmentDate: string currentStep: number isValid: boolean + address?: AddressData | null carrier?: CarrierData | null truck?: TruckData | null customer?: CustomerData | null diff --git a/src/Entity/Shipment.php b/src/Entity/Shipment.php index 8bcaed4..91b6f4e 100644 --- a/src/Entity/Shipment.php +++ b/src/Entity/Shipment.php @@ -4,6 +4,8 @@ declare(strict_types=1); namespace App\Entity; +use ApiPlatform\Doctrine\Orm\Filter\BooleanFilter; +use ApiPlatform\Metadata\ApiFilter; use ApiPlatform\Metadata\ApiProperty; use ApiPlatform\Metadata\ApiResource; use ApiPlatform\Metadata\Get; @@ -26,6 +28,7 @@ use Symfony\Component\Serializer\Normalizer\DateTimeNormalizer; #[ORM\Entity] #[ORM\HasLifecycleCallbacks] #[ORM\Table(name: 'shipment')] +#[ApiFilter(BooleanFilter::class, properties: ['isValid'])] #[ApiResource( operations: [ new Get( From 09666d93196986427774555b1273d2909135718c Mon Sep 17 00:00:00 2001 From: gitea-actions Date: Thu, 12 Feb 2026 08:57:46 +0000 Subject: [PATCH 2/2] chore: bump version to v0.0.41 --- config/version.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/version.yaml b/config/version.yaml index 9d3fb98..a227f6e 100644 --- a/config/version.yaml +++ b/config/version.yaml @@ -1,2 +1,2 @@ parameters: - app.version: '0.0.40' + app.version: '0.0.41'