@hed-hog/finance 0.0.238 → 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/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/finance-data.controller.d.ts +13 -5
- package/dist/finance-data.controller.d.ts.map +1 -1
- package/dist/finance-installments.controller.d.ts +248 -12
- package/dist/finance-installments.controller.d.ts.map +1 -1
- package/dist/finance-installments.controller.js +92 -0
- package/dist/finance-installments.controller.js.map +1 -1
- package/dist/finance.service.d.ts +275 -17
- package/dist/finance.service.d.ts.map +1 -1
- package/dist/finance.service.js +666 -78
- package/dist/finance.service.js.map +1 -1
- package/hedhog/data/route.yaml +63 -0
- package/hedhog/frontend/app/accounts-payable/approvals/page.tsx.ejs +92 -12
- package/hedhog/frontend/app/accounts-payable/installments/[id]/page.tsx.ejs +355 -4
- package/hedhog/frontend/app/accounts-payable/installments/page.tsx.ejs +440 -16
- package/hedhog/frontend/app/accounts-receivable/installments/[id]/page.tsx.ejs +396 -49
- package/hedhog/frontend/app/accounts-receivable/installments/page.tsx.ejs +432 -14
- package/package.json +5 -5
- 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/finance-installments.controller.ts +102 -0
- package/src/finance.service.ts +1007 -82
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reject-title.dto.d.ts","sourceRoot":"","sources":["../../src/dto/reject-title.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,cAAc;IAGzB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.RejectTitleDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class RejectTitleDto {
|
|
15
|
+
}
|
|
16
|
+
exports.RejectTitleDto = RejectTitleDto;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsOptional)(),
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], RejectTitleDto.prototype, "reason", void 0);
|
|
22
|
+
//# sourceMappingURL=reject-title.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reject-title.dto.js","sourceRoot":"","sources":["../../src/dto/reject-title.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,MAAa,cAAc;CAI1B;AAJD,wCAIC;AADC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8CACK"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reverse-settlement.dto.d.ts","sourceRoot":"","sources":["../../src/dto/reverse-settlement.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,oBAAoB;IAG/B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ReverseSettlementDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class ReverseSettlementDto {
|
|
15
|
+
}
|
|
16
|
+
exports.ReverseSettlementDto = ReverseSettlementDto;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsOptional)(),
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], ReverseSettlementDto.prototype, "reason", void 0);
|
|
22
|
+
//# sourceMappingURL=reverse-settlement.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reverse-settlement.dto.js","sourceRoot":"","sources":["../../src/dto/reverse-settlement.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,MAAa,oBAAoB;CAIhC;AAJD,oDAIC;AADC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oDACK"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class SettleInstallmentDto {
|
|
2
|
+
installment_id: number;
|
|
3
|
+
amount: number;
|
|
4
|
+
settled_at?: string;
|
|
5
|
+
bank_account_id?: number;
|
|
6
|
+
payment_channel?: string;
|
|
7
|
+
discount?: number;
|
|
8
|
+
interest?: number;
|
|
9
|
+
penalty?: number;
|
|
10
|
+
description?: string;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=settle-installment.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settle-installment.dto.d.ts","sourceRoot":"","sources":["../../src/dto/settle-installment.dto.ts"],"names":[],"mappings":"AAUA,qBAAa,oBAAoB;IAG/B,cAAc,EAAE,MAAM,CAAC;IAKvB,MAAM,EAAE,MAAM,CAAC;IAIf,UAAU,CAAC,EAAE,MAAM,CAAC;IAKpB,eAAe,CAAC,EAAE,MAAM,CAAC;IAIzB,eAAe,CAAC,EAAE,MAAM,CAAC;IAMzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAMlB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAMlB,OAAO,CAAC,EAAE,MAAM,CAAC;IAIjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.SettleInstallmentDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class SettleInstallmentDto {
|
|
16
|
+
}
|
|
17
|
+
exports.SettleInstallmentDto = SettleInstallmentDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
20
|
+
(0, class_validator_1.IsInt)(),
|
|
21
|
+
__metadata("design:type", Number)
|
|
22
|
+
], SettleInstallmentDto.prototype, "installment_id", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
25
|
+
(0, class_validator_1.IsNumber)(),
|
|
26
|
+
(0, class_validator_1.Min)(0.01),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], SettleInstallmentDto.prototype, "amount", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsOptional)(),
|
|
31
|
+
(0, class_validator_1.IsDateString)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], SettleInstallmentDto.prototype, "settled_at", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsOptional)(),
|
|
36
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
37
|
+
(0, class_validator_1.IsInt)(),
|
|
38
|
+
__metadata("design:type", Number)
|
|
39
|
+
], SettleInstallmentDto.prototype, "bank_account_id", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_validator_1.IsOptional)(),
|
|
42
|
+
(0, class_validator_1.IsString)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], SettleInstallmentDto.prototype, "payment_channel", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_validator_1.IsOptional)(),
|
|
47
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
48
|
+
(0, class_validator_1.IsNumber)(),
|
|
49
|
+
(0, class_validator_1.Min)(0),
|
|
50
|
+
__metadata("design:type", Number)
|
|
51
|
+
], SettleInstallmentDto.prototype, "discount", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_validator_1.IsOptional)(),
|
|
54
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
55
|
+
(0, class_validator_1.IsNumber)(),
|
|
56
|
+
(0, class_validator_1.Min)(0),
|
|
57
|
+
__metadata("design:type", Number)
|
|
58
|
+
], SettleInstallmentDto.prototype, "interest", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, class_validator_1.IsOptional)(),
|
|
61
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
62
|
+
(0, class_validator_1.IsNumber)(),
|
|
63
|
+
(0, class_validator_1.Min)(0),
|
|
64
|
+
__metadata("design:type", Number)
|
|
65
|
+
], SettleInstallmentDto.prototype, "penalty", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, class_validator_1.IsOptional)(),
|
|
68
|
+
(0, class_validator_1.IsString)(),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], SettleInstallmentDto.prototype, "description", void 0);
|
|
71
|
+
//# sourceMappingURL=settle-installment.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settle-installment.dto.js","sourceRoot":"","sources":["../../src/dto/settle-installment.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AACzC,qDAOy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{
|
|
32
32
|
clienteId: string;
|
|
33
33
|
id: string;
|
|
@@ -43,7 +43,7 @@ export declare class FinanceDataController {
|
|
|
43
43
|
anexosDetalhes: any;
|
|
44
44
|
tags: unknown[];
|
|
45
45
|
parcelas: any;
|
|
46
|
-
canal:
|
|
46
|
+
canal: string;
|
|
47
47
|
})[];
|
|
48
48
|
titulosReceber: ({
|
|
49
49
|
fornecedorId: string;
|
|
@@ -60,7 +60,7 @@ export declare class FinanceDataController {
|
|
|
60
60
|
anexosDetalhes: any;
|
|
61
61
|
tags: unknown[];
|
|
62
62
|
parcelas: any;
|
|
63
|
-
canal:
|
|
63
|
+
canal: string;
|
|
64
64
|
} | {
|
|
65
65
|
clienteId: string;
|
|
66
66
|
id: string;
|
|
@@ -76,7 +76,7 @@ export declare class FinanceDataController {
|
|
|
76
76
|
anexosDetalhes: any;
|
|
77
77
|
tags: unknown[];
|
|
78
78
|
parcelas: any;
|
|
79
|
-
canal:
|
|
79
|
+
canal: string;
|
|
80
80
|
})[];
|
|
81
81
|
extratos: any[];
|
|
82
82
|
contasBancarias: {
|
|
@@ -110,7 +110,15 @@ export declare class FinanceDataController {
|
|
|
110
110
|
nome: string;
|
|
111
111
|
status: import("@prisma/client").$Enums.cost_center_status_enum;
|
|
112
112
|
}[];
|
|
113
|
-
aprovacoesPendentes:
|
|
113
|
+
aprovacoesPendentes: {
|
|
114
|
+
id: string;
|
|
115
|
+
tituloId: string;
|
|
116
|
+
solicitante: string;
|
|
117
|
+
valor: number;
|
|
118
|
+
politica: string;
|
|
119
|
+
urgencia: string;
|
|
120
|
+
dataSolicitacao: any;
|
|
121
|
+
}[];
|
|
114
122
|
agingInadimplencia: any[];
|
|
115
123
|
cenarios: any[];
|
|
116
124
|
transferencias: any[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"finance-data.controller.d.ts","sourceRoot":"","sources":["../src/finance-data.controller.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,qBAEa,qBAAqB;IACpB,OAAO,CAAC,QAAQ,CAAC,cAAc;gBAAd,cAAc,EAAE,cAAc;IAGrD,OAAO
|
|
1
|
+
{"version":3,"file":"finance-data.controller.d.ts","sourceRoot":"","sources":["../src/finance-data.controller.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,qBAEa,qBAAqB;IACpB,OAAO,CAAC,QAAQ,CAAC,cAAc;gBAAd,cAAc,EAAE,cAAc;IAGrD,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGd"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CreateFinanceTagDto } from './dto/create-finance-tag.dto';
|
|
2
2
|
import { CreateFinancialTitleDto } from './dto/create-financial-title.dto';
|
|
3
3
|
import { ExtractFinancialTitleFromFileDto } from './dto/extract-financial-title-from-file.dto';
|
|
4
|
+
import { RejectTitleDto } from './dto/reject-title.dto';
|
|
4
5
|
import { FinanceService } from './finance.service';
|
|
5
6
|
import { UpdateInstallmentTagsDto } from './dto/update-installment-tags.dto';
|
|
6
7
|
export declare class FinanceInstallmentsController {
|
|
@@ -30,7 +31,7 @@ export declare class FinanceInstallmentsController {
|
|
|
30
31
|
anexosDetalhes: any;
|
|
31
32
|
tags: unknown[];
|
|
32
33
|
parcelas: any;
|
|
33
|
-
canal:
|
|
34
|
+
canal: string;
|
|
34
35
|
} | {
|
|
35
36
|
clienteId: string;
|
|
36
37
|
id: string;
|
|
@@ -46,7 +47,7 @@ export declare class FinanceInstallmentsController {
|
|
|
46
47
|
anexosDetalhes: any;
|
|
47
48
|
tags: unknown[];
|
|
48
49
|
parcelas: any;
|
|
49
|
-
canal:
|
|
50
|
+
canal: string;
|
|
50
51
|
}>;
|
|
51
52
|
createAccountsPayableTitle(data: CreateFinancialTitleDto, locale: string, user: any): Promise<{
|
|
52
53
|
fornecedorId: string;
|
|
@@ -63,7 +64,141 @@ export declare class FinanceInstallmentsController {
|
|
|
63
64
|
anexosDetalhes: any;
|
|
64
65
|
tags: unknown[];
|
|
65
66
|
parcelas: any;
|
|
66
|
-
canal:
|
|
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;
|
|
67
202
|
} | {
|
|
68
203
|
clienteId: string;
|
|
69
204
|
id: string;
|
|
@@ -79,7 +214,7 @@ export declare class FinanceInstallmentsController {
|
|
|
79
214
|
anexosDetalhes: any;
|
|
80
215
|
tags: unknown[];
|
|
81
216
|
parcelas: any;
|
|
82
|
-
canal:
|
|
217
|
+
canal: string;
|
|
83
218
|
}>;
|
|
84
219
|
updateAccountsPayableInstallmentTags(id: number, data: UpdateInstallmentTagsDto, locale: string): Promise<{
|
|
85
220
|
fornecedorId: string;
|
|
@@ -96,7 +231,7 @@ export declare class FinanceInstallmentsController {
|
|
|
96
231
|
anexosDetalhes: any;
|
|
97
232
|
tags: unknown[];
|
|
98
233
|
parcelas: any;
|
|
99
|
-
canal:
|
|
234
|
+
canal: string;
|
|
100
235
|
} | {
|
|
101
236
|
clienteId: string;
|
|
102
237
|
id: string;
|
|
@@ -112,7 +247,7 @@ export declare class FinanceInstallmentsController {
|
|
|
112
247
|
anexosDetalhes: any;
|
|
113
248
|
tags: unknown[];
|
|
114
249
|
parcelas: any;
|
|
115
|
-
canal:
|
|
250
|
+
canal: string;
|
|
116
251
|
}>;
|
|
117
252
|
extractAccountsPayableInfoFromFile(file: MulterFile, data: ExtractFinancialTitleFromFileDto): Promise<{
|
|
118
253
|
documento: string;
|
|
@@ -159,7 +294,7 @@ export declare class FinanceInstallmentsController {
|
|
|
159
294
|
anexosDetalhes: any;
|
|
160
295
|
tags: unknown[];
|
|
161
296
|
parcelas: any;
|
|
162
|
-
canal:
|
|
297
|
+
canal: string;
|
|
163
298
|
} | {
|
|
164
299
|
clienteId: string;
|
|
165
300
|
id: string;
|
|
@@ -175,7 +310,7 @@ export declare class FinanceInstallmentsController {
|
|
|
175
310
|
anexosDetalhes: any;
|
|
176
311
|
tags: unknown[];
|
|
177
312
|
parcelas: any;
|
|
178
|
-
canal:
|
|
313
|
+
canal: string;
|
|
179
314
|
}>;
|
|
180
315
|
createAccountsReceivableTitle(data: CreateFinancialTitleDto, locale: string, user: any): Promise<{
|
|
181
316
|
fornecedorId: string;
|
|
@@ -192,8 +327,76 @@ export declare class FinanceInstallmentsController {
|
|
|
192
327
|
anexosDetalhes: any;
|
|
193
328
|
tags: unknown[];
|
|
194
329
|
parcelas: any;
|
|
195
|
-
canal:
|
|
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;
|
|
196
398
|
} | {
|
|
399
|
+
settlementId: string;
|
|
197
400
|
clienteId: string;
|
|
198
401
|
id: string;
|
|
199
402
|
documento: any;
|
|
@@ -208,7 +411,40 @@ export declare class FinanceInstallmentsController {
|
|
|
208
411
|
anexosDetalhes: any;
|
|
209
412
|
tags: unknown[];
|
|
210
413
|
parcelas: any;
|
|
211
|
-
canal:
|
|
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;
|
|
429
|
+
tags: unknown[];
|
|
430
|
+
parcelas: any;
|
|
431
|
+
canal: string;
|
|
432
|
+
} | {
|
|
433
|
+
clienteId: string;
|
|
434
|
+
id: string;
|
|
435
|
+
documento: any;
|
|
436
|
+
descricao: any;
|
|
437
|
+
competencia: any;
|
|
438
|
+
valorTotal: number;
|
|
439
|
+
status: any;
|
|
440
|
+
criadoEm: any;
|
|
441
|
+
categoriaId: string;
|
|
442
|
+
centroCustoId: string;
|
|
443
|
+
anexos: any;
|
|
444
|
+
anexosDetalhes: any;
|
|
445
|
+
tags: unknown[];
|
|
446
|
+
parcelas: any;
|
|
447
|
+
canal: string;
|
|
212
448
|
}>;
|
|
213
449
|
updateAccountsReceivableInstallmentTags(id: number, data: UpdateInstallmentTagsDto, locale: string): Promise<{
|
|
214
450
|
fornecedorId: string;
|
|
@@ -225,7 +461,7 @@ export declare class FinanceInstallmentsController {
|
|
|
225
461
|
anexosDetalhes: any;
|
|
226
462
|
tags: unknown[];
|
|
227
463
|
parcelas: any;
|
|
228
|
-
canal:
|
|
464
|
+
canal: string;
|
|
229
465
|
} | {
|
|
230
466
|
clienteId: string;
|
|
231
467
|
id: string;
|
|
@@ -241,7 +477,7 @@ export declare class FinanceInstallmentsController {
|
|
|
241
477
|
anexosDetalhes: any;
|
|
242
478
|
tags: unknown[];
|
|
243
479
|
parcelas: any;
|
|
244
|
-
canal:
|
|
480
|
+
canal: string;
|
|
245
481
|
}>;
|
|
246
482
|
createTag(data: CreateFinanceTagDto): Promise<{
|
|
247
483
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
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,CAAC;AACnE,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,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUR,oCAAoC,CACb,EAAE,EAAE,MAAM,EAC7B,IAAI,EAAE,wBAAwB,EAC5B,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAWpB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUR,uCAAuC,CAChB,EAAE,EAAE,MAAM,EAC7B,IAAI,EAAE,wBAAwB,EAC5B,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUpB,SAAS,CAAS,IAAI,EAAE,mBAAmB;;;;;IAM3C,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,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,gCAAgC,EAAE,MAAM,6CAA6C,CAAC;AAC/F,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,qBAEa,6BAA6B;IAC5B,OAAO,CAAC,QAAQ,CAAC,cAAc;gBAAd,cAAc,EAAE,cAAc;IAGrD,+BAA+B,CACrB,gBAAgB,KAAA,EACb,MAAM,CAAC,EAAE,MAAM;;;;;;;;;IAS5B,6BAA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