@hed-hog/finance 0.0.237 → 0.0.239
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/dist/dto/create-finance-tag.dto.d.ts +5 -0
- package/dist/dto/create-finance-tag.dto.d.ts.map +1 -0
- package/dist/dto/create-finance-tag.dto.js +29 -0
- package/dist/dto/create-finance-tag.dto.js.map +1 -0
- package/dist/dto/reject-title.dto.d.ts +4 -0
- package/dist/dto/reject-title.dto.d.ts.map +1 -0
- package/dist/dto/reject-title.dto.js +22 -0
- package/dist/dto/reject-title.dto.js.map +1 -0
- package/dist/dto/reverse-settlement.dto.d.ts +4 -0
- package/dist/dto/reverse-settlement.dto.d.ts.map +1 -0
- package/dist/dto/reverse-settlement.dto.js +22 -0
- package/dist/dto/reverse-settlement.dto.js.map +1 -0
- package/dist/dto/settle-installment.dto.d.ts +12 -0
- package/dist/dto/settle-installment.dto.d.ts.map +1 -0
- package/dist/dto/settle-installment.dto.js +71 -0
- package/dist/dto/settle-installment.dto.js.map +1 -0
- package/dist/dto/update-installment-tags.dto.d.ts +4 -0
- package/dist/dto/update-installment-tags.dto.d.ts.map +1 -0
- package/dist/dto/update-installment-tags.dto.js +27 -0
- package/dist/dto/update-installment-tags.dto.js.map +1 -0
- package/dist/finance-data.controller.d.ts +17 -5
- package/dist/finance-data.controller.d.ts.map +1 -1
- package/dist/finance-installments.controller.d.ts +325 -8
- package/dist/finance-installments.controller.d.ts.map +1 -1
- package/dist/finance-installments.controller.js +128 -0
- package/dist/finance-installments.controller.js.map +1 -1
- package/dist/finance.service.d.ts +357 -13
- package/dist/finance.service.d.ts.map +1 -1
- package/dist/finance.service.js +835 -64
- package/dist/finance.service.js.map +1 -1
- package/hedhog/data/route.yaml +90 -0
- package/hedhog/frontend/app/_lib/use-finance-data.ts.ejs +2 -0
- package/hedhog/frontend/app/accounts-payable/approvals/page.tsx.ejs +92 -12
- package/hedhog/frontend/app/accounts-payable/installments/[id]/page.tsx.ejs +601 -79
- package/hedhog/frontend/app/accounts-payable/installments/page.tsx.ejs +481 -19
- package/hedhog/frontend/app/accounts-receivable/installments/[id]/page.tsx.ejs +598 -69
- package/hedhog/frontend/app/accounts-receivable/installments/page.tsx.ejs +472 -15
- package/hedhog/frontend/messages/en.json +38 -0
- package/hedhog/frontend/messages/pt.json +38 -0
- package/package.json +5 -5
- package/src/dto/create-finance-tag.dto.ts +15 -0
- package/src/dto/reject-title.dto.ts +7 -0
- package/src/dto/reverse-settlement.dto.ts +7 -0
- package/src/dto/settle-installment.dto.ts +55 -0
- package/src/dto/update-installment-tags.dto.ts +12 -0
- package/src/finance-installments.controller.ts +145 -9
- package/src/finance.service.ts +1333 -165
|
@@ -4,9 +4,13 @@ import { AiService } from '@hed-hog/core';
|
|
|
4
4
|
import { CreateBankAccountDto } from './dto/create-bank-account.dto';
|
|
5
5
|
import { CreateCostCenterDto } from './dto/create-cost-center.dto';
|
|
6
6
|
import { CreateFinanceCategoryDto } from './dto/create-finance-category.dto';
|
|
7
|
+
import { CreateFinanceTagDto } from './dto/create-finance-tag.dto';
|
|
7
8
|
import { CreateFinancialTitleDto } from './dto/create-financial-title.dto';
|
|
8
9
|
import { CreatePeriodCloseDto } from './dto/create-period-close.dto';
|
|
9
10
|
import { MoveFinanceCategoryDto } from './dto/move-finance-category.dto';
|
|
11
|
+
import { RejectTitleDto } from './dto/reject-title.dto';
|
|
12
|
+
import { ReverseSettlementDto } from './dto/reverse-settlement.dto';
|
|
13
|
+
import { SettleInstallmentDto } from './dto/settle-installment.dto';
|
|
10
14
|
import { UpdateBankAccountDto } from './dto/update-bank-account.dto';
|
|
11
15
|
import { UpdateCostCenterDto } from './dto/update-cost-center.dto';
|
|
12
16
|
import { UpdateFinanceCategoryDto } from './dto/update-finance-category.dto';
|
|
@@ -74,9 +78,10 @@ export declare class FinanceService {
|
|
|
74
78
|
categoriaId: string;
|
|
75
79
|
centroCustoId: string;
|
|
76
80
|
anexos: any;
|
|
81
|
+
anexosDetalhes: any;
|
|
77
82
|
tags: unknown[];
|
|
78
83
|
parcelas: any;
|
|
79
|
-
canal:
|
|
84
|
+
canal: string;
|
|
80
85
|
} | {
|
|
81
86
|
clienteId: string;
|
|
82
87
|
id: string;
|
|
@@ -89,9 +94,10 @@ export declare class FinanceService {
|
|
|
89
94
|
categoriaId: string;
|
|
90
95
|
centroCustoId: string;
|
|
91
96
|
anexos: any;
|
|
97
|
+
anexosDetalhes: any;
|
|
92
98
|
tags: unknown[];
|
|
93
99
|
parcelas: any;
|
|
94
|
-
canal:
|
|
100
|
+
canal: string;
|
|
95
101
|
})[];
|
|
96
102
|
titulosReceber: ({
|
|
97
103
|
fornecedorId: string;
|
|
@@ -105,9 +111,10 @@ export declare class FinanceService {
|
|
|
105
111
|
categoriaId: string;
|
|
106
112
|
centroCustoId: string;
|
|
107
113
|
anexos: any;
|
|
114
|
+
anexosDetalhes: any;
|
|
108
115
|
tags: unknown[];
|
|
109
116
|
parcelas: any;
|
|
110
|
-
canal:
|
|
117
|
+
canal: string;
|
|
111
118
|
} | {
|
|
112
119
|
clienteId: string;
|
|
113
120
|
id: string;
|
|
@@ -120,9 +127,10 @@ export declare class FinanceService {
|
|
|
120
127
|
categoriaId: string;
|
|
121
128
|
centroCustoId: string;
|
|
122
129
|
anexos: any;
|
|
130
|
+
anexosDetalhes: any;
|
|
123
131
|
tags: unknown[];
|
|
124
132
|
parcelas: any;
|
|
125
|
-
canal:
|
|
133
|
+
canal: string;
|
|
126
134
|
})[];
|
|
127
135
|
extratos: any[];
|
|
128
136
|
contasBancarias: {
|
|
@@ -156,7 +164,15 @@ export declare class FinanceService {
|
|
|
156
164
|
nome: string;
|
|
157
165
|
status: import("@prisma/client").$Enums.cost_center_status_enum;
|
|
158
166
|
}[];
|
|
159
|
-
aprovacoesPendentes:
|
|
167
|
+
aprovacoesPendentes: {
|
|
168
|
+
id: string;
|
|
169
|
+
tituloId: string;
|
|
170
|
+
solicitante: string;
|
|
171
|
+
valor: number;
|
|
172
|
+
politica: string;
|
|
173
|
+
urgencia: string;
|
|
174
|
+
dataSolicitacao: any;
|
|
175
|
+
}[];
|
|
160
176
|
agingInadimplencia: any[];
|
|
161
177
|
cenarios: any[];
|
|
162
178
|
transferencias: any[];
|
|
@@ -212,9 +228,10 @@ export declare class FinanceService {
|
|
|
212
228
|
categoriaId: string;
|
|
213
229
|
centroCustoId: string;
|
|
214
230
|
anexos: any;
|
|
231
|
+
anexosDetalhes: any;
|
|
215
232
|
tags: unknown[];
|
|
216
233
|
parcelas: any;
|
|
217
|
-
canal:
|
|
234
|
+
canal: string;
|
|
218
235
|
} | {
|
|
219
236
|
clienteId: string;
|
|
220
237
|
id: string;
|
|
@@ -227,9 +244,10 @@ export declare class FinanceService {
|
|
|
227
244
|
categoriaId: string;
|
|
228
245
|
centroCustoId: string;
|
|
229
246
|
anexos: any;
|
|
247
|
+
anexosDetalhes: any;
|
|
230
248
|
tags: unknown[];
|
|
231
249
|
parcelas: any;
|
|
232
|
-
canal:
|
|
250
|
+
canal: string;
|
|
233
251
|
}>;
|
|
234
252
|
getAccountsReceivableInstallment(id: number, locale: string): Promise<{
|
|
235
253
|
fornecedorId: string;
|
|
@@ -243,9 +261,10 @@ export declare class FinanceService {
|
|
|
243
261
|
categoriaId: string;
|
|
244
262
|
centroCustoId: string;
|
|
245
263
|
anexos: any;
|
|
264
|
+
anexosDetalhes: any;
|
|
246
265
|
tags: unknown[];
|
|
247
266
|
parcelas: any;
|
|
248
|
-
canal:
|
|
267
|
+
canal: string;
|
|
249
268
|
} | {
|
|
250
269
|
clienteId: string;
|
|
251
270
|
id: string;
|
|
@@ -258,9 +277,10 @@ export declare class FinanceService {
|
|
|
258
277
|
categoriaId: string;
|
|
259
278
|
centroCustoId: string;
|
|
260
279
|
anexos: any;
|
|
280
|
+
anexosDetalhes: any;
|
|
261
281
|
tags: unknown[];
|
|
262
282
|
parcelas: any;
|
|
263
|
-
canal:
|
|
283
|
+
canal: string;
|
|
264
284
|
}>;
|
|
265
285
|
createAccountsPayableTitle(data: CreateFinancialTitleDto, locale: string, userId?: number): Promise<{
|
|
266
286
|
fornecedorId: string;
|
|
@@ -274,9 +294,10 @@ export declare class FinanceService {
|
|
|
274
294
|
categoriaId: string;
|
|
275
295
|
centroCustoId: string;
|
|
276
296
|
anexos: any;
|
|
297
|
+
anexosDetalhes: any;
|
|
277
298
|
tags: unknown[];
|
|
278
299
|
parcelas: any;
|
|
279
|
-
canal:
|
|
300
|
+
canal: string;
|
|
280
301
|
} | {
|
|
281
302
|
clienteId: string;
|
|
282
303
|
id: string;
|
|
@@ -289,9 +310,144 @@ export declare class FinanceService {
|
|
|
289
310
|
categoriaId: string;
|
|
290
311
|
centroCustoId: string;
|
|
291
312
|
anexos: any;
|
|
313
|
+
anexosDetalhes: any;
|
|
292
314
|
tags: unknown[];
|
|
293
315
|
parcelas: any;
|
|
294
|
-
canal:
|
|
316
|
+
canal: string;
|
|
317
|
+
}>;
|
|
318
|
+
approveAccountsPayableTitle(id: number, locale: string, userId?: number): Promise<{
|
|
319
|
+
fornecedorId: string;
|
|
320
|
+
id: string;
|
|
321
|
+
documento: any;
|
|
322
|
+
descricao: any;
|
|
323
|
+
competencia: any;
|
|
324
|
+
valorTotal: number;
|
|
325
|
+
status: any;
|
|
326
|
+
criadoEm: any;
|
|
327
|
+
categoriaId: string;
|
|
328
|
+
centroCustoId: string;
|
|
329
|
+
anexos: any;
|
|
330
|
+
anexosDetalhes: any;
|
|
331
|
+
tags: unknown[];
|
|
332
|
+
parcelas: any;
|
|
333
|
+
canal: string;
|
|
334
|
+
} | {
|
|
335
|
+
clienteId: string;
|
|
336
|
+
id: string;
|
|
337
|
+
documento: any;
|
|
338
|
+
descricao: any;
|
|
339
|
+
competencia: any;
|
|
340
|
+
valorTotal: number;
|
|
341
|
+
status: any;
|
|
342
|
+
criadoEm: any;
|
|
343
|
+
categoriaId: string;
|
|
344
|
+
centroCustoId: string;
|
|
345
|
+
anexos: any;
|
|
346
|
+
anexosDetalhes: any;
|
|
347
|
+
tags: unknown[];
|
|
348
|
+
parcelas: any;
|
|
349
|
+
canal: string;
|
|
350
|
+
}>;
|
|
351
|
+
rejectAccountsPayableTitle(id: number, data: RejectTitleDto, locale: string, userId?: number): Promise<{
|
|
352
|
+
fornecedorId: string;
|
|
353
|
+
id: string;
|
|
354
|
+
documento: any;
|
|
355
|
+
descricao: any;
|
|
356
|
+
competencia: any;
|
|
357
|
+
valorTotal: number;
|
|
358
|
+
status: any;
|
|
359
|
+
criadoEm: any;
|
|
360
|
+
categoriaId: string;
|
|
361
|
+
centroCustoId: string;
|
|
362
|
+
anexos: any;
|
|
363
|
+
anexosDetalhes: any;
|
|
364
|
+
tags: unknown[];
|
|
365
|
+
parcelas: any;
|
|
366
|
+
canal: string;
|
|
367
|
+
} | {
|
|
368
|
+
clienteId: string;
|
|
369
|
+
id: string;
|
|
370
|
+
documento: any;
|
|
371
|
+
descricao: any;
|
|
372
|
+
competencia: any;
|
|
373
|
+
valorTotal: number;
|
|
374
|
+
status: any;
|
|
375
|
+
criadoEm: any;
|
|
376
|
+
categoriaId: string;
|
|
377
|
+
centroCustoId: string;
|
|
378
|
+
anexos: any;
|
|
379
|
+
anexosDetalhes: any;
|
|
380
|
+
tags: unknown[];
|
|
381
|
+
parcelas: any;
|
|
382
|
+
canal: string;
|
|
383
|
+
}>;
|
|
384
|
+
settleAccountsPayableInstallment(id: number, data: SettleInstallmentDto, locale: string, userId?: number): Promise<{
|
|
385
|
+
settlementId: string;
|
|
386
|
+
fornecedorId: string;
|
|
387
|
+
id: string;
|
|
388
|
+
documento: any;
|
|
389
|
+
descricao: any;
|
|
390
|
+
competencia: any;
|
|
391
|
+
valorTotal: number;
|
|
392
|
+
status: any;
|
|
393
|
+
criadoEm: any;
|
|
394
|
+
categoriaId: string;
|
|
395
|
+
centroCustoId: string;
|
|
396
|
+
anexos: any;
|
|
397
|
+
anexosDetalhes: any;
|
|
398
|
+
tags: unknown[];
|
|
399
|
+
parcelas: any;
|
|
400
|
+
canal: string;
|
|
401
|
+
} | {
|
|
402
|
+
settlementId: string;
|
|
403
|
+
clienteId: string;
|
|
404
|
+
id: string;
|
|
405
|
+
documento: any;
|
|
406
|
+
descricao: any;
|
|
407
|
+
competencia: any;
|
|
408
|
+
valorTotal: number;
|
|
409
|
+
status: any;
|
|
410
|
+
criadoEm: any;
|
|
411
|
+
categoriaId: string;
|
|
412
|
+
centroCustoId: string;
|
|
413
|
+
anexos: any;
|
|
414
|
+
anexosDetalhes: any;
|
|
415
|
+
tags: unknown[];
|
|
416
|
+
parcelas: any;
|
|
417
|
+
canal: string;
|
|
418
|
+
}>;
|
|
419
|
+
reverseAccountsPayableSettlement(id: number, settlementId: number, data: ReverseSettlementDto, locale: string, userId?: number): Promise<{
|
|
420
|
+
fornecedorId: string;
|
|
421
|
+
id: string;
|
|
422
|
+
documento: any;
|
|
423
|
+
descricao: any;
|
|
424
|
+
competencia: any;
|
|
425
|
+
valorTotal: number;
|
|
426
|
+
status: any;
|
|
427
|
+
criadoEm: any;
|
|
428
|
+
categoriaId: string;
|
|
429
|
+
centroCustoId: string;
|
|
430
|
+
anexos: any;
|
|
431
|
+
anexosDetalhes: any;
|
|
432
|
+
tags: unknown[];
|
|
433
|
+
parcelas: any;
|
|
434
|
+
canal: string;
|
|
435
|
+
} | {
|
|
436
|
+
clienteId: string;
|
|
437
|
+
id: string;
|
|
438
|
+
documento: any;
|
|
439
|
+
descricao: any;
|
|
440
|
+
competencia: any;
|
|
441
|
+
valorTotal: number;
|
|
442
|
+
status: any;
|
|
443
|
+
criadoEm: any;
|
|
444
|
+
categoriaId: string;
|
|
445
|
+
centroCustoId: string;
|
|
446
|
+
anexos: any;
|
|
447
|
+
anexosDetalhes: any;
|
|
448
|
+
tags: unknown[];
|
|
449
|
+
parcelas: any;
|
|
450
|
+
canal: string;
|
|
295
451
|
}>;
|
|
296
452
|
createAccountsReceivableTitle(data: CreateFinancialTitleDto, locale: string, userId?: number): Promise<{
|
|
297
453
|
fornecedorId: string;
|
|
@@ -305,9 +461,43 @@ export declare class FinanceService {
|
|
|
305
461
|
categoriaId: string;
|
|
306
462
|
centroCustoId: string;
|
|
307
463
|
anexos: any;
|
|
464
|
+
anexosDetalhes: any;
|
|
465
|
+
tags: unknown[];
|
|
466
|
+
parcelas: any;
|
|
467
|
+
canal: string;
|
|
468
|
+
} | {
|
|
469
|
+
clienteId: string;
|
|
470
|
+
id: string;
|
|
471
|
+
documento: any;
|
|
472
|
+
descricao: any;
|
|
473
|
+
competencia: any;
|
|
474
|
+
valorTotal: number;
|
|
475
|
+
status: any;
|
|
476
|
+
criadoEm: any;
|
|
477
|
+
categoriaId: string;
|
|
478
|
+
centroCustoId: string;
|
|
479
|
+
anexos: any;
|
|
480
|
+
anexosDetalhes: any;
|
|
481
|
+
tags: unknown[];
|
|
482
|
+
parcelas: any;
|
|
483
|
+
canal: string;
|
|
484
|
+
}>;
|
|
485
|
+
approveAccountsReceivableTitle(id: number, locale: string, userId?: number): Promise<{
|
|
486
|
+
fornecedorId: string;
|
|
487
|
+
id: string;
|
|
488
|
+
documento: any;
|
|
489
|
+
descricao: any;
|
|
490
|
+
competencia: any;
|
|
491
|
+
valorTotal: number;
|
|
492
|
+
status: any;
|
|
493
|
+
criadoEm: any;
|
|
494
|
+
categoriaId: string;
|
|
495
|
+
centroCustoId: string;
|
|
496
|
+
anexos: any;
|
|
497
|
+
anexosDetalhes: any;
|
|
308
498
|
tags: unknown[];
|
|
309
499
|
parcelas: any;
|
|
310
|
-
canal:
|
|
500
|
+
canal: string;
|
|
311
501
|
} | {
|
|
312
502
|
clienteId: string;
|
|
313
503
|
id: string;
|
|
@@ -320,9 +510,149 @@ export declare class FinanceService {
|
|
|
320
510
|
categoriaId: string;
|
|
321
511
|
centroCustoId: string;
|
|
322
512
|
anexos: any;
|
|
513
|
+
anexosDetalhes: any;
|
|
323
514
|
tags: unknown[];
|
|
324
515
|
parcelas: any;
|
|
325
|
-
canal:
|
|
516
|
+
canal: string;
|
|
517
|
+
}>;
|
|
518
|
+
settleAccountsReceivableInstallment(id: number, data: SettleInstallmentDto, locale: string, userId?: number): Promise<{
|
|
519
|
+
settlementId: string;
|
|
520
|
+
fornecedorId: string;
|
|
521
|
+
id: string;
|
|
522
|
+
documento: any;
|
|
523
|
+
descricao: any;
|
|
524
|
+
competencia: any;
|
|
525
|
+
valorTotal: number;
|
|
526
|
+
status: any;
|
|
527
|
+
criadoEm: any;
|
|
528
|
+
categoriaId: string;
|
|
529
|
+
centroCustoId: string;
|
|
530
|
+
anexos: any;
|
|
531
|
+
anexosDetalhes: any;
|
|
532
|
+
tags: unknown[];
|
|
533
|
+
parcelas: any;
|
|
534
|
+
canal: string;
|
|
535
|
+
} | {
|
|
536
|
+
settlementId: string;
|
|
537
|
+
clienteId: string;
|
|
538
|
+
id: string;
|
|
539
|
+
documento: any;
|
|
540
|
+
descricao: any;
|
|
541
|
+
competencia: any;
|
|
542
|
+
valorTotal: number;
|
|
543
|
+
status: any;
|
|
544
|
+
criadoEm: any;
|
|
545
|
+
categoriaId: string;
|
|
546
|
+
centroCustoId: string;
|
|
547
|
+
anexos: any;
|
|
548
|
+
anexosDetalhes: any;
|
|
549
|
+
tags: unknown[];
|
|
550
|
+
parcelas: any;
|
|
551
|
+
canal: string;
|
|
552
|
+
}>;
|
|
553
|
+
reverseAccountsReceivableSettlement(id: number, settlementId: number, data: ReverseSettlementDto, locale: string, userId?: number): Promise<{
|
|
554
|
+
fornecedorId: string;
|
|
555
|
+
id: string;
|
|
556
|
+
documento: any;
|
|
557
|
+
descricao: any;
|
|
558
|
+
competencia: any;
|
|
559
|
+
valorTotal: number;
|
|
560
|
+
status: any;
|
|
561
|
+
criadoEm: any;
|
|
562
|
+
categoriaId: string;
|
|
563
|
+
centroCustoId: string;
|
|
564
|
+
anexos: any;
|
|
565
|
+
anexosDetalhes: any;
|
|
566
|
+
tags: unknown[];
|
|
567
|
+
parcelas: any;
|
|
568
|
+
canal: string;
|
|
569
|
+
} | {
|
|
570
|
+
clienteId: string;
|
|
571
|
+
id: string;
|
|
572
|
+
documento: any;
|
|
573
|
+
descricao: any;
|
|
574
|
+
competencia: any;
|
|
575
|
+
valorTotal: number;
|
|
576
|
+
status: any;
|
|
577
|
+
criadoEm: any;
|
|
578
|
+
categoriaId: string;
|
|
579
|
+
centroCustoId: string;
|
|
580
|
+
anexos: any;
|
|
581
|
+
anexosDetalhes: any;
|
|
582
|
+
tags: unknown[];
|
|
583
|
+
parcelas: any;
|
|
584
|
+
canal: string;
|
|
585
|
+
}>;
|
|
586
|
+
createTag(data: CreateFinanceTagDto): Promise<{
|
|
587
|
+
id: string;
|
|
588
|
+
nome: string;
|
|
589
|
+
cor: string;
|
|
590
|
+
}>;
|
|
591
|
+
updateAccountsPayableInstallmentTags(id: number, tagIds: number[], locale: string): Promise<{
|
|
592
|
+
fornecedorId: string;
|
|
593
|
+
id: string;
|
|
594
|
+
documento: any;
|
|
595
|
+
descricao: any;
|
|
596
|
+
competencia: any;
|
|
597
|
+
valorTotal: number;
|
|
598
|
+
status: any;
|
|
599
|
+
criadoEm: any;
|
|
600
|
+
categoriaId: string;
|
|
601
|
+
centroCustoId: string;
|
|
602
|
+
anexos: any;
|
|
603
|
+
anexosDetalhes: any;
|
|
604
|
+
tags: unknown[];
|
|
605
|
+
parcelas: any;
|
|
606
|
+
canal: string;
|
|
607
|
+
} | {
|
|
608
|
+
clienteId: string;
|
|
609
|
+
id: string;
|
|
610
|
+
documento: any;
|
|
611
|
+
descricao: any;
|
|
612
|
+
competencia: any;
|
|
613
|
+
valorTotal: number;
|
|
614
|
+
status: any;
|
|
615
|
+
criadoEm: any;
|
|
616
|
+
categoriaId: string;
|
|
617
|
+
centroCustoId: string;
|
|
618
|
+
anexos: any;
|
|
619
|
+
anexosDetalhes: any;
|
|
620
|
+
tags: unknown[];
|
|
621
|
+
parcelas: any;
|
|
622
|
+
canal: string;
|
|
623
|
+
}>;
|
|
624
|
+
updateAccountsReceivableInstallmentTags(id: number, tagIds: number[], locale: string): Promise<{
|
|
625
|
+
fornecedorId: string;
|
|
626
|
+
id: string;
|
|
627
|
+
documento: any;
|
|
628
|
+
descricao: any;
|
|
629
|
+
competencia: any;
|
|
630
|
+
valorTotal: number;
|
|
631
|
+
status: any;
|
|
632
|
+
criadoEm: any;
|
|
633
|
+
categoriaId: string;
|
|
634
|
+
centroCustoId: string;
|
|
635
|
+
anexos: any;
|
|
636
|
+
anexosDetalhes: any;
|
|
637
|
+
tags: unknown[];
|
|
638
|
+
parcelas: any;
|
|
639
|
+
canal: string;
|
|
640
|
+
} | {
|
|
641
|
+
clienteId: string;
|
|
642
|
+
id: string;
|
|
643
|
+
documento: any;
|
|
644
|
+
descricao: any;
|
|
645
|
+
competencia: any;
|
|
646
|
+
valorTotal: number;
|
|
647
|
+
status: any;
|
|
648
|
+
criadoEm: any;
|
|
649
|
+
categoriaId: string;
|
|
650
|
+
centroCustoId: string;
|
|
651
|
+
anexos: any;
|
|
652
|
+
anexosDetalhes: any;
|
|
653
|
+
tags: unknown[];
|
|
654
|
+
parcelas: any;
|
|
655
|
+
canal: string;
|
|
326
656
|
}>;
|
|
327
657
|
listBankAccounts(): Promise<{
|
|
328
658
|
id: string;
|
|
@@ -471,6 +801,12 @@ export declare class FinanceService {
|
|
|
471
801
|
private listTitles;
|
|
472
802
|
private getTitleById;
|
|
473
803
|
private createTitle;
|
|
804
|
+
private normalizeAndValidateInstallments;
|
|
805
|
+
private approveTitle;
|
|
806
|
+
private rejectTitle;
|
|
807
|
+
private settleTitleInstallment;
|
|
808
|
+
private reverseTitleSettlement;
|
|
809
|
+
private updateTitleTags;
|
|
474
810
|
private loadTitles;
|
|
475
811
|
private loadPeople;
|
|
476
812
|
private loadCategories;
|
|
@@ -478,11 +814,19 @@ export declare class FinanceService {
|
|
|
478
814
|
private loadBankAccounts;
|
|
479
815
|
private loadTags;
|
|
480
816
|
private loadAuditLogs;
|
|
817
|
+
private resolvePaymentMethodId;
|
|
818
|
+
private assertDateNotInClosedPeriod;
|
|
819
|
+
private resolveInstallmentStatus;
|
|
820
|
+
private deriveTitleStatusFromInstallments;
|
|
821
|
+
private recalculateTitleStatus;
|
|
822
|
+
private createAuditLog;
|
|
481
823
|
private mapTitleToFront;
|
|
482
824
|
private defaultTitleInclude;
|
|
483
825
|
private mapStatusToPt;
|
|
826
|
+
private normalizeTagSlug;
|
|
484
827
|
private mapStatusFromPt;
|
|
485
828
|
private mapPaymentMethodToPt;
|
|
829
|
+
private mapPaymentMethodFromPt;
|
|
486
830
|
private mapAccountTypeToPt;
|
|
487
831
|
private mapAccountTypeFromPt;
|
|
488
832
|
private mapBankAccountToFront;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"finance.service.d.ts","sourceRoot":"","sources":["../src/finance.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAO1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAE7E,KAAK,SAAS,GAAG,SAAS,GAAG,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"finance.service.d.ts","sourceRoot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