// Customer.jsx — Master Data › Customer. Customer directory + negotiated // price list (moved here from Account & Finance). Admin: full CRUD. function CustomerPage({ role }) { const [tab, setTab] = React.useState('directory'); const isAdmin = role === 'Admin'; return (
| ID | Customer | Contacts | Locations | Jobs | ||
|---|---|---|---|---|---|---|
| {c.id} | {c.name} | {c.email} |
{c.contacts.map(ct => (
{ct.name} · {ct.phone}
))}
|
{c.locations.map(l => {l} )}
|
{c.jobs} | {isAdmin ? : null} |