@silexpert/core 1.3.5 → 1.3.7
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/cjs/types/Enum/Aspone.d.ts +22 -4
- package/dist/cjs/types/Enum/Aspone.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Aspone.js +23 -47
- package/dist/cjs/types/Enum/Aspone.js.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheetQuestion.d.ts +1 -0
- package/dist/cjs/types/Enum/BalanceSheetQuestion.d.ts.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheetQuestion.js +1 -0
- package/dist/cjs/types/Enum/BalanceSheetQuestion.js.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheetQuestionWording.d.ts +1 -0
- package/dist/cjs/types/Enum/BalanceSheetQuestionWording.d.ts.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheetQuestionWording.js +1 -0
- package/dist/cjs/types/Enum/BalanceSheetQuestionWording.js.map +1 -1
- package/dist/cjs/types/Enum/TimeSlot.js +11 -11
- package/dist/cjs/types/Enum/TimeSlot.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2031.d.ts +186 -0
- package/dist/cjs/types/Interface/api/cerfa/2031.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2031.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2033.d.ts +112 -16
- package/dist/cjs/types/Interface/api/cerfa/2033.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2033.js +4 -1
- package/dist/cjs/types/Interface/api/cerfa/2033.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2035.d.ts +216 -1
- package/dist/cjs/types/Interface/api/cerfa/2035.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2035.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2065.d.ts +114 -1
- package/dist/cjs/types/Interface/api/cerfa/2065.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2065.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2069RCI.d.ts +86 -6
- package/dist/cjs/types/Interface/api/cerfa/2069RCI.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2069RCI.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/3310.d.ts +15 -4
- package/dist/cjs/types/Interface/api/cerfa/3310.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/3310.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/ReadCerfa.d.ts +5 -5
- package/dist/cjs/types/Interface/api/cerfa/ReadCerfa.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/ReadCerfa.js.map +1 -1
- package/dist/cjs/utils/cerfa.js +1 -1
- package/dist/cjs/utils/cerfa.js.map +1 -1
- package/dist/cjs/utils/commercialManagement/internationalization/choices.d.ts.map +1 -1
- package/dist/cjs/utils/commercialManagement/internationalization/choices.js +2 -0
- package/dist/cjs/utils/commercialManagement/internationalization/choices.js.map +1 -1
- package/dist/cjs/utils/commercialManagement/internationalization/type.d.ts +1 -0
- package/dist/cjs/utils/commercialManagement/internationalization/type.d.ts.map +1 -1
- package/dist/cjs/utils/commercialManagement/internationalization/type.js.map +1 -1
- package/dist/cjs/utils/commercialManagement/templates/body.js +1 -1
- package/dist/cjs/utils/commercialManagement/templates/body.js.map +1 -1
- package/dist/cjs/utils/vat/3310/century25.d.ts +8 -0
- package/dist/cjs/utils/vat/3310/century25.d.ts.map +1 -0
- package/dist/cjs/utils/vat/3310/century25.js +1718 -0
- package/dist/cjs/utils/vat/3310/century25.js.map +1 -0
- package/dist/cjs/utils/vat/centuries.d.ts.map +1 -1
- package/dist/cjs/utils/vat/centuries.js +21 -1
- package/dist/cjs/utils/vat/centuries.js.map +1 -1
- package/dist/mjs/types/Enum/Aspone.d.ts +22 -4
- package/dist/mjs/types/Enum/Aspone.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Aspone.js +22 -46
- package/dist/mjs/types/Enum/Aspone.js.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheetQuestion.d.ts +1 -0
- package/dist/mjs/types/Enum/BalanceSheetQuestion.d.ts.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheetQuestion.js +1 -0
- package/dist/mjs/types/Enum/BalanceSheetQuestion.js.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheetQuestionWording.d.ts +1 -0
- package/dist/mjs/types/Enum/BalanceSheetQuestionWording.d.ts.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheetQuestionWording.js +1 -0
- package/dist/mjs/types/Enum/BalanceSheetQuestionWording.js.map +1 -1
- package/dist/mjs/types/Enum/TimeSlot.js +10 -10
- package/dist/mjs/types/Enum/TimeSlot.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2031.d.ts +186 -0
- package/dist/mjs/types/Interface/api/cerfa/2031.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2031.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2033.d.ts +112 -16
- package/dist/mjs/types/Interface/api/cerfa/2033.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2033.js +4 -0
- package/dist/mjs/types/Interface/api/cerfa/2033.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2035.d.ts +216 -1
- package/dist/mjs/types/Interface/api/cerfa/2035.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2035.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2065.d.ts +114 -1
- package/dist/mjs/types/Interface/api/cerfa/2065.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2065.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2069RCI.d.ts +86 -6
- package/dist/mjs/types/Interface/api/cerfa/2069RCI.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2069RCI.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/3310.d.ts +15 -4
- package/dist/mjs/types/Interface/api/cerfa/3310.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/3310.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/ReadCerfa.d.ts +5 -5
- package/dist/mjs/types/Interface/api/cerfa/ReadCerfa.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/ReadCerfa.js.map +1 -1
- package/dist/mjs/utils/cerfa.js +1 -1
- package/dist/mjs/utils/cerfa.js.map +1 -1
- package/dist/mjs/utils/commercialManagement/internationalization/choices.d.ts.map +1 -1
- package/dist/mjs/utils/commercialManagement/internationalization/choices.js +2 -0
- package/dist/mjs/utils/commercialManagement/internationalization/choices.js.map +1 -1
- package/dist/mjs/utils/commercialManagement/internationalization/type.d.ts +1 -0
- package/dist/mjs/utils/commercialManagement/internationalization/type.d.ts.map +1 -1
- package/dist/mjs/utils/commercialManagement/internationalization/type.js.map +1 -1
- package/dist/mjs/utils/commercialManagement/templates/body.js +1 -1
- package/dist/mjs/utils/commercialManagement/templates/body.js.map +1 -1
- package/dist/mjs/utils/vat/3310/century25.d.ts +8 -0
- package/dist/mjs/utils/vat/3310/century25.d.ts.map +1 -0
- package/dist/mjs/utils/vat/3310/century25.js +1711 -0
- package/dist/mjs/utils/vat/3310/century25.js.map +1 -0
- package/dist/mjs/utils/vat/centuries.d.ts.map +1 -1
- package/dist/mjs/utils/vat/centuries.js +21 -1
- package/dist/mjs/utils/vat/centuries.js.map +1 -1
- package/package.json +1 -1
- package/ts/types/Enum/Aspone.ts +24 -47
- package/ts/types/Enum/BalanceSheetQuestion.ts +1 -0
- package/ts/types/Enum/BalanceSheetQuestionWording.ts +1 -0
- package/ts/types/Enum/TimeSlot.ts +10 -10
- package/ts/types/Interface/api/cerfa/2031.ts +179 -0
- package/ts/types/Interface/api/cerfa/2033.ts +107 -16
- package/ts/types/Interface/api/cerfa/2035.ts +199 -1
- package/ts/types/Interface/api/cerfa/2065.ts +101 -1
- package/ts/types/Interface/api/cerfa/2069RCI.ts +86 -6
- package/ts/types/Interface/api/cerfa/3310.ts +16 -4
- package/ts/types/Interface/api/cerfa/ReadCerfa.ts +7 -10
- package/ts/utils/cerfa.ts +1 -1
- package/ts/utils/commercialManagement/internationalization/choices.ts +2 -0
- package/ts/utils/commercialManagement/internationalization/type.ts +1 -0
- package/ts/utils/commercialManagement/templates/body.ts +1 -1
- package/ts/utils/vat/3310/century25.ts +2038 -0
- package/ts/utils/vat/centuries.ts +31 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { AsponeCR5_2024, AsponeCR6_2024 } from '../../../Enum/Aspone';
|
|
1
|
+
import { AnyAsponeCR5_Century, AsponeCR5_2024, AsponeCR5_2025, AsponeCR6_2024 } from '../../../Enum/Aspone';
|
|
2
2
|
import { CerfaAddress } from './ReadCerfa';
|
|
3
3
|
|
|
4
|
-
export
|
|
4
|
+
export interface Cerfa2069RCI_2024 {
|
|
5
5
|
credits: {
|
|
6
6
|
withoutRegistration: {
|
|
7
7
|
'2LI': number | null;
|
|
@@ -72,9 +72,85 @@ export type Cerfa2069RCI_2024 = {
|
|
|
72
72
|
isNil: boolean;
|
|
73
73
|
isPME: boolean;
|
|
74
74
|
isParentSociety: boolean;
|
|
75
|
-
}
|
|
75
|
+
}
|
|
76
76
|
|
|
77
|
-
export
|
|
77
|
+
export interface Cerfa2069RCI_2025 {
|
|
78
|
+
credits: {
|
|
79
|
+
withoutRegistration: {
|
|
80
|
+
'2LI': number | null;
|
|
81
|
+
'3IV': number | null;
|
|
82
|
+
AUD: number | null;
|
|
83
|
+
CCI: number | null;
|
|
84
|
+
CIC: {
|
|
85
|
+
prePay: number | null;
|
|
86
|
+
total: number | null;
|
|
87
|
+
};
|
|
88
|
+
CIN: number | null;
|
|
89
|
+
COM: number | null;
|
|
90
|
+
CPG: number | null;
|
|
91
|
+
CSV: number | null;
|
|
92
|
+
PAM: number | null;
|
|
93
|
+
FOR: number | null;
|
|
94
|
+
HVE: number | null;
|
|
95
|
+
MEC: {
|
|
96
|
+
donation: number | null;
|
|
97
|
+
federations: number | null;
|
|
98
|
+
notreDameDeParis: number | null;
|
|
99
|
+
total: number | null;
|
|
100
|
+
};
|
|
101
|
+
PRE: number | null;
|
|
102
|
+
RAC: number | null;
|
|
103
|
+
REB: number | null;
|
|
104
|
+
RTD: number | null;
|
|
105
|
+
VLO: number | null;
|
|
106
|
+
onParticipation: number | null;
|
|
107
|
+
remunerations: {
|
|
108
|
+
mandatory: number | null;
|
|
109
|
+
smic: number | null;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
withRegistration: {
|
|
113
|
+
PVM: number | null;
|
|
114
|
+
COR: number | null;
|
|
115
|
+
CIR: {
|
|
116
|
+
exposedInDOM: number | null;
|
|
117
|
+
total: number | null;
|
|
118
|
+
};
|
|
119
|
+
CRC: number | null;
|
|
120
|
+
FAM: number | null;
|
|
121
|
+
TZM: number | null;
|
|
122
|
+
BIO: number | null;
|
|
123
|
+
PHO: number | null;
|
|
124
|
+
ART: number | null;
|
|
125
|
+
CJV: number | null;
|
|
126
|
+
EOM: number | null;
|
|
127
|
+
CPE: number | null;
|
|
128
|
+
PTR: number | null;
|
|
129
|
+
RTA: number | null;
|
|
130
|
+
CIO: number | null;
|
|
131
|
+
COL: number | null;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
declaration: {
|
|
135
|
+
period: {
|
|
136
|
+
startDate: string;
|
|
137
|
+
endDate: string;
|
|
138
|
+
};
|
|
139
|
+
societyInGroup: null | {
|
|
140
|
+
siren: string;
|
|
141
|
+
address: CerfaAddress;
|
|
142
|
+
name: string;
|
|
143
|
+
};
|
|
144
|
+
siren: string | null;
|
|
145
|
+
};
|
|
146
|
+
isNil: boolean;
|
|
147
|
+
isPME: boolean;
|
|
148
|
+
isParentSociety: boolean;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export type AnyCerfa2069RCICentury = Cerfa2069RCI_2024 | Cerfa2069RCI_2025;
|
|
152
|
+
|
|
153
|
+
export interface Cerfa2069RCI_2024_Payload {
|
|
78
154
|
isParentSociety: boolean;
|
|
79
155
|
parentSociety: null | {
|
|
80
156
|
siren: string;
|
|
@@ -91,11 +167,15 @@ export type Cerfa2069RCI_2024_Payload = {
|
|
|
91
167
|
creditsWithRegistration: Array<{ id: AsponeCR6_2024; amount: number }>;
|
|
92
168
|
isNil: boolean;
|
|
93
169
|
isPME: boolean;
|
|
94
|
-
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export interface Cerfa2069RCI_2025_Payload extends Omit<Cerfa2069RCI_2024_Payload, 'creditsWithoutRegistration'> {
|
|
173
|
+
creditsWithoutRegistration: Array<{ id: AsponeCR5_2025; amount: number }>;
|
|
174
|
+
}
|
|
95
175
|
|
|
96
176
|
export type ReadCerfa2069RCIInputs = {
|
|
97
177
|
withoutRegistrationMandatory: Array<{
|
|
98
|
-
id:
|
|
178
|
+
id: AnyAsponeCR5_Century;
|
|
99
179
|
label: string;
|
|
100
180
|
defaultValue?: number | null;
|
|
101
181
|
}>;
|
|
@@ -14,7 +14,7 @@ type Tic = {
|
|
|
14
14
|
tax?: number;
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
export
|
|
17
|
+
export type Cerfa3310_2023 = {
|
|
18
18
|
declaration: {
|
|
19
19
|
recipient: {
|
|
20
20
|
name?: string | null;
|
|
@@ -176,9 +176,9 @@ export interface Cerfa3310_2023 {
|
|
|
176
176
|
ticc?: Tic;
|
|
177
177
|
total?: Tic;
|
|
178
178
|
};
|
|
179
|
-
}
|
|
179
|
+
};
|
|
180
180
|
|
|
181
|
-
export
|
|
181
|
+
export type Cerfa3310_2024 = {
|
|
182
182
|
declaration: {
|
|
183
183
|
recipient: {
|
|
184
184
|
name?: string | null;
|
|
@@ -341,7 +341,7 @@ export interface Cerfa3310_2024 {
|
|
|
341
341
|
ticc?: Tic;
|
|
342
342
|
total?: Tic;
|
|
343
343
|
};
|
|
344
|
-
}
|
|
344
|
+
};
|
|
345
345
|
|
|
346
346
|
export type PayloadCerfa3310_2023 = {
|
|
347
347
|
isHolidayDeposit: boolean;
|
|
@@ -578,3 +578,15 @@ export type PayloadCerfa3310_2024 = {
|
|
|
578
578
|
acquittedBySocietyHeadOfGroup?: number;
|
|
579
579
|
};
|
|
580
580
|
};
|
|
581
|
+
|
|
582
|
+
export type PayloadCerfa3310_2025 = PayloadCerfa3310_2024;
|
|
583
|
+
|
|
584
|
+
export type Cerfa3310_2025 = Cerfa3310_2024 & {
|
|
585
|
+
tic?: {
|
|
586
|
+
other?: Omit<Tic, 'tax'>;
|
|
587
|
+
gasoline?: { tax: number };
|
|
588
|
+
};
|
|
589
|
+
};
|
|
590
|
+
|
|
591
|
+
export type AnyCerfa3310_Century = Cerfa3310_2023 | Cerfa3310_2024 | Cerfa3310_2025;
|
|
592
|
+
export type AnyPayloadCerfa3310_Century = PayloadCerfa3310_2023 | PayloadCerfa3310_2024;
|
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
import { CerfaType } from '../../../Enum/CerfaType';
|
|
2
2
|
import {
|
|
3
|
+
AnyCerfa2031Century,
|
|
3
4
|
AnyCerfa2033Century,
|
|
5
|
+
AnyCerfa2035Century,
|
|
6
|
+
AnyCerfa2065Century,
|
|
4
7
|
AnyCerfa2572Century,
|
|
5
|
-
Cerfa2031,
|
|
6
|
-
Cerfa2031_2024,
|
|
7
|
-
Cerfa2065,
|
|
8
|
-
Cerfa2065_2024,
|
|
9
8
|
Cerfa2069RCI_2024,
|
|
10
9
|
Cerfa2571_2023,
|
|
11
10
|
Cerfa2571_2024,
|
|
12
11
|
Cerfa2573_2024,
|
|
13
12
|
Cerfa3519_2017,
|
|
14
13
|
FieldForGeneration,
|
|
15
|
-
FullCerfa2035,
|
|
16
|
-
FullCerfa2035_2024,
|
|
17
14
|
PayloadCerfa3519_2017,
|
|
18
15
|
QuestionWording,
|
|
19
16
|
} from '../../..';
|
|
@@ -59,7 +56,7 @@ export type VatDocument = {
|
|
|
59
56
|
payload: (...args: any[]) => any;
|
|
60
57
|
asponePayload: (...args: any[]) => any;
|
|
61
58
|
fields: Array<CerfaPayloadForm>;
|
|
62
|
-
fileName: '3310-2023' | '3514-2022' | '3517-2023' | '3310-2024' | '3517-2025';
|
|
59
|
+
fileName: '3310-2023' | '3514-2022' | '3517-2023' | '3310-2024' | '3517-2025' | '3310-2025';
|
|
63
60
|
annex?: AnnexVatDocument;
|
|
64
61
|
annexFields?: (data: any) => AsponeFormFields;
|
|
65
62
|
};
|
|
@@ -123,10 +120,10 @@ export interface RegistrationPayload {
|
|
|
123
120
|
cerfa2573?: Cerfa2573_2024;
|
|
124
121
|
cerfa2572?: AnyCerfa2572Century;
|
|
125
122
|
cerfa2571?: Cerfa2571_2023 | Cerfa2571_2024;
|
|
126
|
-
cerfa2031?:
|
|
123
|
+
cerfa2031?: AnyCerfa2031Century;
|
|
127
124
|
cerfa2033?: AnyCerfa2033Century;
|
|
128
|
-
cerfa2065?:
|
|
129
|
-
cerfa2035?:
|
|
125
|
+
cerfa2065?: AnyCerfa2065Century;
|
|
126
|
+
cerfa2035?: AnyCerfa2035Century;
|
|
130
127
|
cerfa2069RCI?: Cerfa2069RCI_2024;
|
|
131
128
|
}
|
|
132
129
|
|
package/ts/utils/cerfa.ts
CHANGED
|
@@ -42,7 +42,7 @@ export function retrieveCerfaFromSocietyInformations(
|
|
|
42
42
|
if (!isDefined(idFiscalRegime)) missingData.push('Régime de droit commun');
|
|
43
43
|
if (!isDefined(profitsType)) missingData.push("Régime d'imposition");
|
|
44
44
|
if (!isDefined(idTaxSystem)) missingData.push('Activité (BNC, BIC)');
|
|
45
|
-
const errorMEssage = `Les informations suivantes sont manquantes pour déterminer votre régime
|
|
45
|
+
const errorMEssage = `Les informations suivantes sont manquantes pour déterminer votre régime fiscal: ${missingData.join(', ')}`;
|
|
46
46
|
throw new ServiceException({ code: Code.validationError, type: ErrorType.resourceError, message: errorMEssage });
|
|
47
47
|
}
|
|
48
48
|
|
|
@@ -57,6 +57,7 @@ export const internationalizationChoices: InternationalizationChoicesType = {
|
|
|
57
57
|
template: {
|
|
58
58
|
common: {
|
|
59
59
|
headers: {
|
|
60
|
+
title: 'Titre',
|
|
60
61
|
emissionDate: "Date d'émission",
|
|
61
62
|
accountingCategory: {
|
|
62
63
|
title: "Catégorie de l'opération",
|
|
@@ -247,6 +248,7 @@ export const internationalizationChoices: InternationalizationChoicesType = {
|
|
|
247
248
|
template: {
|
|
248
249
|
common: {
|
|
249
250
|
headers: {
|
|
251
|
+
title: 'Title',
|
|
250
252
|
emissionDate: 'Invoice date',
|
|
251
253
|
accountingCategory: {
|
|
252
254
|
title: 'Transaction type',
|
|
@@ -72,7 +72,7 @@ export const bodyTemplate = `<html class="pdf-content">
|
|
|
72
72
|
${headOfDocument}
|
|
73
73
|
|
|
74
74
|
<div class="row mt-25">
|
|
75
|
-
<% if (title) { %>
|
|
75
|
+
<% if (title) { %><%=languageTemplate.template.common.headers.title %> : <%= title %><% } %>
|
|
76
76
|
</div>
|
|
77
77
|
|
|
78
78
|
<div class="row mt-10">${commonTemplate.products}</div>
|