feat: Update CSV import error messages
This commit is contained in:
@@ -619,7 +619,9 @@ export async function bulkImport(csvData: any[], user: AuthenticatedUser) {
|
||||
|
||||
clientCache[clientName] = clientData;
|
||||
} 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;
|
||||
} 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,
|
||||
clientData: record.clientData,
|
||||
cleanStatus: record["County Status"],
|
||||
manualStatus: record["County Status"],
|
||||
address: record["Address"],
|
||||
recordType: record["Record Type"],
|
||||
lot: record["Lot"],
|
||||
|
||||
Reference in New Issue
Block a user