| @@ -88,7 +88,7 @@ const FormPanel = ({ formData }) => { | |||||
| return obj.colCount === responseData.data.column | return obj.colCount === responseData.data.column | ||||
| })); | })); | ||||
| formik.setFieldValue("noOfPages", responseData.data.no_of_page); | formik.setFieldValue("noOfPages", responseData.data.no_of_page); | ||||
| formik.setFieldValue("fee", (data.groupType == "A" ? 6552 * responseData.data.no_of_page : responseData.data.length * colValue)); | |||||
| formik.setFieldValue("fee", (data.groupType == "Private Bill" ? 6552 * responseData.data.no_of_page : responseData.data.length * colValue)); | |||||
| setWait(false); | setWait(false); | ||||
| }, | }, | ||||
| onError: function () { | onError: function () { | ||||
| @@ -214,7 +214,7 @@ const FormPanel = ({ formData }) => { | |||||
| type="file" | type="file" | ||||
| accept=".pdf" | accept=".pdf" | ||||
| style={{ display: 'none' }} | style={{ display: 'none' }} | ||||
| disabled={attachments.length >= (formik.values.groupType == "A" ? 2 : 1)} | |||||
| disabled={attachments.length >= (formik.values.groupType == "Private Bill" ? 2 : 1)} | |||||
| onChange={(event) => { | onChange={(event) => { | ||||
| readFile(event) | readFile(event) | ||||
| }} | }} | ||||
| @@ -224,7 +224,7 @@ const FormPanel = ({ formData }) => { | |||||
| component="span" | component="span" | ||||
| variant="contained" | variant="contained" | ||||
| size="large" | size="large" | ||||
| disabled={attachments.length >= (formik.values.groupType == "A" ? 2 : 1)} | |||||
| disabled={attachments.length >= (formik.values.groupType == "Private Bill" ? 2 : 1)} | |||||
| > | > | ||||
| <Typography variant="h5">Upload Files</Typography> | <Typography variant="h5">Upload Files</Typography> | ||||
| </Button> | </Button> | ||||
| @@ -259,7 +259,7 @@ const FormPanel = ({ formData }) => { | |||||
| { | { | ||||
| formik.values.groupType == "A" ? | |||||
| formik.values.groupType == "Private Bill" ? | |||||
| <Grid item xs={12} md={12}> | <Grid item xs={12} md={12}> | ||||
| <Stack direction="row" sx={{ display: 'flex', alignItems: 'center' }}> | <Stack direction="row" sx={{ display: 'flex', alignItems: 'center' }}> | ||||
| <TextField | <TextField | ||||