update: kind transaction
This commit is contained in:
@ -508,8 +508,12 @@ const DetailTransaction = () => {
|
||||
kind = 'Cashback Point';
|
||||
} else if (transactionDetails?.kind === 'J') {
|
||||
kind = 'Withdraw Admin';
|
||||
} else if (transactionDetails?.kind === 'G') {
|
||||
kind = "Topup EDTL Agent";
|
||||
}else if (transactionDetails?.kind === 'K') {
|
||||
kind = "Topup EDTL Customer";
|
||||
}
|
||||
|
||||
|
||||
return kind;
|
||||
})()}
|
||||
</p>
|
||||
|
||||
@ -123,6 +123,10 @@ const TransactionProvider = ({ children }: { children: React.ReactNode }) => {
|
||||
return 'Cashback Point';
|
||||
case 'J':
|
||||
return 'Withdraw Admin';
|
||||
case 'G':
|
||||
return "Topup EDTL Agent";
|
||||
case 'K':
|
||||
return "Topup EDTL Customer";
|
||||
default:
|
||||
return '_';
|
||||
}
|
||||
|
||||
@ -606,6 +606,8 @@ const AddDialog = () => {
|
||||
<SelectItem value="C">Cashback Cash</SelectItem>
|
||||
<SelectItem value="H">Cashback Point</SelectItem>
|
||||
<SelectItem value="J">Withdraw Admin</SelectItem>
|
||||
<SelectItem value="K">Topup EDTL Customer</SelectItem>
|
||||
<SelectItem value="G">Topup EDTL Agent</SelectItem>
|
||||
</SelectContent>
|
||||
</Select>
|
||||
{errors.status_kind && (
|
||||
|
||||
@ -805,6 +805,8 @@ const EditDialog = () => {
|
||||
<SelectItem value="C">Cashback Cash</SelectItem>
|
||||
<SelectItem value="H">Cashback Point</SelectItem>
|
||||
<SelectItem value="J">Withdraw Admin</SelectItem>
|
||||
<SelectItem value="K">Topup EDTL Customer</SelectItem>
|
||||
<SelectItem value="G">Topup EDTL Agent</SelectItem>
|
||||
</SelectContent>{' '}
|
||||
</Select>
|
||||
{errors.status_kind && (
|
||||
|
||||
@ -225,6 +225,8 @@ const ListToolbar = () => {
|
||||
<SelectItem value="C">Cashback Cash</SelectItem>
|
||||
<SelectItem value="H">Cashback Point</SelectItem>
|
||||
<SelectItem value="J">Withdraw Admin</SelectItem>
|
||||
<SelectItem value="K">Topup EDTL Customer</SelectItem>
|
||||
<SelectItem value="G">Topup EDTL Agent</SelectItem>
|
||||
</SelectContent>
|
||||
</Select>
|
||||
</div>
|
||||
|
||||
@ -309,6 +309,9 @@ const ManageTransferTypeContextProvider = ({ children }: { children: React.React
|
||||
C: { label: 'Cashback Cash', className: 'bg-rose-100 text-rose-600' },
|
||||
H: { label: 'Cashback Point', className: 'bg-rose-100 text-rose-600' },
|
||||
J: { label: 'Withdraw Admin', className: 'bg-rose-100 text-rose-600' },
|
||||
K: { label: 'Topup EDTL Customer', className: 'bg-rose-100 text-rose-600' },
|
||||
G: { label: 'Topup EDTL Agent', className: 'bg-rose-100 text-rose-600' }
|
||||
|
||||
};
|
||||
|
||||
const kindInfo = mapping[kind] || {
|
||||
|
||||
Reference in New Issue
Block a user