// Suppliers.jsx — Master Data › Supplier. Parts & service supplier directory. // Admin/Finance: edit. Other roles: view-only. function SuppliersPage({ role }) { const canEdit = role === 'Admin' || role === 'Finance'; const [q, setQ] = React.useState(''); const rows = SUPPLIER_DIRECTORY.filter(s => q === '' || (s.name + ' ' + s.category + ' ' + s.contact).toLowerCase().includes(q.toLowerCase()) ); return (
Supplier — parts, lubricants and service vendors. These feed the supplier picker on workshop repair & maintenance tickets. {canEdit ? 'You can add and edit suppliers.' : 'View-only.'}

Supplier Directory

{rows.length} of {SUPPLIER_DIRECTORY.length} suppliers
{canEdit ? : View only}
setQ(e.target.value)}/>
{rows.map(s => ( ))}
IDSupplierCategoryContactPhoneEmailTermsStatus
{s.id} {s.name} {s.category} {s.contact} {s.phone} {s.email} {s.terms} {s.status} {canEdit ? : null}
); } Object.assign(window, { SuppliersPage });