This commit is contained in:
pawan-dot 2024-04-18 17:49:16 +05:30
commit 88de98706f
2 changed files with 50 additions and 0 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}