Add parent company, billing account, and linked companies to customer account card

This commit is contained in:
2026-07-28 23:18:23 -04:00
parent b9350943f5
commit b1b64501c4
2 changed files with 36 additions and 18 deletions
+3
View File
@@ -5517,14 +5517,17 @@
if (ac.address1_postalcode) addrParts.push(esc(ac.address1_postalcode));
acctFields.innerHTML = [
df('Name', esc(ac.name)),
(ac.parent_company ? df('Parent Company', esc(ac.parent_company)) : ''),
df('Address', addrParts.join(', ')),
(ac.telephone1 ? df('Phone', esc(ac.telephone1)) : ''),
(ac.emailaddress1 ? df('Email', esc(ac.emailaddress1)) : ''),
(ac.websiteurl ? df('Website', esc(ac.websiteurl)) : ''),
(ac.management_company ? df('Management Co.', esc(ac.management_company)) : ''),
(ac.billing_account ? df('Billing Account', esc(ac.billing_account)) : ''),
(ac.csm ? df('Account Manager', esc(ac.csm)) : ''),
(ac.fax ? df('Fax', esc(ac.fax)) : ''),
(ac.address1_country ? df('Country', esc(ac.address1_country)) : ''),
(ac.linked_companies ? df('Linked Companies', esc(ac.linked_companies.join(', '))) : ''),
].filter(Boolean).join('');
} else {
acctCard.style.display = 'none';