update transaction kind

This commit is contained in:
wayanrivan
2025-05-21 09:50:21 +07:00
parent 40f67220bd
commit deebba530a
5 changed files with 67 additions and 1 deletions

View File

@ -48,6 +48,14 @@ const TransactionPieChart = ({ startdate, enddate }: Props) => {
{ name: 'Top Up P24', value: parseFloat((responseTransactionValue?.data?.B ?? 0).toFixed(2)), color: '#FADA7A' },
{ name: 'Transfer Agent', value: parseFloat((responseTransactionValue?.data?.A ?? 0).toFixed(2)), color: '#B1C29E' },
{ name: 'Withdrawal Agent', value: parseFloat((responseTransactionValue?.data?.M ?? 0).toFixed(2)), color: '#FCE7C8' },
{ name: 'Top Up Agent', value: parseFloat((responseTransactionValue?.data?.O ?? 0).toFixed(2)), color: '#F0A04B' },
{ name: 'Transfer P24', value: parseFloat((responseTransactionValue?.data?.S ?? 0).toFixed(2)), color: '#FADA7A' },
{ name: 'Withdraw Merchant', value: parseFloat((responseTransactionValue?.data?.I ?? 0).toFixed(2)), color: '#B1C29E' },
{ name: 'Donation', value: parseFloat((responseTransactionValue?.data?.D ?? 0).toFixed(2)), color: '#FCE7C8' },
{ name: 'Fee', value: parseFloat((responseTransactionValue?.data?.F ?? 0).toFixed(2)), color: '#F0A04B' },
{ name: 'Reversal', value: parseFloat((responseTransactionValue?.data?.V ?? 0).toFixed(2)), color: '#FADA7A' },
{ name: 'Cashback Cash', value: parseFloat((responseTransactionValue?.data?.C ?? 0).toFixed(2)), color: '#B1C29E' },
{ name: 'Cashback Point', value: parseFloat((responseTransactionValue?.data?.H ?? 0).toFixed(2)), color: '#FCE7C8' },
];
return (

View File

@ -71,7 +71,7 @@ const TransactionValue = ({ startdate, enddate }: Props) => {
type = "Purchase Loja"
break;
case "B":
type ="Top Up P24";
type = "Top Up P24";
break;
case "A":
type = " Transfer Agent";
@ -79,6 +79,30 @@ const TransactionValue = ({ startdate, enddate }: Props) => {
case "M":
type = "Withdrawal Agent";
break;
case 'O':
type = 'TOP UP AGENT';
break;
case 'S':
type = 'TRANSFER P24';
break;
case 'I':
type = 'WIJTDRAW MERCHANT';
break;
case 'D':
type = 'DONATION';
break;
case 'F':
type = 'FEE';
break;
case 'V':
type = 'REVERSAL';
break;
case 'C':
type = 'CASHBACK CASH';
break;
case 'H':
type = 'CASHBACK POINT';
break;
default:
type = "Unknown";
break;