-
-
-
-
-
+
+
+
+ {general.summary.totalLabel}
+
+
{t("proformas.detail.fields.total")}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {t("pages.proformas.list.actions.view_linked_invoice")}
+
+ ) : (
+ EMPTY_VALUE
+ )
+ }
+ valueClassName="sm:text-right"
+ />
+
+
+
+
{t("proformas.detail.fields.description")}
+
+ {general.content.description ?? EMPTY_VALUE}
+
+
+
+
+
{t("form_groups.proformas.customer.title")}
+
+
{general.customer.name}
+
+
+
);
};
diff --git a/modules/customer-invoices/src/web/proformas/detail/ui/pages/proforma-detail-page.tsx b/modules/customer-invoices/src/web/proformas/detail/ui/pages/proforma-detail-page.tsx
index a96e49c1..03cb5cac 100644
--- a/modules/customer-invoices/src/web/proformas/detail/ui/pages/proforma-detail-page.tsx
+++ b/modules/customer-invoices/src/web/proformas/detail/ui/pages/proforma-detail-page.tsx
@@ -1,4 +1,5 @@
import { PageErrorState } from "@erp/core/components";
+
import { ChangeProformaStatusDialog } from "../../../change-status";
import { IssueProformaDialog } from "../../../issue-proforma";
import { useProformaDetailPageController } from "../../controllers";
@@ -38,7 +39,7 @@ export const ProformaDetailPage = () => {
@@ -46,7 +47,7 @@ export const ProformaDetailPage = () => {
{
}
inspector={
}
/>
diff --git a/modules/customer-invoices/src/web/proformas/detail/utils/build-proforma-detail-view-models.ts b/modules/customer-invoices/src/web/proformas/detail/utils/build-proforma-detail-view-models.ts
index 2539d2b3..714548ea 100644
--- a/modules/customer-invoices/src/web/proformas/detail/utils/build-proforma-detail-view-models.ts
+++ b/modules/customer-invoices/src/web/proformas/detail/utils/build-proforma-detail-view-models.ts
@@ -245,7 +245,7 @@ export const buildProformaDetailGeneralViewModel = (
secondaryText: context.translate(
`proformas.detail.linked_invoice.states.${linkedInvoiceState}.description`
),
- canOpenLinkedInvoice: false,
+ canOpenLinkedInvoice: Boolean(proforma.linkedInvoiceId),
};
const summary: ProformaDetailSummaryViewModel = {