@cbm-common/cbm-types 0.0.38 → 0.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/add-provider/add-provider.d.ts +111 -0
- package/lib/components/add-provider/animations.d.ts +1 -0
- package/lib/components/add-provider/constants.d.ts +7 -0
- package/lib/components/add-provider/types.d.ts +1 -0
- package/lib/domain/models/credit-management.domain.model.d.ts +337 -0
- package/lib/domain/models/invoice.domain.model.d.ts +1056 -0
- package/lib/domain/models/provider-category.domain.model.d.ts +68 -0
- package/lib/domain/models/provider-group.domain.model.d.ts +110 -0
- package/lib/domain/models/reason-country.domain.model.d.ts +93 -0
- package/lib/domain/models/retention-settings-sales.domain.model.d.ts +111 -0
- package/lib/domain/models/subscription.domain.model.d.ts +261 -0
- package/lib/domain/models/{payment-term.domain.model.d.ts → tax-regime.domain.model.d.ts} +31 -38
- package/lib/domain/models/territorial-organization.domain.model.d.ts +53 -0
- package/lib/domain/repositories/credit-management.domain.repository.d.ts +11 -0
- package/lib/domain/repositories/invoice.domain.repository.d.ts +16 -0
- package/lib/domain/repositories/provider-category.domain.repository.d.ts +10 -0
- package/lib/domain/repositories/provider-group.domain.repository.d.ts +10 -0
- package/lib/domain/repositories/reason-country.domain.repository.d.ts +14 -0
- package/lib/domain/repositories/retention-settings-sales.domain.repository.d.ts +9 -0
- package/lib/domain/repositories/subscription.domain.repository.d.ts +15 -0
- package/lib/domain/repositories/tax-regime.domain.repository.d.ts +9 -0
- package/lib/domain/repositories/territorial-organization.domain.repository.d.ts +10 -0
- package/lib/infrastructure/repositories/credit-management.infrastructure.repository.d.ts +8 -0
- package/lib/infrastructure/repositories/invoice.infrastructure.repository.d.ts +13 -0
- package/lib/infrastructure/repositories/provider-category.infrastructure.repository.d.ts +7 -0
- package/lib/infrastructure/repositories/provider-group.infrastructure.repository.d.ts +7 -0
- package/lib/infrastructure/repositories/reason-country.infrastructure.repository.d.ts +11 -0
- package/lib/infrastructure/repositories/retention-settings-sales.infrastructure.repository.d.ts +6 -0
- package/lib/infrastructure/repositories/subscription.infrastructure.repository.d.ts +12 -0
- package/lib/infrastructure/repositories/tax-regime.infrastructure.repository.d.ts +6 -0
- package/lib/infrastructure/repositories/territorial-organization.infrastructure.repository.d.ts +7 -0
- package/lib/infrastructure/services/credit-management.infrastructure.service.d.ts +13 -0
- package/lib/infrastructure/services/invoice.infrastructure.service.d.ts +17 -0
- package/lib/infrastructure/services/provider-category.infrastructure.service.d.ts +12 -0
- package/lib/infrastructure/services/provider-group.infrastructure.service.d.ts +12 -0
- package/lib/infrastructure/services/reason-country.infrastructure.service.d.ts +16 -0
- package/lib/infrastructure/services/retention-settings-sales.infrastructure.service.d.ts +11 -0
- package/lib/infrastructure/services/subscription.infrastructure.service.d.ts +16 -0
- package/lib/infrastructure/services/tax-regime.infrastructure.service.d.ts +10 -0
- package/lib/infrastructure/services/territorial-organization.infrastructure.service.d.ts +11 -0
- package/lib/remotes/components.remote.d.ts +1 -0
- package/lib/remotes/repositories/credit-management.repository.d.ts +3 -0
- package/lib/remotes/repositories/invoice.repository.d.ts +3 -0
- package/lib/remotes/repositories/provider-category.repository.d.ts +3 -0
- package/lib/remotes/repositories/provider-group.repository.d.ts +3 -0
- package/lib/remotes/repositories/reason-country.repository.d.ts +3 -0
- package/lib/remotes/repositories/retention-settings-sales.repository.d.ts +3 -0
- package/lib/remotes/repositories/subscription.repository.d.ts +3 -0
- package/lib/remotes/repositories/tax-regime.repository.d.ts +3 -0
- package/lib/remotes/repositories/territorial-organization.repository.d.ts +3 -0
- package/lib/remotes/repositories.remote.d.ts +17 -9
- package/package.json +1 -1
- package/public-api.d.ts +40 -1
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { DestroyRef } from '@angular/core';
|
|
2
|
+
import { FormControl, FormGroup, ValidatorFn } from '@angular/forms';
|
|
3
|
+
import { ConfirmationModal } from '../confirmation-modal/confirmation-modal';
|
|
4
|
+
import { Subject } from 'rxjs';
|
|
5
|
+
import { CbmCountryCodeModel } from '../../domain/models/country-code.domain.model';
|
|
6
|
+
import { CbmDocumentTypeModel } from '../../domain/models/document-type.model';
|
|
7
|
+
import { CbmProviderModel } from '../../domain/models/provider.domain.model';
|
|
8
|
+
import { CbmProviderRepository } from '../../domain/repositories/provider.domain.repository';
|
|
9
|
+
import { CbmNotificationService } from '../../remotes/services.remote';
|
|
10
|
+
import { TSaveOptions } from '../add-client/add-client';
|
|
11
|
+
import { CbmTreeSelect } from '../tree-select/types';
|
|
12
|
+
import { TStatus } from './types';
|
|
13
|
+
import { CbmDocumentTypeDomainRepository } from '../../domain/repositories/document-type.domain.repository';
|
|
14
|
+
import { CbmCountryCodeDomainRepository } from '../../domain/repositories/country-code.domain.repository';
|
|
15
|
+
import { CbmBillingDomainRepository } from '../../domain/repositories/billing.domain.repository';
|
|
16
|
+
import { CbmProviderGroupModel } from '../../domain/models/provider-group.domain.model';
|
|
17
|
+
import { CbmProviderGroupDomainRepository } from '../../domain/repositories/provider-group.domain.repository';
|
|
18
|
+
import { CbmProviderCategoryDomainRepository } from '../../domain/repositories/provider-category.domain.repository';
|
|
19
|
+
export declare class CbmAddProviderComponent {
|
|
20
|
+
private providerRepository;
|
|
21
|
+
private providerGroupRepository;
|
|
22
|
+
private documentTypeRepository;
|
|
23
|
+
private countryCodeRepository;
|
|
24
|
+
private billingRepository;
|
|
25
|
+
private notificationService;
|
|
26
|
+
private destroyRef;
|
|
27
|
+
private providerCategoryRepository;
|
|
28
|
+
confirmationModalRef: import("@angular/core").Signal<ConfirmationModal | undefined>;
|
|
29
|
+
providerId: import("@angular/core").InputSignal<string | undefined>;
|
|
30
|
+
cancel: import("@angular/core").OutputEmitterRef<void>;
|
|
31
|
+
save: import("@angular/core").OutputEmitterRef<any>;
|
|
32
|
+
update: import("@angular/core").OutputEmitterRef<any>;
|
|
33
|
+
showIn: import("@angular/core").OutputEmitterRef<string>;
|
|
34
|
+
documentTypes: import("@angular/core").WritableSignal<CbmDocumentTypeModel.ListResponse.Data[]>;
|
|
35
|
+
categories: import("@angular/core").WritableSignal<CbmTreeSelect.Children<any>>;
|
|
36
|
+
countryCodes: import("@angular/core").WritableSignal<CbmCountryCodeModel.ListResponse.Data[]>;
|
|
37
|
+
providerToUpdate: import("@angular/core").WritableSignal<CbmProviderModel.GetOneResponse.Data | null>;
|
|
38
|
+
isEmailInputFocused: import("@angular/core").WritableSignal<boolean>;
|
|
39
|
+
actionRegister: import("@angular/core").WritableSignal<boolean>;
|
|
40
|
+
saveOption: import("@angular/core").WritableSignal<TSaveOptions | null>;
|
|
41
|
+
statusOfFetchDocumentTypes: import("@angular/core").WritableSignal<TStatus>;
|
|
42
|
+
statusOfFetchProviderData: import("@angular/core").WritableSignal<TStatus>;
|
|
43
|
+
statusOfSaveProvider: import("@angular/core").WritableSignal<TStatus>;
|
|
44
|
+
statusOfUpdateProvider: import("@angular/core").WritableSignal<TStatus>;
|
|
45
|
+
statusOfFetchCategories: import("@angular/core").WritableSignal<TStatus>;
|
|
46
|
+
statusOfFetchCountryCodes: import("@angular/core").WritableSignal<TStatus>;
|
|
47
|
+
statusOfExtractProviderData: import("@angular/core").WritableSignal<TStatus>;
|
|
48
|
+
subjectToSearchDocumentType$: Subject<string>;
|
|
49
|
+
subjectToSearchCategory$: Subject<string>;
|
|
50
|
+
DOCUMENT_TYPES_CODES: {
|
|
51
|
+
readonly RUC: "04";
|
|
52
|
+
readonly CEDULA: "05";
|
|
53
|
+
readonly PASAPORTE: "06";
|
|
54
|
+
readonly VENTA_A_CONSUMIDOR_FINAL: "07";
|
|
55
|
+
readonly IDENTIFICACION_DEL_EXTERIOR: "08";
|
|
56
|
+
};
|
|
57
|
+
providerForm: FormGroup<{
|
|
58
|
+
documentType: FormControl<CbmDocumentTypeModel.ListResponse.Data | null>;
|
|
59
|
+
documentNumber: FormControl<string | null>;
|
|
60
|
+
category: FormControl<CbmProviderGroupModel.ListAsTreeResponse.Category | null>;
|
|
61
|
+
businessName: FormControl<string | null>;
|
|
62
|
+
tradename: FormControl<string | null>;
|
|
63
|
+
address: FormControl<string | null>;
|
|
64
|
+
phoneCode: FormControl<string | null>;
|
|
65
|
+
cellphone: FormControl<string | null>;
|
|
66
|
+
emails: FormControl<string[] | null>;
|
|
67
|
+
email: FormControl<string | null>;
|
|
68
|
+
economicActivity: FormControl<string | null>;
|
|
69
|
+
}>;
|
|
70
|
+
constructor(providerRepository: CbmProviderRepository, providerGroupRepository: CbmProviderGroupDomainRepository, documentTypeRepository: CbmDocumentTypeDomainRepository, countryCodeRepository: CbmCountryCodeDomainRepository, billingRepository: CbmBillingDomainRepository, notificationService: CbmNotificationService, destroyRef: DestroyRef, providerCategoryRepository: CbmProviderCategoryDomainRepository);
|
|
71
|
+
ngOnInit(): void;
|
|
72
|
+
get documentTypeControl(): FormControl<CbmDocumentTypeModel.ListResponse.Data | null>;
|
|
73
|
+
get documentNumberControl(): FormControl<string | null>;
|
|
74
|
+
get categoryControl(): FormControl<CbmProviderGroupModel.ListAsTreeResponse.Category | null>;
|
|
75
|
+
get businessNameControl(): FormControl<string | null>;
|
|
76
|
+
get tradenameControl(): FormControl<string | null>;
|
|
77
|
+
get addressControl(): FormControl<string | null>;
|
|
78
|
+
get phoneCodeControl(): FormControl<string | null>;
|
|
79
|
+
get cellphoneControl(): FormControl<string | null>;
|
|
80
|
+
get emailsControl(): FormControl<string[] | null>;
|
|
81
|
+
get emailControl(): FormControl<string | null>;
|
|
82
|
+
get economicActivityControl(): FormControl<string | null>;
|
|
83
|
+
compareWithId(a: {
|
|
84
|
+
_id: string;
|
|
85
|
+
}, b: {
|
|
86
|
+
_id: string;
|
|
87
|
+
}): boolean;
|
|
88
|
+
validarRucCedula(numero: string): boolean;
|
|
89
|
+
documentNumberValidator(): ValidatorFn;
|
|
90
|
+
noWhitespaceValidator(): ValidatorFn;
|
|
91
|
+
emailsValidator(): ValidatorFn;
|
|
92
|
+
fetchProviderData(): void;
|
|
93
|
+
fetchDocumentTypes(searchTerm?: string): void;
|
|
94
|
+
getDocumentNumberMaxLength(): number | undefined;
|
|
95
|
+
getDocumentNumberPattern(): string;
|
|
96
|
+
extractProviderData(): void;
|
|
97
|
+
fetchDataByCedula(): void;
|
|
98
|
+
fetchDataByRuc(): void;
|
|
99
|
+
fetchCountryCodes(): void;
|
|
100
|
+
fetchCategories(searchTerm?: string): void;
|
|
101
|
+
addEmail(): void;
|
|
102
|
+
onEmailKeyDown(event: KeyboardEvent): void;
|
|
103
|
+
onEmailBlur(): void;
|
|
104
|
+
removeEmail(email: string): void;
|
|
105
|
+
saveProvider(action: TSaveOptions): void;
|
|
106
|
+
updateProvider(): void;
|
|
107
|
+
validateSaveProviderForm(saveOption: TSaveOptions): void;
|
|
108
|
+
validateUpdateProviderForm(): void;
|
|
109
|
+
validateAccountCategory(id: string): void;
|
|
110
|
+
onCancelModalConfirm(): void;
|
|
111
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const fadeInOutAnimation: import("@angular/animations").AnimationTriggerMetadata;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type TStatus = 'init' | 'loading' | 'success' | 'failed';
|
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
export declare namespace CbmCreditManagementModel {
|
|
2
|
+
enum EOriginCredit {
|
|
3
|
+
INTERNAL_CREDIT = "internal_credit",
|
|
4
|
+
SALE_NOTE = "sale_note",
|
|
5
|
+
INVOICE = "invoice",
|
|
6
|
+
INITIAL_BALANCE = "initial_balance"
|
|
7
|
+
}
|
|
8
|
+
interface ConfirmResponse {
|
|
9
|
+
success: boolean;
|
|
10
|
+
message: string;
|
|
11
|
+
data?: any;
|
|
12
|
+
}
|
|
13
|
+
namespace EOriginCredit {
|
|
14
|
+
function fromString(value: string): EOriginCredit;
|
|
15
|
+
function toString(value: EOriginCredit): TOriginCredit;
|
|
16
|
+
}
|
|
17
|
+
type TOriginCredit = `${EOriginCredit}`;
|
|
18
|
+
interface ListParams {
|
|
19
|
+
page: number;
|
|
20
|
+
size: number;
|
|
21
|
+
cost_center_id?: string;
|
|
22
|
+
balance?: boolean;
|
|
23
|
+
company_branch_id?: string;
|
|
24
|
+
invoice_number?: string;
|
|
25
|
+
origin_credit?: string;
|
|
26
|
+
user_id?: string;
|
|
27
|
+
date_begin?: number;
|
|
28
|
+
date_end?: number;
|
|
29
|
+
reverse_status?: boolean;
|
|
30
|
+
enabled?: boolean;
|
|
31
|
+
document_number?: string;
|
|
32
|
+
client_branch_id?: string;
|
|
33
|
+
seller_id?: string;
|
|
34
|
+
client_id?: string;
|
|
35
|
+
}
|
|
36
|
+
interface ListResponse {
|
|
37
|
+
success: boolean;
|
|
38
|
+
pageNum: number;
|
|
39
|
+
pageSize: number;
|
|
40
|
+
pages: number;
|
|
41
|
+
total: number;
|
|
42
|
+
items: ListResponse.Item[];
|
|
43
|
+
totalAmount: ListResponse.TotalAmount;
|
|
44
|
+
}
|
|
45
|
+
namespace ListResponse {
|
|
46
|
+
interface TotalAmount {
|
|
47
|
+
_id: string;
|
|
48
|
+
sum_credit: number;
|
|
49
|
+
sum_debit: number;
|
|
50
|
+
sum_retention: number;
|
|
51
|
+
sum_credit_note: number;
|
|
52
|
+
sum_balance: number;
|
|
53
|
+
}
|
|
54
|
+
interface Item {
|
|
55
|
+
_id: string;
|
|
56
|
+
company_id: string;
|
|
57
|
+
country_id: string;
|
|
58
|
+
country_code: string;
|
|
59
|
+
country_name: string;
|
|
60
|
+
country_short_name: string;
|
|
61
|
+
period_id: string;
|
|
62
|
+
period_year: string;
|
|
63
|
+
client_id: string;
|
|
64
|
+
client_branch_id: string;
|
|
65
|
+
client_category_id: string;
|
|
66
|
+
collection_origin_name: string;
|
|
67
|
+
collection_origin_id: string;
|
|
68
|
+
document_number_origin: string;
|
|
69
|
+
seller_id: string;
|
|
70
|
+
document_nomenclature: string;
|
|
71
|
+
document_number: string;
|
|
72
|
+
installment_number: number;
|
|
73
|
+
invoice_document_branch_identification_number: string;
|
|
74
|
+
invoice_document_emission_point_number: string;
|
|
75
|
+
invoice_document_sequence: string;
|
|
76
|
+
client_document_code: string;
|
|
77
|
+
client_category_name: string;
|
|
78
|
+
client_document_number: string;
|
|
79
|
+
client_trade_name: string;
|
|
80
|
+
client_business_name: string;
|
|
81
|
+
client_phone_code: string;
|
|
82
|
+
client_address: string;
|
|
83
|
+
client_cellphone: string;
|
|
84
|
+
client_email: string;
|
|
85
|
+
client_branch_code: string;
|
|
86
|
+
client_branch_name: string;
|
|
87
|
+
client_branch_address: string;
|
|
88
|
+
client_branch_cellphone: string;
|
|
89
|
+
client_branch_phone_code: string;
|
|
90
|
+
seller_full_name: string;
|
|
91
|
+
seller_identification_number: string;
|
|
92
|
+
seller_address: string;
|
|
93
|
+
seller_email: string[];
|
|
94
|
+
seller_cellphone: string;
|
|
95
|
+
company_NIF: string;
|
|
96
|
+
company_address: string;
|
|
97
|
+
company_trade_name: string;
|
|
98
|
+
company_business_name: string;
|
|
99
|
+
enabled: boolean;
|
|
100
|
+
user_id: string;
|
|
101
|
+
deleted_at: number;
|
|
102
|
+
reverse_status: boolean;
|
|
103
|
+
credit_management_id: string;
|
|
104
|
+
installment: string;
|
|
105
|
+
date: number;
|
|
106
|
+
expired_in: number;
|
|
107
|
+
period: number;
|
|
108
|
+
credit: number;
|
|
109
|
+
debit: number;
|
|
110
|
+
retention: number;
|
|
111
|
+
credit_note: number;
|
|
112
|
+
return: number;
|
|
113
|
+
balance: number;
|
|
114
|
+
created_at: number;
|
|
115
|
+
created_user: string;
|
|
116
|
+
days_expired: number;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
interface ListInstallmentsParams {
|
|
120
|
+
page: number;
|
|
121
|
+
size: number;
|
|
122
|
+
origin_credit?: TOriginCredit;
|
|
123
|
+
date_begin?: number;
|
|
124
|
+
date_end?: number;
|
|
125
|
+
balance?: boolean;
|
|
126
|
+
invoice_number?: string;
|
|
127
|
+
document_number?: string;
|
|
128
|
+
document_number_origin?: string;
|
|
129
|
+
enabled?: boolean;
|
|
130
|
+
client_branch_id?: string;
|
|
131
|
+
client_id?: string;
|
|
132
|
+
}
|
|
133
|
+
interface ListInstallmentsResponse {
|
|
134
|
+
success: boolean;
|
|
135
|
+
pageNum: number;
|
|
136
|
+
pageSize: number;
|
|
137
|
+
pages: number;
|
|
138
|
+
total: number;
|
|
139
|
+
items: ListInstallmentsResponse.Item[];
|
|
140
|
+
totalAmount: ListInstallmentsResponse.Balance;
|
|
141
|
+
}
|
|
142
|
+
namespace ListInstallmentsResponse {
|
|
143
|
+
interface Item {
|
|
144
|
+
_id: string;
|
|
145
|
+
credit_management_id: string;
|
|
146
|
+
installment: string;
|
|
147
|
+
date: number;
|
|
148
|
+
expired_in: number;
|
|
149
|
+
period?: number;
|
|
150
|
+
credit: number;
|
|
151
|
+
debit: number;
|
|
152
|
+
retention: number;
|
|
153
|
+
credit_note: number;
|
|
154
|
+
return: number;
|
|
155
|
+
balance: number;
|
|
156
|
+
created_at: number;
|
|
157
|
+
created_user?: string;
|
|
158
|
+
company_id: string;
|
|
159
|
+
company_branch_id: string;
|
|
160
|
+
client_id: string;
|
|
161
|
+
invoice_id?: string;
|
|
162
|
+
seller_id: string;
|
|
163
|
+
document_nomenclature: string;
|
|
164
|
+
document_number: string;
|
|
165
|
+
invoice_document_branch_identification_number?: string;
|
|
166
|
+
invoice_document_emission_point_number?: string;
|
|
167
|
+
invoice_document_sequence?: string;
|
|
168
|
+
client_category_name?: string;
|
|
169
|
+
client_document_number: string;
|
|
170
|
+
client_trade_name: string;
|
|
171
|
+
client_business_name: string;
|
|
172
|
+
client_phone_code: string;
|
|
173
|
+
client_address: string;
|
|
174
|
+
client_cellphone: string;
|
|
175
|
+
client_email: string;
|
|
176
|
+
client_province_id?: string;
|
|
177
|
+
client_canton_id?: string;
|
|
178
|
+
client_parish_id?: string;
|
|
179
|
+
client_province_code?: string;
|
|
180
|
+
client_province_name?: string;
|
|
181
|
+
client_canton_code?: string;
|
|
182
|
+
client_canton_name?: string;
|
|
183
|
+
client_parish_code?: string;
|
|
184
|
+
client_parish_name?: string;
|
|
185
|
+
seller_full_name: string;
|
|
186
|
+
seller_identification_number: string;
|
|
187
|
+
seller_address: string;
|
|
188
|
+
seller_email: string[];
|
|
189
|
+
seller_cellphone: string;
|
|
190
|
+
company_NIF: string;
|
|
191
|
+
company_address: string;
|
|
192
|
+
company_trade_name: string;
|
|
193
|
+
company_business_name: string;
|
|
194
|
+
company_branch_identification_number: string;
|
|
195
|
+
company_branch_trade_name: string;
|
|
196
|
+
company_branch_logo: string;
|
|
197
|
+
company_branch_address: string;
|
|
198
|
+
company_branch_email: string;
|
|
199
|
+
company_branch_cellphone: string;
|
|
200
|
+
company_branch_phone: string;
|
|
201
|
+
client_branch_id?: string;
|
|
202
|
+
client_branch_code?: string;
|
|
203
|
+
client_branch_name?: string;
|
|
204
|
+
client_branch_address?: string;
|
|
205
|
+
client_branch_email?: string;
|
|
206
|
+
client_branch_cellphone?: string;
|
|
207
|
+
client_branch_phone?: string;
|
|
208
|
+
client_branch_phone_code?: string;
|
|
209
|
+
enabled: boolean;
|
|
210
|
+
user_id: string;
|
|
211
|
+
deleted_at: number;
|
|
212
|
+
reverse_status: boolean;
|
|
213
|
+
invoice_number: string | null;
|
|
214
|
+
origin_credit: string;
|
|
215
|
+
document_number_origin: string;
|
|
216
|
+
days_expired: number;
|
|
217
|
+
cost_center_id?: string;
|
|
218
|
+
sale_note_id?: string;
|
|
219
|
+
initial_balance_id?: string;
|
|
220
|
+
installment_number?: number;
|
|
221
|
+
client_category_id?: string;
|
|
222
|
+
internal_credit_id?: string;
|
|
223
|
+
checked?: boolean;
|
|
224
|
+
}
|
|
225
|
+
interface Balance {
|
|
226
|
+
sum_balance: number;
|
|
227
|
+
balance_day_expired: number;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
interface GetOneResponse {
|
|
231
|
+
success: boolean;
|
|
232
|
+
data: GetOneResponse.Data;
|
|
233
|
+
}
|
|
234
|
+
namespace GetOneResponse {
|
|
235
|
+
interface Data {
|
|
236
|
+
_id: string;
|
|
237
|
+
company_id: string;
|
|
238
|
+
company_branch_id: string;
|
|
239
|
+
client_id: string;
|
|
240
|
+
client_category_id: string;
|
|
241
|
+
cost_center_id: string;
|
|
242
|
+
collection_origin_name: string;
|
|
243
|
+
collection_origin_id: string;
|
|
244
|
+
document_number_origin: string;
|
|
245
|
+
seller_id: string;
|
|
246
|
+
document_nomenclature: string;
|
|
247
|
+
document_number: string;
|
|
248
|
+
date: number;
|
|
249
|
+
credit: number;
|
|
250
|
+
debit: number;
|
|
251
|
+
retention: number;
|
|
252
|
+
credit_note: number;
|
|
253
|
+
return: number;
|
|
254
|
+
balance: number;
|
|
255
|
+
client_document_code: string;
|
|
256
|
+
client_document_number: string;
|
|
257
|
+
client_trade_name: string;
|
|
258
|
+
client_business_name: string;
|
|
259
|
+
client_phone_code: string;
|
|
260
|
+
client_address: string;
|
|
261
|
+
client_cellphone: string;
|
|
262
|
+
client_email: string;
|
|
263
|
+
client_province_id?: string;
|
|
264
|
+
client_canton_id?: string;
|
|
265
|
+
client_parish_id?: string;
|
|
266
|
+
client_province_code?: string;
|
|
267
|
+
client_province_name?: string;
|
|
268
|
+
client_canton_code?: string;
|
|
269
|
+
client_canton_name?: string;
|
|
270
|
+
client_parish_code?: string;
|
|
271
|
+
client_parish_name?: string;
|
|
272
|
+
seller_full_name: string;
|
|
273
|
+
seller_identification_number: string;
|
|
274
|
+
seller_address: string;
|
|
275
|
+
seller_email: string[];
|
|
276
|
+
seller_cellphone: string;
|
|
277
|
+
company_NIF: string;
|
|
278
|
+
company_address: string;
|
|
279
|
+
company_trade_name: string;
|
|
280
|
+
company_business_name: string;
|
|
281
|
+
company_branch_identification_number: string;
|
|
282
|
+
company_branch_trade_name: string;
|
|
283
|
+
company_branch_logo: string;
|
|
284
|
+
company_branch_address: string;
|
|
285
|
+
company_branch_email: string;
|
|
286
|
+
company_branch_cellphone: string;
|
|
287
|
+
company_branch_phone: string;
|
|
288
|
+
enabled: boolean;
|
|
289
|
+
deleted: boolean;
|
|
290
|
+
user_id: string;
|
|
291
|
+
created_user: string;
|
|
292
|
+
deleted_at: number;
|
|
293
|
+
reverse_status: boolean;
|
|
294
|
+
created_at: number;
|
|
295
|
+
credit_management_installment: Data.Installment[];
|
|
296
|
+
origin_credit: string;
|
|
297
|
+
event?: string;
|
|
298
|
+
}
|
|
299
|
+
namespace Data {
|
|
300
|
+
interface Installment {
|
|
301
|
+
_id: string;
|
|
302
|
+
credit_management_id: string;
|
|
303
|
+
installment: string;
|
|
304
|
+
date: number;
|
|
305
|
+
expired_in: number;
|
|
306
|
+
credit: number;
|
|
307
|
+
debit: number;
|
|
308
|
+
retention: number;
|
|
309
|
+
credit_note: number;
|
|
310
|
+
return: number;
|
|
311
|
+
balance: number;
|
|
312
|
+
created_at: number;
|
|
313
|
+
created_user: string;
|
|
314
|
+
history_installment: Installment.History[];
|
|
315
|
+
income_total: number;
|
|
316
|
+
document_liquidation_total: number;
|
|
317
|
+
}
|
|
318
|
+
namespace Installment {
|
|
319
|
+
interface History {
|
|
320
|
+
_id: string;
|
|
321
|
+
credit_management_id: string;
|
|
322
|
+
credit_management_detail_id: string;
|
|
323
|
+
date: number;
|
|
324
|
+
description: string;
|
|
325
|
+
document: string;
|
|
326
|
+
commentary: string;
|
|
327
|
+
type: string;
|
|
328
|
+
value: number;
|
|
329
|
+
previous_balance: number;
|
|
330
|
+
subsequent_balance: number;
|
|
331
|
+
created_at: number;
|
|
332
|
+
created_user: string;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
}
|