diff --git a/src/pages/nearle/orders/createorder1.js b/src/pages/nearle/orders/createorder1.js
index be3295a..391224b 100644
--- a/src/pages/nearle/orders/createorder1.js
+++ b/src/pages/nearle/orders/createorder1.js
@@ -830,7 +830,7 @@ const Createorder1 = () => {
pickup: {
address: pickCust.address || '',
- applocationid: pickCust.applocationid,
+ applocationid: tenant.applolcationid,
city: pickCust.city || '',
configid: parseInt(localStorage.getItem('configid')),
contactno: pickCust.contactno || '',
@@ -845,6 +845,7 @@ const Createorder1 = () => {
landmark: pickCust.landmark || '',
latitude: pickCust.latitude.toString() || '',
longitude: pickCust.longitude.toString() || '',
+ locationid: pickCust.deliverylocationid || 0,
postcode: pickCust.postcode || '',
primaryaddress: 1,
profileimage: '',
@@ -852,9 +853,10 @@ const Createorder1 = () => {
suburb: pickCust.suburb || '',
tenantid: tenant.tenantid
},
+
drop: {
address: dropCust.address || '',
- applocationid: dropCust.applocationid,
+ applocationid: tenant.applolcationid,
city: dropCust.city || '',
configid: parseInt(localStorage.getItem('configid')),
contactno: dropCust.contactno || '',
@@ -869,6 +871,7 @@ const Createorder1 = () => {
landmark: dropCust.landmark || '',
latitude: dropCust.latitude.toString(),
longitude: dropCust.longitude.toString(),
+ locationid: dropCust.deliverylocationid || 0,
postcode: dropCust.postcode || '',
primaryaddress: 1,
profileimage: '',
@@ -1358,10 +1361,11 @@ const Createorder1 = () => {
setPickCust({});
setAddId1(1);
setInputValue2('');
+ setSearchCustList('');
}
}}
>
- Saved Address
+ Saved Locations
@@ -1467,6 +1471,7 @@ const Createorder1 = () => {
// />
{
{/* ====================================== ||Contact Name (pick) || ====================================== */}
{
{/* ====================================== ||Contact Number(pick) || ====================================== */}
{
{/* ====================================== ||Door No (pick) || ====================================== */}
{
{/* ====================================== || Suburb (pick) || ====================================== */}
{
{/* ====================================== || City (pick) || ====================================== */}
{
{/* ====================================== || postcode (pick) || ====================================== */}
{
{/* ====================================== || Landmark (pick) || ====================================== */}
{
setpickordrop(2);
setAddId2(1);
setInputValue3('');
+ setSearchCustList('');
}
}}
>
- Saved Address
+ Saved Locations
@@ -1848,6 +1861,7 @@ const Createorder1 = () => {
{
) : (
{
{/* ====================================== ||Contact Name (drop) || ====================================== */}
{
{/* ====================================== ||Contact Number (drop) || ====================================== */}
{
{/* ====================================== ||Door No (drop) || ====================================== */}
{
{/* ====================================== ||Suburb (drop) || ====================================== */}
{
{/* ====================================== ||City (drop) || ====================================== */}
{
{/* ====================================== ||Postcode (drop) || ====================================== */}
{
{/* ====================================== ||Landmark (drop) || ====================================== */}
{
>
- {`Select Address (${pickordrop === 1 ? 'Pickup' : 'Drop'})`}
+ {`Select Location (${pickordrop === 1 ? 'Pickup' : 'Drop'})`}