diff --git a/modules/customer-invoices/src/web/proformas/create/ui/blocks/index.ts b/modules/customer-invoices/src/web/proformas/create/ui/blocks/index.ts index dfbfebd4..201281fd 100644 --- a/modules/customer-invoices/src/web/proformas/create/ui/blocks/index.ts +++ b/modules/customer-invoices/src/web/proformas/create/ui/blocks/index.ts @@ -1,6 +1,5 @@ export * from "./proforma-create-auto-applied-info"; export * from "./proforma-create-customer-field"; -export * from "./proforma-create-empty-lines-card"; export * from "./proforma-create-form"; export * from "./proforma-create-header"; export * from "./proforma-create-initial-info-card"; diff --git a/modules/customer-invoices/src/web/proformas/create/ui/blocks/proforma-create-auto-applied-info.tsx b/modules/customer-invoices/src/web/proformas/create/ui/blocks/proforma-create-auto-applied-info.tsx index f5b20dfe..c2641ecf 100644 --- a/modules/customer-invoices/src/web/proformas/create/ui/blocks/proforma-create-auto-applied-info.tsx +++ b/modules/customer-invoices/src/web/proformas/create/ui/blocks/proforma-create-auto-applied-info.tsx @@ -1,80 +1,97 @@ import { - AlertCircleIcon, BanknoteIcon, - CheckCircle2Icon, + CalculatorIcon, CircleDollarSignIcon, - ReceiptTextIcon, + CreditCardIcon, + InfoIcon, + ShieldCheckIcon, + SparklesIcon, } from "lucide-react"; export const ProformaCreateAutoAppliedInfo = () => { return ( -
-
- -
-
-

Se preparará automáticamente

-

+

+
+
+
+ +
+
+

Se preparará automáticamente

+

Estos valores iniciales se tomarán del cliente o de la configuración de empresa. - Podrás revisarlos y modificarlos después en la edición. + Podrás revisarlos y modificarlos después.

+
-
-

Datos que se guardarán al crear

-

- Fecha, cliente y serie de proforma para numerar el documento inicial. -

+
+
+
+ +
+

Moneda

+

EUR

-
-
- -
-

Moneda

-

EUR

-
-
- -
- -
-

Método de pago

-

Según cliente

-
-
- -
- -
-

Condiciones de pago

-

Según cliente

-
+
+
+
+

Método de pago

+

Según cliente

-
- -
-

Configuración fiscal inicial

-

+

+
+ +
+

Condiciones de pago

+

Según cliente

+
+
+ +
+
+
+ +
+
+

Configuración fiscal inicial

+

Se tomará del cliente o de la configuración de empresa. Los impuestos y totales se - calcularán cuando añadas líneas a la proforma. + calcularán al añadir líneas.

-
- -
-

Cálculo pendiente

-

- Al crear sin líneas se guarda la cabecera. El desglose fiscal real se materializa - en la edición, cuando existan líneas valoradas. +

+
+ +
+
+

Cálculo pendiente

+

+ Los impuestos y totales se calcularán cuando añadas líneas a la proforma.

+ +
+
+ +
+
+

+ Las líneas de detalle se añadirán en la siguiente pantalla +

+

+ La proforma se creará sin líneas. Podrás añadir productos o servicios tras crear el + borrador. +

+
+
); diff --git a/modules/customer-invoices/src/web/proformas/create/ui/blocks/proforma-create-empty-lines-card.tsx b/modules/customer-invoices/src/web/proformas/create/ui/blocks/proforma-create-empty-lines-card.tsx deleted file mode 100644 index 6d0b9169..00000000 --- a/modules/customer-invoices/src/web/proformas/create/ui/blocks/proforma-create-empty-lines-card.tsx +++ /dev/null @@ -1,31 +0,0 @@ -import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@repo/shadcn-ui/components"; -import { ListIcon } from "lucide-react"; - -export const ProformaCreateEmptyLinesCard = () => { - return ( - - - - - Líneas de detalle - - - La proforma se creará sin líneas. Podrás añadir productos o servicios en la siguiente - pantalla. - - - - -
- -
-
-

Sin líneas de detalle

-

- Añade productos o servicios después de crear el borrador. -

-
-
-
- ); -}; diff --git a/modules/customer-invoices/src/web/proformas/create/ui/blocks/proforma-create-form.tsx b/modules/customer-invoices/src/web/proformas/create/ui/blocks/proforma-create-form.tsx index 1c839047..361545fe 100644 --- a/modules/customer-invoices/src/web/proformas/create/ui/blocks/proforma-create-form.tsx +++ b/modules/customer-invoices/src/web/proformas/create/ui/blocks/proforma-create-form.tsx @@ -2,7 +2,6 @@ import type { CustomerSelectionOption } from "@erp/customers"; import { preventEnterKeySubmitForm } from "@repo/rdx-ui/helpers"; import { ProformaCreateAutoAppliedInfo } from "./proforma-create-auto-applied-info"; -import { ProformaCreateEmptyLinesCard } from "./proforma-create-empty-lines-card"; import { ProformaCreateInitialInfoCard } from "./proforma-create-initial-info-card"; interface ProformaCreateFormProps { @@ -54,8 +53,6 @@ export const ProformaCreateForm = ({ /> - -
); diff --git a/modules/customer-invoices/src/web/proformas/create/ui/pages/proforma-create-page.tsx b/modules/customer-invoices/src/web/proformas/create/ui/pages/proforma-create-page.tsx index 7126e402..986b690f 100644 --- a/modules/customer-invoices/src/web/proformas/create/ui/pages/proforma-create-page.tsx +++ b/modules/customer-invoices/src/web/proformas/create/ui/pages/proforma-create-page.tsx @@ -32,46 +32,44 @@ export const ProformaCreatePage = () => {
-
-
- {createCtrl.isCreateError && ( - - )} - - {createCtrl.isSeriesLoadError && ( - - )} - - + {createCtrl.isCreateError && ( + -
+ )} + + {createCtrl.isSeriesLoadError && ( + + )} + +