legal person history facility

This commit is contained in:
2024-05-13 13:12:39 +03:30
parent 0a2e34cf8d
commit d314c8be26
2 changed files with 19 additions and 1 deletions

View File

@@ -71,6 +71,7 @@ const LegalPersonForm = ({setFinishLoanRequest}) => {
education_id: "",
occupation_id: "",
checkedBox: false,
history_facilities: false,
};
const validationSchema = Yup.object().shape({
@@ -197,6 +198,7 @@ const LegalPersonForm = ({setFinishLoanRequest}) => {
birthday: values.birthday.locale("en").format("YYYY-MM-DD"),
education_id: values.education_id,
occupation_id: values.occupation_id,
facility_usage_history: values.history_facilities === true ? 1 : 0,
..._national_card,
..._national_number,
..._father_name
@@ -805,6 +807,22 @@ const LegalPersonForm = ({setFinishLoanRequest}) => {
/>
</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 item xs={12}>
<FormControlLabel

View File

@@ -167,7 +167,7 @@ const RealPersonForm = ({setFinishLoanRequest}) => {
plate_part2: values.plate_part2,
plate_part3: values.plate_part3,
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"),
..._national_card,
..._father_name