feat: Update CSV import error messages

This commit is contained in:
2026-01-03 10:21:16 +05:30
parent 202f61b2e0
commit d6480bdb5f

View File

@@ -619,7 +619,9 @@ export async function bulkImport(csvData: any[], user: AuthenticatedUser) {
clientCache[clientName] = clientData; clientCache[clientName] = clientData;
} else { } else {
errors.push("Client not found"); errors.push(
"Client not found. The value in Client column must exactly match the client name in Quicker Permits"
);
} }
} }
@@ -638,7 +640,9 @@ export async function bulkImport(csvData: any[], user: AuthenticatedUser) {
countyCache[countyName] = countyData; countyCache[countyName] = countyData;
} else { } else {
errors.push("County not found"); errors.push(
"County not found. The value in County column must exactly match the county name in Quicker Permits"
);
} }
} }
@@ -666,6 +670,7 @@ export async function bulkImport(csvData: any[], user: AuthenticatedUser) {
client: record.clientData?.id, client: record.clientData?.id,
clientData: record.clientData, clientData: record.clientData,
cleanStatus: record["County Status"], cleanStatus: record["County Status"],
manualStatus: record["County Status"],
address: record["Address"], address: record["Address"],
recordType: record["Record Type"], recordType: record["Record Type"],
lot: record["Lot"], lot: record["Lot"],