legal person history facility
This commit is contained in:
@@ -71,6 +71,7 @@ const LegalPersonForm = ({setFinishLoanRequest}) => {
|
|||||||
education_id: "",
|
education_id: "",
|
||||||
occupation_id: "",
|
occupation_id: "",
|
||||||
checkedBox: false,
|
checkedBox: false,
|
||||||
|
history_facilities: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
const validationSchema = Yup.object().shape({
|
const validationSchema = Yup.object().shape({
|
||||||
@@ -197,6 +198,7 @@ const LegalPersonForm = ({setFinishLoanRequest}) => {
|
|||||||
birthday: values.birthday.locale("en").format("YYYY-MM-DD"),
|
birthday: values.birthday.locale("en").format("YYYY-MM-DD"),
|
||||||
education_id: values.education_id,
|
education_id: values.education_id,
|
||||||
occupation_id: values.occupation_id,
|
occupation_id: values.occupation_id,
|
||||||
|
facility_usage_history: values.history_facilities === true ? 1 : 0,
|
||||||
..._national_card,
|
..._national_card,
|
||||||
..._national_number,
|
..._national_number,
|
||||||
..._father_name
|
..._father_name
|
||||||
@@ -805,6 +807,22 @@ const LegalPersonForm = ({setFinishLoanRequest}) => {
|
|||||||
/>
|
/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
<Grid container sx={{padding: 2}}>
|
||||||
|
<Grid item xs={12}>
|
||||||
|
<FormControlLabel
|
||||||
|
color={"error.main"}
|
||||||
|
control={
|
||||||
|
<Checkbox
|
||||||
|
checked={formik.values.history_facilities}
|
||||||
|
onChange={(event) => {
|
||||||
|
formik.setFieldValue("history_facilities", event.target.checked);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
label={`${t("LoanRequest.history_facilities")}`}
|
||||||
|
/>
|
||||||
|
</Grid>
|
||||||
|
</Grid>
|
||||||
<Grid container spacing={2} sx={{padding: 2}}>
|
<Grid container spacing={2} sx={{padding: 2}}>
|
||||||
<Grid item xs={12}>
|
<Grid item xs={12}>
|
||||||
<FormControlLabel
|
<FormControlLabel
|
||||||
|
|||||||
@@ -167,7 +167,7 @@ const RealPersonForm = ({setFinishLoanRequest}) => {
|
|||||||
plate_part2: values.plate_part2,
|
plate_part2: values.plate_part2,
|
||||||
plate_part3: values.plate_part3,
|
plate_part3: values.plate_part3,
|
||||||
plate_part4: values.plate_part4,
|
plate_part4: values.plate_part4,
|
||||||
history_facilities: values.history_facilities === true ? 1 : 0,
|
facility_usage_history: values.history_facilities === true ? 1 : 0,
|
||||||
birthday: values.birthday.locale("en").format("YYYY-MM-DD"),
|
birthday: values.birthday.locale("en").format("YYYY-MM-DD"),
|
||||||
..._national_card,
|
..._national_card,
|
||||||
..._father_name
|
..._father_name
|
||||||
|
|||||||
Reference in New Issue
Block a user