mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-02 20:53:39 +00:00
feat(backoffice): flag customers whose registration was typed, not fetched
Two kinds of customer reach approval with a registration nobody checked: a co-operative union or farm, which holds no trade licence, and a foreign investor, whose licence comes from the Investment Commission rather than the trade registry. Both were reviewed on screens that read exactly like an eTrade-verified company's, with only a small Registration field naming the difference. They now carry an orange "Manual entry" badge in the customers list and beside the company name, and their overview opens with an alert saying the name, registration and address below are the customer's own statement — pointing the reviewer at the paper that stands in for the licence (the co-operative certificate, or the investment licence) before approving. Approval itself is not blocked.
This commit is contained in:
@@ -114,6 +114,36 @@ export function CompanyNationalityBadge({
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* The company's registration was typed, not fetched from eTrade — nothing in it
|
||||
* has been checked against a licence. Loud on purpose: it is the one thing a
|
||||
* reviewer must not miss about this customer. Two kinds of company land here
|
||||
* for different reasons, and the badge names which.
|
||||
*/
|
||||
export function ManualRegistrationBadge({
|
||||
cooperative,
|
||||
investorLicence,
|
||||
}: {
|
||||
cooperative?: boolean | null;
|
||||
investorLicence?: boolean | null;
|
||||
}) {
|
||||
if (!cooperative && !investorLicence) return null;
|
||||
return (
|
||||
<Badge
|
||||
color="orange"
|
||||
variant="light"
|
||||
size="sm"
|
||||
radius="md"
|
||||
fw={600}
|
||||
style={badgeStyle}
|
||||
>
|
||||
{cooperative
|
||||
? "Manual entry · co-operative"
|
||||
: "Manual entry · investment licence"}
|
||||
</Badge>
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Profile chips for a company row: one chip per role (Importer / Exporter / …)
|
||||
* carrying its reference code, colored by the profile's status (green active,
|
||||
|
||||
@@ -4,6 +4,7 @@ export {
|
||||
CompanyStatusBadge,
|
||||
CompanyTypeBadge,
|
||||
InvoiceStatusBadge,
|
||||
ManualRegistrationBadge,
|
||||
PaymentStatusBadge,
|
||||
ProfileApprovalActions,
|
||||
ProfileChips,
|
||||
|
||||
Reference in New Issue
Block a user