updates on the receiverphone number

This commit is contained in:
2026-06-16 12:18:25 +05:30
parent 2bf6530813
commit 30c0e184ce
2 changed files with 7 additions and 3 deletions

View File

@@ -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');

View File

@@ -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');