Fix to export entity client bulk import template (#1692)

Co-authored-by: Jose Alberto Hernandez <alberto@MacBook-Pro.local>
This commit is contained in:
José Alberto Hernández
2023-02-27 11:17:40 -06:00
committed by GitHub
co-authored by Jose Alberto Hernandez
parent baba1c945f
commit f6ed3c1914
2 changed files with 7 additions and 6 deletions
@@ -129,7 +129,7 @@ export class ViewBulkImportComponent implements OnInit {
legalFormType = 'CLIENTS_PERSON';
break;
case 'Entity':
legalFormType = 'CLIENTS_ENTTTY';
legalFormType = 'CLIENTS_ENTITY';
break;
}
this.organizationService.getImportTemplate(this.bulkImport.urlSuffix, officeId, staffId, legalFormType).subscribe( (res: any) => {
@@ -158,7 +158,7 @@ export class ViewBulkImportComponent implements OnInit {
/** Only for Client Bulk Imports */
if (this.bulkImport.name === 'Clients') {
if (this.template.name.toLowerCase().includes('entity')) {
legalFormType = 'CLIENTS_ENTTTY';
legalFormType = 'CLIENTS_ENTITY';
} else if (this.template.name.toLowerCase().includes('person')) {
legalFormType = 'CLIENTS_PERSON';
}