Parcourir la source

CR-022 Item 2

cr022024
Jason Chuang il y a 1 semaine
Parent
révision
cdb9062c90
4 fichiers modifiés avec 22 ajouts et 3 suppressions
  1. +19
    -0
      src/pages/Payment/Search_Public/DataGrid.js
  2. +1
    -1
      src/translations/en.json
  3. +1
    -1
      src/translations/zh-CN.json
  4. +1
    -1
      src/translations/zh-HK.json

+ 19
- 0
src/pages/Payment/Search_Public/DataGrid.js Voir le fichier

@@ -47,6 +47,12 @@ export default function SearchPublicNoticeTable({ searchCriteria, applyGridOnRea
navigate('/paymentPage/details/' + params.row.id);
};

const formatPayMethod = (value) => {
if (!value) return "";
const lastCommaIndex = value.lastIndexOf(',');
return lastCommaIndex >= 0 ? value.substring(lastCommaIndex + 1) : value;
};

const columns = [
{
field: 'actions',
@@ -58,6 +64,12 @@ export default function SearchPublicNoticeTable({ searchCriteria, applyGridOnRea
return clickableLink('/paymentPage/details/' + params.row.id, params.row.transNo);
},
},
{
field: 'egisRefNo',
headerName: intl.formatMessage({id: 'paymentRefCode'}),
width: isMdOrLg ? 'auto' : 160,
flex: isMdOrLg ? 1 : undefined,
},
{
id: 'appNos',
field: 'appNos',
@@ -69,6 +81,13 @@ export default function SearchPublicNoticeTable({ searchCriteria, applyGridOnRea
return <div style={{ margin: 4 }}>{appNo}</div>
},
},
{
field: 'payMethod',
headerName: intl.formatMessage({id: 'paymentMethod'}),
width: isMdOrLg ? 'auto' : 160,
flex: isMdOrLg ? 1 : undefined,
valueGetter: (params) => formatPayMethod(params?.value ?? params.row?.payMethod),
},
{
id: 'transDateTime',
field: 'transDateTime',


+ 1
- 1
src/translations/en.json Voir le fichier

@@ -421,7 +421,7 @@
"payTotal": "Total Payment Amount",
"payDetail": "Payment Details",
"payMethod": "Payment methods",
"epayMethod": " e-Payment Method",
"epayMethod": " Payment Method",
"selectPaymentMethod": "Please select a payment method",
"payReceipt": "Payment Receipt",
"contactPerson": "Contact Person",


+ 1
- 1
src/translations/zh-CN.json Voir le fichier

@@ -454,7 +454,7 @@
"payTotal": "付款总额",
"payDetail": "付款详情",
"payMethod": "付款方式",
"epayMethod": "电子付款方法",
"epayMethod": "付款方法",
"selectPaymentMethod": "请选择付款方法",
"payReceipt": "付款收据",
"contactPerson": "联络人",


+ 1
- 1
src/translations/zh-HK.json Voir le fichier

@@ -455,7 +455,7 @@
"payTotal": "付款總額",
"payDetail": "付款詳情",
"payMethod": "付款方式",
"epayMethod": "電子付款方法",
"epayMethod": "付款方法",
"selectPaymentMethod": "請選擇付款方法",
"payReceipt": "付款收據",
"contactPerson": "聯絡人",


Chargement…
Annuler
Enregistrer