@@ -151,3 +151,4 @@ export function CrmContactsPanel({ entity, ownerId, contacts, onContactsChange }
);
}
+
diff --git a/client/src/modules/crm/CrmDetailPage.tsx b/client/src/modules/crm/CrmDetailPage.tsx
index 8ba0fee..30ba5a7 100644
--- a/client/src/modules/crm/CrmDetailPage.tsx
+++ b/client/src/modules/crm/CrmDetailPage.tsx
@@ -58,7 +58,7 @@ export function CrmDetailPage({ entity }: CrmDetailPageProps) {
}, [config.singularLabel, entity, recordId, token]);
if (!record) {
- return
{status}
;
+ return
{status}
;
}
function updateContactEntryField
(key: Key, value: CrmContactEntryInput[Key]) {
@@ -112,7 +112,7 @@ export function CrmDetailPage({ entity }: CrmDetailPageProps) {
return (
-
+
CRM Detail
@@ -146,7 +146,7 @@ export function CrmDetailPage({ entity }: CrmDetailPageProps) {
-
+
Contact
@@ -176,7 +176,7 @@ export function CrmDetailPage({ entity }: CrmDetailPageProps) {
-
+
Internal Notes
{record.notes || "No internal notes recorded for this account yet."}
@@ -219,27 +219,27 @@ export function CrmDetailPage({ entity }: CrmDetailPageProps) {
-
+
Last Contact
{record.rollups?.lastContactAt ? new Date(record.rollups.lastContactAt).toLocaleDateString() : "None"}
-
+
Timeline Entries
{record.rollups?.contactHistoryCount ?? record.contactHistory.length}
-
+
Account Contacts
{record.rollups?.contactCount ?? record.contacts?.length ?? 0}
-
+
Attachments
{record.rollups?.attachmentCount ?? 0}
{entity === "customer" && (record.childCustomers?.length ?? 0) > 0 ? (
-
+
Hierarchy
End customers under this reseller
@@ -247,7 +247,7 @@ export function CrmDetailPage({ entity }: CrmDetailPageProps) {
{child.name}
@@ -259,7 +259,7 @@ export function CrmDetailPage({ entity }: CrmDetailPageProps) {
) : null}
{entity === "vendor" ? (
-
+
Purchasing Activity
@@ -277,11 +277,11 @@ export function CrmDetailPage({ entity }: CrmDetailPageProps) {
{relatedPurchaseOrders.length === 0 ? (
- No purchase orders exist for this vendor yet.
+ No purchase orders exist for this vendor yet.
) : (
{relatedPurchaseOrders.slice(0, 8).map((order) => (
-
+
{order.documentNumber}
@@ -319,7 +319,7 @@ export function CrmDetailPage({ entity }: CrmDetailPageProps) {
/>
{canManage ? (
-
+
Contact History
Add timeline entry
@@ -336,17 +336,17 @@ export function CrmDetailPage({ entity }: CrmDetailPageProps) {
) : null}
-
+
Timeline
Recent interactions
{record.contactHistory.length === 0 ? (
-
+
No contact history has been recorded for this account yet.
) : (
{record.contactHistory.map((entry) => (
-
+
@@ -389,3 +389,4 @@ export function CrmDetailPage({ entity }: CrmDetailPageProps) {
);
}
+
diff --git a/client/src/modules/crm/CrmFormPage.tsx b/client/src/modules/crm/CrmFormPage.tsx
index e60e584..c35cc36 100644
--- a/client/src/modules/crm/CrmFormPage.tsx
+++ b/client/src/modules/crm/CrmFormPage.tsx
@@ -111,7 +111,7 @@ export function CrmFormPage({ entity, mode }: CrmFormPageProps) {
return (