From 2654b4a9c44481df70e7893274a1299ce4ca8017 Mon Sep 17 00:00:00 2001 From: Aadil Ayub Date: Sun, 25 Feb 2024 19:41:00 +0500 Subject: [PATCH] add type of transporrt to dispatch --- src/collections/Dispatches.ts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/collections/Dispatches.ts b/src/collections/Dispatches.ts index 0d82a24..bab458b 100644 --- a/src/collections/Dispatches.ts +++ b/src/collections/Dispatches.ts @@ -32,6 +32,29 @@ const Dispatches: CollectionConfig = { relationTo: 'retailers', hasMany: false, }, + { + name: 'typeOfTransportation', + type: 'select', + hasMany: true, + options: [ + { + label: 'Air', + value: 'air' + }, + { + label: 'Car', + value: 'car' + }, + { + label: 'Train', + value: 'train' + }, + { + label: 'Boat', + value: 'boat' + } + ] + }, { name: 'courier', type: 'relationship',