@silexpert/core 0.4.144 → 0.4.147
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/es/api/resources/Payment.d.ts +6 -0
- package/es/api/resources/Payment.d.ts.map +1 -0
- package/es/api/resources/Payment.js +13 -0
- package/es/api/resources/Payment.js.map +1 -0
- package/es/api/resources/VatDeclaration.d.ts +3 -0
- package/es/api/resources/VatDeclaration.d.ts.map +1 -1
- package/es/api/resources/VatDeclaration.js +6 -0
- package/es/api/resources/VatDeclaration.js.map +1 -1
- 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/BalanceSheetQuestion.d.ts +6 -1
- package/es/types/Enum/BalanceSheetQuestion.d.ts.map +1 -1
- package/es/types/Enum/BalanceSheetQuestion.js +5 -0
- package/es/types/Enum/BalanceSheetQuestion.js.map +1 -1
- package/es/types/Enum/BalanceSheetQuestionWording.d.ts +17 -4
- package/es/types/Enum/BalanceSheetQuestionWording.d.ts.map +1 -1
- package/es/types/Enum/BalanceSheetQuestionWording.js +14 -4
- package/es/types/Enum/BalanceSheetQuestionWording.js.map +1 -1
- package/es/types/Enum/KilometricAllowanceScale.d.ts +4 -1
- package/es/types/Enum/KilometricAllowanceScale.d.ts.map +1 -1
- package/es/types/Enum/KilometricAllowanceScale.js +227 -106
- package/es/types/Enum/KilometricAllowanceScale.js.map +1 -1
- package/es/types/Enum/VatDeclarationType.d.ts +15 -0
- package/es/types/Enum/VatDeclarationType.d.ts.map +1 -0
- package/es/types/Enum/VatDeclarationType.js +238 -0
- package/es/types/Enum/VatDeclarationType.js.map +1 -0
- package/es/types/Interface/api/jeDeclare/Util.d.ts +1 -1
- package/es/types/Interface/api/jeDeclare/Util.d.ts.map +1 -1
- package/es/types/Interface/api/jeDeclare/Util.js.map +1 -1
- package/es/types/Interface/api/payment/QueryMonthlyPayment.d.ts +4 -0
- package/es/types/Interface/api/payment/QueryMonthlyPayment.d.ts.map +1 -0
- package/es/types/Interface/api/payment/QueryMonthlyPayment.js +24 -0
- package/es/types/Interface/api/payment/QueryMonthlyPayment.js.map +1 -0
- package/es/types/Interface/api/user/CreateCoworker.d.ts +8 -10
- package/es/types/Interface/api/user/CreateCoworker.d.ts.map +1 -1
- package/es/types/Interface/api/user/CreateCoworker.js +17 -12
- package/es/types/Interface/api/user/CreateCoworker.js.map +1 -1
- package/es/types/Interface/api/vatDeclaration/ReadVatVariousOperations.d.ts +10 -0
- package/es/types/Interface/api/vatDeclaration/ReadVatVariousOperations.d.ts.map +1 -0
- package/es/types/Interface/api/vatDeclaration/ReadVatVariousOperations.js +2 -0
- package/es/types/Interface/api/vatDeclaration/ReadVatVariousOperations.js.map +1 -0
- package/es/types/Interface/api/vatDeclaration/ResultFormatToEntries.d.ts +6 -0
- package/es/types/Interface/api/vatDeclaration/ResultFormatToEntries.d.ts.map +1 -0
- package/es/types/Interface/api/vatDeclaration/ResultFormatToEntries.js +2 -0
- package/es/types/Interface/api/vatDeclaration/ResultFormatToEntries.js.map +1 -0
- package/es/types/Interface/models/IApiError.d.ts +1 -0
- package/es/types/Interface/models/IApiError.d.ts.map +1 -1
- package/es/types/Interface/models/IApiError.js +1 -0
- package/es/types/Interface/models/IApiError.js.map +1 -1
- package/es/types/Interface/models/IUser.d.ts +50 -50
- package/es/types/Interface/models/IUser.d.ts.map +1 -1
- package/es/types/Interface/models/IUser.js.map +1 -1
- package/es/types/index.d.ts +4 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +4 -0
- package/es/types/index.js.map +1 -1
- package/es/utils/brands.d.ts +2 -1
- package/es/utils/brands.d.ts.map +1 -1
- package/es/utils/brands.js +12 -1
- package/es/utils/brands.js.map +1 -1
- package/js/api/resources/Payment.js +24 -0
- package/js/api/resources/Payment.js.map +1 -0
- package/js/api/resources/VatDeclaration.js +8 -0
- package/js/api/resources/VatDeclaration.js.map +1 -1
- package/js/api/resources.js +3 -0
- package/js/api/resources.js.map +1 -1
- package/js/types/Enum/BalanceSheetQuestion.js +6 -0
- package/js/types/Enum/BalanceSheetQuestion.js.map +1 -1
- package/js/types/Enum/BalanceSheetQuestionWording.js +17 -4
- package/js/types/Enum/BalanceSheetQuestionWording.js.map +1 -1
- package/js/types/Enum/KilometricAllowanceScale.js +471 -230
- package/js/types/Enum/KilometricAllowanceScale.js.map +1 -1
- package/js/types/Enum/VatDeclarationType.js +234 -0
- package/js/types/Enum/VatDeclarationType.js.map +1 -0
- package/js/types/Interface/api/payment/QueryMonthlyPayment.js +34 -0
- package/js/types/Interface/api/payment/QueryMonthlyPayment.js.map +1 -0
- package/js/types/Interface/api/user/CreateCoworker.js +18 -18
- package/js/types/Interface/api/user/CreateCoworker.js.map +1 -1
- package/js/types/Interface/api/vatDeclaration/ReadVatVariousOperations.js +6 -0
- package/js/types/Interface/api/vatDeclaration/ReadVatVariousOperations.js.map +1 -0
- package/js/types/Interface/api/vatDeclaration/ResultFormatToEntries.js +6 -0
- package/js/types/Interface/api/vatDeclaration/ResultFormatToEntries.js.map +1 -0
- package/js/types/Interface/models/IApiError.js +2 -1
- package/js/types/Interface/models/IApiError.js.map +1 -1
- package/js/types/index.js +48 -0
- package/js/types/index.js.map +1 -1
- package/js/utils/brands.js +10 -1
- package/js/utils/brands.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Payment.ts +14 -0
- package/ts/api/resources/VatDeclaration.ts +9 -1
- package/ts/api/resources.ts +2 -0
- package/ts/types/Enum/BalanceSheetQuestion.ts +7 -0
- package/ts/types/Enum/BalanceSheetQuestionWording.ts +20 -4
- package/ts/types/Enum/KilometricAllowanceScale.ts +233 -107
- package/ts/types/Enum/VatDeclarationType.ts +253 -0
- package/ts/types/Interface/api/jeDeclare/Util.ts +1 -1
- package/ts/types/Interface/api/payment/QueryMonthlyPayment.ts +13 -0
- package/ts/types/Interface/api/user/CreateCoworker.ts +24 -17
- package/ts/types/Interface/api/vatDeclaration/ReadVatVariousOperations.ts +9 -0
- package/ts/types/Interface/api/vatDeclaration/ResultFormatToEntries.ts +5 -0
- package/ts/types/Interface/models/IApiError.ts +1 -0
- package/ts/types/Interface/models/IUser.ts +50 -50
- package/ts/types/index.ts +4 -0
- package/ts/utils/brands.ts +9 -1
|
@@ -12,8 +12,13 @@ type KilometricAllowanceScalePowerContent = {
|
|
|
12
12
|
[key: string]: KilometricAllowanceScaleDistanceContent
|
|
13
13
|
};
|
|
14
14
|
|
|
15
|
+
type KilometricAllowanceScaleYearContent = {
|
|
16
|
+
[key: string]: KilometricAllowanceScalePowerContent
|
|
17
|
+
|
|
18
|
+
};
|
|
19
|
+
|
|
15
20
|
export type KilometricAllowanceScaleContent = {
|
|
16
|
-
|
|
21
|
+
[key: string]: KilometricAllowanceScaleYearContent
|
|
17
22
|
};
|
|
18
23
|
|
|
19
24
|
export type KilometricAllowanceScaleType = {
|
|
@@ -21,120 +26,241 @@ export type KilometricAllowanceScaleType = {
|
|
|
21
26
|
};
|
|
22
27
|
|
|
23
28
|
export const KilometricAllowanceScale: KilometricAllowanceScaleType = {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
29
|
+
2021: {
|
|
30
|
+
1: {
|
|
31
|
+
power: {
|
|
32
|
+
1: {
|
|
33
|
+
km: [
|
|
34
|
+
{ maxDistance: 5000, ratio: 0.456, fixAmount: 0 },
|
|
35
|
+
{ maxDistance: 20000, ratio: 0.273, fixAmount: 915 },
|
|
36
|
+
{ maxDistance: 0, ratio: 0.318, fixAmount: 0 },
|
|
37
|
+
],
|
|
38
|
+
},
|
|
39
|
+
2: {
|
|
40
|
+
km: [
|
|
41
|
+
{ maxDistance: 5000, ratio: 0.456, fixAmount: 0 },
|
|
42
|
+
{ maxDistance: 20000, ratio: 0.273, fixAmount: 915 },
|
|
43
|
+
{ maxDistance: 0, ratio: 0.318, fixAmount: 0 },
|
|
44
|
+
],
|
|
45
|
+
},
|
|
46
|
+
3: {
|
|
47
|
+
km: [
|
|
48
|
+
{ maxDistance: 5000, ratio: 0.456, fixAmount: 0 },
|
|
49
|
+
{ maxDistance: 20000, ratio: 0.273, fixAmount: 915 },
|
|
50
|
+
{ maxDistance: 0, ratio: 0.318, fixAmount: 0 },
|
|
51
|
+
],
|
|
52
|
+
},
|
|
53
|
+
4: {
|
|
54
|
+
km: [
|
|
55
|
+
{ maxDistance: 5000, ratio: 0.523, fixAmount: 0 },
|
|
56
|
+
{ maxDistance: 20000, ratio: 0.294, fixAmount: 1147 },
|
|
57
|
+
{ maxDistance: 0, ratio: 0.352, fixAmount: 0 },
|
|
58
|
+
],
|
|
59
|
+
},
|
|
60
|
+
5: {
|
|
61
|
+
km: [
|
|
62
|
+
{ maxDistance: 5000, ratio: 0.548, fixAmount: 0 },
|
|
63
|
+
{ maxDistance: 20000, ratio: 0.308, fixAmount: 1200 },
|
|
64
|
+
{ maxDistance: 0, ratio: 0.368, fixAmount: 0 },
|
|
65
|
+
],
|
|
66
|
+
},
|
|
67
|
+
6: {
|
|
68
|
+
km: [
|
|
69
|
+
{ maxDistance: 5000, ratio: 0.574, fixAmount: 0 },
|
|
70
|
+
{ maxDistance: 20000, ratio: 0.323, fixAmount: 1256 },
|
|
71
|
+
{ maxDistance: 0, ratio: 0.386, fixAmount: 0 },
|
|
72
|
+
],
|
|
73
|
+
},
|
|
74
|
+
7: {
|
|
75
|
+
km: [
|
|
76
|
+
{ maxDistance: 5000, ratio: 0.601, fixAmount: 0 },
|
|
77
|
+
{ maxDistance: 20000, ratio: 0.340, fixAmount: 1301 },
|
|
78
|
+
{ maxDistance: 0, ratio: 0.405, fixAmount: 0 },
|
|
79
|
+
],
|
|
80
|
+
},
|
|
39
81
|
},
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
82
|
+
},
|
|
83
|
+
2: {
|
|
84
|
+
power: {
|
|
85
|
+
1: {
|
|
86
|
+
km: [
|
|
87
|
+
{ maxDistance: 3000, ratio: 0.341, fixAmount: 0 },
|
|
88
|
+
{ maxDistance: 6000, ratio: 0.085, fixAmount: 768 },
|
|
89
|
+
{ maxDistance: 0, ratio: 0.213, fixAmount: 0 },
|
|
90
|
+
],
|
|
91
|
+
},
|
|
92
|
+
2: {
|
|
93
|
+
km: [
|
|
94
|
+
{ maxDistance: 3000, ratio: 0.341, fixAmount: 0 },
|
|
95
|
+
{ maxDistance: 6000, ratio: 0.085, fixAmount: 768 },
|
|
96
|
+
{ maxDistance: 0, ratio: 0.213, fixAmount: 0 },
|
|
97
|
+
],
|
|
98
|
+
},
|
|
99
|
+
3: {
|
|
100
|
+
km: [
|
|
101
|
+
{ maxDistance: 3000, ratio: 0.404, fixAmount: 0 },
|
|
102
|
+
{ maxDistance: 6000, ratio: 0.071, fixAmount: 999 },
|
|
103
|
+
{ maxDistance: 0, ratio: 0.237, fixAmount: 0 },
|
|
104
|
+
],
|
|
105
|
+
},
|
|
106
|
+
4: {
|
|
107
|
+
km: [
|
|
108
|
+
{ maxDistance: 3000, ratio: 0.404, fixAmount: 0 },
|
|
109
|
+
{ maxDistance: 6000, ratio: 0.071, fixAmount: 999 },
|
|
110
|
+
{ maxDistance: 0, ratio: 0.237, fixAmount: 0 },
|
|
111
|
+
],
|
|
112
|
+
},
|
|
113
|
+
5: {
|
|
114
|
+
km: [
|
|
115
|
+
{ maxDistance: 3000, ratio: 0.404, fixAmount: 0 },
|
|
116
|
+
{ maxDistance: 6000, ratio: 0.071, fixAmount: 999 },
|
|
117
|
+
{ maxDistance: 0, ratio: 0.237, fixAmount: 0 },
|
|
118
|
+
],
|
|
119
|
+
},
|
|
120
|
+
6: {
|
|
121
|
+
km: [
|
|
122
|
+
{ maxDistance: 3000, ratio: 0.523, fixAmount: 0 },
|
|
123
|
+
{ maxDistance: 6000, ratio: 0.068, fixAmount: 1365 },
|
|
124
|
+
{ maxDistance: 0, ratio: 0.295, fixAmount: 0 },
|
|
125
|
+
],
|
|
126
|
+
},
|
|
127
|
+
7: {
|
|
128
|
+
km: [
|
|
129
|
+
{ maxDistance: 3000, ratio: 0.523, fixAmount: 0 },
|
|
130
|
+
{ maxDistance: 6000, ratio: 0.068, fixAmount: 1365 },
|
|
131
|
+
{ maxDistance: 0, ratio: 0.295, fixAmount: 0 },
|
|
132
|
+
],
|
|
133
|
+
},
|
|
67
134
|
},
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
135
|
+
},
|
|
136
|
+
3: {
|
|
137
|
+
power: {
|
|
138
|
+
1: {
|
|
139
|
+
km: [
|
|
140
|
+
{ maxDistance: 2000, ratio: 0.272, fixAmount: 0 },
|
|
141
|
+
{ maxDistance: 5000, ratio: 0.064, fixAmount: 416 },
|
|
142
|
+
{ maxDistance: 0, ratio: 0.147, fixAmount: 0 },
|
|
143
|
+
],
|
|
144
|
+
},
|
|
74
145
|
},
|
|
75
146
|
},
|
|
76
147
|
},
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
148
|
+
2022: {
|
|
149
|
+
1: {
|
|
150
|
+
power: {
|
|
151
|
+
1: {
|
|
152
|
+
km: [
|
|
153
|
+
{ maxDistance: 5000, ratio: 0.502, fixAmount: 0 },
|
|
154
|
+
{ maxDistance: 20000, ratio: 0.3, fixAmount: 1007 },
|
|
155
|
+
{ maxDistance: 0, ratio: 0.35, fixAmount: 0 },
|
|
156
|
+
],
|
|
157
|
+
},
|
|
158
|
+
2: {
|
|
159
|
+
km: [
|
|
160
|
+
{ maxDistance: 5000, ratio: 0.502, fixAmount: 0 },
|
|
161
|
+
{ maxDistance: 20000, ratio: 0.3, fixAmount: 1007 },
|
|
162
|
+
{ maxDistance: 0, ratio: 0.35, fixAmount: 0 },
|
|
163
|
+
],
|
|
164
|
+
},
|
|
165
|
+
3: {
|
|
166
|
+
km: [
|
|
167
|
+
{ maxDistance: 5000, ratio: 0.502, fixAmount: 0 },
|
|
168
|
+
{ maxDistance: 20000, ratio: 0.3, fixAmount: 1007 },
|
|
169
|
+
{ maxDistance: 0, ratio: 0.35, fixAmount: 0 },
|
|
170
|
+
],
|
|
171
|
+
},
|
|
172
|
+
4: {
|
|
173
|
+
km: [
|
|
174
|
+
{ maxDistance: 5000, ratio: 0.575, fixAmount: 0 },
|
|
175
|
+
{ maxDistance: 20000, ratio: 0.323, fixAmount: 1262 },
|
|
176
|
+
{ maxDistance: 0, ratio: 0.387, fixAmount: 0 },
|
|
177
|
+
],
|
|
178
|
+
},
|
|
179
|
+
5: {
|
|
180
|
+
km: [
|
|
181
|
+
{ maxDistance: 5000, ratio: 0.603, fixAmount: 0 },
|
|
182
|
+
{ maxDistance: 20000, ratio: 0.339, fixAmount: 1320 },
|
|
183
|
+
{ maxDistance: 0, ratio: 0.405, fixAmount: 0 },
|
|
184
|
+
],
|
|
185
|
+
},
|
|
186
|
+
6: {
|
|
187
|
+
km: [
|
|
188
|
+
{ maxDistance: 5000, ratio: 0.631, fixAmount: 0 },
|
|
189
|
+
{ maxDistance: 20000, ratio: 0.355, fixAmount: 1382 },
|
|
190
|
+
{ maxDistance: 0, ratio: 0.425, fixAmount: 0 },
|
|
191
|
+
],
|
|
192
|
+
},
|
|
193
|
+
7: {
|
|
194
|
+
km: [
|
|
195
|
+
{ maxDistance: 5000, ratio: 0.661, fixAmount: 0 },
|
|
196
|
+
{ maxDistance: 20000, ratio: 0.374, fixAmount: 1435 },
|
|
197
|
+
{ maxDistance: 0, ratio: 0.446, fixAmount: 0 },
|
|
198
|
+
],
|
|
199
|
+
},
|
|
106
200
|
},
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
201
|
+
},
|
|
202
|
+
2: {
|
|
203
|
+
power: {
|
|
204
|
+
1: {
|
|
205
|
+
km: [
|
|
206
|
+
{ maxDistance: 3000, ratio: 0.375, fixAmount: 0 },
|
|
207
|
+
{ maxDistance: 6000, ratio: 0.094, fixAmount: 845 },
|
|
208
|
+
{ maxDistance: 0, ratio: 0.234, fixAmount: 0 },
|
|
209
|
+
],
|
|
210
|
+
},
|
|
211
|
+
2: {
|
|
212
|
+
km: [
|
|
213
|
+
{ maxDistance: 3000, ratio: 0.375, fixAmount: 0 },
|
|
214
|
+
{ maxDistance: 6000, ratio: 0.094, fixAmount: 845 },
|
|
215
|
+
{ maxDistance: 0, ratio: 0.234, fixAmount: 0 },
|
|
216
|
+
],
|
|
217
|
+
},
|
|
218
|
+
3: {
|
|
219
|
+
km: [
|
|
220
|
+
{ maxDistance: 3000, ratio: 0.444, fixAmount: 0 },
|
|
221
|
+
{ maxDistance: 6000, ratio: 0.078, fixAmount: 1099 },
|
|
222
|
+
{ maxDistance: 0, ratio: 0.261, fixAmount: 0 },
|
|
223
|
+
],
|
|
224
|
+
},
|
|
225
|
+
4: {
|
|
226
|
+
km: [
|
|
227
|
+
{ maxDistance: 3000, ratio: 0.444, fixAmount: 0 },
|
|
228
|
+
{ maxDistance: 6000, ratio: 0.078, fixAmount: 1099 },
|
|
229
|
+
{ maxDistance: 0, ratio: 0.261, fixAmount: 0 },
|
|
230
|
+
],
|
|
231
|
+
},
|
|
232
|
+
5: {
|
|
233
|
+
km: [
|
|
234
|
+
{ maxDistance: 3000, ratio: 0.444, fixAmount: 0 },
|
|
235
|
+
{ maxDistance: 6000, ratio: 0.078, fixAmount: 1099 },
|
|
236
|
+
{ maxDistance: 0, ratio: 0.261, fixAmount: 0 },
|
|
237
|
+
],
|
|
238
|
+
},
|
|
239
|
+
6: {
|
|
240
|
+
km: [
|
|
241
|
+
{ maxDistance: 3000, ratio: 0.575, fixAmount: 0 },
|
|
242
|
+
{ maxDistance: 6000, ratio: 0.075, fixAmount: 1502 },
|
|
243
|
+
{ maxDistance: 0, ratio: 0.325, fixAmount: 0 },
|
|
244
|
+
],
|
|
245
|
+
},
|
|
246
|
+
7: {
|
|
247
|
+
km: [
|
|
248
|
+
{ maxDistance: 3000, ratio: 0.575, fixAmount: 0 },
|
|
249
|
+
{ maxDistance: 6000, ratio: 0.075, fixAmount: 1502 },
|
|
250
|
+
{ maxDistance: 0, ratio: 0.325, fixAmount: 0 },
|
|
251
|
+
],
|
|
252
|
+
},
|
|
127
253
|
},
|
|
128
254
|
},
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
255
|
+
3: {
|
|
256
|
+
power: {
|
|
257
|
+
1: {
|
|
258
|
+
km: [
|
|
259
|
+
{ maxDistance: 2000, ratio: 0.299, fixAmount: 0 },
|
|
260
|
+
{ maxDistance: 5000, ratio: 0.07, fixAmount: 458 },
|
|
261
|
+
{ maxDistance: 0, ratio: 0.162, fixAmount: 0 },
|
|
262
|
+
],
|
|
263
|
+
},
|
|
138
264
|
},
|
|
139
265
|
},
|
|
140
266
|
},
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
import { IAccount } from '../Interface/models/IAccount';
|
|
2
|
+
|
|
3
|
+
export const accountList3310: Array<number> = [
|
|
4
|
+
445720, 445705, 445710, 445785, 445721, 445820,
|
|
5
|
+
445200, 445662, 445620, 445660, 445840, 445670_1,
|
|
6
|
+
445830, 445670_2, 445680, 445510,
|
|
7
|
+
];
|
|
8
|
+
|
|
9
|
+
export const accountList3517: Array<number> = [
|
|
10
|
+
445720, 445705, 445710, 445785, 445721, 445700,
|
|
11
|
+
445820, 445200, 445662, 445620, 445660, 445840,
|
|
12
|
+
445820, 445810, 445670, 445830, 445670, 445810,
|
|
13
|
+
445680, 445510,
|
|
14
|
+
];
|
|
15
|
+
|
|
16
|
+
export const accountInfo3310: Record<number, AccountInfo> = {
|
|
17
|
+
445720: {
|
|
18
|
+
number: 445720,
|
|
19
|
+
fields: ['ligne08Tva'],
|
|
20
|
+
fieldsToSubtract: ['ligne17'],
|
|
21
|
+
type: 'debit',
|
|
22
|
+
},
|
|
23
|
+
445705: {
|
|
24
|
+
number: 445705,
|
|
25
|
+
fields: ['ligne09Tva'],
|
|
26
|
+
fieldsToSubtract: [],
|
|
27
|
+
type: 'debit',
|
|
28
|
+
},
|
|
29
|
+
445710: {
|
|
30
|
+
number: 445710,
|
|
31
|
+
fields: ['ligne9BTva'],
|
|
32
|
+
fieldsToSubtract: [],
|
|
33
|
+
type: 'debit',
|
|
34
|
+
},
|
|
35
|
+
445785: {
|
|
36
|
+
number: 445785,
|
|
37
|
+
fields: ['ligne10Tva'],
|
|
38
|
+
fieldsToSubtract: [],
|
|
39
|
+
type: 'debit',
|
|
40
|
+
},
|
|
41
|
+
445721: {
|
|
42
|
+
number: 445721,
|
|
43
|
+
fields: ['ligne11Tva'],
|
|
44
|
+
fieldsToSubtract: [],
|
|
45
|
+
type: 'debit',
|
|
46
|
+
},
|
|
47
|
+
445820: {
|
|
48
|
+
number: 445820,
|
|
49
|
+
fields: ['ligne13', 'ligne14', 'ligne15', 'ligne5B'],
|
|
50
|
+
fieldsToSubtract: [],
|
|
51
|
+
type: 'debit',
|
|
52
|
+
},
|
|
53
|
+
445200: {
|
|
54
|
+
number: 445200,
|
|
55
|
+
fields: ['ligne7C', 'ligne17'],
|
|
56
|
+
fieldsToSubtract: [],
|
|
57
|
+
type: 'debit',
|
|
58
|
+
},
|
|
59
|
+
445662: {
|
|
60
|
+
number: 445662,
|
|
61
|
+
fields: ['ligne7C', 'ligne17'],
|
|
62
|
+
fieldsToSubtract: [],
|
|
63
|
+
type: 'credit',
|
|
64
|
+
},
|
|
65
|
+
445620: {
|
|
66
|
+
number: 445620,
|
|
67
|
+
fields: ['ligne19'],
|
|
68
|
+
fieldsToSubtract: [],
|
|
69
|
+
type: 'credit',
|
|
70
|
+
},
|
|
71
|
+
445660: {
|
|
72
|
+
number: 445660,
|
|
73
|
+
fields: ['ligne20'],
|
|
74
|
+
fieldsToSubtract: ['ligne7C', 'ligne17'],
|
|
75
|
+
type: 'credit',
|
|
76
|
+
},
|
|
77
|
+
445840: {
|
|
78
|
+
number: 445840,
|
|
79
|
+
fields: ['ligne21'],
|
|
80
|
+
fieldsToSubtract: [],
|
|
81
|
+
type: 'credit',
|
|
82
|
+
},
|
|
83
|
+
445670_1: {
|
|
84
|
+
number: 445670,
|
|
85
|
+
fields: ['ligne22'],
|
|
86
|
+
fieldsToSubtract: [],
|
|
87
|
+
type: 'credit',
|
|
88
|
+
},
|
|
89
|
+
445830: {
|
|
90
|
+
number: 445830,
|
|
91
|
+
fields: ['ligne26'],
|
|
92
|
+
fieldsToSubtract: [],
|
|
93
|
+
type: 'debit',
|
|
94
|
+
},
|
|
95
|
+
445670_2: {
|
|
96
|
+
number: 445670,
|
|
97
|
+
fields: ['ligne27'],
|
|
98
|
+
fieldsToSubtract: [],
|
|
99
|
+
type: 'debit',
|
|
100
|
+
},
|
|
101
|
+
445810: {
|
|
102
|
+
number: 445810,
|
|
103
|
+
fields: ['A100224_0'],
|
|
104
|
+
fieldsToSubtract: [],
|
|
105
|
+
type: 'debit',
|
|
106
|
+
},
|
|
107
|
+
445680: {
|
|
108
|
+
number: 445680,
|
|
109
|
+
fields: ['A100204_0'],
|
|
110
|
+
fieldsToSubtract: [],
|
|
111
|
+
type: 'credit',
|
|
112
|
+
},
|
|
113
|
+
445510: {
|
|
114
|
+
number: 445510,
|
|
115
|
+
fields: ['A100103_0'],
|
|
116
|
+
fieldsToSubtract: [],
|
|
117
|
+
type: 'credit',
|
|
118
|
+
},
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
export const accountInfo3517: Record<number, AccountInfo> = {
|
|
122
|
+
445720: {
|
|
123
|
+
number: 445720,
|
|
124
|
+
fields: ['A904072_0', 'A100147_0', 'A100149_0', 'A100161_0'],
|
|
125
|
+
fieldsToSubtract: [],
|
|
126
|
+
type: 'debit',
|
|
127
|
+
},
|
|
128
|
+
445705: {
|
|
129
|
+
number: 445705,
|
|
130
|
+
fields: ['A100140_0'],
|
|
131
|
+
fieldsToSubtract: [],
|
|
132
|
+
type: 'debit',
|
|
133
|
+
},
|
|
134
|
+
445710: {
|
|
135
|
+
number: 445710,
|
|
136
|
+
fields: ['A904074_0'],
|
|
137
|
+
fieldsToSubtract: [],
|
|
138
|
+
type: 'debit',
|
|
139
|
+
},
|
|
140
|
+
445785: {
|
|
141
|
+
number: 445785,
|
|
142
|
+
fields: ['A100168_0'],
|
|
143
|
+
fieldsToSubtract: [],
|
|
144
|
+
type: 'debit',
|
|
145
|
+
},
|
|
146
|
+
445721: {
|
|
147
|
+
number: 445721,
|
|
148
|
+
fields: ['A100166_0'],
|
|
149
|
+
fieldsToSubtract: [],
|
|
150
|
+
type: 'debit',
|
|
151
|
+
},
|
|
152
|
+
445700: {
|
|
153
|
+
number: 445700,
|
|
154
|
+
fields: ['A100083_0', 'A100145_0', 'A100185_0', 'A107009_0'],
|
|
155
|
+
fieldsToSubtract: [],
|
|
156
|
+
type: 'debit',
|
|
157
|
+
},
|
|
158
|
+
445820_1: {
|
|
159
|
+
number: 445820,
|
|
160
|
+
fields: ['A100197_0', 'A100087_0', 'A905878_0'],
|
|
161
|
+
fieldsToSubtract: [],
|
|
162
|
+
type: 'debit',
|
|
163
|
+
},
|
|
164
|
+
445200: {
|
|
165
|
+
number: 445200,
|
|
166
|
+
fields: ['A900775_0', 'A100150_0'],
|
|
167
|
+
fieldsToSubtract: [],
|
|
168
|
+
type: 'debit',
|
|
169
|
+
},
|
|
170
|
+
445662: {
|
|
171
|
+
number: 445662,
|
|
172
|
+
fields: ['A900775_0', 'A100150_0'],
|
|
173
|
+
fieldsToSubtract: [],
|
|
174
|
+
type: 'credit',
|
|
175
|
+
},
|
|
176
|
+
445620: {
|
|
177
|
+
number: 445620,
|
|
178
|
+
fields: ['A100090_0'],
|
|
179
|
+
fieldsToSubtract: [],
|
|
180
|
+
type: 'credit',
|
|
181
|
+
},
|
|
182
|
+
445660: {
|
|
183
|
+
number: 445660,
|
|
184
|
+
fields: ['A100091_0', 'A100192_0'],
|
|
185
|
+
fieldsToSubtract: ['A900775_0', 'A100150_0'],
|
|
186
|
+
type: 'credit',
|
|
187
|
+
},
|
|
188
|
+
445840: {
|
|
189
|
+
number: 445840,
|
|
190
|
+
fields: ['A100092_0'],
|
|
191
|
+
fieldsToSubtract: [],
|
|
192
|
+
type: 'credit',
|
|
193
|
+
},
|
|
194
|
+
445820_2: {
|
|
195
|
+
number: 445820,
|
|
196
|
+
fields: ['A905879_0'],
|
|
197
|
+
fieldsToSubtract: [],
|
|
198
|
+
type: 'credit',
|
|
199
|
+
},
|
|
200
|
+
445810_1: {
|
|
201
|
+
number: 445810,
|
|
202
|
+
fields: ['A100194_0'],
|
|
203
|
+
fieldsToSubtract: [],
|
|
204
|
+
type: 'credit',
|
|
205
|
+
},
|
|
206
|
+
445670_1: {
|
|
207
|
+
number: 445670,
|
|
208
|
+
fields: ['A100151_0'],
|
|
209
|
+
fieldsToSubtract: [],
|
|
210
|
+
type: 'credit',
|
|
211
|
+
},
|
|
212
|
+
445830: {
|
|
213
|
+
number: 445830,
|
|
214
|
+
fields: ['A100097_0'],
|
|
215
|
+
fieldsToSubtract: [],
|
|
216
|
+
type: 'debit',
|
|
217
|
+
},
|
|
218
|
+
445670_2: {
|
|
219
|
+
number: 445670,
|
|
220
|
+
fields: ['A100098_0'],
|
|
221
|
+
fieldsToSubtract: [],
|
|
222
|
+
type: 'debit',
|
|
223
|
+
},
|
|
224
|
+
445810_2: {
|
|
225
|
+
number: 445810,
|
|
226
|
+
fields: ['A100224_0'],
|
|
227
|
+
fieldsToSubtract: [],
|
|
228
|
+
type: 'debit',
|
|
229
|
+
},
|
|
230
|
+
445680: {
|
|
231
|
+
number: 445680,
|
|
232
|
+
fields: ['A100204_0'],
|
|
233
|
+
fieldsToSubtract: [],
|
|
234
|
+
type: 'credit',
|
|
235
|
+
},
|
|
236
|
+
445510: {
|
|
237
|
+
number: 445510,
|
|
238
|
+
fields: ['A100103_0'],
|
|
239
|
+
fieldsToSubtract: [],
|
|
240
|
+
type: 'credit',
|
|
241
|
+
},
|
|
242
|
+
};
|
|
243
|
+
|
|
244
|
+
export interface EntriesListField {
|
|
245
|
+
fields: Array<string>,
|
|
246
|
+
fieldsToSubtract: Array<string>,
|
|
247
|
+
account: IAccount,
|
|
248
|
+
type: 'debit' | 'credit',
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
export interface AccountInfo extends Pick<EntriesListField, 'fields' | 'fieldsToSubtract' | 'type'> {
|
|
252
|
+
number: number;
|
|
253
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IsDefined } from 'class-validator';
|
|
2
|
+
import { ApiProperty } from '../../../../utils';
|
|
3
|
+
|
|
4
|
+
export class QueryMonthlyPayment {
|
|
5
|
+
@IsDefined()
|
|
6
|
+
@ApiProperty({
|
|
7
|
+
description: 'date of the month',
|
|
8
|
+
required: true,
|
|
9
|
+
type: Date,
|
|
10
|
+
example: '2022-03',
|
|
11
|
+
})
|
|
12
|
+
dateMonth: Date;
|
|
13
|
+
}
|