@silexpert/core 0.4.11-0 → 0.4.12
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/README.md +2 -2
- package/es/api/resources/Immobilization.d.ts +2 -1
- package/es/api/resources/Immobilization.d.ts.map +1 -1
- package/es/api/resources/Immobilization.js +6 -1
- package/es/api/resources/Immobilization.js.map +1 -1
- package/es/api/resources/IncomeStatement.d.ts +7 -0
- package/es/api/resources/IncomeStatement.d.ts.map +1 -0
- package/es/api/resources/IncomeStatement.js +13 -0
- package/es/api/resources/IncomeStatement.js.map +1 -0
- package/es/api/resources.d.ts +2 -0
- package/es/api/resources.d.ts.map +1 -1
- package/es/api/resources.js +2 -0
- package/es/api/resources.js.map +1 -1
- package/es/types/Enum/IncomeStatement.d.ts +21 -0
- package/es/types/Enum/IncomeStatement.d.ts.map +1 -0
- package/es/types/Enum/IncomeStatement.js +309 -0
- package/es/types/Enum/IncomeStatement.js.map +1 -0
- package/es/types/Interface/api/incomeStatement/QueryIncomeStatement.d.ts +9 -0
- package/es/types/Interface/api/incomeStatement/QueryIncomeStatement.d.ts.map +1 -0
- package/es/types/Interface/api/incomeStatement/QueryIncomeStatement.js +31 -0
- package/es/types/Interface/api/incomeStatement/QueryIncomeStatement.js.map +1 -0
- package/es/types/Interface/api/incomeStatement/ReadIncomeStatement.d.ts +7 -0
- package/es/types/Interface/api/incomeStatement/ReadIncomeStatement.d.ts.map +1 -0
- package/es/types/Interface/api/incomeStatement/ReadIncomeStatement.js +2 -0
- package/es/types/Interface/api/incomeStatement/ReadIncomeStatement.js.map +1 -0
- package/es/types/Interface/models/IApiError.d.ts +2 -1
- package/es/types/Interface/models/IApiError.d.ts.map +1 -1
- package/es/types/Interface/models/IApiError.js +2 -0
- package/es/types/Interface/models/IApiError.js.map +1 -1
- package/es/types/index.d.ts +3 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +3 -0
- package/es/types/index.js.map +1 -1
- package/js/api/resources/Immobilization.js +6 -1
- package/js/api/resources/Immobilization.js.map +1 -1
- package/js/api/resources/IncomeStatement.js +24 -0
- package/js/api/resources/IncomeStatement.js.map +1 -0
- package/js/api/resources.js +4 -1
- package/js/api/resources.js.map +1 -1
- package/js/types/Enum/IncomeStatement.js +251 -0
- package/js/types/Enum/IncomeStatement.js.map +1 -0
- package/js/types/Interface/api/incomeStatement/QueryIncomeStatement.js +37 -0
- package/js/types/Interface/api/incomeStatement/QueryIncomeStatement.js.map +1 -0
- package/js/types/Interface/api/incomeStatement/ReadIncomeStatement.js +6 -0
- package/js/types/Interface/api/incomeStatement/ReadIncomeStatement.js.map +1 -0
- package/js/types/Interface/models/IApiError.js +3 -1
- package/js/types/Interface/models/IApiError.js.map +1 -1
- package/js/types/index.js +36 -0
- package/js/types/index.js.map +1 -1
- package/package.json +12 -12
- package/ts/api/resources/Immobilization.ts +7 -2
- package/ts/api/resources/IncomeStatement.ts +14 -0
- package/ts/api/resources.ts +2 -0
- package/ts/types/Enum/IncomeStatement.ts +328 -0
- package/ts/types/Interface/api/incomeStatement/QueryIncomeStatement.ts +17 -0
- package/ts/types/Interface/api/incomeStatement/ReadIncomeStatement.ts +6 -0
- package/ts/types/Interface/models/IApiError.ts +3 -0
- package/ts/types/index.ts +3 -0
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
type IncomeStatementField = {
|
|
2
|
+
name: string;
|
|
3
|
+
fields?: IncomeStatementField[];
|
|
4
|
+
accounts?: string[];
|
|
5
|
+
total: number;
|
|
6
|
+
excludeAccounts?: string[];
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export type IncomeStatement = {
|
|
10
|
+
name: string;
|
|
11
|
+
fields?: IncomeStatementField[],
|
|
12
|
+
total: number;
|
|
13
|
+
accounts?: string[];
|
|
14
|
+
excludeAccounts?: string[];
|
|
15
|
+
key: string;
|
|
16
|
+
calculation?: boolean; // Doit être calculé avec calculationAdd & calculationSubtract
|
|
17
|
+
calculationAdd?: string[]; // Tableau des keys à additionner pour obtenir le total
|
|
18
|
+
calculationSubtract?: string[]; // Tableau des keys à soustraire pour obtenir le total
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export const INCOME_STATEMENT_LIST: IncomeStatement[] = [
|
|
22
|
+
{
|
|
23
|
+
name: 'Total des produits d\'exploitation',
|
|
24
|
+
key: 'totalOperatingIncome',
|
|
25
|
+
total: 0,
|
|
26
|
+
fields: [
|
|
27
|
+
{
|
|
28
|
+
name: 'Chiffre d\'Affaires',
|
|
29
|
+
total: 0,
|
|
30
|
+
fields: [
|
|
31
|
+
{
|
|
32
|
+
name: 'Ventes de marchandises',
|
|
33
|
+
total: 0,
|
|
34
|
+
accounts: ['707'],
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
name: 'Production vendue',
|
|
38
|
+
total: 0,
|
|
39
|
+
accounts: ['701', '702', '703', '704', '705', '706'],
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: 'Produits des activités annexes',
|
|
43
|
+
total: 0,
|
|
44
|
+
accounts: ['708'],
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'Rabais, remises, ristournes accordés par l\'entreprise',
|
|
48
|
+
total: 0,
|
|
49
|
+
accounts: ['709'],
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: 'Production stockée',
|
|
55
|
+
total: 0,
|
|
56
|
+
accounts: ['71'],
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: 'Production immobilisée',
|
|
60
|
+
total: 0,
|
|
61
|
+
accounts: ['72'],
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
name: 'Subventions d\'exploitation',
|
|
65
|
+
total: 0,
|
|
66
|
+
accounts: ['74'],
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
name: 'Reprises sur provisions, dépréciations et amortissements, transferts de charges',
|
|
70
|
+
total: 0,
|
|
71
|
+
accounts: ['781', '791'],
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
name: 'Autres produits de gestion courante',
|
|
75
|
+
total: 0,
|
|
76
|
+
accounts: ['75'],
|
|
77
|
+
},
|
|
78
|
+
],
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
name: 'Total des charges d\'exploitation',
|
|
82
|
+
key: 'totalOperatingExpenses',
|
|
83
|
+
total: 0,
|
|
84
|
+
fields: [
|
|
85
|
+
{
|
|
86
|
+
name: 'Achats de marchandises',
|
|
87
|
+
total: 0,
|
|
88
|
+
accounts: ['607'],
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
name: 'Variation des stocks de marchandises',
|
|
92
|
+
total: 0,
|
|
93
|
+
accounts: ['6037'],
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
name: 'Achats de matières premieres et autres approvisionnements',
|
|
97
|
+
total: 0,
|
|
98
|
+
accounts: ['60'],
|
|
99
|
+
excludeAccounts: ['607', '603', '606'],
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
name: 'Variation des stocks de matières premieres et autres approvisionnements',
|
|
103
|
+
total: 0,
|
|
104
|
+
accounts: ['603'],
|
|
105
|
+
excludeAccounts: ['6037'],
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
name: 'Autres achats et charges externes',
|
|
109
|
+
total: 0,
|
|
110
|
+
accounts: ['61', '62', '606'],
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
name: 'Impôts, taxes et versements assimilés',
|
|
114
|
+
total: 0,
|
|
115
|
+
accounts: ['63'],
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
name: 'Salaires et traitements',
|
|
119
|
+
total: 0,
|
|
120
|
+
accounts: ['641', '642', '643', '644'],
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
name: 'Charges sociales',
|
|
124
|
+
total: 0,
|
|
125
|
+
accounts: ['645', '646', '647', '648', '649'],
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
name: 'Dotations aux amortissements et provisions',
|
|
129
|
+
total: 0,
|
|
130
|
+
accounts: ['681', '682', '683', '684', '685'],
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
name: 'Autres charges de gestion courante',
|
|
134
|
+
total: 0,
|
|
135
|
+
accounts: ['65'],
|
|
136
|
+
},
|
|
137
|
+
],
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
name: 'Résultat d\'exploitation',
|
|
141
|
+
key: 'operatingResult',
|
|
142
|
+
total: 0,
|
|
143
|
+
calculation: true,
|
|
144
|
+
calculationAdd: ['totalOperatingIncome'],
|
|
145
|
+
calculationSubtract: ['totalOperatingExpenses'],
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
name: 'Total des produits financiers',
|
|
149
|
+
key: 'totalFinancialProducts',
|
|
150
|
+
total: 0,
|
|
151
|
+
fields: [
|
|
152
|
+
{
|
|
153
|
+
name: 'De participations',
|
|
154
|
+
total: 0,
|
|
155
|
+
accounts: ['761'],
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
name: 'D\'autres valeurs mobilières et créances de l\'actif immobilisé',
|
|
159
|
+
total: 0,
|
|
160
|
+
accounts: ['762'],
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
name: 'Autres intérêts et produits assimilés',
|
|
164
|
+
total: 0,
|
|
165
|
+
accounts: ['763', '764', '765', '768'],
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
name: 'Reprises sur dépréciations, provisions et transferts de charges financières',
|
|
169
|
+
total: 0,
|
|
170
|
+
accounts: ['786', '796'],
|
|
171
|
+
}, {
|
|
172
|
+
name: 'Différences positives de change',
|
|
173
|
+
total: 0,
|
|
174
|
+
accounts: ['766'],
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
name: 'Produits nets sur cessions de valeurs mobilières de placement',
|
|
178
|
+
total: 0,
|
|
179
|
+
accounts: ['767'],
|
|
180
|
+
},
|
|
181
|
+
],
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
name: 'Total des charges financières',
|
|
185
|
+
total: 0,
|
|
186
|
+
key: 'totalFinancialExpenses',
|
|
187
|
+
fields: [
|
|
188
|
+
{
|
|
189
|
+
name: 'Dotations aux amortissements, dépréciations et provisions',
|
|
190
|
+
total: 0,
|
|
191
|
+
accounts: ['686'],
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
name: 'Intérêts et charges assimilés',
|
|
195
|
+
total: 0,
|
|
196
|
+
accounts: ['661', '664', '665', '668'],
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
name: 'Différences négatives de change',
|
|
200
|
+
total: 0,
|
|
201
|
+
accounts: ['666'],
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
name: 'Charges nettes sur cessions de valeurs mobilières de placement',
|
|
205
|
+
total: 0,
|
|
206
|
+
accounts: ['667'],
|
|
207
|
+
},
|
|
208
|
+
],
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
name: 'Résultat financier',
|
|
212
|
+
total: 0,
|
|
213
|
+
calculation: true,
|
|
214
|
+
calculationAdd: ['totalFinancialProducts'],
|
|
215
|
+
calculationSubtract: ['totalFinancialExpenses'],
|
|
216
|
+
key: 'financialResult',
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
name: 'Résultat courant avant impôt',
|
|
220
|
+
total: 0,
|
|
221
|
+
calculation: true,
|
|
222
|
+
calculationAdd: ['totalOperatingIncome', 'totalFinancialProducts'],
|
|
223
|
+
calculationSubtract: ['totalOperatingExpenses', 'totalFinancialExpenses'],
|
|
224
|
+
key: 'profitBeforeTax',
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
name: 'Total des produits exceptionnels',
|
|
228
|
+
total: 0,
|
|
229
|
+
key: 'totalExceptionalProducts',
|
|
230
|
+
fields: [
|
|
231
|
+
{
|
|
232
|
+
name: 'Sur opérations de gestion',
|
|
233
|
+
total: 0,
|
|
234
|
+
accounts: ['771', '772'],
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
name: 'Sur opérations en capital',
|
|
238
|
+
total: 0,
|
|
239
|
+
fields: [{
|
|
240
|
+
name: 'Produits des cessions d\'éléments d\'actifs',
|
|
241
|
+
total: 0,
|
|
242
|
+
accounts: ['775'],
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
name: 'Subventions d\'investissement virées aux résultats de l\'exercice',
|
|
246
|
+
total: 0,
|
|
247
|
+
accounts: ['777'],
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
name: 'Autre',
|
|
251
|
+
total: 0,
|
|
252
|
+
accounts: ['778'],
|
|
253
|
+
},
|
|
254
|
+
],
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
name: 'Reprises sur dépréciations, provisions et transferts de charges exceptionnelles',
|
|
258
|
+
total: 0,
|
|
259
|
+
accounts: ['787', '797'],
|
|
260
|
+
},
|
|
261
|
+
],
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
name: 'Total des charges exceptionnelles',
|
|
265
|
+
total: 0,
|
|
266
|
+
key: 'totalExceptionalExpenses',
|
|
267
|
+
fields: [
|
|
268
|
+
{
|
|
269
|
+
name: 'Sur opérations de gestion',
|
|
270
|
+
total: 0,
|
|
271
|
+
accounts: ['671', '672'],
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
name: 'Sur opérations en capital',
|
|
275
|
+
total: 0,
|
|
276
|
+
fields: [{
|
|
277
|
+
name: 'Valeurs comptables des éléments immobilisés et financiers cédés',
|
|
278
|
+
total: 0,
|
|
279
|
+
accounts: ['675'],
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
name: 'Autre',
|
|
283
|
+
total: 0,
|
|
284
|
+
accounts: ['678'],
|
|
285
|
+
},
|
|
286
|
+
],
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
name: 'Dotations aux amortissements, dépréciations et provisions',
|
|
290
|
+
total: 0,
|
|
291
|
+
fields: [
|
|
292
|
+
{
|
|
293
|
+
name: 'Dotations aux provisions réglementées',
|
|
294
|
+
accounts: ['6872', '6873', '6874'],
|
|
295
|
+
total: 0,
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
name: 'Dotations aux amortissements, dépréciations et autres provisions',
|
|
299
|
+
accounts: ['6871', '6875', '6876'],
|
|
300
|
+
total: 0,
|
|
301
|
+
},
|
|
302
|
+
],
|
|
303
|
+
},
|
|
304
|
+
],
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
name: 'Résultat exceptionnel',
|
|
308
|
+
total: 0,
|
|
309
|
+
calculation: true,
|
|
310
|
+
calculationAdd: [],
|
|
311
|
+
calculationSubtract: ['totalExceptionalProducts', 'totalExceptionalExpenses'],
|
|
312
|
+
key: 'exceptionalResult',
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
name: 'Impôt sur les bénéfices',
|
|
316
|
+
total: 0,
|
|
317
|
+
key: 'incomeTax',
|
|
318
|
+
accounts: ['695'],
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
name: 'Résultat de l\'exercice',
|
|
322
|
+
total: 0,
|
|
323
|
+
calculation: true,
|
|
324
|
+
calculationAdd: ['totalOperatingIncome', 'totalFinancialProducts', 'totalExceptionalProducts', 'totalExceptionalExpenses'],
|
|
325
|
+
calculationSubtract: ['totalOperatingExpenses', 'totalFinancialExpenses', 'incomeTax'],
|
|
326
|
+
key: 'resultOfExercise',
|
|
327
|
+
},
|
|
328
|
+
];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ApiProperty } from '../../../../utils';
|
|
2
|
+
|
|
3
|
+
export class QueryIncomeStatement {
|
|
4
|
+
@ApiProperty()
|
|
5
|
+
startDate: string;
|
|
6
|
+
|
|
7
|
+
@ApiProperty()
|
|
8
|
+
endDate: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export class QueryIncomeStatementPdf {
|
|
12
|
+
@ApiProperty()
|
|
13
|
+
startDate: string;
|
|
14
|
+
|
|
15
|
+
@ApiProperty()
|
|
16
|
+
endDate: string;
|
|
17
|
+
}
|
|
@@ -49,6 +49,9 @@ export enum Code {
|
|
|
49
49
|
// BankAccount
|
|
50
50
|
missingParamAccountNumber = 'missing_param_account_number',
|
|
51
51
|
accountNumberParamNotFound = 'account_number_param_not_found',
|
|
52
|
+
|
|
53
|
+
// Income statement
|
|
54
|
+
invalidIncomeStatementList = 'invalid_income_statement_list',
|
|
52
55
|
}
|
|
53
56
|
|
|
54
57
|
export interface IApiError {
|
package/ts/types/index.ts
CHANGED
|
@@ -298,6 +298,7 @@ export * from './Enum/SurveyType';
|
|
|
298
298
|
export * from './Enum/SurveyTypeDatas';
|
|
299
299
|
export * from './Enum/PartnerType';
|
|
300
300
|
export * from './Enum/ThirdPartyType';
|
|
301
|
+
export * from './Enum/IncomeStatement';
|
|
301
302
|
|
|
302
303
|
// Interfaces API
|
|
303
304
|
export * from './Interface/api/businessPartner/ReadBusinessPartner';
|
|
@@ -324,3 +325,5 @@ export * from './Interface/api/mailInvoice/CreateInvoiceMail';
|
|
|
324
325
|
export * from './Interface/api/mailInvoice/UpdateInvoiceMail';
|
|
325
326
|
export * from './Interface/api/partner/CreatePartner';
|
|
326
327
|
export * from './Interface/api/generalLedger/QueryGeneralLedger';
|
|
328
|
+
export * from './Interface/api/incomeStatement/QueryIncomeStatement';
|
|
329
|
+
export * from './Interface/api/incomeStatement/ReadIncomeStatement';
|