orderdetails , orders
This commit is contained in:
@@ -766,7 +766,7 @@ const Createorder1 = () => {
|
||||
enqueueSnackbar(message, {
|
||||
variant: variant,
|
||||
anchorOrigin: { vertical: 'top', horizontal: 'right' },
|
||||
autoHideDuration: time ? time : 1500
|
||||
autoHideDuration: time ? time : 2000
|
||||
});
|
||||
console.log(alertmessage);
|
||||
};
|
||||
@@ -829,7 +829,6 @@ const Createorder1 = () => {
|
||||
pickuplocation: pickCust.suburb || '',
|
||||
pickuplocationid: pickCust.deliverylocationid || 0,
|
||||
pickuplong: pickCust.longitude.toString(),
|
||||
pickupaddress: pickCust.address || '',
|
||||
processing: '',
|
||||
ready: '',
|
||||
remarks: '',
|
||||
@@ -943,10 +942,10 @@ const Createorder1 = () => {
|
||||
|
||||
navigate('/orders');
|
||||
} else {
|
||||
opentoast(res.data.message, 'warning');
|
||||
opentoast('Something went wrong, Cannot create order', 'warning');
|
||||
}
|
||||
setLoading(false);
|
||||
console.log(res);
|
||||
console.log(createRes);
|
||||
} catch (error) {
|
||||
console.log('createResErr', error);
|
||||
}
|
||||
@@ -1318,7 +1317,7 @@ const Createorder1 = () => {
|
||||
disablePortal
|
||||
id="combo-box-demo"
|
||||
options={tenantLocations || []}
|
||||
getOptionLabel={(option) => `${option.locationname} (${option.locationsuburb})` || ''}
|
||||
getOptionLabel={(option) => `${option.locationname} (${option.suburb})` || ''}
|
||||
sx={{ width: 300 }}
|
||||
renderInput={(params) => <TextField {...params} label="Select Business Locations" />}
|
||||
onChange={(event, value, reason) => {
|
||||
|
||||
Reference in New Issue
Block a user