diff --git a/src/pages/Proof/Reply_Public/ProofForm.js b/src/pages/Proof/Reply_Public/ProofForm.js index bba41c7..3ebc526 100644 --- a/src/pages/Proof/Reply_Public/ProofForm.js +++ b/src/pages/Proof/Reply_Public/ProofForm.js @@ -81,9 +81,9 @@ const FormPanel = ({ formData }) => { } let pm = paymentMethod; if (!isDummyLoggedIn()) { - if (actionValue==true && pm == "demandNote") { + if (actionValue == true && pm == "demandNote") { pm = isOverDnReviseDeadline() ? "" : pm; - } else if (actionValue==true && pm == "office") { + } else if (actionValue == true && pm == "office") { pm = isOverNpgoReviseDeadline() ? "" : pm; } } @@ -121,16 +121,16 @@ const FormPanel = ({ formData }) => { files: attachments ? attachments : [], onSuccess: function (responseData) { console.log(responseData) - if (responseData.success === false){ - navigate("/publicNotice/"+responseData.id); - }else{ + if (responseData.success === false) { + navigate("/publicNotice/" + responseData.id); + } else { if (responseData.msg) { setWarningTitle(intl.formatMessage({ id: "attention" })) setWarningText(intl.formatMessage({ id: responseData.msg })); setIsWarningPopUp(true); return; } - if (actionValue== true && responseData.id == params.id) { + if (actionValue == true && responseData.id == params.id) { notifyActionSuccess(intl.formatMessage({ id: "submitted" })) navigate("/proof/pay/" + params.id); } else { @@ -396,125 +396,137 @@ const FormPanel = ({ formData }) => { : - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + +
- { - set_paymentMethod("online") - }} - /> - - -
{ - setWarningTitle(intl.formatMessage({ id: "payOnline" })) - setWarningText( - <> -
    -
  • -
  • -
  • -
- - ); - setIsWarningPopUp(true); - }}>
-
{DateUtils.dateFormat(formData.proofPaymentDeadline, intl.formatMessage({ id: "paymentMethodDatetimeStrFormat" }))?.replace("am", "a.m.")?.replace("pm", "p.m.")}{DateUtils.dateFormat(formData.expiryDate, intl.formatMessage({ id: "paymentMethodDatetimeStrFormat" }))?.replace("am", "a.m.")?.replace("pm", "p.m.")}
- {isOverDnReviseDeadline() ? - <> : + <> + + + + + + + + + + - - - - - - - - + + + + + + - - - - - - -
{ - set_paymentMethod("demandNote") + set_paymentMethod("online") }} /> - } - - -
{ - setWarningTitle(intl.formatMessage({ id: "payDn" })) - setWarningText( - <> -
    -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
- - ); - setIsWarningPopUp(true); - }}>
-
{DateUtils.dateFormat(formData.closingDateOff, intl.formatMessage({ id: "dateStrFormat" }))} 5:00 p.m. - -
- { - isOverNpgoReviseDeadline() ? + + +
{ + setWarningTitle(intl.formatMessage({ id: "payOnline" })) + setWarningText( + <> +
    +
  • +
  • +
  • +
+ + ); + setIsWarningPopUp(true); + }}>
+
{DateUtils.dateFormat(formData.proofPaymentDeadline, intl.formatMessage({ id: "paymentMethodDatetimeStrFormat" }))?.replace("am", "a.m.")?.replace("pm", "p.m.")}{DateUtils.dateFormat(formData.expiryDate, intl.formatMessage({ id: "paymentMethodDatetimeStrFormat" }))?.replace("am", "a.m.")?.replace("pm", "p.m.")}
+ {isOverDnReviseDeadline() ? <> : { - set_paymentMethod("office") + set_paymentMethod("demandNote") }} /> - } - - -
{ - setWarningTitle(intl.formatMessage({ id: "payNPGO" })) - setWarningText( - <> -
    -
  • -
  • -
- - ); - setIsWarningPopUp(true); - }}>
-
{DateUtils.dateFormat(formData.closingDate, intl.formatMessage({ id: "dateStrFormat" }))} 12:00 p.m. - -
-
+ } +
+ +
{ + setWarningTitle(intl.formatMessage({ id: "payDn" })) + setWarningText( + <> +
    +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
+ + ); + setIsWarningPopUp(true); + }}>
+
{DateUtils.dateFormat(formData.closingDateOff, intl.formatMessage({ id: "dateStrFormat" }))} 5:00 p.m. + +
+ { + isOverNpgoReviseDeadline() ? + <> : + { + set_paymentMethod("office") + }} + /> + } + + +
{ + setWarningTitle(intl.formatMessage({ id: "payNPGO" })) + setWarningText( + <> +
    +
  • +
  • +
+ + ); + setIsWarningPopUp(true); + }}>
+
{DateUtils.dateFormat(formData.closingDate, intl.formatMessage({ id: "dateStrFormat" }))} 12:00 p.m. + +
+
+ + +
+ + + + +
+ + + : actionValue ? <>