浏览代码

update payment record with user feedback

master
Alex Cheung 1年前
父节点
当前提交
691b17db07
共有 8 个文件被更改,包括 25 次插入19 次删除
  1. +4
    -4
      src/pages/Payment/Details_Public/DataGrid.js
  2. +1
    -1
      src/pages/Payment/Details_Public/PaymentDetails.js
  3. +1
    -1
      src/pages/Payment/FPS/FPS.js
  4. +2
    -2
      src/pages/Payment/Search_GLD/DataGrid.js
  5. +2
    -2
      src/pages/Payment/Search_Public/DataGrid.js
  6. +9
    -7
      src/translations/en.json
  7. +3
    -1
      src/translations/zh-CN.json
  8. +3
    -1
      src/translations/zh-HK.json

+ 4
- 4
src/pages/Payment/Details_Public/DataGrid.js 查看文件

@@ -64,7 +64,7 @@ export default function SearchPublicNoticeTable({ recordList }) {
{ {
id: 'appNo', id: 'appNo',
field: 'appNo', field: 'appNo',
headerName: intl.formatMessage({id: 'terms'}),
headerName: intl.formatMessage({id: 'particulars'}),
width: isMdOrLg ? 'auto' : 300, width: isMdOrLg ? 'auto' : 300,
flex: isMdOrLg ? 1 : undefined, flex: isMdOrLg ? 1 : undefined,
renderCell: (params) => { renderCell: (params) => {
@@ -81,7 +81,7 @@ export default function SearchPublicNoticeTable({ recordList }) {
{ {
id: 'fee', id: 'fee',
field: 'fee', field: 'fee',
headerName: intl.formatMessage({id: 'currencyPrice'}) + ' (HK$)',
headerName: intl.formatMessage({id: 'currencyAmount'}) + ' ($)',
width: 200, width: 200,
valueGetter: (params) => { valueGetter: (params) => {
return (params?.value) ? "$ " + FormatUtils.currencyFormat(params?.value) : ""; return (params?.value) ? "$ " + FormatUtils.currencyFormat(params?.value) : "";
@@ -102,9 +102,9 @@ export default function SearchPublicNoticeTable({ recordList }) {
<Grid container direction="row" justifyContent="flex-end" sx={{backgroundColor: '#fff' }}> <Grid container direction="row" justifyContent="flex-end" sx={{backgroundColor: '#fff' }}>
<Grid item> <Grid item>
<Typography align="right" variant="h4" sx={{mr:2,mt:1}}> <Typography align="right" variant="h4" sx={{mr:2,mt:1}}>
<FormattedMessage id="payTotal"/>:
<FormattedMessage id="payTotal"/>&nbsp;:&nbsp;
<span style={{ color: "blue", fontWeight: "bold", }}> <span style={{ color: "blue", fontWeight: "bold", }}>
(HK$) {FormatUtils.currencyFormat(total)}
$&nbsp;{FormatUtils.currencyFormat(total)}
</span> </span>
</Typography> </Typography>
</Grid> </Grid>


+ 1
- 1
src/pages/Payment/Details_Public/PaymentDetails.js 查看文件

@@ -136,7 +136,7 @@ const PaymentDetails = ({ formData,doPrint,onDownload }) => {
<Grid container > <Grid container >
<Grid item xs={6} md={6} sx={{ml:-5, textAlign: "right" }}> <Grid item xs={6} md={6} sx={{ml:-5, textAlign: "right" }}>
<FormLabel sx={{ fontSize: "16px", color: "#000000" }}> <FormLabel sx={{ fontSize: "16px", color: "#000000" }}>
<FormattedMessage id="payTotal"/>:
<FormattedMessage id="payTotalDeatail"/>:
</FormLabel> </FormLabel>
</Grid> </Grid>
<Grid xs={6} md={5} sx={{ml:5,textAlign: "left" }}> <Grid xs={6} md={5} sx={{ml:5,textAlign: "left" }}>


+ 1
- 1
src/pages/Payment/FPS/FPS.js 查看文件

@@ -299,7 +299,7 @@ const Index = () => {
<Typography variant="h3" sx={{ ml: 8, mt: 4, mr: 8, textAlign: "center" }}> <Typography variant="h3" sx={{ ml: 8, mt: 4, mr: 8, textAlign: "center" }}>
<img src={FpsIcon} width="80" height="80" alt="FPS"></img> <img src={FpsIcon} width="80" height="80" alt="FPS"></img>
<br /> <br />
<FormattedMessage id="payTotal"/>
<FormattedMessage id="payTotalDeatail"/>
<br /> <br />
{"HK$ " + currencyFormat(paymentData.amount)} {"HK$ " + currencyFormat(paymentData.amount)}
</Typography> </Typography>


+ 2
- 2
src/pages/Payment/Search_GLD/DataGrid.js 查看文件

@@ -64,7 +64,7 @@ export default function SearchPublicNoticeTable({ recordList }) {
headerName: 'Trans. Date', headerName: 'Trans. Date',
flex: 1, flex: 1,
valueGetter: (params) => { valueGetter: (params) => {
return DateUtils.datetimeStr(params?.value);
return DateUtils.dateStr(params?.value);
} }
}, },
{ {
@@ -72,7 +72,7 @@ export default function SearchPublicNoticeTable({ recordList }) {
headerName: 'Status', headerName: 'Status',
width: 150, width: 150,
renderCell: (params) => { renderCell: (params) => {
return PaymentStatus.getStatus_Cht(params);
return PaymentStatus.getStatus_Eng(params);
} }
}, },
{ {


+ 2
- 2
src/pages/Payment/Search_Public/DataGrid.js 查看文件

@@ -77,7 +77,7 @@ export default function SearchPublicNoticeTable({ recordList }) {
width: isMdOrLg ? 'auto' : 160, width: isMdOrLg ? 'auto' : 160,
flex: isMdOrLg ? 1 : undefined, flex: isMdOrLg ? 1 : undefined,
valueGetter: (params) => { valueGetter: (params) => {
return DateUtils.datetimeStr(params?.value);
return DateUtils.dateStr(params?.value);
} }
}, },
{ {
@@ -94,7 +94,7 @@ export default function SearchPublicNoticeTable({ recordList }) {
{ {
id: 'payAmount', id: 'payAmount',
field: 'payAmount', field: 'payAmount',
headerName: intl.formatMessage({id: 'fee'}),
headerName: intl.formatMessage({id: 'currencyAmount'}) + ' ($)',
width: 150, width: 150,
valueGetter: (params) => { valueGetter: (params) => {
return (params?.value) ? "$ " + FormatUtils.currencyFormat(params?.value) : ""; return (params?.value) ? "$ " + FormatUtils.currencyFormat(params?.value) : "";


+ 9
- 7
src/translations/en.json 查看文件

@@ -9,8 +9,8 @@
"importantNotice": "Important Notice", "importantNotice": "Important Notice",
"privacyPolicy": "Privacy Policy", "privacyPolicy": "Privacy Policy",
"Gazette": "Gazette", "Gazette": "Gazette",
"gazetteDate": "GazetteDate",
"gazetteLength": "length",
"gazetteDate": "Gazette Date",
"gazetteLength": "Length",
"gazetteSampleName": "Gazette Supplement No. 6", "gazetteSampleName": "Gazette Supplement No. 6",
"reason": "Reason", "reason": "Reason",


@@ -80,7 +80,7 @@
"registerFail": "Application failed, please try again later", "registerFail": "Application failed, please try again later",


"mainPage": "Main Page", "mainPage": "Main Page",
"myPublicNotice": "My Public Notice",
"myPublicNotice": "My Public Notices",
"publicNotice": "Public Notice", "publicNotice": "Public Notice",
"publicNoticePayment": "Public Notice: Payment", "publicNoticePayment": "Public Notice: Payment",
"publicNoticePaymentFail": "Public Notice: Payment Failed", "publicNoticePaymentFail": "Public Notice: Payment Failed",
@@ -321,12 +321,13 @@
"price": "Price", "price": "Price",
"pay": "Pay", "pay": "Pay",
"payDate": "Payment Date", "payDate": "Payment Date",
"payDateFrom": "Payment date (from)",
"payDateFrom": "Payment Date (from)",
"payStatus": "Payment Status", "payStatus": "Payment Status",
"payId": "Payment Code", "payId": "Payment Code",
"payConfirm": "Confirm payment", "payConfirm": "Confirm payment",
"payCancel": "Cancel payment", "payCancel": "Cancel payment",
"payTotal": "Payment total",
"payTotalDeatail": "Total Payment Amount",
"payTotal": "Total",
"payDetail": "Payment Details", "payDetail": "Payment Details",
"payMethod": "Payment method", "payMethod": "Payment method",
"selectPaymentMethod": "Please select a payment method", "selectPaymentMethod": "Please select a payment method",
@@ -340,8 +341,9 @@
"totalAmount": "Total Amount", "totalAmount": "Total Amount",
"close": "Close", "close": "Close",
"confirm": "Confirm", "confirm": "Confirm",
"terms": "Terms",
"particulars": "Particulars",
"currencyPrice": "Price", "currencyPrice": "Price",
"currencyAmount": "Amount",
"transactionRefNo": "Transaction Reference Number", "transactionRefNo": "Transaction Reference Number",
"selectedPaymentMethod": "Selected payment method", "selectedPaymentMethod": "Selected payment method",
"paymentMethodNotAvailable":"The payment function is currently not available", "paymentMethodNotAvailable":"The payment function is currently not available",
@@ -392,7 +394,7 @@
"transactionNo": "Transaction number", "transactionNo": "Transaction number",
"transactionDate": "Transaction date", "transactionDate": "Transaction date",
"transactionTime": "Transaction time", "transactionTime": "Transaction time",
"paymentRefCode": "Payment Reference Number",
"paymentRefCode": "Payment reference number",


"paymentInfoRecord": "Payment Notice Record", "paymentInfoRecord": "Payment Notice Record",
"paymentRecordId": "Payment record number", "paymentRecordId": "Payment record number",


+ 3
- 1
src/translations/zh-CN.json 查看文件

@@ -321,6 +321,7 @@
"payId": "付款编号", "payId": "付款编号",
"payConfirm": "确认付款", "payConfirm": "确认付款",
"payCancel": "取消付款", "payCancel": "取消付款",
"payTotalDeatail": "付款总额",
"payTotal": "付款总额", "payTotal": "付款总额",
"payDetail": "付款详情", "payDetail": "付款详情",
"payMethod": "付款方式", "payMethod": "付款方式",
@@ -335,8 +336,9 @@
"totalAmount": "总额", "totalAmount": "总额",
"close": "关闭", "close": "关闭",
"confirm": "确认", "confirm": "确认",
"terms": "项目",
"particulars": "项目",
"currencyPrice": "金额", "currencyPrice": "金额",
"currencyAmount": "金额",
"transactionRefNo": "交易參考編號", "transactionRefNo": "交易參考編號",
"selectedPaymentMethod": "已選擇付款方法", "selectedPaymentMethod": "已選擇付款方法",
"paymentMethodNotAvailable":"付款功能現在不可用", "paymentMethodNotAvailable":"付款功能現在不可用",


+ 3
- 1
src/translations/zh-HK.json 查看文件

@@ -324,6 +324,7 @@
"payId": "付款編號", "payId": "付款編號",
"payConfirm": "確認付款", "payConfirm": "確認付款",
"payCancel": "取消付款", "payCancel": "取消付款",
"payTotalDeatail": "付款總額",
"payTotal": "付款總額", "payTotal": "付款總額",
"payDetail": "付款詳情", "payDetail": "付款詳情",
"payMethod": "付款方式", "payMethod": "付款方式",
@@ -338,8 +339,9 @@
"totalAmount": "總額", "totalAmount": "總額",
"close": "關閉", "close": "關閉",
"confirm": "確認", "confirm": "確認",
"terms": "項目",
"particulars": "項目",
"currencyPrice": "金額", "currencyPrice": "金額",
"currencyAmount": "金額",
"transactionRefNo": "交易參考編號", "transactionRefNo": "交易參考編號",
"selectedPaymentMethod": "已選擇付款方法", "selectedPaymentMethod": "已選擇付款方法",
"paymentMethodNotAvailable":"付款功能現在不可用", "paymentMethodNotAvailable":"付款功能現在不可用",


正在加载...
取消
保存