updated the add cusstomer fileds

This commit is contained in:
roshangarg 2024-04-17 17:13:35 +05:30
parent 75b5bc7c0e
commit 8ce42aeb2d
3 changed files with 51 additions and 1 deletions

View File

@ -42,6 +42,8 @@ const AddCustomer = () => {
state: "",
postalCode: "",
country: "",
company_name: "",
gst_number: Number,
});
// console.log(data);
@ -373,6 +375,50 @@ const AddCustomer = () => {
/>
</FormControl>
</Grid>
<Grid item xs={6}>
<FormControl variant="outlined" fullWidth>
<FormHelperText
id="outlined-weight-helper-text"
sx={styles.formStyle}
>
Company Name
</FormHelperText>
<OutlinedInput
size="small"
id="outlined-adornment-weight"
placeholder="Company name"
aria-describedby="outlined-weight-helper-text"
name="company_name"
type="text"
onChange={(e) => handleChange(e)}
// value={accountDetails.firstname}
// onChange={handerInputChanges}
/>
</FormControl>
</Grid>
<Grid item xs={6}>
<FormControl variant="outlined" fullWidth>
<FormHelperText
id="outlined-weight-helper-text"
sx={styles.formStyle}
>
GST Number
</FormHelperText>
<OutlinedInput
size="small"
id="outlined-adornment-weight"
placeholder="GST Number"
aria-describedby="outlined-weight-helper-text"
name="gst_number"
type="text"
onChange={(e) => handleChange(e)}
// value={accountDetails.firstname}
// onChange={handerInputChanges}
/>
</FormControl>
</Grid>
<Grid item xs={12}>
<Button
variant="contained"

View File

@ -217,6 +217,10 @@ const SingleUserAllDetails = () => {
<td style={{ maxWidth: "400px" }}>
<strong>
{address?.first_Name} {address?.last_name},
{address.company_name
? `${address.company_name},`
: ""}
{address.gst_number ? `${address.gst_number},` : ""}
{address?.phone_Number},{address?.street},
{address?.city},{address?.state},{address?.country},
{address?.postalCode}