diff --git a/src/pages/payment-record.tsx b/src/pages/payment-record.tsx
index dc6160b3..3a65b0a2 100644
--- a/src/pages/payment-record.tsx
+++ b/src/pages/payment-record.tsx
@@ -540,9 +540,25 @@ export default function PaymentRecord() {
}
};
- const commissionColumn = () => {
+ const hiddenToCorporateColumns = () => {
if (user && user.type !== "corporate")
return [
+ columnHelper.accessor("agent", {
+ header: "Country Manager",
+ id: "agent",
+ cell: (info) => {
+ const {user, value} = columHelperValue(info.column.id, info);
+ return (
+
setSelectedAgentUser(user)}>
+ {value}
+
+ );
+ },
+ }),
columnHelper.accessor("agentCommission", {
header: "Commission",
id: "agentCommission",
@@ -608,23 +624,7 @@ export default function PaymentRecord() {
return {finalValue};
},
}),
- columnHelper.accessor("agent", {
- header: "Country Manager",
- id: "agent",
- cell: (info) => {
- const {user, value} = columHelperValue(info.column.id, info);
- return (
- setSelectedAgentUser(user)}>
- {value}
-
- );
- },
- }),
- ...commissionColumn(),
+ ...hiddenToCorporateColumns(),
columnHelper.accessor("isPaid", {
header: "Paid",
id: "isPaid",