updates on the receiverphone number
This commit is contained in:
@@ -750,7 +750,9 @@ const MultipleOrders = () => {
|
|||||||
return newRow;
|
return newRow;
|
||||||
});
|
});
|
||||||
|
|
||||||
const missingCols = Object.keys(headerMap).filter((clientCol) => !headers.includes(normalizeHeader(clientCol)));
|
const missingCols = Object.keys(headerMap)
|
||||||
|
.filter((clientCol) => clientCol.endsWith('*'))
|
||||||
|
.filter((clientCol) => !headers.includes(normalizeHeader(clientCol)));
|
||||||
|
|
||||||
if (missingCols.length > 0) {
|
if (missingCols.length > 0) {
|
||||||
isExcel && opentoast(`Missing columns: ${missingCols.join(', ')}`, 'warning');
|
isExcel && opentoast(`Missing columns: ${missingCols.join(', ')}`, 'warning');
|
||||||
|
|||||||
@@ -701,7 +701,7 @@ const MultipleOrders = () => {
|
|||||||
'senderphone*': 'locationcontact',
|
'senderphone*': 'locationcontact',
|
||||||
'senderaddress*': 'locationaddress',
|
'senderaddress*': 'locationaddress',
|
||||||
'receivername*': 'firstname',
|
'receivername*': 'firstname',
|
||||||
'receiverphone*': 'contactno',
|
'receiverphone': 'contactno',
|
||||||
'receiveralternatephone*': 'altcontactno',
|
'receiveralternatephone*': 'altcontactno',
|
||||||
receiverfulladdress: 'address',
|
receiverfulladdress: 'address',
|
||||||
receiverlatitude: 'latitude',
|
receiverlatitude: 'latitude',
|
||||||
@@ -753,7 +753,9 @@ const MultipleOrders = () => {
|
|||||||
return newRow;
|
return newRow;
|
||||||
});
|
});
|
||||||
|
|
||||||
const missingCols = Object.keys(headerMap).filter((clientCol) => !headers.includes(normalizeHeader(clientCol)));
|
const missingCols = Object.keys(headerMap)
|
||||||
|
.filter((clientCol) => clientCol.endsWith('*'))
|
||||||
|
.filter((clientCol) => !headers.includes(normalizeHeader(clientCol)));
|
||||||
|
|
||||||
if (missingCols.length > 0) {
|
if (missingCols.length > 0) {
|
||||||
isExcel && opentoast(`Missing columns: ${missingCols.join(', ')}`, 'warning');
|
isExcel && opentoast(`Missing columns: ${missingCols.join(', ')}`, 'warning');
|
||||||
|
|||||||
Reference in New Issue
Block a user