From 1f96f5c09af8fc9df520b1760c2d448066d09054 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Thu, 5 Sep 2024 22:20:57 +0200 Subject: [PATCH] feat: orderCreateDialog --- src/i18n/locale/en.yml | 1 + src/i18n/locale/es.yml | 1 + .../Customer/Card/CustomerDescriptor.vue | 12 - .../Customer/Card/CustomerDescriptorMenu.vue | 15 +- src/pages/Order/Card/OrderCreateDialog.vue | 220 ++++++++++++++++++ 5 files changed, 236 insertions(+), 13 deletions(-) create mode 100644 src/pages/Order/Card/OrderCreateDialog.vue diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index 364cc74c7..82ecc4378 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -126,6 +126,7 @@ globals: notifications: Notifications defaulter: Defaulter customerCreate: New customer + createOrder: New order fiscalData: Fiscal data billingData: Billing data consignees: Consignees diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index ac83b499d..85f106d5f 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -123,6 +123,7 @@ globals: inheritedRoles: Roles heredados customers: Clientes customerCreate: Nuevo cliente + createOrder: Nuevo pedido list: Listado webPayments: Pagos Web extendedList: Listado extendido diff --git a/src/pages/Customer/Card/CustomerDescriptor.vue b/src/pages/Customer/Card/CustomerDescriptor.vue index 5cab825a9..b18f90d20 100644 --- a/src/pages/Customer/Card/CustomerDescriptor.vue +++ b/src/pages/Customer/Card/CustomerDescriptor.vue @@ -179,17 +179,6 @@ const setData = (entity) => (data.value = useCardDescription(entity?.name, entit > {{ t('Customer invoice out list') }} - - {{ t('New order') }} - + + {{ t('globals.pageTitles.createOrder') }} + + + + + {{ t('Send SMS') }} diff --git a/src/pages/Order/Card/OrderCreateDialog.vue b/src/pages/Order/Card/OrderCreateDialog.vue new file mode 100644 index 000000000..9d5c9281e --- /dev/null +++ b/src/pages/Order/Card/OrderCreateDialog.vue @@ -0,0 +1,220 @@ + + + + + + es: + No default address found for the client: No hay ninguna dirección asociada a este cliente. +