update: kind transaction

This commit is contained in:
wayanrivan
2026-03-08 13:03:43 +07:00
6 changed files with 18 additions and 1 deletions

View File

@ -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>

View File

@ -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 '_';
}

View File

@ -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 && (

View File

@ -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 && (

View File

@ -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>

View File

@ -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] || {