overall commit
This commit is contained in:
@@ -118,6 +118,8 @@ const Createorder1 = () => {
|
||||
const [isLocation, setIsLocation] = useState(false);
|
||||
const textFieldRef1 = useRef(null);
|
||||
const textFieldRef2 = useRef(null);
|
||||
const [collectionamt, setCollectionamt] = useState(0);
|
||||
const [quantity, setQuantity] = useState(1);
|
||||
|
||||
const handleOkClick1 = () => {
|
||||
// Set focus back to the text field after clicking the "OK" chip
|
||||
@@ -836,7 +838,9 @@ const Createorder1 = () => {
|
||||
subcategoryid: +subCatId,
|
||||
taxamount: 0.0,
|
||||
tenantid: tenant.tenantid,
|
||||
tenantuserid: parseInt(localStorage.getItem('userid'))
|
||||
tenantuserid: parseInt(localStorage.getItem('userid')),
|
||||
collectionamt: +collectionamt || 0,
|
||||
quantity: +quantity || 1
|
||||
},
|
||||
|
||||
pickup: {
|
||||
@@ -936,8 +940,8 @@ const Createorder1 = () => {
|
||||
autoHideDuration: 1000
|
||||
});
|
||||
if (admintoken) {
|
||||
// notifyadmin(admintoken);
|
||||
sendnotifications();
|
||||
notifyadmin(admintoken);
|
||||
// sendnotifications();
|
||||
}
|
||||
|
||||
navigate('/nearle/orders');
|
||||
@@ -2233,6 +2237,37 @@ const Createorder1 = () => {
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Grid>
|
||||
<Grid container spacing={2} sx={{ mt: 2 }}>
|
||||
<Grid item xs={12} sm={6}>
|
||||
<Stack>
|
||||
<TextField
|
||||
type="number"
|
||||
value={collectionamt}
|
||||
fullWidth
|
||||
label={'Cash Collect'}
|
||||
onChange={(e) => {
|
||||
setCollectionamt(e.target.value);
|
||||
}}
|
||||
inputProps={{ min: 0 }}
|
||||
/>
|
||||
</Stack>
|
||||
</Grid>
|
||||
<Grid item xs={12} sm={6}>
|
||||
<Stack>
|
||||
<TextField
|
||||
type="number"
|
||||
value={quantity}
|
||||
fullWidth
|
||||
label={'Quantity'}
|
||||
onChange={(e) => {
|
||||
setQuantity(e.target.value);
|
||||
}}
|
||||
inputProps={{ min: 1 }}
|
||||
/>
|
||||
</Stack>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
{/* ================================================= || Notes || ================================================= */}
|
||||
<MainCard sx={{ mt: 2 }}>
|
||||
<Grid container>
|
||||
|
||||
Reference in New Issue
Block a user