@silexpert/core 1.3.160 → 1.3.161

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 (70) hide show
  1. package/dist/cjs/api/resources/GeneralLedger.d.ts +2 -1
  2. package/dist/cjs/api/resources/GeneralLedger.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/GeneralLedger.js +9 -0
  4. package/dist/cjs/api/resources/GeneralLedger.js.map +1 -1
  5. package/dist/cjs/types/Interface/api/brevo/EmailSendOptions.dto.js +12 -12
  6. package/dist/cjs/types/Interface/api/brevo/EmailSendOptions.dto.js.map +1 -1
  7. package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.d.ts +1 -0
  8. package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.d.ts.map +1 -1
  9. package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.js.map +1 -1
  10. package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts +1 -0
  11. package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts.map +1 -1
  12. package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js.map +1 -1
  13. package/dist/cjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.d.ts +9 -0
  14. package/dist/cjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.d.ts.map +1 -1
  15. package/dist/cjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js +30 -1
  16. package/dist/cjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js.map +1 -1
  17. package/dist/cjs/types/Interface/api/revenueMovement.d.ts +10 -9
  18. package/dist/cjs/types/Interface/api/revenueMovement.d.ts.map +1 -1
  19. package/dist/cjs/types/Interface/api/revenueMovement.js +272 -0
  20. package/dist/cjs/types/Interface/api/revenueMovement.js.map +1 -1
  21. package/dist/cjs/types/Interface/api/revenueSnapshotGenerate.d.ts +0 -1
  22. package/dist/cjs/types/Interface/api/revenueSnapshotGenerate.d.ts.map +1 -1
  23. package/dist/cjs/types/Interface/api/revenueSnapshotGenerate.js +4 -13
  24. package/dist/cjs/types/Interface/api/revenueSnapshotGenerate.js.map +1 -1
  25. package/dist/cjs/types/Interface/models/IImmobilization.d.ts +1 -0
  26. package/dist/cjs/types/Interface/models/IImmobilization.d.ts.map +1 -1
  27. package/dist/cjs/types/Interface/models/IImmobilization.js.map +1 -1
  28. package/dist/cjs/utils/prestation.d.ts.map +1 -1
  29. package/dist/cjs/utils/prestation.js +9 -4
  30. package/dist/cjs/utils/prestation.js.map +1 -1
  31. package/dist/mjs/api/resources/GeneralLedger.d.ts +2 -1
  32. package/dist/mjs/api/resources/GeneralLedger.d.ts.map +1 -1
  33. package/dist/mjs/api/resources/GeneralLedger.js +9 -0
  34. package/dist/mjs/api/resources/GeneralLedger.js.map +1 -1
  35. package/dist/mjs/types/Interface/api/brevo/EmailSendOptions.dto.js +1 -1
  36. package/dist/mjs/types/Interface/api/brevo/EmailSendOptions.dto.js.map +1 -1
  37. package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.d.ts +1 -0
  38. package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.d.ts.map +1 -1
  39. package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.js.map +1 -1
  40. package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts +1 -0
  41. package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts.map +1 -1
  42. package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js.map +1 -1
  43. package/dist/mjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.d.ts +9 -0
  44. package/dist/mjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.d.ts.map +1 -1
  45. package/dist/mjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js +34 -1
  46. package/dist/mjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js.map +1 -1
  47. package/dist/mjs/types/Interface/api/revenueMovement.d.ts +10 -9
  48. package/dist/mjs/types/Interface/api/revenueMovement.d.ts.map +1 -1
  49. package/dist/mjs/types/Interface/api/revenueMovement.js +303 -1
  50. package/dist/mjs/types/Interface/api/revenueMovement.js.map +1 -1
  51. package/dist/mjs/types/Interface/api/revenueSnapshotGenerate.d.ts +0 -1
  52. package/dist/mjs/types/Interface/api/revenueSnapshotGenerate.d.ts.map +1 -1
  53. package/dist/mjs/types/Interface/api/revenueSnapshotGenerate.js +13 -16
  54. package/dist/mjs/types/Interface/api/revenueSnapshotGenerate.js.map +1 -1
  55. package/dist/mjs/types/Interface/models/IImmobilization.d.ts +1 -0
  56. package/dist/mjs/types/Interface/models/IImmobilization.d.ts.map +1 -1
  57. package/dist/mjs/types/Interface/models/IImmobilization.js.map +1 -1
  58. package/dist/mjs/utils/prestation.d.ts.map +1 -1
  59. package/dist/mjs/utils/prestation.js +3 -1
  60. package/dist/mjs/utils/prestation.js.map +1 -1
  61. package/package.json +1 -1
  62. package/ts/api/resources/GeneralLedger.ts +11 -0
  63. package/ts/types/Interface/api/brevo/EmailSendOptions.dto.ts +1 -1
  64. package/ts/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.ts +1 -0
  65. package/ts/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.ts +1 -0
  66. package/ts/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.ts +26 -1
  67. package/ts/types/Interface/api/revenueMovement.ts +153 -9
  68. package/ts/types/Interface/api/revenueSnapshotGenerate.ts +13 -13
  69. package/ts/types/Interface/models/IImmobilization.ts +1 -0
  70. package/ts/utils/prestation.ts +3 -1
@@ -1,3 +1,275 @@
1
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
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.IManageRetroactivityRequest = exports.IGenerateAllSnapshotsRequest = exports.IGenerateSnapshotRequest = exports.IGetRevenueMovementsRequest = exports.IUpdateRevenueMovementRequest = exports.ICreateRevenueMovementRequest = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const Revenue_1 = require("../../Enum/Revenue");
15
+ const utils_1 = require("../../../utils");
16
+ /**
17
+ * DTO pour créer un mouvement de revenu
18
+ */
19
+ class ICreateRevenueMovementRequest {
20
+ }
21
+ exports.ICreateRevenueMovementRequest = ICreateRevenueMovementRequest;
22
+ __decorate([
23
+ (0, utils_1.ApiProperty)(),
24
+ (0, class_validator_1.IsEnum)(Revenue_1.RevenueMovementType),
25
+ __metadata("design:type", Number)
26
+ ], ICreateRevenueMovementRequest.prototype, "type", void 0);
27
+ __decorate([
28
+ (0, utils_1.ApiProperty)(),
29
+ (0, class_validator_1.IsInt)(),
30
+ __metadata("design:type", Number)
31
+ ], ICreateRevenueMovementRequest.prototype, "idSociety", void 0);
32
+ __decorate([
33
+ (0, utils_1.ApiPropertyOptional)(),
34
+ (0, class_validator_1.IsOptional)(),
35
+ (0, class_validator_1.IsInt)(),
36
+ __metadata("design:type", Number)
37
+ ], ICreateRevenueMovementRequest.prototype, "idExercice", void 0);
38
+ __decorate([
39
+ (0, utils_1.ApiPropertyOptional)(),
40
+ (0, class_validator_1.IsOptional)(),
41
+ (0, class_validator_1.IsInt)(),
42
+ __metadata("design:type", Number)
43
+ ], ICreateRevenueMovementRequest.prototype, "idPrestation", void 0);
44
+ __decorate([
45
+ (0, utils_1.ApiPropertyOptional)(),
46
+ (0, class_validator_1.IsOptional)(),
47
+ (0, class_validator_1.IsInt)(),
48
+ __metadata("design:type", Number)
49
+ ], ICreateRevenueMovementRequest.prototype, "idTerminationList", void 0);
50
+ __decorate([
51
+ (0, utils_1.ApiPropertyOptional)(),
52
+ (0, class_validator_1.IsOptional)(),
53
+ (0, class_validator_1.IsInt)(),
54
+ __metadata("design:type", Number)
55
+ ], ICreateRevenueMovementRequest.prototype, "idChurnMovement", void 0);
56
+ __decorate([
57
+ (0, utils_1.ApiProperty)(),
58
+ (0, class_validator_1.IsInt)(),
59
+ __metadata("design:type", Number)
60
+ ], ICreateRevenueMovementRequest.prototype, "amount", void 0);
61
+ __decorate([
62
+ (0, utils_1.ApiProperty)(),
63
+ (0, class_validator_1.IsInt)(),
64
+ __metadata("design:type", Number)
65
+ ], ICreateRevenueMovementRequest.prototype, "mrr", void 0);
66
+ __decorate([
67
+ (0, utils_1.ApiProperty)(),
68
+ (0, class_validator_1.IsInt)(),
69
+ __metadata("design:type", Number)
70
+ ], ICreateRevenueMovementRequest.prototype, "arr", void 0);
71
+ __decorate([
72
+ (0, utils_1.ApiProperty)(),
73
+ (0, class_validator_1.IsDate)(),
74
+ __metadata("design:type", Date)
75
+ ], ICreateRevenueMovementRequest.prototype, "movementDate", void 0);
76
+ __decorate([
77
+ (0, utils_1.ApiPropertyOptional)(),
78
+ (0, class_validator_1.IsOptional)(),
79
+ (0, class_validator_1.IsString)(),
80
+ __metadata("design:type", String)
81
+ ], ICreateRevenueMovementRequest.prototype, "description", void 0);
82
+ __decorate([
83
+ (0, utils_1.ApiPropertyOptional)(),
84
+ (0, class_validator_1.IsOptional)(),
85
+ (0, class_validator_1.IsObject)(),
86
+ __metadata("design:type", Object)
87
+ ], ICreateRevenueMovementRequest.prototype, "metadata", void 0);
88
+ /**
89
+ * DTO pour mettre à jour un mouvement de revenu
90
+ */
91
+ class IUpdateRevenueMovementRequest {
92
+ }
93
+ exports.IUpdateRevenueMovementRequest = IUpdateRevenueMovementRequest;
94
+ __decorate([
95
+ (0, utils_1.ApiPropertyOptional)(),
96
+ (0, class_validator_1.IsOptional)(),
97
+ (0, class_validator_1.IsEnum)(Revenue_1.RevenueMovementType),
98
+ __metadata("design:type", Number)
99
+ ], IUpdateRevenueMovementRequest.prototype, "type", void 0);
100
+ __decorate([
101
+ (0, utils_1.ApiPropertyOptional)(),
102
+ (0, class_validator_1.IsOptional)(),
103
+ (0, class_validator_1.IsInt)(),
104
+ __metadata("design:type", Number)
105
+ ], IUpdateRevenueMovementRequest.prototype, "idTerminationList", void 0);
106
+ __decorate([
107
+ (0, utils_1.ApiPropertyOptional)(),
108
+ (0, class_validator_1.IsOptional)(),
109
+ (0, class_validator_1.IsInt)(),
110
+ __metadata("design:type", Number)
111
+ ], IUpdateRevenueMovementRequest.prototype, "idChurnMovement", void 0);
112
+ __decorate([
113
+ (0, utils_1.ApiPropertyOptional)(),
114
+ (0, class_validator_1.IsOptional)(),
115
+ (0, class_validator_1.IsNumber)(),
116
+ __metadata("design:type", Number)
117
+ ], IUpdateRevenueMovementRequest.prototype, "amount", void 0);
118
+ __decorate([
119
+ (0, utils_1.ApiPropertyOptional)(),
120
+ (0, class_validator_1.IsOptional)(),
121
+ (0, class_validator_1.IsInt)(),
122
+ __metadata("design:type", Number)
123
+ ], IUpdateRevenueMovementRequest.prototype, "mrr", void 0);
124
+ __decorate([
125
+ (0, utils_1.ApiPropertyOptional)(),
126
+ (0, class_validator_1.IsOptional)(),
127
+ (0, class_validator_1.IsInt)(),
128
+ __metadata("design:type", Number)
129
+ ], IUpdateRevenueMovementRequest.prototype, "arr", void 0);
130
+ __decorate([
131
+ (0, utils_1.ApiPropertyOptional)(),
132
+ (0, class_validator_1.IsOptional)(),
133
+ (0, class_validator_1.IsDate)(),
134
+ __metadata("design:type", Object)
135
+ ], IUpdateRevenueMovementRequest.prototype, "movementDate", void 0);
136
+ __decorate([
137
+ (0, utils_1.ApiPropertyOptional)(),
138
+ (0, class_validator_1.IsOptional)(),
139
+ (0, class_validator_1.IsString)(),
140
+ __metadata("design:type", String)
141
+ ], IUpdateRevenueMovementRequest.prototype, "description", void 0);
142
+ __decorate([
143
+ (0, utils_1.ApiPropertyOptional)(),
144
+ (0, class_validator_1.IsOptional)(),
145
+ (0, class_validator_1.IsObject)(),
146
+ __metadata("design:type", Object)
147
+ ], IUpdateRevenueMovementRequest.prototype, "metadata", void 0);
148
+ /**
149
+ * Filtres pour récupérer les mouvements de revenu
150
+ */
151
+ class IGetRevenueMovementsRequest {
152
+ }
153
+ exports.IGetRevenueMovementsRequest = IGetRevenueMovementsRequest;
154
+ __decorate([
155
+ (0, utils_1.ApiPropertyOptional)(),
156
+ (0, class_validator_1.IsOptional)(),
157
+ (0, class_validator_1.IsInt)(),
158
+ __metadata("design:type", Number)
159
+ ], IGetRevenueMovementsRequest.prototype, "idSociety", void 0);
160
+ __decorate([
161
+ (0, utils_1.ApiPropertyOptional)(),
162
+ (0, class_validator_1.IsOptional)(),
163
+ (0, class_validator_1.IsInt)(),
164
+ __metadata("design:type", Number)
165
+ ], IGetRevenueMovementsRequest.prototype, "idExercice", void 0);
166
+ __decorate([
167
+ (0, utils_1.ApiPropertyOptional)(),
168
+ (0, class_validator_1.IsOptional)(),
169
+ (0, class_validator_1.IsInt)(),
170
+ __metadata("design:type", Number)
171
+ ], IGetRevenueMovementsRequest.prototype, "idPrestation", void 0);
172
+ __decorate([
173
+ (0, utils_1.ApiPropertyOptional)(),
174
+ (0, class_validator_1.IsOptional)(),
175
+ (0, class_validator_1.IsInt)(),
176
+ __metadata("design:type", Number)
177
+ ], IGetRevenueMovementsRequest.prototype, "idTerminationList", void 0);
178
+ __decorate([
179
+ (0, utils_1.ApiPropertyOptional)(),
180
+ (0, class_validator_1.IsOptional)(),
181
+ (0, class_validator_1.IsInt)(),
182
+ __metadata("design:type", Number)
183
+ ], IGetRevenueMovementsRequest.prototype, "idChurnMovement", void 0);
184
+ __decorate([
185
+ (0, utils_1.ApiPropertyOptional)(),
186
+ (0, class_validator_1.IsOptional)(),
187
+ (0, class_validator_1.IsArray)(),
188
+ (0, class_validator_1.IsEnum)(Revenue_1.RevenueMovementType, { each: true }),
189
+ __metadata("design:type", Array)
190
+ ], IGetRevenueMovementsRequest.prototype, "type", void 0);
191
+ __decorate([
192
+ (0, utils_1.ApiPropertyOptional)(),
193
+ (0, class_validator_1.IsOptional)(),
194
+ (0, class_validator_1.IsDate)(),
195
+ __metadata("design:type", Object)
196
+ ], IGetRevenueMovementsRequest.prototype, "startDate", void 0);
197
+ __decorate([
198
+ (0, utils_1.ApiPropertyOptional)(),
199
+ (0, class_validator_1.IsOptional)(),
200
+ (0, class_validator_1.IsDate)(),
201
+ __metadata("design:type", Object)
202
+ ], IGetRevenueMovementsRequest.prototype, "endDate", void 0);
203
+ __decorate([
204
+ (0, utils_1.ApiPropertyOptional)(),
205
+ (0, class_validator_1.IsOptional)(),
206
+ (0, class_validator_1.IsInt)(),
207
+ __metadata("design:type", Number)
208
+ ], IGetRevenueMovementsRequest.prototype, "page", void 0);
209
+ __decorate([
210
+ (0, utils_1.ApiPropertyOptional)(),
211
+ (0, class_validator_1.IsOptional)(),
212
+ (0, class_validator_1.IsInt)(),
213
+ __metadata("design:type", Number)
214
+ ], IGetRevenueMovementsRequest.prototype, "limit", void 0);
215
+ /**
216
+ * DTO pour générer un snapshot de revenu
217
+ */
218
+ class IGenerateSnapshotRequest {
219
+ }
220
+ exports.IGenerateSnapshotRequest = IGenerateSnapshotRequest;
221
+ __decorate([
222
+ (0, utils_1.ApiPropertyOptional)(),
223
+ (0, class_validator_1.IsOptional)(),
224
+ (0, class_validator_1.IsDate)(),
225
+ __metadata("design:type", String)
226
+ ], IGenerateSnapshotRequest.prototype, "date", void 0);
227
+ __decorate([
228
+ (0, utils_1.ApiPropertyOptional)(),
229
+ (0, class_validator_1.IsOptional)(),
230
+ (0, class_validator_1.IsInt)(),
231
+ __metadata("design:type", Number)
232
+ ], IGenerateSnapshotRequest.prototype, "idSociety", void 0);
233
+ __decorate([
234
+ (0, utils_1.ApiPropertyOptional)(),
235
+ (0, class_validator_1.IsOptional)(),
236
+ (0, class_validator_1.IsInt)(),
237
+ __metadata("design:type", Number)
238
+ ], IGenerateSnapshotRequest.prototype, "idExercice", void 0);
239
+ /**
240
+ * DTO pour générer tous les snapshots de revenu
241
+ */
242
+ class IGenerateAllSnapshotsRequest {
243
+ }
244
+ exports.IGenerateAllSnapshotsRequest = IGenerateAllSnapshotsRequest;
245
+ __decorate([
246
+ (0, utils_1.ApiPropertyOptional)(),
247
+ (0, class_validator_1.IsOptional)(),
248
+ (0, class_validator_1.IsDate)(),
249
+ __metadata("design:type", String)
250
+ ], IGenerateAllSnapshotsRequest.prototype, "date", void 0);
251
+ /**
252
+ * DTO pour gérer la rétroactivité des mouvements de revenu
253
+ */
254
+ class IManageRetroactivityRequest {
255
+ }
256
+ exports.IManageRetroactivityRequest = IManageRetroactivityRequest;
257
+ __decorate([
258
+ (0, utils_1.ApiPropertyOptional)(),
259
+ (0, class_validator_1.IsOptional)(),
260
+ (0, class_validator_1.IsInt)(),
261
+ __metadata("design:type", Number)
262
+ ], IManageRetroactivityRequest.prototype, "idSociety", void 0);
263
+ __decorate([
264
+ (0, utils_1.ApiPropertyOptional)(),
265
+ (0, class_validator_1.IsOptional)(),
266
+ (0, class_validator_1.IsInt)(),
267
+ __metadata("design:type", Number)
268
+ ], IManageRetroactivityRequest.prototype, "idExercice", void 0);
269
+ __decorate([
270
+ (0, utils_1.ApiPropertyOptional)(),
271
+ (0, class_validator_1.IsOptional)(),
272
+ (0, class_validator_1.IsDate)(),
273
+ __metadata("design:type", Date)
274
+ ], IManageRetroactivityRequest.prototype, "date", void 0);
3
275
  //# sourceMappingURL=revenueMovement.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"revenueMovement.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revenueMovement.ts"],"names":[],"mappings":"","sourcesContent":["import { RevenueMovementType } from '../../Enum/Revenue';\n\n/**\n * DTO pour créer un mouvement de revenu\n */\nexport interface ICreateRevenueMovementRequest {\n type: RevenueMovementType;\n idSociety: number;\n idExercice?: number;\n idPrestation?: number;\n idTerminationList?: number;\n idChurnMovement?: number;\n amount: number;\n mrr: number;\n arr: number;\n movementDate: Date;\n description?: string;\n metadata?: Record<string, any>;\n}\n\n/**\n * DTO pour mettre à jour un mouvement de revenu\n */\nexport interface IUpdateRevenueMovementRequest {\n type?: RevenueMovementType;\n idTerminationList?: number;\n idChurnMovement?: number;\n amount?: number;\n mrr?: number;\n arr?: number;\n movementDate?: Date | string;\n description?: string;\n metadata?: Record<string, any>;\n}\n\n/**\n * Filtres pour récupérer les mouvements de revenu\n */\nexport interface IGetRevenueMovementsRequest {\n idSociety?: number;\n idExercice?: number;\n idPrestation?: number;\n idTerminationList?: number;\n idChurnMovement?: number;\n type?: RevenueMovementType[];\n startDate?: Date | string;\n endDate?: Date | string;\n page?: number;\n limit?: number;\n}\n\n/**\n * Réponse paginée pour les mouvements de revenu\n */\nexport interface IGetRevenueMovementsResponse {\n movements: any[]; // IRevenueMovement[]\n total: number;\n page: number;\n limit: number;\n totalPages: number;\n}\n\n/**\n * DTO pour générer un snapshot de revenu\n */\nexport interface IGenerateSnapshotRequest {\n date?: string;\n idSociety?: number;\n idExercice?: number;\n}\n\n/**\n * DTO pour générer tous les snapshots de revenu\n */\nexport interface IGenerateAllSnapshotsRequest {\n date?: string;\n}\n\n/**\n * DTO pour gérer la rétroactivité des mouvements de revenu\n */\nexport interface IManageRetroactivityRequest {\n idSociety: number;\n idExercice?: number;\n}\n\n/**\n * Réponse pour la gestion de la rétroactivité\n */\nexport interface IManageRetroactivityResponse {\n idSociety: number;\n idExercice: number;\n exerciceStartDate: Date;\n exerciceEndDate: Date;\n movementsCreated: {\n bookings: number;\n churns: number;\n recognitions: number;\n provisions: number;\n mothballingBookings: number;\n };\n prestationsProcessed: number;\n monthsProcessed: number;\n details: {\n type: string;\n idPrestation?: number;\n prestationName?: string;\n date: Date;\n amount: number;\n mrr: number;\n arr: number;\n }[];\n}\n"]}
1
+ {"version":3,"file":"revenueMovement.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revenueMovement.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2G;AAC3G,gDAAyD;AACzD,0CAAkE;AAElE;;GAEG;AACH,MAAa,6BAA6B;CAsDzC;AAtDD,sEAsDC;AAnDC;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,wBAAM,EAAC,6BAAmB,CAAC;;2DACF;AAI1B;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,uBAAK,GAAE;;gEACU;AAKlB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;iEACY;AAKpB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;mEACc;AAKtB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;wEACmB;AAK3B;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;sEACiB;AAIzB;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,uBAAK,GAAE;;6DACO;AAIf;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,uBAAK,GAAE;;0DACI;AAIZ;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,uBAAK,GAAE;;0DACI;AAIZ;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,wBAAM,GAAE;8BACK,IAAI;mEAAC;AAKnB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GA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IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;0DACK;AAGhB;;GAEG;AACH,MAAa,2BAA2B;CAevC;AAfD,kEAeC;AAXC;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;8DACU;AAKlB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;+DACY;AAKpB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;8BACF,IAAI;yDAAC","sourcesContent":["import { IsDate, IsInt, IsOptional, IsEnum, IsNumber, IsString, IsObject, IsArray } from 'class-validator';\nimport { RevenueMovementType } from '../../Enum/Revenue';\nimport { ApiProperty, ApiPropertyOptional } from '../../../utils';\n\n/**\n * DTO pour créer un mouvement de revenu\n */\nexport class ICreateRevenueMovementRequest {\n @ApiProperty()\n @IsEnum(RevenueMovementType)\n type: RevenueMovementType;\n\n @ApiProperty()\n @IsInt()\n idSociety: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idExercice?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idPrestation?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idTerminationList?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idChurnMovement?: number;\n\n @ApiProperty()\n @IsInt()\n amount: number;\n\n @ApiProperty()\n @IsInt()\n mrr: number;\n\n @ApiProperty()\n @IsInt()\n arr: number;\n\n @ApiProperty()\n @IsDate()\n movementDate: Date;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n description?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsObject()\n metadata?: Record<string, any>;\n}\n\n/**\n * DTO pour mettre à jour un mouvement de revenu\n */\nexport class IUpdateRevenueMovementRequest {\n @ApiPropertyOptional()\n @IsOptional()\n @IsEnum(RevenueMovementType)\n type?: RevenueMovementType;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idTerminationList?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idChurnMovement?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n amount?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n mrr?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n arr?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n movementDate?: Date | string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n description?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsObject()\n metadata?: Record<string, any>;\n}\n\n/**\n * Filtres pour récupérer les mouvements de revenu\n */\nexport class IGetRevenueMovementsRequest {\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idSociety?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idExercice?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idPrestation?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idTerminationList?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idChurnMovement?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsArray()\n @IsEnum(RevenueMovementType, { each: true })\n type?: RevenueMovementType[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n startDate?: Date | string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n endDate?: Date | string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n page?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n limit?: number;\n}\n\n/**\n * Réponse paginée pour les mouvements de revenu\n */\nexport interface IGetRevenueMovementsResponse {\n movements: any[]; // IRevenueMovement[]\n total: number;\n page: number;\n limit: number;\n totalPages: number;\n}\n\n/**\n * DTO pour générer un snapshot de revenu\n */\nexport class IGenerateSnapshotRequest {\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n date?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idSociety?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idExercice?: number;\n}\n\n/**\n * DTO pour générer tous les snapshots de revenu\n */\nexport class IGenerateAllSnapshotsRequest {\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n date?: string;\n}\n\n/**\n * DTO pour gérer la rétroactivité des mouvements de revenu\n */\nexport class IManageRetroactivityRequest {\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idSociety: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idExercice?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n date?: Date;\n}\n\n/**\n * Réponse pour la gestion de la rétroactivité\n */\nexport interface IManageRetroactivityResponse {\n idSociety: number;\n idExercice: number[];\n exerciceStartDate: Date[];\n exerciceEndDate: Date[];\n movementsCreated: {\n bookings: number;\n churns: number;\n recognitions: number;\n provisions: number;\n mothballingBookings: number;\n };\n prestationsProcessed: number;\n monthsProcessed: number;\n details: {\n type: string;\n idPrestation?: number;\n prestationName?: string;\n date: Date;\n amount: number;\n mrr: number;\n arr: number;\n }[];\n}\n"]}
@@ -7,7 +7,6 @@ export declare class GenerateAllSnapshots {
7
7
  date?: string;
8
8
  }
9
9
  export declare class ManageRetroactivity {
10
- idSociety: number;
11
10
  idExercice?: number;
12
11
  }
13
12
  //# sourceMappingURL=revenueSnapshotGenerate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"revenueSnapshotGenerate.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revenueSnapshotGenerate.ts"],"names":[],"mappings":"AAGA,qBAAa,gBAAgB;IAQ3B,IAAI,CAAC,EAAE,MAAM,CAAC;IASd,SAAS,CAAC,EAAE,MAAM,CAAC;IASnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,qBAAa,oBAAoB;IAQ/B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,mBAAmB;IAO9B,SAAS,EAAE,MAAM,CAAC;IASlB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
1
+ {"version":3,"file":"revenueSnapshotGenerate.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revenueSnapshotGenerate.ts"],"names":[],"mappings":"AAGA,qBAAa,gBAAgB;IAQ3B,IAAI,CAAC,EAAE,MAAM,CAAC;IASd,SAAS,CAAC,EAAE,MAAM,CAAC;IASnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,qBAAa,oBAAoB;IAQ/B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,mBAAmB;IAgB9B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
@@ -38,7 +38,7 @@ __decorate([
38
38
  __decorate([
39
39
  (0, utils_1.ApiProperty)({
40
40
  required: false,
41
- description: "ID de l'exercice",
41
+ description: 'ID de l\'exercice',
42
42
  example: 123456,
43
43
  }),
44
44
  (0, class_validator_1.IsOptional)(),
@@ -62,22 +62,13 @@ class ManageRetroactivity {
62
62
  }
63
63
  exports.ManageRetroactivity = ManageRetroactivity;
64
64
  __decorate([
65
- (0, utils_1.ApiProperty)({
66
- required: true,
67
- description: 'ID de la société',
68
- example: 60170,
69
- }),
70
- (0, class_validator_1.IsNumber)(),
71
- __metadata("design:type", Number)
72
- ], ManageRetroactivity.prototype, "idSociety", void 0);
73
- __decorate([
74
- (0, utils_1.ApiProperty)({
65
+ (0, utils_1.ApiPropertyOptional)({
75
66
  required: false,
76
- description: "ID de l'exercice (si non fourni, utilise l'exercice courant)",
67
+ description: 'ID de l\'exercice (si non fourni, utilise l\'exercice courant)',
77
68
  example: 123456,
78
69
  }),
79
70
  (0, class_validator_1.IsOptional)(),
80
- (0, class_validator_1.IsNumber)(),
71
+ (0, class_validator_1.IsInt)(),
81
72
  __metadata("design:type", Number)
82
73
  ], ManageRetroactivity.prototype, "idExercice", void 0);
83
74
  //# sourceMappingURL=revenueSnapshotGenerate.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"revenueSnapshotGenerate.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revenueSnapshotGenerate.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA6C;AAC7C,qDAAiE;AAEjE,MAAa,gBAAgB;CA2B5B;AA3BD,4CA2BC;AAnBC;IAPC,IAAA,mBAAW,EAAC;QACX,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,6CAA6C;QAC1D,OAAO,EAAE,YAAY;KACtB,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8CACG;AASd;IAPC,IAAA,mBAAW,EAAC;QACX,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,kBAAkB;QAC/B,OAAO,EAAE,KAAK;KACf,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACQ;AASnB;IAPC,IAAA,mBAAW,EAAC;QACX,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,kBAAkB;QAC/B,OAAO,EAAE,MAAM;KAChB,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oDACS;AAGtB,MAAa,oBAAoB;CAShC;AATD,oDASC;AADC;IAPC,IAAA,mBAAW,EAAC;QACX,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,6CAA6C;QAC1D,OAAO,EAAE,YAAY;KACtB,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kDACG;AAGhB,MAAa,mBAAmB;CAiB/B;AAjBD,kDAiBC;AAVC;IANC,IAAA,mBAAW,EAAC;QACX,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,kBAAkB;QAC/B,OAAO,EAAE,KAAK;KACf,CAAC;IACD,IAAA,0BAAQ,GAAE;;sDACO;AASlB;IAPC,IAAA,mBAAW,EAAC;QACX,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,8DAA8D;QAC3E,OAAO,EAAE,MAAM;KAChB,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uDACS","sourcesContent":["import { ApiProperty } from '../../../utils';\nimport { IsOptional, IsString, IsNumber } from 'class-validator';\n\nexport class GenerateSnapshot {\n @ApiProperty({\n required: false,\n description: 'Date du snapshot au format ISO (YYYY-MM-DD)',\n example: '2025-11-04',\n })\n @IsOptional()\n @IsString()\n date?: string;\n\n @ApiProperty({\n required: false,\n description: 'ID de la société',\n example: 60170,\n })\n @IsOptional()\n @IsNumber()\n idSociety?: number;\n\n @ApiProperty({\n required: false,\n description: \"ID de l'exercice\",\n example: 123456,\n })\n @IsOptional()\n @IsNumber()\n idExercice?: number;\n}\n\nexport class GenerateAllSnapshots {\n @ApiProperty({\n required: false,\n description: 'Date du snapshot au format ISO (YYYY-MM-DD)',\n example: '2025-11-04',\n })\n @IsOptional()\n @IsString()\n date?: string;\n}\n\nexport class ManageRetroactivity {\n @ApiProperty({\n required: true,\n description: 'ID de la société',\n example: 60170,\n })\n @IsNumber()\n idSociety: number;\n\n @ApiProperty({\n required: false,\n description: \"ID de l'exercice (si non fourni, utilise l'exercice courant)\",\n example: 123456,\n })\n @IsOptional()\n @IsNumber()\n idExercice?: number;\n}\n"]}
1
+ {"version":3,"file":"revenueSnapshotGenerate.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revenueSnapshotGenerate.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAkE;AAClE,qDAAwE;AAExE,MAAa,gBAAgB;CA2B5B;AA3BD,4CA2BC;AAnBC;IAPC,IAAA,mBAAW,EAAC;QACX,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,6CAA6C;QAC1D,OAAO,EAAE,YAAY;KACtB,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8CACG;AASd;IAPC,IAAA,mBAAW,EAAC;QACX,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,kBAAkB;QAC/B,OAAO,EAAE,KAAK;KACf,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACQ;AASnB;IAPC,IAAA,mBAAW,EAAC;QACX,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,mBAAmB;QAChC,OAAO,EAAE,MAAM;KAChB,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oDACS;AAGtB,MAAa,oBAAoB;CAShC;AATD,oDASC;AADC;IAPC,IAAA,mBAAW,EAAC;QACX,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,6CAA6C;QAC1D,OAAO,EAAE,YAAY;KACtB,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kDACG;AAGhB,MAAa,mBAAmB;CAiB/B;AAjBD,kDAiBC;AADC;IAPC,IAAA,2BAAmB,EAAC;QACnB,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,gEAAgE;QAC7E,OAAO,EAAE,MAAM;KAChB,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;uDACY","sourcesContent":["import { ApiProperty, ApiPropertyOptional } from '../../../utils';\nimport { IsOptional, IsString, IsNumber, IsInt } from 'class-validator';\n\nexport class GenerateSnapshot {\n @ApiProperty({\n required: false,\n description: 'Date du snapshot au format ISO (YYYY-MM-DD)',\n example: '2025-11-04',\n })\n @IsOptional()\n @IsString()\n date?: string;\n\n @ApiProperty({\n required: false,\n description: 'ID de la société',\n example: 60170,\n })\n @IsOptional()\n @IsNumber()\n idSociety?: number;\n\n @ApiProperty({\n required: false,\n description: 'ID de l\\'exercice',\n example: 123456,\n })\n @IsOptional()\n @IsNumber()\n idExercice?: number;\n}\n\nexport class GenerateAllSnapshots {\n @ApiProperty({\n required: false,\n description: 'Date du snapshot au format ISO (YYYY-MM-DD)',\n example: '2025-11-04',\n })\n @IsOptional()\n @IsString()\n date?: string;\n}\n\nexport class ManageRetroactivity {\n // @ApiProperty({\n // required: true,\n // description: 'ID de la société',\n // example: 60170,\n // })\n // @IsInt()\n // idSociety: number;\n\n @ApiPropertyOptional({\n required: false,\n description: 'ID de l\\'exercice (si non fourni, utilise l\\'exercice courant)',\n example: 123456,\n })\n @IsOptional()\n @IsInt()\n idExercice?: number;\n}\n"]}
@@ -11,6 +11,7 @@ export interface IImmobilization {
11
11
  quantitySelled?: number;
12
12
  amountOfSellTaxIncluded?: number | null;
13
13
  sellingDate?: Date | null;
14
+ trashingDate?: Date | null;
14
15
  acquisitionDate?: Date;
15
16
  duration: number;
16
17
  provider: string;
@@ -1 +1 @@
1
- {"version":3,"file":"IImmobilization.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IImmobilization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,WAAW,eAAe;IAC9B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,uBAAuB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxC,WAAW,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAC1B,eAAe,CAAC,EAAE,IAAI,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,kBAAkB,CAAC,EAAE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yBAAyB,EAAE,MAAM,CAAC;IAClC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAGxB,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC5B,iBAAiB,CAAC,EAAE,gBAAgB,EAAE,CAAC;CACxC"}
@@ -1 +1 @@
1
- {"version":3,"file":"IImmobilization.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IImmobilization.ts"],"names":[],"mappings":"","sourcesContent":["import { IAccountingEntry } from './IAccountingEntry';\nimport { ISociety } from './ISociety';\nimport { DepreciationMethods } from '../../Enum/ImmobilizationType';\nimport { IAccount } from './IAccount';\n\nexport interface IImmobilization {\n id?: number;\n reference: string;\n designation: string;\n quantity: number;\n quantityTrashed?: number;\n quantitySelled?: number;\n amountOfSellTaxIncluded?: number | null;\n sellingDate?: Date | null;\n acquisitionDate?: Date; // si il n'y a pas d'acquisition date, c'est un acompte\n duration: number;\n provider: string;\n depreciationMethod?: DepreciationMethods;\n amountTotalImmobilization: number;\n amountAlreadyDeducted?: number;\n idAccount?: number | null;\n idSociety: number;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n // Associations\n society?: ISociety;\n account?: Partial<IAccount>;\n accountingEntries?: IAccountingEntry[];\n}\n"]}
1
+ {"version":3,"file":"IImmobilization.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IImmobilization.ts"],"names":[],"mappings":"","sourcesContent":["import { IAccountingEntry } from './IAccountingEntry';\nimport { ISociety } from './ISociety';\nimport { DepreciationMethods } from '../../Enum/ImmobilizationType';\nimport { IAccount } from './IAccount';\n\nexport interface IImmobilization {\n id?: number;\n reference: string;\n designation: string;\n quantity: number;\n quantityTrashed?: number;\n quantitySelled?: number;\n amountOfSellTaxIncluded?: number | null;\n sellingDate?: Date | null;\n trashingDate?: Date | null;\n acquisitionDate?: Date; // si il n'y a pas d'acquisition date, c'est un acompte\n duration: number;\n provider: string;\n depreciationMethod?: DepreciationMethods;\n amountTotalImmobilization: number;\n amountAlreadyDeducted?: number;\n idAccount?: number | null;\n idSociety: number;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n // Associations\n society?: ISociety;\n account?: Partial<IAccount>;\n accountingEntries?: IAccountingEntry[];\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"prestation.d.ts","sourceRoot":"","sources":["../../../ts/utils/prestation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAInE,OAAO,EAGL,cAAc,EACf,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,oBAAoB,EAAoB,MAAM,gCAAgC,CAAC;AAexF,KAAK,SAAS,GAAG;IACf,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,sBAAsB,EAAE,OAAO,CAAC;IAChC,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,UAAU,EAAE,CAAC;IAC1B,WAAW,CAAC,EAAE,WAAW,EAAE,CAAC;IAC5B,mBAAmB,CAAC,EAAE,QAAQ,EAAE,CAAC;IACjC,gBAAgB,CAAC,EAAE,QAAQ,EAAE,CAAC;IAC9B,eAAe,CAAC,EAAE,QAAQ,EAAE,CAAC;IAC7B,cAAc,CAAC,EAAE,QAAQ,EAAE,CAAC;IAC5B,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC;IACtB,OAAO,CAAC,EAAE,QAAQ,EAAE,CAAC;IACrB,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC;IACzB,gBAAgB,CAAC,EAAE,SAAS,EAAE,CAAC;IAC/B,eAAe,CAAC,EAAE,SAAS,E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,SAAS,EAAO,KAC7B;IACD,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;CAuHf,CAAC;AAEF,QAAA,MAAM,oBAAoB,GAAI,kBAAkB,MAAM,KAAG,oBAAoB,EAK5E,CAAC;AAEF,QAAA,MAAM,mBAAmB,GACvB,aAAa,MAAM,EACnB,kBAAkB,MAAM,EACxB,UAAU,MAAM,EAChB,kBAAkB,OAAO,KACxB,OAqCF,CAAC;AAEF,QAAA,MAAM,2BAA2B,GAAI,kBAAkB,MAAM,KAAG,UAAU,GAAG,WAG5E,CAAC;AAEF,OAAO,EACL,yBAAyB,EACzB,wBAAwB,EACxB,kBAAkB,EAClB,oBAAoB,EACpB,WAAW,EACX,YAAY,EACZ,aAAa,EACb,UAAU,EACV,oBAAoB,EACpB,SAAS,EACT,gBAAgB,EAChB,oBAAoB,EACpB,4BAA4B,EAC5B,wBAAwB,EACxB,oBAAoB,EACpB,mBAAmB,EACnB,qCAAqC,EACrC,wBAAwB,EACxB,2BAA2B,GAC5B,CAAC"}
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.idPrestationListToOfferType = exports.getApplicationFeesAmount = exports.calculatePrestationPriceWithPriceGrid = exports.isAbleToUpdatePrice = exports.getPrestationOptions = exports.calculatePrestationPrice = exports.calculateScoringOfPrestation = exports.isSoftwarePrestation = exports.isConsultingHour = exports.isExpress = exports.isFromStatutsExpress = exports.isCreation = exports.isOnlyJuridic = exports.isOnlySocial = exports.isOnlyPrevi = exports.isOtherSocialMission = exports.isAdditionalPresta = exports.isOtherJuridicalMissions = exports.isOtherAccountingMissions = exports.getPriceGrid = exports.calculateMonthlyAmount = void 0;
4
4
  const Vat_1 = require("../types/Enum/Vat");
5
+ const ReasonTerminationType_1 = require("../types/Enum/ReasonTerminationType");
5
6
  const utils_1 = require("./vat/utils");
6
7
  const noLodash_1 = require("./noLodash");
7
8
  const PrestationType_1 = require("../types/Enum/PrestationType");
@@ -66,10 +67,14 @@ idPrestationList.length === 1 */ // Commenté car si un client résilie un softw
66
67
  exports.isSoftwarePrestation = isSoftwarePrestation;
67
68
  const calculateScoringOfPrestation = (idPrestationType, prestations, currentIdPrestation) => {
68
69
  var _a, _b, _c, _d, _e;
69
- const prestationsSignedPaid = prestations.filter((prestation) => prestation.paid &&
70
- prestation.signed &&
71
- prestation.terminationList === null &&
72
- prestation.id !== currentIdPrestation);
70
+ const prestationsSignedPaid = prestations.filter((prestation) => {
71
+ var _a, _b;
72
+ return prestation.paid &&
73
+ prestation.signed &&
74
+ (prestation.terminationList === null ||
75
+ ((_b = (_a = prestation.terminationList) === null || _a === void 0 ? void 0 : _a.idReasonTermination) === null || _b === void 0 ? void 0 : _b.includes(ReasonTerminationType_1.ReasonTerminationType.CHANGES_NEW_OFFERS))) &&
76
+ prestation.id !== currentIdPrestation;
77
+ });
73
78
  const currentPrestation = prestations.find((el) => el.idPrestationList === idPrestationType && el.terminationList === null);
74
79
  // SPECIAL CASE:
75
80
  // If current prestation is a software prestation