automatic linking
This commit is contained in:
@@ -231,6 +231,7 @@ export default function CorporateForm({ isEdit, currentCorporate }: Props) {
|
||||
welcome_message: currentCorporate?.welcome_message || '',
|
||||
help_text: currentCorporate?.help_text || '',
|
||||
active: currentCorporate?.id ? currentCorporate?.active === 1 : true,
|
||||
automatic_linking: currentCorporate?.id ? currentCorporate?.automatic_linking === 1 : true,
|
||||
policy_id: currentCorporate?.current_policy?.id || '',
|
||||
policy_code: currentCorporate?.current_policy?.code || '',
|
||||
policy_total_premi: currentCorporate?.current_policy?.total_premi || 0,
|
||||
@@ -303,6 +304,7 @@ export default function CorporateForm({ isEdit, currentCorporate }: Props) {
|
||||
formData.append('name', data.name);
|
||||
formData.append('code', data.code);
|
||||
formData.append('active', data.active ? '1' : '0');
|
||||
formData.append('automatic_linking', data.automatic_linking ? 1 : 0);
|
||||
formData.append('type', data.type);
|
||||
formData.append('welcome_message', data.welcome_message);
|
||||
formData.append('reason', data.reason);
|
||||
@@ -575,6 +577,8 @@ export default function CorporateForm({ isEdit, currentCorporate }: Props) {
|
||||
<Card sx={{ p: 3 }}>
|
||||
{JSON.stringify(values.active)}
|
||||
<RHFSwitch name="active" label="Is Company Active" />
|
||||
{JSON.stringify(values.automatic_linking)}
|
||||
<RHFSwitch name="automatic_linking" label="Is Company Automatic Linking" />
|
||||
<Stack spacing={3} mt={2} alignItems="center">
|
||||
<Typography align="center">Company Logo</Typography>
|
||||
{/* <RHFUploadAvatar
|
||||
|
||||
Reference in New Issue
Block a user