@hed-hog/finance 0.0.223 → 0.0.225
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-financial-title.dto.d.ts +19 -0
- package/dist/dto/create-financial-title.dto.d.ts.map +1 -0
- package/dist/dto/create-financial-title.dto.js +128 -0
- package/dist/dto/create-financial-title.dto.js.map +1 -0
- package/dist/finance.controller.d.ts +276 -0
- package/dist/finance.controller.d.ts.map +1 -0
- package/dist/finance.controller.js +110 -0
- package/dist/finance.controller.js.map +1 -0
- package/dist/finance.module.d.ts.map +1 -1
- package/dist/finance.module.js +8 -3
- package/dist/finance.module.js.map +1 -1
- package/dist/finance.service.d.ts +295 -0
- package/dist/finance.service.d.ts.map +1 -0
- package/dist/finance.service.js +416 -0
- package/dist/finance.service.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/hedhog/data/menu.yaml +72 -25
- package/hedhog/data/route.yaml +55 -1
- package/hedhog/frontend/app/_lib/formatters.ts.ejs +20 -0
- package/hedhog/frontend/app/_lib/use-finance-data.ts.ejs +87 -0
- package/hedhog/frontend/app/accounts-payable/approvals/page.tsx.ejs +290 -0
- package/hedhog/frontend/app/accounts-payable/installments/[id]/page.tsx.ejs +410 -0
- package/hedhog/frontend/app/accounts-payable/installments/page.tsx.ejs +388 -0
- package/hedhog/frontend/app/accounts-receivable/collections-default/page.tsx.ejs +423 -0
- package/hedhog/frontend/app/accounts-receivable/installments/[id]/page.tsx.ejs +411 -0
- package/hedhog/frontend/app/accounts-receivable/installments/page.tsx.ejs +385 -0
- package/hedhog/frontend/app/cash-and-banks/bank-accounts/page.tsx.ejs +296 -0
- package/hedhog/frontend/app/cash-and-banks/bank-reconciliation/page.tsx.ejs +427 -0
- package/hedhog/frontend/app/cash-and-banks/statements/page.tsx.ejs +273 -0
- package/hedhog/frontend/app/cash-and-banks/transfers/page.tsx.ejs +253 -0
- package/hedhog/frontend/app/page.tsx.ejs +338 -17
- package/hedhog/frontend/app/planning/cash-flow-forecast/page.tsx.ejs +298 -0
- package/hedhog/frontend/app/planning/receivables-calendar/page.tsx.ejs +225 -0
- package/hedhog/frontend/app/planning/scenarios/page.tsx.ejs +338 -0
- package/hedhog/frontend/messages/en.json +776 -0
- package/hedhog/frontend/messages/pt.json +776 -0
- package/hedhog/query/constraints.sql +169 -0
- package/package.json +3 -3
- package/src/dto/create-financial-title.dto.ts +142 -0
- package/src/finance.controller.ts +89 -0
- package/src/finance.module.ts +8 -3
- package/src/finance.service.ts +529 -0
- package/src/index.ts +4 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare class CreateFinancialInstallmentDto {
|
|
2
|
+
installment_number?: number;
|
|
3
|
+
due_date: string;
|
|
4
|
+
amount: number;
|
|
5
|
+
}
|
|
6
|
+
export declare class CreateFinancialTitleDto {
|
|
7
|
+
document_number: string;
|
|
8
|
+
person_id: number;
|
|
9
|
+
competence_date?: string;
|
|
10
|
+
issue_date?: string;
|
|
11
|
+
due_date: string;
|
|
12
|
+
total_amount: number;
|
|
13
|
+
finance_category_id?: number;
|
|
14
|
+
cost_center_id?: number;
|
|
15
|
+
payment_channel?: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
installments?: CreateFinancialInstallmentDto[];
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=create-financial-title.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-financial-title.dto.d.ts","sourceRoot":"","sources":["../../src/dto/create-financial-title.dto.ts"],"names":[],"mappings":"AAcA,qBAAa,6BAA6B;IAUxC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAS5B,QAAQ,EAAE,MAAM,CAAC;IAajB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,qBAAa,uBAAuB;IAOlC,eAAe,EAAE,MAAM,CAAC;IAKxB,SAAS,EAAE,MAAM,CAAC;IAUlB,eAAe,CAAC,EAAE,MAAM,CAAC;IAUzB,UAAU,CAAC,EAAE,MAAM,CAAC;IASpB,QAAQ,EAAE,MAAM,CAAC;IAajB,YAAY,EAAE,MAAM,CAAC;IAOrB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAO7B,cAAc,CAAC,EAAE,MAAM,CAAC;IAOxB,eAAe,CAAC,EAAE,MAAM,CAAC;IAOzB,WAAW,CAAC,EAAE,MAAM,CAAC;IASrB,YAAY,CAAC,EAAE,6BAA6B,EAAE,CAAC;CAChD"}
|
|
@@ -0,0 +1,128 @@
|
|
|
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.CreateFinancialTitleDto = exports.CreateFinancialInstallmentDto = void 0;
|
|
13
|
+
const api_locale_1 = require("@hed-hog/api-locale");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
class CreateFinancialInstallmentDto {
|
|
17
|
+
}
|
|
18
|
+
exports.CreateFinancialInstallmentDto = CreateFinancialInstallmentDto;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsOptional)(),
|
|
21
|
+
(0, class_validator_1.IsInt)({
|
|
22
|
+
message: (args) => (0, api_locale_1.getLocaleText)('validation.installmentNumberMustBeNumber', args.value),
|
|
23
|
+
}),
|
|
24
|
+
(0, class_validator_1.Min)(1, {
|
|
25
|
+
message: (args) => (0, api_locale_1.getLocaleText)('validation.installmentNumberMin', args.value),
|
|
26
|
+
}),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], CreateFinancialInstallmentDto.prototype, "installment_number", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsDateString)({}, {
|
|
31
|
+
message: (args) => (0, api_locale_1.getLocaleText)('validation.dueDateMustBeDate', args.value),
|
|
32
|
+
}),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], CreateFinancialInstallmentDto.prototype, "due_date", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_1.IsNumber)({}, {
|
|
37
|
+
message: (args) => (0, api_locale_1.getLocaleText)('validation.installmentAmountMustBeNumber', args.value),
|
|
38
|
+
}),
|
|
39
|
+
(0, class_validator_1.Min)(0.01, {
|
|
40
|
+
message: (args) => (0, api_locale_1.getLocaleText)('validation.installmentAmountMin', args.value),
|
|
41
|
+
}),
|
|
42
|
+
__metadata("design:type", Number)
|
|
43
|
+
], CreateFinancialInstallmentDto.prototype, "amount", void 0);
|
|
44
|
+
class CreateFinancialTitleDto {
|
|
45
|
+
}
|
|
46
|
+
exports.CreateFinancialTitleDto = CreateFinancialTitleDto;
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_validator_1.IsString)({
|
|
49
|
+
message: (args) => (0, api_locale_1.getLocaleText)('validation.documentMustBeString', args.value),
|
|
50
|
+
}),
|
|
51
|
+
(0, class_validator_1.IsNotEmpty)({
|
|
52
|
+
message: (args) => (0, api_locale_1.getLocaleText)('validation.documentRequired', args.value),
|
|
53
|
+
}),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], CreateFinancialTitleDto.prototype, "document_number", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, class_validator_1.IsInt)({
|
|
58
|
+
message: (args) => (0, api_locale_1.getLocaleText)('validation.personIdMustBeNumber', args.value),
|
|
59
|
+
}),
|
|
60
|
+
__metadata("design:type", Number)
|
|
61
|
+
], CreateFinancialTitleDto.prototype, "person_id", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, class_validator_1.IsOptional)(),
|
|
64
|
+
(0, class_validator_1.IsDateString)({}, {
|
|
65
|
+
message: (args) => (0, api_locale_1.getLocaleText)('validation.competenceDateMustBeDate', args.value),
|
|
66
|
+
}),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], CreateFinancialTitleDto.prototype, "competence_date", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, class_validator_1.IsOptional)(),
|
|
71
|
+
(0, class_validator_1.IsDateString)({}, {
|
|
72
|
+
message: (args) => (0, api_locale_1.getLocaleText)('validation.issueDateMustBeDate', args.value),
|
|
73
|
+
}),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], CreateFinancialTitleDto.prototype, "issue_date", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, class_validator_1.IsDateString)({}, {
|
|
78
|
+
message: (args) => (0, api_locale_1.getLocaleText)('validation.dueDateMustBeDate', args.value),
|
|
79
|
+
}),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], CreateFinancialTitleDto.prototype, "due_date", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, class_validator_1.IsNumber)({}, {
|
|
84
|
+
message: (args) => (0, api_locale_1.getLocaleText)('validation.totalAmountMustBeNumber', args.value),
|
|
85
|
+
}),
|
|
86
|
+
(0, class_validator_1.Min)(0.01, {
|
|
87
|
+
message: (args) => (0, api_locale_1.getLocaleText)('validation.totalAmountMin', args.value),
|
|
88
|
+
}),
|
|
89
|
+
__metadata("design:type", Number)
|
|
90
|
+
], CreateFinancialTitleDto.prototype, "total_amount", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, class_validator_1.IsOptional)(),
|
|
93
|
+
(0, class_validator_1.IsInt)({
|
|
94
|
+
message: (args) => (0, api_locale_1.getLocaleText)('validation.financeCategoryIdMustBeNumber', args.value),
|
|
95
|
+
}),
|
|
96
|
+
__metadata("design:type", Number)
|
|
97
|
+
], CreateFinancialTitleDto.prototype, "finance_category_id", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, class_validator_1.IsOptional)(),
|
|
100
|
+
(0, class_validator_1.IsInt)({
|
|
101
|
+
message: (args) => (0, api_locale_1.getLocaleText)('validation.costCenterIdMustBeNumber', args.value),
|
|
102
|
+
}),
|
|
103
|
+
__metadata("design:type", Number)
|
|
104
|
+
], CreateFinancialTitleDto.prototype, "cost_center_id", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, class_validator_1.IsOptional)(),
|
|
107
|
+
(0, class_validator_1.IsString)({
|
|
108
|
+
message: (args) => (0, api_locale_1.getLocaleText)('validation.paymentChannelMustBeString', args.value),
|
|
109
|
+
}),
|
|
110
|
+
__metadata("design:type", String)
|
|
111
|
+
], CreateFinancialTitleDto.prototype, "payment_channel", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
(0, class_validator_1.IsOptional)(),
|
|
114
|
+
(0, class_validator_1.IsString)({
|
|
115
|
+
message: (args) => (0, api_locale_1.getLocaleText)('validation.descriptionMustBeString', args.value),
|
|
116
|
+
}),
|
|
117
|
+
__metadata("design:type", String)
|
|
118
|
+
], CreateFinancialTitleDto.prototype, "description", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
(0, class_validator_1.IsOptional)(),
|
|
121
|
+
(0, class_validator_1.IsArray)({
|
|
122
|
+
message: (args) => (0, api_locale_1.getLocaleText)('validation.installmentsMustBeArray', args.value),
|
|
123
|
+
}),
|
|
124
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
125
|
+
(0, class_transformer_1.Type)(() => CreateFinancialInstallmentDto),
|
|
126
|
+
__metadata("design:type", Array)
|
|
127
|
+
], CreateFinancialTitleDto.prototype, "installments", void 0);
|
|
128
|
+
//# sourceMappingURL=create-financial-title.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-financial-title.dto.js","sourceRoot":"","sources":["../../src/dto/create-financial-title.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAoD;AACpD,yDAAyC;AACzC,qDAUyB;AAEzB,MAAa,6BAA6B;CAiCzC;AAjCD,sEAiCC;AAvBC;IATC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,EAAC;QACL,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAChB,IAAA,0BAAa,EAAC,0CAA0C,EAAE,IAAI,CAAC,KAAK,CAAC;KACxE,CAAC;IACD,IAAA,qBAAG,EAAC,CAAC,EAAE;QACN,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAChB,IAAA,0BAAa,EAAC,iCAAiC,EAAE,IAAI,CAAC,KAAK,CAAC;KAC/D,CAAC;;yEAC0B;AAS5B;IAPC,IAAA,8BAAY,EACX,EAAE,EACF;QACE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAChB,IAAA,0BAAa,EAAC,8BAA8B,EAAE,IAAI,CAAC,KAAK,CAAC;KAC5D,CACF;;+DACgB;AAajB;IAXC,IAAA,0BAAQ,EACP,EAAE,EACF;QACE,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAChB,IAAA,0BAAa,EAAC,0CAA0C,EAAE,IAAI,CAAC,KAAK,CAAC;KACxE,CACF;IACA,IAAA,qBAAG,EAAC,IAAI,EAAE;QACT,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAChB,IAAA,0BAAa,EAAC,iCAAiC,EAAE,IAAI,CAAC,KAAK,CAAC;KAC/D,CAAC;;6DACa;AAGjB,MAAa,uBAAuB;CA4FnC;AA5FD,0DA4FC;AArFC;IANC,IAAA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A,0BAAa,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC;KACzD,CAAC;;6DACmB;AAOrB;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,EAAC;QACL,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAChB,IAAA,0BAAa,EAAC,0CAA0C,EAAE,IAAI,CAAC,KAAK,CAAC;KACxE,CAAC;;oEAC2B;AAO7B;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,EAAC;QACL,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAChB,IAAA,0BAAa,EAAC,qCAAqC,EAAE,IAAI,CAAC,KAAK,CAAC;KACnE,CAAC;;+DACsB;AAOxB;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC;QACR,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAChB,IAAA,0BAAa,EAAC,uCAAuC,EAAE,IAAI,CAAC,KAAK,CAAC;KACrE,CAAC;;gEACuB;AAOzB;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC;QACR,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAChB,IAAA,0BAAa,EAAC,oCAAoC,EAAE,IAAI,CAAC,KAAK,CAAC;KAClE,CAAC;;4DACmB;AASrB;IAPC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,EAAC;QACP,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAChB,IAAA,0BAAa,EAAC,oCAAoC,EAAE,IAAI,CAAC,KAAK,CAAC;KAClE,CAAC;IACD,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,6BAA6B,CAAC;;6DACK"}
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
import { CreateFinancialTitleDto } from './dto/create-financial-title.dto';
|
|
2
|
+
import { FinanceService } from './finance.service';
|
|
3
|
+
export declare class FinanceController {
|
|
4
|
+
private readonly financeService;
|
|
5
|
+
constructor(financeService: FinanceService);
|
|
6
|
+
getData(): Promise<{
|
|
7
|
+
kpis: {
|
|
8
|
+
saldoCaixa: number;
|
|
9
|
+
aPagar30dias: number;
|
|
10
|
+
aPagar7dias: number;
|
|
11
|
+
aReceber30dias: number;
|
|
12
|
+
aReceber7dias: number;
|
|
13
|
+
inadimplencia: number;
|
|
14
|
+
};
|
|
15
|
+
fluxoCaixaPrevisto: any[];
|
|
16
|
+
titulosPagar: ({
|
|
17
|
+
fornecedorId: string;
|
|
18
|
+
id: string;
|
|
19
|
+
documento: any;
|
|
20
|
+
descricao: any;
|
|
21
|
+
competencia: any;
|
|
22
|
+
valorTotal: number;
|
|
23
|
+
status: any;
|
|
24
|
+
criadoEm: any;
|
|
25
|
+
categoriaId: string;
|
|
26
|
+
centroCustoId: string;
|
|
27
|
+
anexos: any;
|
|
28
|
+
tags: unknown[];
|
|
29
|
+
parcelas: any;
|
|
30
|
+
canal: any;
|
|
31
|
+
} | {
|
|
32
|
+
clienteId: string;
|
|
33
|
+
id: string;
|
|
34
|
+
documento: any;
|
|
35
|
+
descricao: any;
|
|
36
|
+
competencia: any;
|
|
37
|
+
valorTotal: number;
|
|
38
|
+
status: any;
|
|
39
|
+
criadoEm: any;
|
|
40
|
+
categoriaId: string;
|
|
41
|
+
centroCustoId: string;
|
|
42
|
+
anexos: any;
|
|
43
|
+
tags: unknown[];
|
|
44
|
+
parcelas: any;
|
|
45
|
+
canal: any;
|
|
46
|
+
})[];
|
|
47
|
+
titulosReceber: ({
|
|
48
|
+
fornecedorId: string;
|
|
49
|
+
id: string;
|
|
50
|
+
documento: any;
|
|
51
|
+
descricao: any;
|
|
52
|
+
competencia: any;
|
|
53
|
+
valorTotal: number;
|
|
54
|
+
status: any;
|
|
55
|
+
criadoEm: any;
|
|
56
|
+
categoriaId: string;
|
|
57
|
+
centroCustoId: string;
|
|
58
|
+
anexos: any;
|
|
59
|
+
tags: unknown[];
|
|
60
|
+
parcelas: any;
|
|
61
|
+
canal: any;
|
|
62
|
+
} | {
|
|
63
|
+
clienteId: string;
|
|
64
|
+
id: string;
|
|
65
|
+
documento: any;
|
|
66
|
+
descricao: any;
|
|
67
|
+
competencia: any;
|
|
68
|
+
valorTotal: number;
|
|
69
|
+
status: any;
|
|
70
|
+
criadoEm: any;
|
|
71
|
+
categoriaId: string;
|
|
72
|
+
centroCustoId: string;
|
|
73
|
+
anexos: any;
|
|
74
|
+
tags: unknown[];
|
|
75
|
+
parcelas: any;
|
|
76
|
+
canal: any;
|
|
77
|
+
})[];
|
|
78
|
+
extratos: any[];
|
|
79
|
+
contasBancarias: {
|
|
80
|
+
id: string;
|
|
81
|
+
codigo: string;
|
|
82
|
+
descricao: string;
|
|
83
|
+
banco: string;
|
|
84
|
+
agencia: string;
|
|
85
|
+
conta: string;
|
|
86
|
+
ativo: boolean;
|
|
87
|
+
}[];
|
|
88
|
+
pessoas: {
|
|
89
|
+
id: string;
|
|
90
|
+
nome: string;
|
|
91
|
+
tipo: string;
|
|
92
|
+
documento: string;
|
|
93
|
+
}[];
|
|
94
|
+
categorias: {
|
|
95
|
+
id: string;
|
|
96
|
+
codigo: string;
|
|
97
|
+
nome: string;
|
|
98
|
+
natureza: string;
|
|
99
|
+
status: import("@prisma/client").$Enums.finance_category_status_enum;
|
|
100
|
+
}[];
|
|
101
|
+
centrosCusto: {
|
|
102
|
+
id: string;
|
|
103
|
+
codigo: string;
|
|
104
|
+
nome: string;
|
|
105
|
+
status: import("@prisma/client").$Enums.cost_center_status_enum;
|
|
106
|
+
}[];
|
|
107
|
+
aprovacoesPendentes: any[];
|
|
108
|
+
agingInadimplencia: any[];
|
|
109
|
+
cenarios: any[];
|
|
110
|
+
transferencias: any[];
|
|
111
|
+
tags: {
|
|
112
|
+
id: string;
|
|
113
|
+
nome: string;
|
|
114
|
+
cor: string;
|
|
115
|
+
}[];
|
|
116
|
+
logsAuditoria: {
|
|
117
|
+
id: string;
|
|
118
|
+
entidade: string;
|
|
119
|
+
entidadeId: string;
|
|
120
|
+
usuarioId: string;
|
|
121
|
+
acao: string;
|
|
122
|
+
detalhes: string;
|
|
123
|
+
antes: string;
|
|
124
|
+
depois: string;
|
|
125
|
+
data: string;
|
|
126
|
+
}[];
|
|
127
|
+
recebiveis: any[];
|
|
128
|
+
adquirentes: any[];
|
|
129
|
+
historicoContatos: any[];
|
|
130
|
+
entradasPrevistas: any[];
|
|
131
|
+
saidasPrevistas: any[];
|
|
132
|
+
}>;
|
|
133
|
+
listAccountsPayableInstallments(paginationParams: any, status?: string): Promise<{
|
|
134
|
+
total: any;
|
|
135
|
+
lastPage: number;
|
|
136
|
+
page: number;
|
|
137
|
+
pageSize: number;
|
|
138
|
+
prev: number;
|
|
139
|
+
next: number;
|
|
140
|
+
data: any[];
|
|
141
|
+
}>;
|
|
142
|
+
getAccountsPayableInstallment(id: number, locale: string): Promise<{
|
|
143
|
+
fornecedorId: string;
|
|
144
|
+
id: string;
|
|
145
|
+
documento: any;
|
|
146
|
+
descricao: any;
|
|
147
|
+
competencia: any;
|
|
148
|
+
valorTotal: number;
|
|
149
|
+
status: any;
|
|
150
|
+
criadoEm: any;
|
|
151
|
+
categoriaId: string;
|
|
152
|
+
centroCustoId: string;
|
|
153
|
+
anexos: any;
|
|
154
|
+
tags: unknown[];
|
|
155
|
+
parcelas: any;
|
|
156
|
+
canal: any;
|
|
157
|
+
} | {
|
|
158
|
+
clienteId: string;
|
|
159
|
+
id: string;
|
|
160
|
+
documento: any;
|
|
161
|
+
descricao: any;
|
|
162
|
+
competencia: any;
|
|
163
|
+
valorTotal: number;
|
|
164
|
+
status: any;
|
|
165
|
+
criadoEm: any;
|
|
166
|
+
categoriaId: string;
|
|
167
|
+
centroCustoId: string;
|
|
168
|
+
anexos: any;
|
|
169
|
+
tags: unknown[];
|
|
170
|
+
parcelas: any;
|
|
171
|
+
canal: any;
|
|
172
|
+
}>;
|
|
173
|
+
createAccountsPayableTitle(data: CreateFinancialTitleDto, locale: string, user: any): Promise<{
|
|
174
|
+
fornecedorId: string;
|
|
175
|
+
id: string;
|
|
176
|
+
documento: any;
|
|
177
|
+
descricao: any;
|
|
178
|
+
competencia: any;
|
|
179
|
+
valorTotal: number;
|
|
180
|
+
status: any;
|
|
181
|
+
criadoEm: any;
|
|
182
|
+
categoriaId: string;
|
|
183
|
+
centroCustoId: string;
|
|
184
|
+
anexos: any;
|
|
185
|
+
tags: unknown[];
|
|
186
|
+
parcelas: any;
|
|
187
|
+
canal: any;
|
|
188
|
+
} | {
|
|
189
|
+
clienteId: string;
|
|
190
|
+
id: string;
|
|
191
|
+
documento: any;
|
|
192
|
+
descricao: any;
|
|
193
|
+
competencia: any;
|
|
194
|
+
valorTotal: number;
|
|
195
|
+
status: any;
|
|
196
|
+
criadoEm: any;
|
|
197
|
+
categoriaId: string;
|
|
198
|
+
centroCustoId: string;
|
|
199
|
+
anexos: any;
|
|
200
|
+
tags: unknown[];
|
|
201
|
+
parcelas: any;
|
|
202
|
+
canal: any;
|
|
203
|
+
}>;
|
|
204
|
+
listAccountsReceivableInstallments(paginationParams: any, status?: string): Promise<{
|
|
205
|
+
total: any;
|
|
206
|
+
lastPage: number;
|
|
207
|
+
page: number;
|
|
208
|
+
pageSize: number;
|
|
209
|
+
prev: number;
|
|
210
|
+
next: number;
|
|
211
|
+
data: any[];
|
|
212
|
+
}>;
|
|
213
|
+
getAccountsReceivableInstallment(id: number, locale: string): Promise<{
|
|
214
|
+
fornecedorId: string;
|
|
215
|
+
id: string;
|
|
216
|
+
documento: any;
|
|
217
|
+
descricao: any;
|
|
218
|
+
competencia: any;
|
|
219
|
+
valorTotal: number;
|
|
220
|
+
status: any;
|
|
221
|
+
criadoEm: any;
|
|
222
|
+
categoriaId: string;
|
|
223
|
+
centroCustoId: string;
|
|
224
|
+
anexos: any;
|
|
225
|
+
tags: unknown[];
|
|
226
|
+
parcelas: any;
|
|
227
|
+
canal: any;
|
|
228
|
+
} | {
|
|
229
|
+
clienteId: string;
|
|
230
|
+
id: string;
|
|
231
|
+
documento: any;
|
|
232
|
+
descricao: any;
|
|
233
|
+
competencia: any;
|
|
234
|
+
valorTotal: number;
|
|
235
|
+
status: any;
|
|
236
|
+
criadoEm: any;
|
|
237
|
+
categoriaId: string;
|
|
238
|
+
centroCustoId: string;
|
|
239
|
+
anexos: any;
|
|
240
|
+
tags: unknown[];
|
|
241
|
+
parcelas: any;
|
|
242
|
+
canal: any;
|
|
243
|
+
}>;
|
|
244
|
+
createAccountsReceivableTitle(data: CreateFinancialTitleDto, locale: string, user: any): Promise<{
|
|
245
|
+
fornecedorId: string;
|
|
246
|
+
id: string;
|
|
247
|
+
documento: any;
|
|
248
|
+
descricao: any;
|
|
249
|
+
competencia: any;
|
|
250
|
+
valorTotal: number;
|
|
251
|
+
status: any;
|
|
252
|
+
criadoEm: any;
|
|
253
|
+
categoriaId: string;
|
|
254
|
+
centroCustoId: string;
|
|
255
|
+
anexos: any;
|
|
256
|
+
tags: unknown[];
|
|
257
|
+
parcelas: any;
|
|
258
|
+
canal: any;
|
|
259
|
+
} | {
|
|
260
|
+
clienteId: string;
|
|
261
|
+
id: string;
|
|
262
|
+
documento: any;
|
|
263
|
+
descricao: any;
|
|
264
|
+
competencia: any;
|
|
265
|
+
valorTotal: number;
|
|
266
|
+
status: any;
|
|
267
|
+
criadoEm: any;
|
|
268
|
+
categoriaId: string;
|
|
269
|
+
centroCustoId: string;
|
|
270
|
+
anexos: any;
|
|
271
|
+
tags: unknown[];
|
|
272
|
+
parcelas: any;
|
|
273
|
+
canal: any;
|
|
274
|
+
}>;
|
|
275
|
+
}
|
|
276
|
+
//# sourceMappingURL=finance.controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"finance.controller.d.ts","sourceRoot":"","sources":["../src/finance.controller.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,qBAEa,iBAAiB;IAChB,OAAO,CAAC,QAAQ,CAAC,cAAc;gBAAd,cAAc,EAAE,cAAc;IAGrD,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAKP,+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,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQf"}
|
|
@@ -0,0 +1,110 @@
|
|
|
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
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.FinanceController = void 0;
|
|
16
|
+
const api_1 = require("@hed-hog/api");
|
|
17
|
+
const api_locale_1 = require("@hed-hog/api-locale");
|
|
18
|
+
const api_pagination_1 = require("@hed-hog/api-pagination");
|
|
19
|
+
const common_1 = require("@nestjs/common");
|
|
20
|
+
const create_financial_title_dto_1 = require("./dto/create-financial-title.dto");
|
|
21
|
+
const finance_service_1 = require("./finance.service");
|
|
22
|
+
let FinanceController = class FinanceController {
|
|
23
|
+
constructor(financeService) {
|
|
24
|
+
this.financeService = financeService;
|
|
25
|
+
}
|
|
26
|
+
async getData() {
|
|
27
|
+
return this.financeService.getData();
|
|
28
|
+
}
|
|
29
|
+
async listAccountsPayableInstallments(paginationParams, status) {
|
|
30
|
+
return this.financeService.listAccountsPayableInstallments(paginationParams, status);
|
|
31
|
+
}
|
|
32
|
+
async getAccountsPayableInstallment(id, locale) {
|
|
33
|
+
return this.financeService.getAccountsPayableInstallment(id, locale);
|
|
34
|
+
}
|
|
35
|
+
async createAccountsPayableTitle(data, locale, user) {
|
|
36
|
+
return this.financeService.createAccountsPayableTitle(data, locale, user === null || user === void 0 ? void 0 : user.id);
|
|
37
|
+
}
|
|
38
|
+
async listAccountsReceivableInstallments(paginationParams, status) {
|
|
39
|
+
return this.financeService.listAccountsReceivableInstallments(paginationParams, status);
|
|
40
|
+
}
|
|
41
|
+
async getAccountsReceivableInstallment(id, locale) {
|
|
42
|
+
return this.financeService.getAccountsReceivableInstallment(id, locale);
|
|
43
|
+
}
|
|
44
|
+
async createAccountsReceivableTitle(data, locale, user) {
|
|
45
|
+
return this.financeService.createAccountsReceivableTitle(data, locale, user === null || user === void 0 ? void 0 : user.id);
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
exports.FinanceController = FinanceController;
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, common_1.Get)('data'),
|
|
51
|
+
__metadata("design:type", Function),
|
|
52
|
+
__metadata("design:paramtypes", []),
|
|
53
|
+
__metadata("design:returntype", Promise)
|
|
54
|
+
], FinanceController.prototype, "getData", null);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, common_1.Get)('accounts-payable/installments'),
|
|
57
|
+
__param(0, (0, api_pagination_1.Pagination)()),
|
|
58
|
+
__param(1, (0, common_1.Query)('status')),
|
|
59
|
+
__metadata("design:type", Function),
|
|
60
|
+
__metadata("design:paramtypes", [Object, String]),
|
|
61
|
+
__metadata("design:returntype", Promise)
|
|
62
|
+
], FinanceController.prototype, "listAccountsPayableInstallments", null);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, common_1.Get)('accounts-payable/installments/:id'),
|
|
65
|
+
__param(0, (0, common_1.Param)('id', common_1.ParseIntPipe)),
|
|
66
|
+
__param(1, (0, api_locale_1.Locale)()),
|
|
67
|
+
__metadata("design:type", Function),
|
|
68
|
+
__metadata("design:paramtypes", [Number, String]),
|
|
69
|
+
__metadata("design:returntype", Promise)
|
|
70
|
+
], FinanceController.prototype, "getAccountsPayableInstallment", null);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, common_1.Post)('accounts-payable/installments'),
|
|
73
|
+
__param(0, (0, common_1.Body)()),
|
|
74
|
+
__param(1, (0, api_locale_1.Locale)()),
|
|
75
|
+
__param(2, (0, api_1.User)()),
|
|
76
|
+
__metadata("design:type", Function),
|
|
77
|
+
__metadata("design:paramtypes", [create_financial_title_dto_1.CreateFinancialTitleDto, String, Object]),
|
|
78
|
+
__metadata("design:returntype", Promise)
|
|
79
|
+
], FinanceController.prototype, "createAccountsPayableTitle", null);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, common_1.Get)('accounts-receivable/installments'),
|
|
82
|
+
__param(0, (0, api_pagination_1.Pagination)()),
|
|
83
|
+
__param(1, (0, common_1.Query)('status')),
|
|
84
|
+
__metadata("design:type", Function),
|
|
85
|
+
__metadata("design:paramtypes", [Object, String]),
|
|
86
|
+
__metadata("design:returntype", Promise)
|
|
87
|
+
], FinanceController.prototype, "listAccountsReceivableInstallments", null);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, common_1.Get)('accounts-receivable/installments/:id'),
|
|
90
|
+
__param(0, (0, common_1.Param)('id', common_1.ParseIntPipe)),
|
|
91
|
+
__param(1, (0, api_locale_1.Locale)()),
|
|
92
|
+
__metadata("design:type", Function),
|
|
93
|
+
__metadata("design:paramtypes", [Number, String]),
|
|
94
|
+
__metadata("design:returntype", Promise)
|
|
95
|
+
], FinanceController.prototype, "getAccountsReceivableInstallment", null);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, common_1.Post)('accounts-receivable/installments'),
|
|
98
|
+
__param(0, (0, common_1.Body)()),
|
|
99
|
+
__param(1, (0, api_locale_1.Locale)()),
|
|
100
|
+
__param(2, (0, api_1.User)()),
|
|
101
|
+
__metadata("design:type", Function),
|
|
102
|
+
__metadata("design:paramtypes", [create_financial_title_dto_1.CreateFinancialTitleDto, String, Object]),
|
|
103
|
+
__metadata("design:returntype", Promise)
|
|
104
|
+
], FinanceController.prototype, "createAccountsReceivableTitle", null);
|
|
105
|
+
exports.FinanceController = FinanceController = __decorate([
|
|
106
|
+
(0, api_1.Role)(),
|
|
107
|
+
(0, common_1.Controller)('finance'),
|
|
108
|
+
__metadata("design:paramtypes", [finance_service_1.FinanceService])
|
|
109
|
+
], FinanceController);
|
|
110
|
+
//# sourceMappingURL=finance.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"finance.controller.js","sourceRoot":"","sources":["../src/finance.controller.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AC;qCAEyB,gCAAc;GADhD,iBAAiB,CAuE7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"finance.module.d.ts","sourceRoot":"","sources":["../src/finance.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"finance.module.d.ts","sourceRoot":"","sources":["../src/finance.module.ts"],"names":[],"mappings":"AAQA,qBAWa,aAAa;CAAG"}
|
package/dist/finance.module.js
CHANGED
|
@@ -7,11 +7,13 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.FinanceModule = void 0;
|
|
10
|
-
const common_1 = require("@nestjs/common");
|
|
11
|
-
const config_1 = require("@nestjs/config");
|
|
12
10
|
const api_locale_1 = require("@hed-hog/api-locale");
|
|
13
11
|
const api_pagination_1 = require("@hed-hog/api-pagination");
|
|
14
12
|
const api_prisma_1 = require("@hed-hog/api-prisma");
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const config_1 = require("@nestjs/config");
|
|
15
|
+
const finance_controller_1 = require("./finance.controller");
|
|
16
|
+
const finance_service_1 = require("./finance.service");
|
|
15
17
|
let FinanceModule = class FinanceModule {
|
|
16
18
|
};
|
|
17
19
|
exports.FinanceModule = FinanceModule;
|
|
@@ -22,7 +24,10 @@ exports.FinanceModule = FinanceModule = __decorate([
|
|
|
22
24
|
(0, common_1.forwardRef)(() => api_pagination_1.PaginationModule),
|
|
23
25
|
(0, common_1.forwardRef)(() => api_prisma_1.PrismaModule),
|
|
24
26
|
(0, common_1.forwardRef)(() => api_locale_1.LocaleModule)
|
|
25
|
-
]
|
|
27
|
+
],
|
|
28
|
+
controllers: [finance_controller_1.FinanceController],
|
|
29
|
+
providers: [finance_service_1.FinanceService],
|
|
30
|
+
exports: [finance_service_1.FinanceService],
|
|
26
31
|
})
|
|
27
32
|
], FinanceModule);
|
|
28
33
|
//# sourceMappingURL=finance.module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"finance.module.js","sourceRoot":"","sources":["../src/finance.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAoD;AACpD,2CAA8C;AAC9C,
|
|
1
|
+
{"version":3,"file":"finance.module.js","sourceRoot":"","sources":["../src/finance.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,oDAAmD;AACnD,4DAA2D;AAC3D,oDAAmD;AACnD,2CAAoD;AACpD,2CAA8C;AAC9C,6DAAyD;AACzD,uDAAmD;AAa5C,IAAM,aAAa,GAAnB,MAAM,aAAa;CAAG,CAAA;AAAhB,sCAAa;wBAAb,aAAa;IAXzB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,qBAAY,CAAC,OAAO,EAAE;YACtB,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,iCAAgB,CAAC;YAClC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,yBAAY,CAAC;YAC9B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,yBAAY,CAAC;SAC/B;QACD,WAAW,EAAE,CAAC,sCAAiB,CAAC;QAChC,SAAS,EAAE,CAAC,gCAAc,CAAC;QAC3B,OAAO,EAAE,CAAC,gCAAc,CAAC;KAC1B,CAAC;GACW,aAAa,CAAG"}
|