@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.
Files changed (47) hide show
  1. package/dist/dto/create-finance-tag.dto.d.ts +5 -0
  2. package/dist/dto/create-finance-tag.dto.d.ts.map +1 -0
  3. package/dist/dto/create-finance-tag.dto.js +29 -0
  4. package/dist/dto/create-finance-tag.dto.js.map +1 -0
  5. package/dist/dto/reject-title.dto.d.ts +4 -0
  6. package/dist/dto/reject-title.dto.d.ts.map +1 -0
  7. package/dist/dto/reject-title.dto.js +22 -0
  8. package/dist/dto/reject-title.dto.js.map +1 -0
  9. package/dist/dto/reverse-settlement.dto.d.ts +4 -0
  10. package/dist/dto/reverse-settlement.dto.d.ts.map +1 -0
  11. package/dist/dto/reverse-settlement.dto.js +22 -0
  12. package/dist/dto/reverse-settlement.dto.js.map +1 -0
  13. package/dist/dto/settle-installment.dto.d.ts +12 -0
  14. package/dist/dto/settle-installment.dto.d.ts.map +1 -0
  15. package/dist/dto/settle-installment.dto.js +71 -0
  16. package/dist/dto/settle-installment.dto.js.map +1 -0
  17. package/dist/dto/update-installment-tags.dto.d.ts +4 -0
  18. package/dist/dto/update-installment-tags.dto.d.ts.map +1 -0
  19. package/dist/dto/update-installment-tags.dto.js +27 -0
  20. package/dist/dto/update-installment-tags.dto.js.map +1 -0
  21. package/dist/finance-data.controller.d.ts +17 -5
  22. package/dist/finance-data.controller.d.ts.map +1 -1
  23. package/dist/finance-installments.controller.d.ts +325 -8
  24. package/dist/finance-installments.controller.d.ts.map +1 -1
  25. package/dist/finance-installments.controller.js +128 -0
  26. package/dist/finance-installments.controller.js.map +1 -1
  27. package/dist/finance.service.d.ts +357 -13
  28. package/dist/finance.service.d.ts.map +1 -1
  29. package/dist/finance.service.js +835 -64
  30. package/dist/finance.service.js.map +1 -1
  31. package/hedhog/data/route.yaml +90 -0
  32. package/hedhog/frontend/app/_lib/use-finance-data.ts.ejs +2 -0
  33. package/hedhog/frontend/app/accounts-payable/approvals/page.tsx.ejs +92 -12
  34. package/hedhog/frontend/app/accounts-payable/installments/[id]/page.tsx.ejs +601 -79
  35. package/hedhog/frontend/app/accounts-payable/installments/page.tsx.ejs +481 -19
  36. package/hedhog/frontend/app/accounts-receivable/installments/[id]/page.tsx.ejs +598 -69
  37. package/hedhog/frontend/app/accounts-receivable/installments/page.tsx.ejs +472 -15
  38. package/hedhog/frontend/messages/en.json +38 -0
  39. package/hedhog/frontend/messages/pt.json +38 -0
  40. package/package.json +5 -5
  41. package/src/dto/create-finance-tag.dto.ts +15 -0
  42. package/src/dto/reject-title.dto.ts +7 -0
  43. package/src/dto/reverse-settlement.dto.ts +7 -0
  44. package/src/dto/settle-installment.dto.ts +55 -0
  45. package/src/dto/update-installment-tags.dto.ts +12 -0
  46. package/src/finance-installments.controller.ts +145 -9
  47. package/src/finance.service.ts +1333 -165
@@ -1,6 +1,9 @@
1
+ import { CreateFinanceTagDto } from './dto/create-finance-tag.dto';
1
2
  import { CreateFinancialTitleDto } from './dto/create-financial-title.dto';
2
3
  import { ExtractFinancialTitleFromFileDto } from './dto/extract-financial-title-from-file.dto';
4
+ import { RejectTitleDto } from './dto/reject-title.dto';
3
5
  import { FinanceService } from './finance.service';
6
+ import { UpdateInstallmentTagsDto } from './dto/update-installment-tags.dto';
4
7
  export declare class FinanceInstallmentsController {
5
8
  private readonly financeService;
6
9
  constructor(financeService: FinanceService);
@@ -25,9 +28,10 @@ export declare class FinanceInstallmentsController {
25
28
  categoriaId: string;
26
29
  centroCustoId: string;
27
30
  anexos: any;
31
+ anexosDetalhes: any;
28
32
  tags: unknown[];
29
33
  parcelas: any;
30
- canal: any;
34
+ canal: string;
31
35
  } | {
32
36
  clienteId: string;
33
37
  id: string;
@@ -40,9 +44,10 @@ export declare class FinanceInstallmentsController {
40
44
  categoriaId: string;
41
45
  centroCustoId: string;
42
46
  anexos: any;
47
+ anexosDetalhes: any;
43
48
  tags: unknown[];
44
49
  parcelas: any;
45
- canal: any;
50
+ canal: string;
46
51
  }>;
47
52
  createAccountsPayableTitle(data: CreateFinancialTitleDto, locale: string, user: any): Promise<{
48
53
  fornecedorId: string;
@@ -56,9 +61,177 @@ export declare class FinanceInstallmentsController {
56
61
  categoriaId: string;
57
62
  centroCustoId: string;
58
63
  anexos: any;
64
+ anexosDetalhes: any;
65
+ tags: unknown[];
66
+ parcelas: any;
67
+ canal: string;
68
+ } | {
69
+ clienteId: string;
70
+ id: string;
71
+ documento: any;
72
+ descricao: any;
73
+ competencia: any;
74
+ valorTotal: number;
75
+ status: any;
76
+ criadoEm: any;
77
+ categoriaId: string;
78
+ centroCustoId: string;
79
+ anexos: any;
80
+ anexosDetalhes: any;
81
+ tags: unknown[];
82
+ parcelas: any;
83
+ canal: string;
84
+ }>;
85
+ approveAccountsPayableTitle(id: number, locale: string, user: any): Promise<{
86
+ fornecedorId: string;
87
+ id: string;
88
+ documento: any;
89
+ descricao: any;
90
+ competencia: any;
91
+ valorTotal: number;
92
+ status: any;
93
+ criadoEm: any;
94
+ categoriaId: string;
95
+ centroCustoId: string;
96
+ anexos: any;
97
+ anexosDetalhes: any;
98
+ tags: unknown[];
99
+ parcelas: any;
100
+ canal: string;
101
+ } | {
102
+ clienteId: string;
103
+ id: string;
104
+ documento: any;
105
+ descricao: any;
106
+ competencia: any;
107
+ valorTotal: number;
108
+ status: any;
109
+ criadoEm: any;
110
+ categoriaId: string;
111
+ centroCustoId: string;
112
+ anexos: any;
113
+ anexosDetalhes: any;
114
+ tags: unknown[];
115
+ parcelas: any;
116
+ canal: string;
117
+ }>;
118
+ rejectAccountsPayableTitle(id: number, data: RejectTitleDto, locale: string, user: any): Promise<{
119
+ fornecedorId: string;
120
+ id: string;
121
+ documento: any;
122
+ descricao: any;
123
+ competencia: any;
124
+ valorTotal: number;
125
+ status: any;
126
+ criadoEm: any;
127
+ categoriaId: string;
128
+ centroCustoId: string;
129
+ anexos: any;
130
+ anexosDetalhes: any;
131
+ tags: unknown[];
132
+ parcelas: any;
133
+ canal: string;
134
+ } | {
135
+ clienteId: string;
136
+ id: string;
137
+ documento: any;
138
+ descricao: any;
139
+ competencia: any;
140
+ valorTotal: number;
141
+ status: any;
142
+ criadoEm: any;
143
+ categoriaId: string;
144
+ centroCustoId: string;
145
+ anexos: any;
146
+ anexosDetalhes: any;
147
+ tags: unknown[];
148
+ parcelas: any;
149
+ canal: string;
150
+ }>;
151
+ settleAccountsPayableInstallment(id: number, data: any, locale: string, user: any): Promise<{
152
+ settlementId: string;
153
+ fornecedorId: string;
154
+ id: string;
155
+ documento: any;
156
+ descricao: any;
157
+ competencia: any;
158
+ valorTotal: number;
159
+ status: any;
160
+ criadoEm: any;
161
+ categoriaId: string;
162
+ centroCustoId: string;
163
+ anexos: any;
164
+ anexosDetalhes: any;
165
+ tags: unknown[];
166
+ parcelas: any;
167
+ canal: string;
168
+ } | {
169
+ settlementId: string;
170
+ clienteId: string;
171
+ id: string;
172
+ documento: any;
173
+ descricao: any;
174
+ competencia: any;
175
+ valorTotal: number;
176
+ status: any;
177
+ criadoEm: any;
178
+ categoriaId: string;
179
+ centroCustoId: string;
180
+ anexos: any;
181
+ anexosDetalhes: any;
182
+ tags: unknown[];
183
+ parcelas: any;
184
+ canal: string;
185
+ }>;
186
+ reverseAccountsPayableSettlement(id: number, settlementId: number, data: any, locale: string, user: any): Promise<{
187
+ fornecedorId: string;
188
+ id: string;
189
+ documento: any;
190
+ descricao: any;
191
+ competencia: any;
192
+ valorTotal: number;
193
+ status: any;
194
+ criadoEm: any;
195
+ categoriaId: string;
196
+ centroCustoId: string;
197
+ anexos: any;
198
+ anexosDetalhes: any;
199
+ tags: unknown[];
200
+ parcelas: any;
201
+ canal: string;
202
+ } | {
203
+ clienteId: string;
204
+ id: string;
205
+ documento: any;
206
+ descricao: any;
207
+ competencia: any;
208
+ valorTotal: number;
209
+ status: any;
210
+ criadoEm: any;
211
+ categoriaId: string;
212
+ centroCustoId: string;
213
+ anexos: any;
214
+ anexosDetalhes: any;
215
+ tags: unknown[];
216
+ parcelas: any;
217
+ canal: string;
218
+ }>;
219
+ updateAccountsPayableInstallmentTags(id: number, data: UpdateInstallmentTagsDto, locale: string): Promise<{
220
+ fornecedorId: string;
221
+ id: string;
222
+ documento: any;
223
+ descricao: any;
224
+ competencia: any;
225
+ valorTotal: number;
226
+ status: any;
227
+ criadoEm: any;
228
+ categoriaId: string;
229
+ centroCustoId: string;
230
+ anexos: any;
231
+ anexosDetalhes: any;
59
232
  tags: unknown[];
60
233
  parcelas: any;
61
- canal: any;
234
+ canal: string;
62
235
  } | {
63
236
  clienteId: string;
64
237
  id: string;
@@ -71,9 +244,10 @@ export declare class FinanceInstallmentsController {
71
244
  categoriaId: string;
72
245
  centroCustoId: string;
73
246
  anexos: any;
247
+ anexosDetalhes: any;
74
248
  tags: unknown[];
75
249
  parcelas: any;
76
- canal: any;
250
+ canal: string;
77
251
  }>;
78
252
  extractAccountsPayableInfoFromFile(file: MulterFile, data: ExtractFinancialTitleFromFileDto): Promise<{
79
253
  documento: string;
@@ -117,9 +291,10 @@ export declare class FinanceInstallmentsController {
117
291
  categoriaId: string;
118
292
  centroCustoId: string;
119
293
  anexos: any;
294
+ anexosDetalhes: any;
120
295
  tags: unknown[];
121
296
  parcelas: any;
122
- canal: any;
297
+ canal: string;
123
298
  } | {
124
299
  clienteId: string;
125
300
  id: string;
@@ -132,9 +307,10 @@ export declare class FinanceInstallmentsController {
132
307
  categoriaId: string;
133
308
  centroCustoId: string;
134
309
  anexos: any;
310
+ anexosDetalhes: any;
135
311
  tags: unknown[];
136
312
  parcelas: any;
137
- canal: any;
313
+ canal: string;
138
314
  }>;
139
315
  createAccountsReceivableTitle(data: CreateFinancialTitleDto, locale: string, user: any): Promise<{
140
316
  fornecedorId: string;
@@ -148,9 +324,111 @@ export declare class FinanceInstallmentsController {
148
324
  categoriaId: string;
149
325
  centroCustoId: string;
150
326
  anexos: any;
327
+ anexosDetalhes: any;
328
+ tags: unknown[];
329
+ parcelas: any;
330
+ canal: string;
331
+ } | {
332
+ clienteId: string;
333
+ id: string;
334
+ documento: any;
335
+ descricao: any;
336
+ competencia: any;
337
+ valorTotal: number;
338
+ status: any;
339
+ criadoEm: any;
340
+ categoriaId: string;
341
+ centroCustoId: string;
342
+ anexos: any;
343
+ anexosDetalhes: any;
344
+ tags: unknown[];
345
+ parcelas: any;
346
+ canal: string;
347
+ }>;
348
+ approveAccountsReceivableTitle(id: number, locale: string, user: any): Promise<{
349
+ fornecedorId: string;
350
+ id: string;
351
+ documento: any;
352
+ descricao: any;
353
+ competencia: any;
354
+ valorTotal: number;
355
+ status: any;
356
+ criadoEm: any;
357
+ categoriaId: string;
358
+ centroCustoId: string;
359
+ anexos: any;
360
+ anexosDetalhes: any;
361
+ tags: unknown[];
362
+ parcelas: any;
363
+ canal: string;
364
+ } | {
365
+ clienteId: string;
366
+ id: string;
367
+ documento: any;
368
+ descricao: any;
369
+ competencia: any;
370
+ valorTotal: number;
371
+ status: any;
372
+ criadoEm: any;
373
+ categoriaId: string;
374
+ centroCustoId: string;
375
+ anexos: any;
376
+ anexosDetalhes: any;
377
+ tags: unknown[];
378
+ parcelas: any;
379
+ canal: string;
380
+ }>;
381
+ settleAccountsReceivableInstallment(id: number, data: any, locale: string, user: any): Promise<{
382
+ settlementId: string;
383
+ fornecedorId: string;
384
+ id: string;
385
+ documento: any;
386
+ descricao: any;
387
+ competencia: any;
388
+ valorTotal: number;
389
+ status: any;
390
+ criadoEm: any;
391
+ categoriaId: string;
392
+ centroCustoId: string;
393
+ anexos: any;
394
+ anexosDetalhes: any;
395
+ tags: unknown[];
396
+ parcelas: any;
397
+ canal: string;
398
+ } | {
399
+ settlementId: string;
400
+ clienteId: string;
401
+ id: string;
402
+ documento: any;
403
+ descricao: any;
404
+ competencia: any;
405
+ valorTotal: number;
406
+ status: any;
407
+ criadoEm: any;
408
+ categoriaId: string;
409
+ centroCustoId: string;
410
+ anexos: any;
411
+ anexosDetalhes: any;
412
+ tags: unknown[];
413
+ parcelas: any;
414
+ canal: string;
415
+ }>;
416
+ reverseAccountsReceivableSettlement(id: number, settlementId: number, data: any, locale: string, user: any): Promise<{
417
+ fornecedorId: string;
418
+ id: string;
419
+ documento: any;
420
+ descricao: any;
421
+ competencia: any;
422
+ valorTotal: number;
423
+ status: any;
424
+ criadoEm: any;
425
+ categoriaId: string;
426
+ centroCustoId: string;
427
+ anexos: any;
428
+ anexosDetalhes: any;
151
429
  tags: unknown[];
152
430
  parcelas: any;
153
- canal: any;
431
+ canal: string;
154
432
  } | {
155
433
  clienteId: string;
156
434
  id: string;
@@ -163,9 +441,48 @@ export declare class FinanceInstallmentsController {
163
441
  categoriaId: string;
164
442
  centroCustoId: string;
165
443
  anexos: any;
444
+ anexosDetalhes: any;
445
+ tags: unknown[];
446
+ parcelas: any;
447
+ canal: string;
448
+ }>;
449
+ updateAccountsReceivableInstallmentTags(id: number, data: UpdateInstallmentTagsDto, locale: string): Promise<{
450
+ fornecedorId: string;
451
+ id: string;
452
+ documento: any;
453
+ descricao: any;
454
+ competencia: any;
455
+ valorTotal: number;
456
+ status: any;
457
+ criadoEm: any;
458
+ categoriaId: string;
459
+ centroCustoId: string;
460
+ anexos: any;
461
+ anexosDetalhes: any;
166
462
  tags: unknown[];
167
463
  parcelas: any;
168
- canal: any;
464
+ canal: string;
465
+ } | {
466
+ clienteId: string;
467
+ id: string;
468
+ documento: any;
469
+ descricao: any;
470
+ competencia: any;
471
+ valorTotal: number;
472
+ status: any;
473
+ criadoEm: any;
474
+ categoriaId: string;
475
+ centroCustoId: string;
476
+ anexos: any;
477
+ anexosDetalhes: any;
478
+ tags: unknown[];
479
+ parcelas: any;
480
+ canal: string;
481
+ }>;
482
+ createTag(data: CreateFinanceTagDto): Promise<{
483
+ id: string;
484
+ nome: string;
485
+ cor: string;
169
486
  }>;
170
487
  extractAccountsReceivableInfoFromFile(file: MulterFile, data: ExtractFinancialTitleFromFileDto): Promise<{
171
488
  documento: string;
@@ -1 +1 @@
1
- {"version":3,"file":"finance-installments.controller.d.ts","sourceRoot":"","sources":["../src/finance-installments.controller.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,gCAAgC,EAAE,MAAM,6CAA6C,CAAC;AAC/F,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,qBAEa,6BAA6B;IAC5B,OAAO,CAAC,QAAQ,CAAC,cAAc;gBAAd,cAAc,EAAE,cAAc;IAGrD,+BAA+B,CACrB,gBAAgB,KAAA,EACb,MAAM,CAAC,EAAE,MAAM;;;;;;;;;IAS5B,6BAA6B,CACN,EAAE,EAAE,MAAM,EAC3B,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAMpB,0BAA0B,CACtB,IAAI,EAAE,uBAAuB,EAC3B,MAAM,EAAE,MAAM,EAChB,IAAI,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAWR,kCAAkC,CACtB,IAAI,EAAE,UAAU,EACxB,IAAI,EAAE,gCAAgC;;;;;;;;;;;;;;;;;;;;;IAM1C,kCAAkC,CACxB,gBAAgB,KAAA,EACb,MAAM,CAAC,EAAE,MAAM;;;;;;;;;IAS5B,gCAAgC,CACT,EAAE,EAAE,MAAM,EAC3B,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAMpB,6BAA6B,CACzB,IAAI,EAAE,uBAAuB,EAC3B,MAAM,EAAE,MAAM,EAChB,IAAI,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAWR,qCAAqC,CACzB,IAAI,EAAE,UAAU,EACxB,IAAI,EAAE,gCAAgC;;;;;;;;;;;;;;;;;;;;;CAQjD"}
1
+ {"version":3,"file":"finance-installments.controller.d.ts","sourceRoot":"","sources":["../src/finance-installments.controller.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B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ed-hog/api-locale");
18
18
  const api_pagination_1 = require("@hed-hog/api-pagination");
19
19
  const common_1 = require("@nestjs/common");
20
20
  const platform_express_1 = require("@nestjs/platform-express");
21
+ const create_finance_tag_dto_1 = require("./dto/create-finance-tag.dto");
21
22
  const create_financial_title_dto_1 = require("./dto/create-financial-title.dto");
22
23
  const extract_financial_title_from_file_dto_1 = require("./dto/extract-financial-title-from-file.dto");
24
+ const reject_title_dto_1 = require("./dto/reject-title.dto");
23
25
  const finance_service_1 = require("./finance.service");
26
+ const update_installment_tags_dto_1 = require("./dto/update-installment-tags.dto");
24
27
  let FinanceInstallmentsController = class FinanceInstallmentsController {
25
28
  constructor(financeService) {
26
29
  this.financeService = financeService;
@@ -34,6 +37,21 @@ let FinanceInstallmentsController = class FinanceInstallmentsController {
34
37
  async createAccountsPayableTitle(data, locale, user) {
35
38
  return this.financeService.createAccountsPayableTitle(data, locale, user === null || user === void 0 ? void 0 : user.id);
36
39
  }
40
+ async approveAccountsPayableTitle(id, locale, user) {
41
+ return this.financeService.approveAccountsPayableTitle(id, locale, user === null || user === void 0 ? void 0 : user.id);
42
+ }
43
+ async rejectAccountsPayableTitle(id, data, locale, user) {
44
+ return this.financeService.rejectAccountsPayableTitle(id, data, locale, user === null || user === void 0 ? void 0 : user.id);
45
+ }
46
+ async settleAccountsPayableInstallment(id, data, locale, user) {
47
+ return this.financeService.settleAccountsPayableInstallment(id, data, locale, user === null || user === void 0 ? void 0 : user.id);
48
+ }
49
+ async reverseAccountsPayableSettlement(id, settlementId, data, locale, user) {
50
+ return this.financeService.reverseAccountsPayableSettlement(id, settlementId, data, locale, user === null || user === void 0 ? void 0 : user.id);
51
+ }
52
+ async updateAccountsPayableInstallmentTags(id, data, locale) {
53
+ return this.financeService.updateAccountsPayableInstallmentTags(id, data.tag_ids || [], locale);
54
+ }
37
55
  async extractAccountsPayableInfoFromFile(file, data) {
38
56
  return this.financeService.getAgentExtractInfoFromFile(file, data.file_id);
39
57
  }
@@ -46,6 +64,21 @@ let FinanceInstallmentsController = class FinanceInstallmentsController {
46
64
  async createAccountsReceivableTitle(data, locale, user) {
47
65
  return this.financeService.createAccountsReceivableTitle(data, locale, user === null || user === void 0 ? void 0 : user.id);
48
66
  }
67
+ async approveAccountsReceivableTitle(id, locale, user) {
68
+ return this.financeService.approveAccountsReceivableTitle(id, locale, user === null || user === void 0 ? void 0 : user.id);
69
+ }
70
+ async settleAccountsReceivableInstallment(id, data, locale, user) {
71
+ return this.financeService.settleAccountsReceivableInstallment(id, data, locale, user === null || user === void 0 ? void 0 : user.id);
72
+ }
73
+ async reverseAccountsReceivableSettlement(id, settlementId, data, locale, user) {
74
+ return this.financeService.reverseAccountsReceivableSettlement(id, settlementId, data, locale, user === null || user === void 0 ? void 0 : user.id);
75
+ }
76
+ async updateAccountsReceivableInstallmentTags(id, data, locale) {
77
+ return this.financeService.updateAccountsReceivableInstallmentTags(id, data.tag_ids || [], locale);
78
+ }
79
+ async createTag(data) {
80
+ return this.financeService.createTag(data);
81
+ }
49
82
  async extractAccountsReceivableInfoFromFile(file, data) {
50
83
  return this.financeService.getAgentExtractInfoFromFile(file, data.file_id, 'receivable');
51
84
  }
@@ -76,6 +109,55 @@ __decorate([
76
109
  __metadata("design:paramtypes", [create_financial_title_dto_1.CreateFinancialTitleDto, String, Object]),
77
110
  __metadata("design:returntype", Promise)
78
111
  ], FinanceInstallmentsController.prototype, "createAccountsPayableTitle", null);
112
+ __decorate([
113
+ (0, common_1.Patch)('accounts-payable/installments/:id/approve'),
114
+ __param(0, (0, common_1.Param)('id', common_1.ParseIntPipe)),
115
+ __param(1, (0, api_locale_1.Locale)()),
116
+ __param(2, (0, api_1.User)()),
117
+ __metadata("design:type", Function),
118
+ __metadata("design:paramtypes", [Number, String, Object]),
119
+ __metadata("design:returntype", Promise)
120
+ ], FinanceInstallmentsController.prototype, "approveAccountsPayableTitle", null);
121
+ __decorate([
122
+ (0, common_1.Patch)('accounts-payable/installments/:id/reject'),
123
+ __param(0, (0, common_1.Param)('id', common_1.ParseIntPipe)),
124
+ __param(1, (0, common_1.Body)()),
125
+ __param(2, (0, api_locale_1.Locale)()),
126
+ __param(3, (0, api_1.User)()),
127
+ __metadata("design:type", Function),
128
+ __metadata("design:paramtypes", [Number, reject_title_dto_1.RejectTitleDto, String, Object]),
129
+ __metadata("design:returntype", Promise)
130
+ ], FinanceInstallmentsController.prototype, "rejectAccountsPayableTitle", null);
131
+ __decorate([
132
+ (0, common_1.Post)('accounts-payable/installments/:id/settlements'),
133
+ __param(0, (0, common_1.Param)('id', common_1.ParseIntPipe)),
134
+ __param(1, (0, common_1.Body)()),
135
+ __param(2, (0, api_locale_1.Locale)()),
136
+ __param(3, (0, api_1.User)()),
137
+ __metadata("design:type", Function),
138
+ __metadata("design:paramtypes", [Number, Object, String, Object]),
139
+ __metadata("design:returntype", Promise)
140
+ ], FinanceInstallmentsController.prototype, "settleAccountsPayableInstallment", null);
141
+ __decorate([
142
+ (0, common_1.Patch)('accounts-payable/installments/:id/settlements/:settlementId/reverse'),
143
+ __param(0, (0, common_1.Param)('id', common_1.ParseIntPipe)),
144
+ __param(1, (0, common_1.Param)('settlementId', common_1.ParseIntPipe)),
145
+ __param(2, (0, common_1.Body)()),
146
+ __param(3, (0, api_locale_1.Locale)()),
147
+ __param(4, (0, api_1.User)()),
148
+ __metadata("design:type", Function),
149
+ __metadata("design:paramtypes", [Number, Number, Object, String, Object]),
150
+ __metadata("design:returntype", Promise)
151
+ ], FinanceInstallmentsController.prototype, "reverseAccountsPayableSettlement", null);
152
+ __decorate([
153
+ (0, common_1.Patch)('accounts-payable/installments/:id/tags'),
154
+ __param(0, (0, common_1.Param)('id', common_1.ParseIntPipe)),
155
+ __param(1, (0, common_1.Body)()),
156
+ __param(2, (0, api_locale_1.Locale)()),
157
+ __metadata("design:type", Function),
158
+ __metadata("design:paramtypes", [Number, update_installment_tags_dto_1.UpdateInstallmentTagsDto, String]),
159
+ __metadata("design:returntype", Promise)
160
+ ], FinanceInstallmentsController.prototype, "updateAccountsPayableInstallmentTags", null);
79
161
  __decorate([
80
162
  (0, common_1.Post)('accounts-payable/installments/extract-from-file'),
81
163
  (0, common_1.UseInterceptors)((0, platform_express_1.FileInterceptor)('file')),
@@ -110,6 +192,52 @@ __decorate([
110
192
  __metadata("design:paramtypes", [create_financial_title_dto_1.CreateFinancialTitleDto, String, Object]),
111
193
  __metadata("design:returntype", Promise)
112
194
  ], FinanceInstallmentsController.prototype, "createAccountsReceivableTitle", null);
195
+ __decorate([
196
+ (0, common_1.Patch)('accounts-receivable/installments/:id/approve'),
197
+ __param(0, (0, common_1.Param)('id', common_1.ParseIntPipe)),
198
+ __param(1, (0, api_locale_1.Locale)()),
199
+ __param(2, (0, api_1.User)()),
200
+ __metadata("design:type", Function),
201
+ __metadata("design:paramtypes", [Number, String, Object]),
202
+ __metadata("design:returntype", Promise)
203
+ ], FinanceInstallmentsController.prototype, "approveAccountsReceivableTitle", null);
204
+ __decorate([
205
+ (0, common_1.Post)('accounts-receivable/installments/:id/settlements'),
206
+ __param(0, (0, common_1.Param)('id', common_1.ParseIntPipe)),
207
+ __param(1, (0, common_1.Body)()),
208
+ __param(2, (0, api_locale_1.Locale)()),
209
+ __param(3, (0, api_1.User)()),
210
+ __metadata("design:type", Function),
211
+ __metadata("design:paramtypes", [Number, Object, String, Object]),
212
+ __metadata("design:returntype", Promise)
213
+ ], FinanceInstallmentsController.prototype, "settleAccountsReceivableInstallment", null);
214
+ __decorate([
215
+ (0, common_1.Patch)('accounts-receivable/installments/:id/settlements/:settlementId/reverse'),
216
+ __param(0, (0, common_1.Param)('id', common_1.ParseIntPipe)),
217
+ __param(1, (0, common_1.Param)('settlementId', common_1.ParseIntPipe)),
218
+ __param(2, (0, common_1.Body)()),
219
+ __param(3, (0, api_locale_1.Locale)()),
220
+ __param(4, (0, api_1.User)()),
221
+ __metadata("design:type", Function),
222
+ __metadata("design:paramtypes", [Number, Number, Object, String, Object]),
223
+ __metadata("design:returntype", Promise)
224
+ ], FinanceInstallmentsController.prototype, "reverseAccountsReceivableSettlement", null);
225
+ __decorate([
226
+ (0, common_1.Patch)('accounts-receivable/installments/:id/tags'),
227
+ __param(0, (0, common_1.Param)('id', common_1.ParseIntPipe)),
228
+ __param(1, (0, common_1.Body)()),
229
+ __param(2, (0, api_locale_1.Locale)()),
230
+ __metadata("design:type", Function),
231
+ __metadata("design:paramtypes", [Number, update_installment_tags_dto_1.UpdateInstallmentTagsDto, String]),
232
+ __metadata("design:returntype", Promise)
233
+ ], FinanceInstallmentsController.prototype, "updateAccountsReceivableInstallmentTags", null);
234
+ __decorate([
235
+ (0, common_1.Post)('tags'),
236
+ __param(0, (0, common_1.Body)()),
237
+ __metadata("design:type", Function),
238
+ __metadata("design:paramtypes", [create_finance_tag_dto_1.CreateFinanceTagDto]),
239
+ __metadata("design:returntype", Promise)
240
+ ], FinanceInstallmentsController.prototype, "createTag", null);
113
241
  __decorate([
114
242
  (0, common_1.Post)('accounts-receivable/installments/extract-from-file'),
115
243
  (0, common_1.UseInterceptors)((0, platform_express_1.FileInterceptor)('file')),
@@ -1 +1 @@
1
- {"version":3,"file":"finance-installments.controller.js","sourceRoot":"","sources":["../src/finance-installments.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sCAA0C;AAC1C,oDAA6C;AAC7C,4DAAqD;AACrD,2CAUwB;AACxB,+DAA2D;AAC3D,iFAA2E;AAC3E,uGAA+F;AAC/F,uDAAmD;AAI5C,IAAM,6BAA6B,GAAnC,MAAM,6BAA6B;IACxC,YAA6B,cAA8B;QAA9B,mBAAc,GAAd,cAAc,CAAgB;IAAG,CAAC;IAGzD,AAAN,KAAK,CAAC,+BAA+B,CACrB,gBAAgB,EACb,MAAe;QAEhC,OAAO,IAAI,CAAC,cAAc,CAAC,+BAA+B,CACxD,gBAAgB,EAChB,MAAM,CACP,CAAC;IACJ,CAAC;IAGK,AAAN,KAAK,CAAC,6BAA6B,CACN,EAAU,EAC3B,MAAc;QAExB,OAAO,IAAI,CAA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E,CAAA;IACd,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAO,wEAAgC;;0FAO/C;wCAvFU,6BAA6B;IAFzC,IAAA,UAAI,GAAE;IACN,IAAA,mBAAU,EAAC,SAAS,CAAC;qCAEyB,gCAAc;GADhD,6BAA6B,CAwFzC"}
1
+ {"version":3,"file":"finance-installments.controller.js","sourceRoot":"","sources":["../src/finance-installments.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sCAA0C;AAC1C,oDAA6C;AAC7C,4DAAqD;AACrD,2CAWwB;AACxB,+DAA2D;AAC3D,yEAAmE;AACnE,iFAA2E;AAC3E,uGAA+F;AAC/F,6DAAwD;AACxD,uDAAmD;AAEnD,mFAA6E;AAGtE,IAAM,6BAA6B,GAAnC,MAAM,6BAA6B;IACxC,YAA6B,cAA8B;QAA9B,mBAAc,GAAd,cAAc,CAAgB;IAAG,CAAC;IAGzD,AAAN,KAAK,CAAC,+BAA+B,CACrB,gBAAgB,EACb,MAAe;QAEhC,OAAO,IAAI,CAAC,cAAc,CAAC,+BAA+B,CACxD,gBAAgB,EAChB,MAAM,CACP,CAAC;IACJ,CAAC;IAGK,AAAN,KAAK,CAAC,6BAA6B,CACN,EAAU,EAC3B,MAAc;QAExB,OAAO,IAAI,CAAC,cAAc,CAAC,6BAA6B,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;IACvE,CAAC;IAGK,AAAN,KAAK,CAAC,0BAA0B,CACtB,IAA6B,EAC3B,MAAc,EAChB,IAAI;QAEZ,OAAO,IAAI,CAAC,cAAc,CAAC,0BAA0B,CACnD,IAAI,EACJ,MAAM,EACN,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,EAAE,CACT,CAAC;IACJ,CAAC;IAGK,AAAN,KAAK,CAAC,2BAA2B,CACJ,EAAU,EAC3B,MAAc,EAChB,IAAI;QAEZ,OAAO,IAAI,CAAC,cAAc,CAAC,2BAA2B,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,aAA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