|
@@ -28,7 +28,7 @@ import { ThemeProvider } from "@emotion/react"; |
|
|
import { FormattedMessage, useIntl } from "react-intl"; |
|
|
import { FormattedMessage, useIntl } from "react-intl"; |
|
|
import { |
|
|
import { |
|
|
isDummyLoggedIn, |
|
|
isDummyLoggedIn, |
|
|
checkIsOnlyOnlinePayment |
|
|
|
|
|
|
|
|
checkIsOnlyOnlinePaymentByIssueDate |
|
|
} from "utils/Utils" |
|
|
} from "utils/Utils" |
|
|
|
|
|
|
|
|
const UploadFileTable = Loadable(React.lazy(() => import('./UploadFileTable'))); |
|
|
const UploadFileTable = Loadable(React.lazy(() => import('./UploadFileTable'))); |
|
@@ -65,10 +65,10 @@ const FormPanel = ({ formData }) => { |
|
|
React.useEffect(() => { |
|
|
React.useEffect(() => { |
|
|
if (formData) { |
|
|
if (formData) { |
|
|
setData(formData); |
|
|
setData(formData); |
|
|
setOnlyOnlinePayment(checkIsOnlyOnlinePayment()) |
|
|
|
|
|
|
|
|
setOnlyOnlinePayment(checkIsOnlyOnlinePaymentByIssueDate(formData.issueDate)) |
|
|
if (isDummyLoggedIn()) { |
|
|
if (isDummyLoggedIn()) { |
|
|
set_paymentMethod("demandNote") |
|
|
set_paymentMethod("demandNote") |
|
|
} else if (checkIsOnlyOnlinePayment()){ |
|
|
|
|
|
|
|
|
} else if (checkIsOnlyOnlinePaymentByIssueDate(formData.issueDate)){ |
|
|
set_paymentMethod("online") |
|
|
set_paymentMethod("online") |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|