Remove unused key-in payment transaction types and simplify cancel status logic

- Remove FULL_CANCEL and PARTIAL_CANCEL from KeyInPaymentTansactionType enum
- Remove corresponding filter buttons from payment status button group
- Simplify list item color logic to combine PRE_CANCEL and POST_CANCEL handling

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Jay Sheen
2025-11-03 14:01:37 +09:00
parent c03cb55157
commit 09e6892f1c
3 changed files with 1 additions and 9 deletions

View File

@@ -4,8 +4,6 @@ import { KeyInPaymentTansactionType } from "./types";
export const getKeyInPaymentPaymentStatusBtnGroup = (t: TFunction) => [
{ name: t('transaction.constants.all'), value: KeyInPaymentTansactionType.ALL },
{ name: t('transaction.constants.approval'), value: KeyInPaymentTansactionType.APPROVAL },
{ name: t('additionalService.keyIn.fullCancel'), value: KeyInPaymentTansactionType.FULL_CANCEL },
{ name: t('additionalService.keyIn.partialCancel'), value: KeyInPaymentTansactionType.PARTIAL_CANCEL },
{ name: t('additionalService.keyIn.preCancel'), value: KeyInPaymentTansactionType.PRE_CANCEL },
{ name: t('additionalService.keyIn.postCancel'), value: KeyInPaymentTansactionType.POST_CANCEL }
];

View File

@@ -7,8 +7,6 @@ import { AdditionalServiceCategory, ExtensionRequestParams, FilterProps } from "
export enum KeyInPaymentTansactionType {
ALL = 'ALL',
APPROVAL = 'APPROVAL',
FULL_CANCEL = 'FULL_CANCEL',
PARTIAL_CANCEL = 'PARTIAL_CANCEL',
PRE_CANCEL = 'PRE_CANCEL',
POST_CANCEL = 'POST_CANCEL'
}

View File

@@ -64,13 +64,9 @@ export const ListItem = ({
else if (transactionType === "APPROVAL") {
rs = 'blue';
}
else if (transactionType === "FULL_CANCEL") {
else if (transactionType === "PRE_CANCEL" || transactionType === "POST_CANCEL") {
rs = 'gray';
}
else if (transactionType === 'PARTIAL_CANCEL') {
rs = 'gray';
}
}
else if (additionalServiceCategory === AdditionalServiceCategory.AccountHolderAuth) {
if (authStatus === "REQUEST" || authStatus === "SUCCESS") {