Add KeyIn pre/post cancel types and improve English translations
- Add PRE_CANCEL and POST_CANCEL transaction types to KeyIn payment - Update English translations for better readability (FAQ, Settlement Service) - Fix calendar month date parsing to handle format correctly 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -5,7 +5,9 @@ export const getKeyInPaymentPaymentStatusBtnGroup = (t: TFunction) => [
|
|||||||
{ name: t('transaction.constants.all'), value: KeyInPaymentTansactionType.ALL },
|
{ name: t('transaction.constants.all'), value: KeyInPaymentTansactionType.ALL },
|
||||||
{ name: t('transaction.constants.approval'), value: KeyInPaymentTansactionType.APPROVAL },
|
{ name: t('transaction.constants.approval'), value: KeyInPaymentTansactionType.APPROVAL },
|
||||||
{ name: t('additionalService.keyIn.fullCancel'), value: KeyInPaymentTansactionType.FULL_CANCEL },
|
{ name: t('additionalService.keyIn.fullCancel'), value: KeyInPaymentTansactionType.FULL_CANCEL },
|
||||||
{ name: t('additionalService.keyIn.partialCancel'), value: KeyInPaymentTansactionType.PARTIAL_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 }
|
||||||
];
|
];
|
||||||
|
|
||||||
export const getKeyInPaymentPaymentStatusName = (t: TFunction) => (status?: string): string => {
|
export const getKeyInPaymentPaymentStatusName = (t: TFunction) => (status?: string): string => {
|
||||||
|
|||||||
@@ -8,7 +8,9 @@ export enum KeyInPaymentTansactionType {
|
|||||||
ALL = 'ALL',
|
ALL = 'ALL',
|
||||||
APPROVAL = 'APPROVAL',
|
APPROVAL = 'APPROVAL',
|
||||||
FULL_CANCEL = 'FULL_CANCEL',
|
FULL_CANCEL = 'FULL_CANCEL',
|
||||||
PARTIAL_CANCEL = 'PARTIAL_CANCEL'
|
PARTIAL_CANCEL = 'PARTIAL_CANCEL',
|
||||||
|
PRE_CANCEL = 'PRE_CANCEL',
|
||||||
|
POST_CANCEL = 'POST_CANCEL'
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum KeyInPaymentStatus {
|
export enum KeyInPaymentStatus {
|
||||||
|
|||||||
@@ -191,7 +191,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"faq": {
|
"faq": {
|
||||||
"title": "Frequently Asked Questions",
|
"title": "FAQ",
|
||||||
"searchPlaceholder": "Enter search keyword",
|
"searchPlaceholder": "Enter search keyword",
|
||||||
"all": "All",
|
"all": "All",
|
||||||
"inquiryButton": "Contact Support",
|
"inquiryButton": "Contact Support",
|
||||||
@@ -219,13 +219,13 @@
|
|||||||
"categories": {
|
"categories": {
|
||||||
"all": "All",
|
"all": "All",
|
||||||
"choose": "Choose",
|
"choose": "Choose",
|
||||||
"01": "Billing & Tax Inquiry",
|
"01": "Billing & Tax",
|
||||||
"02": "Transaction & Cancellation Inquiry",
|
"02": "Transaction & Cancellation",
|
||||||
"03": "Contract & Service Request Inquiry",
|
"03": "Contract & Service Request",
|
||||||
"04": "Technical & Payment Error Inquiry",
|
"04": "Technical & Payment Error",
|
||||||
"05": "Others",
|
"05": "Others",
|
||||||
"06": "Service Usage Inquiry",
|
"06": "Service Usage",
|
||||||
"09": "Credit Limit & Insurance Inquiry"
|
"09": "Credit Limit & Insurance"
|
||||||
},
|
},
|
||||||
"statusCode": {
|
"statusCode": {
|
||||||
"all": "All",
|
"all": "All",
|
||||||
@@ -830,7 +830,7 @@
|
|||||||
"faceAuthDesc": "Secure payment service with face recognition for easy identity verification"
|
"faceAuthDesc": "Secure payment service with face recognition for easy identity verification"
|
||||||
},
|
},
|
||||||
"settlementAgency": {
|
"settlementAgency": {
|
||||||
"title": "Settlement Agency",
|
"title": "Settlement Service",
|
||||||
"depositConfirmation": "Deposit Confirmation",
|
"depositConfirmation": "Deposit Confirmation",
|
||||||
"settlementInfo": "Settlement Information",
|
"settlementInfo": "Settlement Information",
|
||||||
"settlementId": "Settlement ID",
|
"settlementId": "Settlement ID",
|
||||||
@@ -1042,6 +1042,8 @@
|
|||||||
"keyIn": {
|
"keyIn": {
|
||||||
"fullCancel": "Full Cancel",
|
"fullCancel": "Full Cancel",
|
||||||
"partialCancel": "Partial Cancel",
|
"partialCancel": "Partial Cancel",
|
||||||
|
"preCancel": "Pre-cancel",
|
||||||
|
"postCancel": "Post-cancel",
|
||||||
"productPrice": "Product Price"
|
"productPrice": "Product Price"
|
||||||
},
|
},
|
||||||
"infoWrap": {
|
"infoWrap": {
|
||||||
|
|||||||
@@ -67,11 +67,15 @@ export const FilterCalendarMonth = ({
|
|||||||
|
|
||||||
const setNewMonth = (month: string) => {
|
const setNewMonth = (month: string) => {
|
||||||
console.log(month)
|
console.log(month)
|
||||||
if(calendarType === CalendarType.Start){
|
// month is already in 'YYYY.MM' format from NiceCalendarMonth
|
||||||
setStartMonth(moment(month+'.01').format('YYYYMM'));
|
const parsedMonth = moment(month, 'YYYY.MM', true);
|
||||||
}
|
if (parsedMonth.isValid()) {
|
||||||
else if(calendarType === CalendarType.End){
|
if(calendarType === CalendarType.Start){
|
||||||
setEndMonth(moment(month+'.01').format('YYYYMM'));
|
setStartMonth(parsedMonth.format('YYYYMM'));
|
||||||
|
}
|
||||||
|
else if(calendarType === CalendarType.End){
|
||||||
|
setEndMonth(parsedMonth.format('YYYYMM'));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
setCalendarOpen(false);
|
setCalendarOpen(false);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user