updates on the receiverphone number
This commit is contained in:
@@ -750,7 +750,9 @@ const MultipleOrders = () => {
|
||||
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) {
|
||||
isExcel && opentoast(`Missing columns: ${missingCols.join(', ')}`, 'warning');
|
||||
|
||||
@@ -701,7 +701,7 @@ const MultipleOrders = () => {
|
||||
'senderphone*': 'locationcontact',
|
||||
'senderaddress*': 'locationaddress',
|
||||
'receivername*': 'firstname',
|
||||
'receiverphone*': 'contactno',
|
||||
'receiverphone': 'contactno',
|
||||
'receiveralternatephone*': 'altcontactno',
|
||||
receiverfulladdress: 'address',
|
||||
receiverlatitude: 'latitude',
|
||||
@@ -753,7 +753,9 @@ const MultipleOrders = () => {
|
||||
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) {
|
||||
isExcel && opentoast(`Missing columns: ${missingCols.join(', ')}`, 'warning');
|
||||
|
||||
Reference in New Issue
Block a user