Add Tahesab bulk customer import by code range.
Connecting alone does not copy customers; settings now list a code range and import them into CRM persons with link status. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -20,6 +20,7 @@ import { TahesabDocumentsService } from './documents.service';
|
||||
import {
|
||||
CreateInTahesabDto,
|
||||
CreateTahesabConnectionDto,
|
||||
ImportBulkFromTahesabDto,
|
||||
ImportFromTahesabDto,
|
||||
ManualLinkDto,
|
||||
MatchPersonDto,
|
||||
@@ -200,4 +201,13 @@ export class TahesabController {
|
||||
) {
|
||||
return this.links.importFromTahesab(user.organizationId, dto);
|
||||
}
|
||||
|
||||
@Post('sync/import-bulk')
|
||||
@Roles('owner', 'admin')
|
||||
importBulk(
|
||||
@CurrentUser() user: { organizationId: string },
|
||||
@Body() dto: ImportBulkFromTahesabDto,
|
||||
) {
|
||||
return this.links.importBulk(user.organizationId, dto);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user