orderdetails , orders

This commit is contained in:
joshikannan
2025-10-17 10:55:05 +05:30
parent 36eaf3d845
commit e6c8df5583
13 changed files with 592 additions and 1240 deletions

View File

@@ -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) => {