diff --git a/modules/customer-invoices/src/web/components/editor/items/blocks-view.tsx b/modules/customer-invoices/src/web/components/editor/items/blocks-view.tsx index c9f06ac5..21eba4db 100644 --- a/modules/customer-invoices/src/web/components/editor/items/blocks-view.tsx +++ b/modules/customer-invoices/src/web/components/editor/items/blocks-view.tsx @@ -7,7 +7,7 @@ import { useTranslation } from "../../../i18n"; import { CustomerInvoiceFormData } from "../../../schemas"; import { CustomItemViewProps } from "./types"; -export interface BlocksViewProps extends CustomItemViewProps {} +export interface BlocksViewProps extends CustomItemViewProps { } const formatCurrency = (amount: number) => { return new Intl.NumberFormat("es-ES", { diff --git a/modules/customer-invoices/src/web/components/editor/items/table-view.tsx b/modules/customer-invoices/src/web/components/editor/items/table-view.tsx index 87540b1c..d9ad00d0 100644 --- a/modules/customer-invoices/src/web/components/editor/items/table-view.tsx +++ b/modules/customer-invoices/src/web/components/editor/items/table-view.tsx @@ -16,9 +16,12 @@ import { import { ChevronDownIcon, ChevronUpIcon, CopyIcon, Plus, TrashIcon } from "lucide-react"; +import { TaxesMultiSelectField } from '@erp/core/components'; import { useMoney } from '@erp/core/hooks'; import { useEffect, useState } from 'react'; +import { useFormContext } from 'react-hook-form'; import { useCalculateItemAmounts } from '../../../hooks'; +import { useTranslation } from '../../../i18n'; import { CustomerInvoiceItemFormData } from '../../../schemas'; import { HoverCardTotalsSummary } from './hover-card-total-summary'; import { CustomItemViewProps } from "./types"; @@ -26,6 +29,8 @@ import { CustomItemViewProps } from "./types"; export interface TableViewProps extends CustomItemViewProps { } export const TableView = ({ items, actions }: TableViewProps) => { + const { t } = useTranslation(); + const { control } = useFormContext(); const { format } = useMoney(); const calculateItemAmounts = useCalculateItemAmounts(); const [lines, setLines] = useState(items); @@ -202,6 +207,18 @@ export const TableView = ({ items, actions }: TableViewProps) => { /> + + + + + {/* TOTAL */} diff --git a/modules/customer-invoices/src/web/pages/update/customer-invoices-update-page.tsx b/modules/customer-invoices/src/web/pages/update/customer-invoices-update-page.tsx index be6462f2..3304e2fe 100644 --- a/modules/customer-invoices/src/web/pages/update/customer-invoices-update-page.tsx +++ b/modules/customer-invoices/src/web/pages/update/customer-invoices-update-page.tsx @@ -132,7 +132,7 @@ export const CustomerInvoiceUpdatePage = () => { return ( - +