@silexpert/core 1.3.172-vat-6 → 1.3.173
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/api/resources/DocumentRequest.d.ts +2 -1
- package/dist/cjs/api/resources/DocumentRequest.d.ts.map +1 -1
- package/dist/cjs/api/resources/DocumentRequest.js +3 -0
- package/dist/cjs/api/resources/DocumentRequest.js.map +1 -1
- package/dist/cjs/api/resources/InformationRequest.d.ts +11 -0
- package/dist/cjs/api/resources/InformationRequest.d.ts.map +1 -0
- package/dist/cjs/api/resources/InformationRequest.js +26 -0
- package/dist/cjs/api/resources/InformationRequest.js.map +1 -0
- package/dist/cjs/api/resources.d.ts +2 -0
- package/dist/cjs/api/resources.d.ts.map +1 -1
- package/dist/cjs/api/resources.js +2 -0
- package/dist/cjs/api/resources.js.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheet.d.ts.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheet.js +6 -6
- package/dist/cjs/types/Enum/BalanceSheet.js.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheetModule.d.ts +2 -0
- package/dist/cjs/types/Enum/BalanceSheetModule.d.ts.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheetModule.js +23 -1
- package/dist/cjs/types/Enum/BalanceSheetModule.js.map +1 -1
- package/dist/cjs/types/Enum/DepositDocumentType.js +1 -1
- package/dist/cjs/types/Enum/DepositDocumentType.js.map +1 -1
- package/dist/cjs/types/Enum/Ged.d.ts +17 -3
- package/dist/cjs/types/Enum/Ged.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Ged.js +132 -1
- package/dist/cjs/types/Enum/Ged.js.map +1 -1
- package/dist/cjs/types/Enum/InformationRequestState.d.ts +6 -0
- package/dist/cjs/types/Enum/InformationRequestState.d.ts.map +1 -0
- package/dist/cjs/types/Enum/InformationRequestState.js +10 -0
- package/dist/cjs/types/Enum/InformationRequestState.js.map +1 -0
- package/dist/cjs/types/Enum/InformationRequestType.d.ts +17 -0
- package/dist/cjs/types/Enum/InformationRequestType.d.ts.map +1 -0
- package/dist/cjs/types/Enum/InformationRequestType.js +44 -0
- package/dist/cjs/types/Enum/InformationRequestType.js.map +1 -0
- package/dist/cjs/types/Enum/LetterType.js +2 -2
- package/dist/cjs/types/Enum/LetterType.js.map +1 -1
- package/dist/cjs/types/Enum/ReasonTerminationType.d.ts +2 -1
- package/dist/cjs/types/Enum/ReasonTerminationType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/ReasonTerminationType.js +6 -0
- package/dist/cjs/types/Enum/ReasonTerminationType.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/3310.d.ts +0 -61
- 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 +7 -12
- 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/types/Interface/api/documentRequest/Create.d.ts +1 -0
- package/dist/cjs/types/Interface/api/documentRequest/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/documentRequest/Create.js +8 -0
- package/dist/cjs/types/Interface/api/documentRequest/Create.js.map +1 -1
- package/dist/cjs/types/Interface/api/documentRequest/Query.d.ts +3 -0
- package/dist/cjs/types/Interface/api/documentRequest/Query.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/documentRequest/Query.js +12 -0
- package/dist/cjs/types/Interface/api/documentRequest/Query.js.map +1 -1
- package/dist/cjs/types/Interface/api/documentRequest/Update.d.ts +12 -0
- package/dist/cjs/types/Interface/api/documentRequest/Update.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/documentRequest/Update.js +63 -0
- package/dist/cjs/types/Interface/api/documentRequest/Update.js.map +1 -0
- package/dist/cjs/types/Interface/api/informationRequest/Create.d.ts +10 -0
- package/dist/cjs/types/Interface/api/informationRequest/Create.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/informationRequest/Create.js +49 -0
- package/dist/cjs/types/Interface/api/informationRequest/Create.js.map +1 -0
- package/dist/cjs/types/Interface/api/informationRequest/Query.d.ts +11 -0
- package/dist/cjs/types/Interface/api/informationRequest/Query.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/informationRequest/Query.js +54 -0
- package/dist/cjs/types/Interface/api/informationRequest/Query.js.map +1 -0
- package/dist/cjs/types/Interface/api/informationRequest/Update.d.ts +12 -0
- package/dist/cjs/types/Interface/api/informationRequest/Update.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/informationRequest/Update.js +58 -0
- package/dist/cjs/types/Interface/api/informationRequest/Update.js.map +1 -0
- package/dist/cjs/types/Interface/api/registration/CreateRegistration.d.ts +1 -6
- package/dist/cjs/types/Interface/api/registration/CreateRegistration.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/registration/CreateRegistration.js +0 -4
- package/dist/cjs/types/Interface/api/registration/CreateRegistration.js.map +1 -1
- package/dist/cjs/types/Interface/models/IBalanceSheetModule.d.ts +4 -0
- package/dist/cjs/types/Interface/models/IBalanceSheetModule.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IBalanceSheetModule.js.map +1 -1
- package/dist/cjs/types/Interface/models/IDocumentRequest.d.ts +7 -1
- package/dist/cjs/types/Interface/models/IDocumentRequest.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IDocumentRequest.js.map +1 -1
- package/dist/cjs/types/Interface/models/IInformationRequest.d.ts +25 -0
- package/dist/cjs/types/Interface/models/IInformationRequest.d.ts.map +1 -0
- package/dist/cjs/types/Interface/models/IInformationRequest.js +3 -0
- package/dist/cjs/types/Interface/models/IInformationRequest.js.map +1 -0
- package/dist/cjs/types/index.d.ts +7 -0
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +7 -0
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/cjs/utils/vat/3310/century23.d.ts.map +1 -1
- package/dist/cjs/utils/vat/3310/century23.js +14 -15
- package/dist/cjs/utils/vat/3310/century23.js.map +1 -1
- package/dist/cjs/utils/vat/3310/century24.d.ts.map +1 -1
- package/dist/cjs/utils/vat/3310/century24.js +14 -15
- package/dist/cjs/utils/vat/3310/century24.js.map +1 -1
- package/dist/cjs/utils/vat/3310/century25.d.ts.map +1 -1
- package/dist/cjs/utils/vat/3310/century25.js +13 -14
- package/dist/cjs/utils/vat/3310/century25.js.map +1 -1
- package/dist/cjs/utils/vat/3514/century23.d.ts.map +1 -1
- package/dist/cjs/utils/vat/3514/century23.js +3 -4
- package/dist/cjs/utils/vat/3514/century23.js.map +1 -1
- package/dist/cjs/utils/vat/3517/century23.d.ts +1 -4
- package/dist/cjs/utils/vat/3517/century23.d.ts.map +1 -1
- package/dist/cjs/utils/vat/3517/century23.js +53 -54
- package/dist/cjs/utils/vat/3517/century23.js.map +1 -1
- package/dist/cjs/utils/vat/3517/century25.d.ts +1 -4
- package/dist/cjs/utils/vat/3517/century25.d.ts.map +1 -1
- package/dist/cjs/utils/vat/3517/century25.js +3 -4
- package/dist/cjs/utils/vat/3517/century25.js.map +1 -1
- package/dist/cjs/utils/vat/3519/century23.d.ts +1 -4
- package/dist/cjs/utils/vat/3519/century23.d.ts.map +1 -1
- package/dist/cjs/utils/vat/3519/century23.js +3 -4
- package/dist/cjs/utils/vat/3519/century23.js.map +1 -1
- package/dist/cjs/utils/vat/centuries.d.ts.map +1 -1
- package/dist/cjs/utils/vat/centuries.js +30 -39
- package/dist/cjs/utils/vat/centuries.js.map +1 -1
- package/dist/mjs/api/resources/DocumentRequest.d.ts +2 -1
- package/dist/mjs/api/resources/DocumentRequest.d.ts.map +1 -1
- package/dist/mjs/api/resources/DocumentRequest.js +3 -0
- package/dist/mjs/api/resources/DocumentRequest.js.map +1 -1
- package/dist/mjs/api/resources/InformationRequest.d.ts +11 -0
- package/dist/mjs/api/resources/InformationRequest.d.ts.map +1 -0
- package/dist/mjs/api/resources/InformationRequest.js +30 -0
- package/dist/mjs/api/resources/InformationRequest.js.map +1 -0
- package/dist/mjs/api/resources.d.ts +2 -0
- package/dist/mjs/api/resources.d.ts.map +1 -1
- package/dist/mjs/api/resources.js +2 -0
- package/dist/mjs/api/resources.js.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheet.d.ts.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheet.js +6 -6
- package/dist/mjs/types/Enum/BalanceSheet.js.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheetModule.d.ts +2 -0
- package/dist/mjs/types/Enum/BalanceSheetModule.d.ts.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheetModule.js +22 -0
- package/dist/mjs/types/Enum/BalanceSheetModule.js.map +1 -1
- package/dist/mjs/types/Enum/DepositDocumentType.js +1 -1
- package/dist/mjs/types/Enum/DepositDocumentType.js.map +1 -1
- package/dist/mjs/types/Enum/Ged.d.ts +17 -3
- package/dist/mjs/types/Enum/Ged.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Ged.js +132 -1
- package/dist/mjs/types/Enum/Ged.js.map +1 -1
- package/dist/mjs/types/Enum/InformationRequestState.d.ts +6 -0
- package/dist/mjs/types/Enum/InformationRequestState.d.ts.map +1 -0
- package/dist/mjs/types/Enum/InformationRequestState.js +7 -0
- package/dist/mjs/types/Enum/InformationRequestState.js.map +1 -0
- package/dist/mjs/types/Enum/InformationRequestType.d.ts +17 -0
- package/dist/mjs/types/Enum/InformationRequestType.d.ts.map +1 -0
- package/dist/mjs/types/Enum/InformationRequestType.js +41 -0
- package/dist/mjs/types/Enum/InformationRequestType.js.map +1 -0
- package/dist/mjs/types/Enum/LetterType.js +2 -2
- package/dist/mjs/types/Enum/LetterType.js.map +1 -1
- package/dist/mjs/types/Enum/ReasonTerminationType.d.ts +2 -1
- package/dist/mjs/types/Enum/ReasonTerminationType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/ReasonTerminationType.js +6 -0
- package/dist/mjs/types/Enum/ReasonTerminationType.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/3310.d.ts +0 -61
- 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 +7 -12
- 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/types/Interface/api/documentRequest/Create.d.ts +1 -0
- package/dist/mjs/types/Interface/api/documentRequest/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/documentRequest/Create.js +10 -1
- package/dist/mjs/types/Interface/api/documentRequest/Create.js.map +1 -1
- package/dist/mjs/types/Interface/api/documentRequest/Query.d.ts +3 -0
- package/dist/mjs/types/Interface/api/documentRequest/Query.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/documentRequest/Query.js +15 -1
- package/dist/mjs/types/Interface/api/documentRequest/Query.js.map +1 -1
- package/dist/mjs/types/Interface/api/documentRequest/Update.d.ts +12 -0
- package/dist/mjs/types/Interface/api/documentRequest/Update.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/documentRequest/Update.js +66 -0
- package/dist/mjs/types/Interface/api/documentRequest/Update.js.map +1 -0
- package/dist/mjs/types/Interface/api/informationRequest/Create.d.ts +10 -0
- package/dist/mjs/types/Interface/api/informationRequest/Create.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/informationRequest/Create.js +50 -0
- package/dist/mjs/types/Interface/api/informationRequest/Create.js.map +1 -0
- package/dist/mjs/types/Interface/api/informationRequest/Query.d.ts +11 -0
- package/dist/mjs/types/Interface/api/informationRequest/Query.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/informationRequest/Query.js +56 -0
- package/dist/mjs/types/Interface/api/informationRequest/Query.js.map +1 -0
- package/dist/mjs/types/Interface/api/informationRequest/Update.d.ts +12 -0
- package/dist/mjs/types/Interface/api/informationRequest/Update.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/informationRequest/Update.js +60 -0
- package/dist/mjs/types/Interface/api/informationRequest/Update.js.map +1 -0
- package/dist/mjs/types/Interface/api/registration/CreateRegistration.d.ts +1 -6
- package/dist/mjs/types/Interface/api/registration/CreateRegistration.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/registration/CreateRegistration.js +0 -6
- package/dist/mjs/types/Interface/api/registration/CreateRegistration.js.map +1 -1
- package/dist/mjs/types/Interface/models/IBalanceSheetModule.d.ts +4 -0
- package/dist/mjs/types/Interface/models/IBalanceSheetModule.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IBalanceSheetModule.js.map +1 -1
- package/dist/mjs/types/Interface/models/IDocumentRequest.d.ts +7 -1
- package/dist/mjs/types/Interface/models/IDocumentRequest.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IDocumentRequest.js.map +1 -1
- package/dist/mjs/types/Interface/models/IInformationRequest.d.ts +25 -0
- package/dist/mjs/types/Interface/models/IInformationRequest.d.ts.map +1 -0
- package/dist/mjs/types/Interface/models/IInformationRequest.js +2 -0
- package/dist/mjs/types/Interface/models/IInformationRequest.js.map +1 -0
- package/dist/mjs/types/index.d.ts +7 -0
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +7 -0
- package/dist/mjs/types/index.js.map +1 -1
- package/dist/mjs/utils/vat/3310/century23.d.ts.map +1 -1
- package/dist/mjs/utils/vat/3310/century23.js +14 -15
- package/dist/mjs/utils/vat/3310/century23.js.map +1 -1
- package/dist/mjs/utils/vat/3310/century24.d.ts.map +1 -1
- package/dist/mjs/utils/vat/3310/century24.js +14 -15
- package/dist/mjs/utils/vat/3310/century24.js.map +1 -1
- package/dist/mjs/utils/vat/3310/century25.d.ts.map +1 -1
- package/dist/mjs/utils/vat/3310/century25.js +13 -14
- package/dist/mjs/utils/vat/3310/century25.js.map +1 -1
- package/dist/mjs/utils/vat/3514/century23.d.ts.map +1 -1
- package/dist/mjs/utils/vat/3514/century23.js +3 -4
- package/dist/mjs/utils/vat/3514/century23.js.map +1 -1
- package/dist/mjs/utils/vat/3517/century23.d.ts +1 -4
- package/dist/mjs/utils/vat/3517/century23.d.ts.map +1 -1
- package/dist/mjs/utils/vat/3517/century23.js +53 -54
- package/dist/mjs/utils/vat/3517/century23.js.map +1 -1
- package/dist/mjs/utils/vat/3517/century25.d.ts +1 -4
- package/dist/mjs/utils/vat/3517/century25.d.ts.map +1 -1
- package/dist/mjs/utils/vat/3517/century25.js +3 -4
- package/dist/mjs/utils/vat/3517/century25.js.map +1 -1
- package/dist/mjs/utils/vat/3519/century23.d.ts +1 -4
- package/dist/mjs/utils/vat/3519/century23.d.ts.map +1 -1
- package/dist/mjs/utils/vat/3519/century23.js +3 -4
- package/dist/mjs/utils/vat/3519/century23.js.map +1 -1
- package/dist/mjs/utils/vat/centuries.d.ts.map +1 -1
- package/dist/mjs/utils/vat/centuries.js +32 -41
- package/dist/mjs/utils/vat/centuries.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/DocumentRequest.ts +5 -1
- package/ts/api/resources/InformationRequest.ts +36 -0
- package/ts/api/resources.ts +2 -0
- package/ts/types/Enum/BalanceSheet.ts +11 -11
- package/ts/types/Enum/BalanceSheetModule.ts +24 -1
- package/ts/types/Enum/DepositDocumentType.ts +1 -1
- package/ts/types/Enum/Ged.ts +133 -1
- package/ts/types/Enum/InformationRequestState.ts +5 -0
- package/ts/types/Enum/InformationRequestType.ts +51 -0
- package/ts/types/Enum/LetterType.ts +2 -2
- package/ts/types/Enum/ReasonTerminationType.ts +6 -0
- package/ts/types/Interface/api/cerfa/3310.ts +0 -58
- package/ts/types/Interface/api/cerfa/ReadCerfa.ts +7 -9
- package/ts/types/Interface/api/documentRequest/Create.ts +8 -1
- package/ts/types/Interface/api/documentRequest/Query.ts +12 -1
- package/ts/types/Interface/api/documentRequest/Update.ts +43 -0
- package/ts/types/Interface/api/informationRequest/Create.ts +31 -0
- package/ts/types/Interface/api/informationRequest/Query.ts +36 -0
- package/ts/types/Interface/api/informationRequest/Update.ts +39 -0
- package/ts/types/Interface/api/registration/CreateRegistration.ts +1 -5
- package/ts/types/Interface/models/IBalanceSheetModule.ts +7 -1
- package/ts/types/Interface/models/IDocumentRequest.ts +8 -2
- package/ts/types/Interface/models/IInformationRequest.ts +27 -0
- package/ts/types/index.ts +7 -0
- package/ts/utils/vat/3310/century23.ts +14 -15
- package/ts/utils/vat/3310/century24.ts +14 -15
- package/ts/utils/vat/3310/century25.ts +13 -14
- package/ts/utils/vat/3514/century23.ts +3 -4
- package/ts/utils/vat/3517/century23.ts +53 -54
- package/ts/utils/vat/3517/century25.ts +3 -4
- package/ts/utils/vat/3519/century23.ts +3 -7
- package/ts/utils/vat/centuries.ts +11 -20
- package/dist/cjs/utils/vat/3310A/century25.d.ts +0 -5
- package/dist/cjs/utils/vat/3310A/century25.d.ts.map +0 -1
- package/dist/cjs/utils/vat/3310A/century25.js +0 -180
- package/dist/cjs/utils/vat/3310A/century25.js.map +0 -1
- package/dist/mjs/utils/vat/3310A/century25.d.ts +0 -5
- package/dist/mjs/utils/vat/3310A/century25.d.ts.map +0 -1
- package/dist/mjs/utils/vat/3310A/century25.js +0 -173
- package/dist/mjs/utils/vat/3310A/century25.js.map +0 -1
- package/ts/utils/vat/3310A/century25.ts +0 -179
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { Cerfa3519_2017 } from '../../../types/Interface/api/cerfa/3519';
|
|
2
2
|
import { AsponeFormFields } from '../../../types/Interface/api/cerfa/ReadCerfa';
|
|
3
|
-
export declare function getCerfa3519Century23RegistrationFields(data: Cerfa3519_2017
|
|
4
|
-
iban?: string;
|
|
5
|
-
bic?: string;
|
|
6
|
-
}): AsponeFormFields;
|
|
3
|
+
export declare function getCerfa3519Century23RegistrationFields(data: Cerfa3519_2017): AsponeFormFields;
|
|
7
4
|
//# sourceMappingURL=century23.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"century23.d.ts","sourceRoot":"","sources":["../../../../../ts/utils/vat/3519/century23.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAGhF,wBAAgB,uCAAuC,
|
|
1
|
+
{"version":3,"file":"century23.d.ts","sourceRoot":"","sources":["../../../../../ts/utils/vat/3519/century23.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAGhF,wBAAgB,uCAAuC,CAAC,IAAI,EAAE,cAAc,GAAG,gBAAgB,CAoJ9F"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import * as dayjs from 'dayjs';
|
|
2
2
|
import { textFormatting } from '../utils';
|
|
3
|
-
export function getCerfa3519Century23RegistrationFields(data
|
|
3
|
+
export function getCerfa3519Century23RegistrationFields(data) {
|
|
4
4
|
const comment = textFormatting(data.comment);
|
|
5
5
|
return [
|
|
6
6
|
{
|
|
7
7
|
name: '3519',
|
|
8
|
-
millesime: +dayjs(data.declaration.period).add(1, 'day').format('YY'),
|
|
9
8
|
fields: [
|
|
10
9
|
{
|
|
11
10
|
key: 'DD',
|
|
@@ -63,12 +62,12 @@ export function getCerfa3519Century23RegistrationFields(data, metadata) {
|
|
|
63
62
|
{
|
|
64
63
|
tag: 'Iban',
|
|
65
64
|
description: 'IBAN',
|
|
66
|
-
value:
|
|
65
|
+
value: 'DYNAMIC_IBAN',
|
|
67
66
|
},
|
|
68
67
|
{
|
|
69
68
|
tag: 'Bic',
|
|
70
69
|
description: 'BIC',
|
|
71
|
-
value:
|
|
70
|
+
value: 'DYNAMIC_BIC',
|
|
72
71
|
},
|
|
73
72
|
{
|
|
74
73
|
tag: 'TitulaireDesignation',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"century23.js","sourceRoot":"","sources":["../../../../../ts/utils/vat/3519/century23.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,MAAM,UAAU,uCAAuC,
|
|
1
|
+
{"version":3,"file":"century23.js","sourceRoot":"","sources":["../../../../../ts/utils/vat/3519/century23.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,MAAM,UAAU,uCAAuC,CAAC,IAAoB;IAC1E,MAAM,OAAO,GAAG,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAE7C,OAAO;QACL;YACE,IAAI,EAAE,MAAM;YACZ,MAAM,EAAE;gBACN;oBACE,GAAG,EAAE,IAAI;oBACT,GAAG,EAAE,QAAQ;oBACb,UAAU,EAAE,KAAK;oBACjB,WAAW,EAAE,sBAAsB;oBACnC,KAAK,EAAE,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI;iBAC1D;gBACD;oBACE,GAAG,EAAE,IAAI;oBACT,GAAG,EAAE,QAAQ;oBACb,UAAU,EAAE,KAAK;oBACjB,WAAW,EAAE,uBAAuB;oBACpC,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM;iBAC1B;gBACD;oBACE,GAAG,EAAE,IAAI;oBACT,KAAK,EAAE,IAAI;oBACX,UAAU,EAAE,KAAK;oBACjB,IAAI,EAAE;wBACJ;4BACE,GAAG,EAAE,aAAa;4BAClB,WAAW,EAAE,WAAW;4BACxB,KAAK,EAAE,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC;yBAC5C;wBACD;4BACE,GAAG,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oBACE,GAAG,EAAE,IAAI;oBACT,KAAK,EAAE,IAAI;oBACX,UAAU,EAAE,KAAK;oBACjB,IAAI,EAAE;wBACJ;4BACE,GAAG,EAAE,aAAa;4BAClB,WAAW,EAAE,cAAc;4BAC3B,KAAK,EAAE,cAAc,CAAC,OAAO,EAAE,GAAG,CAAC;yBACpC;wBACD;4BACE,GAAG,EAAE,aAAa;4BAClB,WAAW,EAAE,cAAc;4BAC3B,KAAK,EAAE,OAAO,IAAI,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI;yBACjG;wBACD;4BACE,GAAG,EAAE,aAAa;4BAClB,WAAW,EAAE,cAAc;4BAC3B,KAAK,EAAE,OAAO,IAAI,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI;yBACnG;wBACD;4BACE,GAAG,EAAE,aAAa;4BAClB,WAAW,EAAE,cAAc;4BAC3B,KAAK,EAAE,OAAO,IAAI,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI;yBACnG;qBACF;iBACF;aACF;SACF;KACF,CAAC;AACJ,CAAC","sourcesContent":["import * as dayjs from 'dayjs';\nimport { Cerfa3519_2017 } from '../../../types/Interface/api/cerfa/3519';\nimport { AsponeFormFields } from '../../../types/Interface/api/cerfa/ReadCerfa';\nimport { textFormatting } from '../utils';\n\nexport function getCerfa3519Century23RegistrationFields(data: Cerfa3519_2017): AsponeFormFields {\n const comment = textFormatting(data.comment);\n\n return [\n {\n name: '3519',\n fields: [\n {\n key: 'DD',\n tag: 'Valeur',\n isMultiple: false,\n description: 'Entreprise française',\n value: data.declaration.nationality.isFrench ? 'X' : null,\n },\n {\n key: 'DN',\n tag: 'Valeur',\n isMultiple: false,\n description: 'Remboursement demandé',\n value: data.refund.amount,\n },\n {\n key: 'DG',\n value: null,\n isMultiple: false,\n tags: [\n {\n tag: 'Designation',\n description: 'Soussigné',\n value: textFormatting(data.refund.name, 35),\n },\n {\n tag: 'DesignationSuite1',\n description: 'Titre',\n value: textFormatting(data.refund.quality, 35),\n },\n {\n tag: 'DesignationSuite2',\n description: 'Qualité',\n value: textFormatting(data.refund.quality, 35),\n },\n {\n tag: 'AdresseVille',\n description: 'Lieu',\n value: textFormatting(data.refund.place, 35),\n },\n ],\n },\n {\n key: 'FK',\n tag: 'Valeur',\n isMultiple: false,\n description: 'A créditer au compte désigné',\n value: data.declaration.shouldCredit ? 'X' : null,\n },\n {\n key: 'AA',\n isMultiple: false,\n value: null,\n tags: [\n {\n tag: 'Iban',\n description: 'IBAN',\n value: 'DYNAMIC_IBAN',\n },\n {\n tag: 'Bic',\n description: 'BIC',\n value: 'DYNAMIC_BIC',\n },\n {\n tag: 'TitulaireDesignation',\n description: 'Désignation du titulaire',\n value: textFormatting(data.refund.name, 35),\n },\n ],\n },\n {\n key: 'DI',\n tag: 'Valeur',\n isMultiple: false,\n description: 'Première demande',\n value: data.refund.firstTime?.is ? 'X' : null,\n },\n {\n key: 'DL',\n tag: 'Valeur',\n isMultiple: false,\n description: 'Création le',\n value:\n data.refund.firstTime?.is && data.refund.firstTime?.date\n ? dayjs(data.refund.firstTime.date).format('YYYYMMDD')\n : null,\n },\n {\n key: 'DJ',\n tag: 'Valeur',\n isMultiple: false,\n description: 'Cession, cessation, décès, entrée dans un groupe TVA',\n value: data.refund.closing?.is ? 'X' : null,\n },\n {\n key: 'DM',\n tag: 'Valeur',\n isMultiple: false,\n description: 'Le :',\n value:\n data.refund.closing?.is && data.refund.closing?.date\n ? dayjs(data.refund.closing.date).format('YYYYMMDD')\n : null,\n },\n {\n key: 'DK',\n tag: 'Valeur',\n isMultiple: false,\n description: 'Autres',\n value: data.refund.other?.is ? 'X' : null,\n },\n {\n key: 'FJ',\n value: null,\n isMultiple: false,\n tags: [\n {\n tag: 'TexteLibre1',\n description: 'Commentaires',\n value: textFormatting(comment, 512),\n },\n {\n tag: 'TexteLibre2',\n description: 'Commentaires',\n value: comment && (comment?.length ?? 0) > 512 ? textFormatting(comment.slice(512, 1024)) : null,\n },\n {\n tag: 'TexteLibre3',\n description: 'Commentaires',\n value: comment && (comment?.length ?? 0) > 1024 ? textFormatting(comment.slice(1024, 1536)) : null,\n },\n {\n tag: 'TexteLibre4',\n description: 'Commentaires',\n value: comment && (comment?.length ?? 0) > 1536 ? textFormatting(comment.slice(1536, 2048)) : null,\n },\n ],\n },\n ],\n },\n ];\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"centuries.d.ts","sourceRoot":"","sources":["../../../../ts/utils/vat/centuries.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;
|
|
1
|
+
{"version":3,"file":"centuries.d.ts","sourceRoot":"","sources":["../../../../ts/utils/vat/centuries.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAiKxE,eAAO,MAAM,iBAAiB,GAAI,aAAa,SAAS,EAAE,SAAS,MAAM,KAAG,WAc3E,CAAC"}
|
|
@@ -5,11 +5,10 @@ import { cerfa3519Century17Fields, getCerfa3519Century17Payload } from './3519/c
|
|
|
5
5
|
import { getCerfa3519Century23RegistrationFields } from './3519/century23';
|
|
6
6
|
import { cerfa3514Century22Fields, getCerfa3514Century22Payload } from './3514/century22';
|
|
7
7
|
import { getCerfa3514Century23RegistrationFields } from './3514/century23';
|
|
8
|
-
import { cerfa3517Century23Fields, getCerfa3517Century23Payload, getCerfa3517CenturyRegistrationField, } from './3517/century23';
|
|
8
|
+
import { cerfa3517Century23Fields, getCerfa3517Century23Payload, getCerfa3517CenturyRegistrationField, getCerfa3517DDRCentury23egistrationField, } from './3517/century23';
|
|
9
9
|
import { cerfa3310Century24Fields, getCerfa3310Century24Payload, getCerfa3310Century24RegistrationFields, } from './3310/century24';
|
|
10
|
-
import { cerfa3517Century25Fields, getCerfa3517Century25Payload, getCerfa3517Century25RegistrationField, } from './3517/century25';
|
|
10
|
+
import { cerfa3517Century25Fields, getCerfa3517Century25Payload, getCerfa3517Century25RegistrationField, getCerfa3517DDRCentury25egistrationField, } from './3517/century25';
|
|
11
11
|
import { cerfa3310Century25Fields, getCerfa3310Century25Payload, getCerfa3310Century25RegistrationFields, } from './3310/century25';
|
|
12
|
-
import { cerfa3310ACentury25Fields, getCerfa3310ACentury25Payload, getCerfa3310ACentury25RegistrationFields } from './3310A/century25';
|
|
13
12
|
const vatDocuments = [
|
|
14
13
|
{
|
|
15
14
|
idCerfaType: CerfaType.CERFA_3310,
|
|
@@ -20,15 +19,15 @@ const vatDocuments = [
|
|
|
20
19
|
asponePayload: (data) => getCerfa3310Century23RegistrationFields(data),
|
|
21
20
|
fields: cerfa3310Century23Fields,
|
|
22
21
|
fileName: '3310-2023',
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
22
|
+
annex: {
|
|
23
|
+
name: '3519',
|
|
24
|
+
century: '23',
|
|
25
|
+
shouldInclude: (data) => Boolean(data.credit?.refundAsked && data.credit.refundAsked > 0),
|
|
26
|
+
payload: (amount, payload) => getCerfa3519Century17Payload(amount, payload),
|
|
27
|
+
asponePayload: (data) => getCerfa3519Century23RegistrationFields(data),
|
|
28
|
+
fields: cerfa3519Century17Fields,
|
|
29
|
+
fileName: '3519-2017',
|
|
30
|
+
},
|
|
32
31
|
},
|
|
33
32
|
{
|
|
34
33
|
idCerfaType: CerfaType.CERFA_3310,
|
|
@@ -39,44 +38,34 @@ const vatDocuments = [
|
|
|
39
38
|
asponePayload: (data) => getCerfa3310Century24RegistrationFields(data),
|
|
40
39
|
fields: cerfa3310Century24Fields,
|
|
41
40
|
fileName: '3310-2024',
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
41
|
+
annex: {
|
|
42
|
+
name: '3519',
|
|
43
|
+
century: dayjs().month() === 0 ? dayjs().subtract(1, 'month').format('YY') : dayjs().format('YY'),
|
|
44
|
+
shouldInclude: (data) => Boolean(data.credit?.refundAsked && data.credit.refundAsked > 0),
|
|
45
|
+
payload: (amount, payload) => getCerfa3519Century17Payload(amount, payload),
|
|
46
|
+
asponePayload: (data) => getCerfa3519Century23RegistrationFields(data),
|
|
47
|
+
fields: cerfa3519Century17Fields,
|
|
48
|
+
fileName: '3519-2017',
|
|
49
|
+
},
|
|
51
50
|
},
|
|
52
51
|
{
|
|
53
52
|
idCerfaType: CerfaType.CERFA_3310,
|
|
54
53
|
name: '3310',
|
|
55
54
|
century: '25',
|
|
56
|
-
centuries: [2025
|
|
55
|
+
centuries: [2025],
|
|
57
56
|
payload: (accountingEntries, payload, updatedEntries) => getCerfa3310Century25Payload(accountingEntries, payload, updatedEntries),
|
|
58
57
|
asponePayload: (data) => getCerfa3310Century25RegistrationFields(data),
|
|
59
58
|
fields: cerfa3310Century25Fields,
|
|
60
59
|
fileName: '3310-2025',
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
name: '3310A',
|
|
71
|
-
century: '25',
|
|
72
|
-
// @ts-ignore
|
|
73
|
-
shouldInclude: (data) => Boolean(data.declaration.period.start.month === '01' && data.shouldFillTVS),
|
|
74
|
-
payload: (_, payload) => getCerfa3310ACentury25Payload(_, payload),
|
|
75
|
-
fields: cerfa3310ACentury25Fields,
|
|
76
|
-
// @ts-ignore
|
|
77
|
-
asponePayload: (data) => getCerfa3310ACentury25RegistrationFields(data),
|
|
78
|
-
fileName: '3310A-2025',
|
|
79
|
-
}],
|
|
60
|
+
annex: {
|
|
61
|
+
name: '3519',
|
|
62
|
+
century: dayjs().month() === 0 ? dayjs().subtract(1, 'month').format('YY') : dayjs().format('YY'),
|
|
63
|
+
shouldInclude: (data) => Boolean(data.credit?.refundAsked && data.credit.refundAsked > 0),
|
|
64
|
+
payload: (amount, payload) => getCerfa3519Century17Payload(amount, payload),
|
|
65
|
+
asponePayload: (data) => getCerfa3519Century23RegistrationFields(data),
|
|
66
|
+
fields: cerfa3519Century17Fields,
|
|
67
|
+
fileName: '3519-2017',
|
|
68
|
+
},
|
|
80
69
|
},
|
|
81
70
|
{
|
|
82
71
|
idCerfaType: CerfaType.CERFA_3514,
|
|
@@ -97,6 +86,7 @@ const vatDocuments = [
|
|
|
97
86
|
asponePayload: (data) => getCerfa3517CenturyRegistrationField(data),
|
|
98
87
|
fields: cerfa3517Century23Fields,
|
|
99
88
|
fileName: '3517-2023',
|
|
89
|
+
annexFields: (data) => getCerfa3517DDRCentury23egistrationField(data),
|
|
100
90
|
},
|
|
101
91
|
{
|
|
102
92
|
idCerfaType: CerfaType.CERFA_3517,
|
|
@@ -107,6 +97,7 @@ const vatDocuments = [
|
|
|
107
97
|
asponePayload: (data) => getCerfa3517Century25RegistrationField(data),
|
|
108
98
|
fields: cerfa3517Century25Fields,
|
|
109
99
|
fileName: '3517-2025',
|
|
100
|
+
annexFields: (data) => getCerfa3517DDRCentury25egistrationField(data),
|
|
110
101
|
},
|
|
111
102
|
];
|
|
112
103
|
export const getVatCerfaObject = (idCerfaType, endDate) => {
|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IAAI,CAAC,CAAC,CAAC;IAC7G,IAAI,CAAC,KAAK;QAAE,MAAM,IAAI,KAAK,CAAC,eAAe,WAAW,iBAAiB,IAAI,sBAAsB,CAAC,CAAC;IAEnG,OAAO,KAAK,CAAC;AACf,CAAC,CAAC","sourcesContent":["import * as dayjs from 'dayjs';\nimport { CerfaType } from '../../types/Enum/CerfaType';\nimport { VatDocument } from '../../types/Interface/api/cerfa/ReadCerfa';\nimport {\n cerfa3310Century23Fields,\n getCerfa3310Century23Payload,\n getCerfa3310Century23RegistrationFields,\n} from './3310/century23';\nimport { IAccountingEntry } from '../../types/Interface/models/IAccountingEntry';\nimport {\n Cerfa3310_2023,\n Cerfa3310_2024,\n Cerfa3310_2025,\n Cerfa3310A_2025,\n PayloadCerfa3310_2023,\n PayloadCerfa3310_2024,\n PayloadCerfa3310_2025,\n PayloadCerfa3310A_2025,\n} from '../../types/Interface/api/cerfa/3310';\nimport {\n Cerfa3514_2022,\n Cerfa3519_2017,\n PayloadCerfa3514_2022,\n PayloadCerfa3519_2017,\n UpdatedAnnotation,\n} from '../../types';\nimport { cerfa3519Century17Fields, getCerfa3519Century17Payload } from './3519/century17';\nimport { getCerfa3519Century23RegistrationFields } from './3519/century23';\nimport { cerfa3514Century22Fields, getCerfa3514Century22Payload } from './3514/century22';\nimport { getCerfa3514Century23RegistrationFields } from './3514/century23';\nimport {\n Cerfa3517_2023,\n Cerfa3517_2025,\n PayloadCerfa3517_2023,\n PayloadCerfa3517_2025,\n} from '../../types/Interface/api/cerfa/3517';\nimport {\n cerfa3517Century23Fields,\n getCerfa3517Century23Payload,\n getCerfa3517CenturyRegistrationField,\n} from './3517/century23';\nimport {\n cerfa3310Century24Fields,\n getCerfa3310Century24Payload,\n getCerfa3310Century24RegistrationFields,\n} from './3310/century24';\nimport {\n cerfa3517Century25Fields,\n getCerfa3517Century25Payload,\n getCerfa3517Century25RegistrationField,\n} from './3517/century25';\nimport {\n cerfa3310Century25Fields,\n getCerfa3310Century25Payload,\n getCerfa3310Century25RegistrationFields,\n} from './3310/century25';\nimport { cerfa3310ACentury25Fields, getCerfa3310ACentury25Payload, getCerfa3310ACentury25RegistrationFields } from './3310A/century25';\n\nconst vatDocuments: VatDocument[] = [\n {\n idCerfaType: CerfaType.CERFA_3310,\n name: '3310',\n century: '23',\n centuries: [2022, 2023],\n payload: (\n accountingEntries: IAccountingEntry[],\n payload: PayloadCerfa3310_2023,\n updatedEntries: UpdatedAnnotation,\n ) => getCerfa3310Century23Payload(accountingEntries, payload, updatedEntries),\n asponePayload: (data: Cerfa3310_2023) => getCerfa3310Century23RegistrationFields(data),\n fields: cerfa3310Century23Fields,\n fileName: '3310-2023',\n annexs: [{\n name: '3519',\n century: '23',\n shouldInclude: (data: Cerfa3310_2023) => Boolean(data.credit?.refundAsked && data.credit.refundAsked > 0),\n payload: (amount: number, payload: PayloadCerfa3519_2017) => getCerfa3519Century17Payload(amount, payload),\n asponePayload: (data: Cerfa3519_2017) => getCerfa3519Century23RegistrationFields(data),\n fields: cerfa3519Century17Fields,\n fileName: '3519-2017',\n }],\n },\n {\n idCerfaType: CerfaType.CERFA_3310,\n name: '3310',\n century: '24',\n centuries: [2024],\n payload: (\n accountingEntries: IAccountingEntry[],\n payload: PayloadCerfa3310_2024,\n updatedEntries: UpdatedAnnotation,\n ) => getCerfa3310Century24Payload(accountingEntries, payload, updatedEntries),\n asponePayload: (data: Cerfa3310_2024) => getCerfa3310Century24RegistrationFields(data),\n fields: cerfa3310Century24Fields,\n fileName: '3310-2024',\n annexs: [{\n name: '3519',\n century: dayjs().month() === 0 ? dayjs().subtract(1, 'month').format('YY') : dayjs().format('YY'),\n shouldInclude: (data: Cerfa3310_2023) => Boolean(data.credit?.refundAsked && data.credit.refundAsked > 0),\n payload: (amount: number, payload: PayloadCerfa3519_2017) => getCerfa3519Century17Payload(amount, payload),\n asponePayload: (data: Cerfa3519_2017) => getCerfa3519Century23RegistrationFields(data),\n fields: cerfa3519Century17Fields,\n fileName: '3519-2017',\n }],\n },\n {\n idCerfaType: CerfaType.CERFA_3310,\n name: '3310',\n century: '25',\n centuries: [2025, 2026],\n payload: (\n accountingEntries: IAccountingEntry[],\n payload: PayloadCerfa3310_2025,\n updatedEntries: UpdatedAnnotation,\n ) => getCerfa3310Century25Payload(accountingEntries, payload, updatedEntries),\n asponePayload: (data: Cerfa3310_2025) => getCerfa3310Century25RegistrationFields(data),\n fields: cerfa3310Century25Fields,\n fileName: '3310-2025',\n annexs: [{\n name: '3519',\n century: dayjs().month() === 0 ? dayjs().subtract(1, 'month').format('YY') : dayjs().format('YY'),\n shouldInclude: (data: Cerfa3310_2023) => Boolean(data.credit?.refundAsked && data.credit.refundAsked > 0),\n payload: (amount: number, payload: PayloadCerfa3519_2017) => getCerfa3519Century17Payload(amount, payload),\n asponePayload: (data: Cerfa3519_2017) => getCerfa3519Century23RegistrationFields(data),\n fields: cerfa3519Century17Fields,\n fileName: '3519-2017',\n }, {\n name: '3310A',\n century: '25',\n // @ts-ignore\n shouldInclude: (data: Cerfa3310_2025) => Boolean(data.declaration.period.start.month === '01' && data.shouldFillTVS),\n payload: (_: undefined, payload: PayloadCerfa3310A_2025) => getCerfa3310ACentury25Payload(_, payload),\n fields: cerfa3310ACentury25Fields,\n // @ts-ignore\n asponePayload: (data: Cerfa3310A_2025) => getCerfa3310ACentury25RegistrationFields(data),\n fileName: '3310A-2025',\n }],\n },\n {\n idCerfaType: CerfaType.CERFA_3514,\n name: '3514',\n century: '23',\n centuries: [2022, 2023, 2024, 2025],\n payload: (payload: PayloadCerfa3514_2022) => getCerfa3514Century22Payload(payload),\n asponePayload: (data: Cerfa3514_2022) => getCerfa3514Century23RegistrationFields(data),\n fields: cerfa3514Century22Fields,\n fileName: '3514-2022',\n },\n {\n idCerfaType: CerfaType.CERFA_3517,\n name: '3517',\n century: '23',\n centuries: [2022, 2023, 2024],\n payload: (accountingEntries: IAccountingEntry[], payload: PayloadCerfa3517_2023) =>\n getCerfa3517Century23Payload(accountingEntries, payload),\n asponePayload: (data: Cerfa3517_2023) => getCerfa3517CenturyRegistrationField(data),\n fields: cerfa3517Century23Fields,\n fileName: '3517-2023',\n },\n {\n idCerfaType: CerfaType.CERFA_3517,\n name: '3517',\n century: '25',\n centuries: [2025, 2026],\n payload: (accountingEntries: IAccountingEntry[], payload: PayloadCerfa3517_2025) =>\n getCerfa3517Century25Payload(accountingEntries, payload),\n asponePayload: (data: Cerfa3517_2025) => getCerfa3517Century25RegistrationField(data),\n fields: cerfa3517Century25Fields,\n fileName: '3517-2025',\n },\n];\n\nexport const getVatCerfaObject = (idCerfaType: CerfaType, endDate: string): VatDocument => {\n // Suppression du add(1, 'day') suite à une déclaration 3310 31/12 rejetée car millésime trop avancé pour le champ (0C3CE366-26EB-4BBA-AB61-93A606686C9A)\n\n // CA12 => Utiliser le millésime N pour les déclarations dont la date de fin de période CB/DTM >= 31/12/N-1\n // Autre => Utiliser le millésime N pour les déclarations dont la date de fin de période CB/DTM >= 01/01/N\n const year =\n idCerfaType === CerfaType.CERFA_3517 && dayjs(endDate).format('MM-DD') === '12-31'\n ? +dayjs(endDate).year() + 1\n : +dayjs(endDate).year();\n\n const cerfa = vatDocuments.find((v) => v.idCerfaType === idCerfaType && v.centuries.find((c) => c === year));\n if (!cerfa) throw new Error(`Cerfa type #${idCerfaType} with century ${year} is not managed yet.`);\n\n return cerfa;\n};\n"]}
|
|
1
|
+
{"version":3,"file":"centuries.js","sourceRoot":"","sources":["../../../../ts/utils/vat/centuries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAEvD,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,uCAAuC,GACxC,MAAM,kBAAkB,CAAC;AAiB1B,OAAO,EAAE,wBAAwB,EAAE,4BAA4B,EAAE,MAAM,kBAAkB,CAAC;AAC1F,OAAO,EAAE,uCAAuC,EAAE,MAAM,kBAAkB,CAAC;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CAAC,OAAO,CAAC,KAAK,OAAO;QAChF,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,GAAG,CAAC;QAC5B,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC;IAE7B,MAAM,KAAK,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,KAAK,WAAW,IAAI,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC;IAC7G,IAAI,CAAC,KAAK;QAAE,MAAM,IAAI,KAAK,CAAC,eAAe,WAAW,iBAAiB,IAAI,sBAAsB,CAAC,CAAC;IAEnG,OAAO,KAAK,CAAC;AACf,CAAC,CAAC","sourcesContent":["import * as dayjs from 'dayjs';\nimport { CerfaType } from '../../types/Enum/CerfaType';\nimport { VatDocument } from '../../types/Interface/api/cerfa/ReadCerfa';\nimport {\n cerfa3310Century23Fields,\n getCerfa3310Century23Payload,\n getCerfa3310Century23RegistrationFields,\n} from './3310/century23';\nimport { IAccountingEntry } from '../../types/Interface/models/IAccountingEntry';\nimport {\n Cerfa3310_2023,\n Cerfa3310_2024,\n Cerfa3310_2025,\n PayloadCerfa3310_2023,\n PayloadCerfa3310_2024,\n PayloadCerfa3310_2025,\n} from '../../types/Interface/api/cerfa/3310';\nimport {\n Cerfa3514_2022,\n Cerfa3519_2017,\n PayloadCerfa3514_2022,\n PayloadCerfa3519_2017,\n UpdatedAnnotation,\n} from '../../types';\nimport { cerfa3519Century17Fields, getCerfa3519Century17Payload } from './3519/century17';\nimport { getCerfa3519Century23RegistrationFields } from './3519/century23';\nimport { cerfa3514Century22Fields, getCerfa3514Century22Payload } from './3514/century22';\nimport { getCerfa3514Century23RegistrationFields } from './3514/century23';\nimport {\n Cerfa3517_2023,\n Cerfa3517_2025,\n PayloadCerfa3517_2023,\n PayloadCerfa3517_2025,\n} from '../../types/Interface/api/cerfa/3517';\nimport {\n cerfa3517Century23Fields,\n getCerfa3517Century23Payload,\n getCerfa3517CenturyRegistrationField,\n getCerfa3517DDRCentury23egistrationField,\n} from './3517/century23';\nimport {\n cerfa3310Century24Fields,\n getCerfa3310Century24Payload,\n getCerfa3310Century24RegistrationFields,\n} from './3310/century24';\nimport {\n cerfa3517Century25Fields,\n getCerfa3517Century25Payload,\n getCerfa3517Century25RegistrationField,\n getCerfa3517DDRCentury25egistrationField,\n} from './3517/century25';\nimport {\n cerfa3310Century25Fields,\n getCerfa3310Century25Payload,\n getCerfa3310Century25RegistrationFields,\n} from './3310/century25';\n\nconst vatDocuments: VatDocument[] = [\n {\n idCerfaType: CerfaType.CERFA_3310,\n name: '3310',\n century: '23',\n centuries: [2022, 2023],\n payload: (\n accountingEntries: IAccountingEntry[],\n payload: PayloadCerfa3310_2023,\n updatedEntries: UpdatedAnnotation,\n ) => getCerfa3310Century23Payload(accountingEntries, payload, updatedEntries),\n asponePayload: (data: Cerfa3310_2023) => getCerfa3310Century23RegistrationFields(data),\n fields: cerfa3310Century23Fields,\n fileName: '3310-2023',\n annex: {\n name: '3519',\n century: '23',\n shouldInclude: (data: Cerfa3310_2023) => Boolean(data.credit?.refundAsked && data.credit.refundAsked > 0),\n payload: (amount: number, payload: PayloadCerfa3519_2017) => getCerfa3519Century17Payload(amount, payload),\n asponePayload: (data: Cerfa3519_2017) => getCerfa3519Century23RegistrationFields(data),\n fields: cerfa3519Century17Fields,\n fileName: '3519-2017',\n },\n },\n {\n idCerfaType: CerfaType.CERFA_3310,\n name: '3310',\n century: '24',\n centuries: [2024],\n payload: (\n accountingEntries: IAccountingEntry[],\n payload: PayloadCerfa3310_2024,\n updatedEntries: UpdatedAnnotation,\n ) => getCerfa3310Century24Payload(accountingEntries, payload, updatedEntries),\n asponePayload: (data: Cerfa3310_2024) => getCerfa3310Century24RegistrationFields(data),\n fields: cerfa3310Century24Fields,\n fileName: '3310-2024',\n annex: {\n name: '3519',\n century: dayjs().month() === 0 ? dayjs().subtract(1, 'month').format('YY') : dayjs().format('YY'),\n shouldInclude: (data: Cerfa3310_2023) => Boolean(data.credit?.refundAsked && data.credit.refundAsked > 0),\n payload: (amount: number, payload: PayloadCerfa3519_2017) => getCerfa3519Century17Payload(amount, payload),\n asponePayload: (data: Cerfa3519_2017) => getCerfa3519Century23RegistrationFields(data),\n fields: cerfa3519Century17Fields,\n fileName: '3519-2017',\n },\n },\n {\n idCerfaType: CerfaType.CERFA_3310,\n name: '3310',\n century: '25',\n centuries: [2025],\n payload: (\n accountingEntries: IAccountingEntry[],\n payload: PayloadCerfa3310_2025,\n updatedEntries: UpdatedAnnotation,\n ) => getCerfa3310Century25Payload(accountingEntries, payload, updatedEntries),\n asponePayload: (data: Cerfa3310_2025) => getCerfa3310Century25RegistrationFields(data),\n fields: cerfa3310Century25Fields,\n fileName: '3310-2025',\n annex: {\n name: '3519',\n century: dayjs().month() === 0 ? dayjs().subtract(1, 'month').format('YY') : dayjs().format('YY'),\n shouldInclude: (data: Cerfa3310_2023) => Boolean(data.credit?.refundAsked && data.credit.refundAsked > 0),\n payload: (amount: number, payload: PayloadCerfa3519_2017) => getCerfa3519Century17Payload(amount, payload),\n asponePayload: (data: Cerfa3519_2017) => getCerfa3519Century23RegistrationFields(data),\n fields: cerfa3519Century17Fields,\n fileName: '3519-2017',\n },\n },\n {\n idCerfaType: CerfaType.CERFA_3514,\n name: '3514',\n century: '23',\n centuries: [2022, 2023, 2024, 2025],\n payload: (payload: PayloadCerfa3514_2022) => getCerfa3514Century22Payload(payload),\n asponePayload: (data: Cerfa3514_2022) => getCerfa3514Century23RegistrationFields(data),\n fields: cerfa3514Century22Fields,\n fileName: '3514-2022',\n },\n {\n idCerfaType: CerfaType.CERFA_3517,\n name: '3517',\n century: '23',\n centuries: [2022, 2023, 2024],\n payload: (accountingEntries: IAccountingEntry[], payload: PayloadCerfa3517_2023) =>\n getCerfa3517Century23Payload(accountingEntries, payload),\n asponePayload: (data: Cerfa3517_2023) => getCerfa3517CenturyRegistrationField(data),\n fields: cerfa3517Century23Fields,\n fileName: '3517-2023',\n annexFields: (data: Cerfa3517_2023) => getCerfa3517DDRCentury23egistrationField(data),\n },\n {\n idCerfaType: CerfaType.CERFA_3517,\n name: '3517',\n century: '25',\n centuries: [2025, 2026],\n payload: (accountingEntries: IAccountingEntry[], payload: PayloadCerfa3517_2025) =>\n getCerfa3517Century25Payload(accountingEntries, payload),\n asponePayload: (data: Cerfa3517_2025) => getCerfa3517Century25RegistrationField(data),\n fields: cerfa3517Century25Fields,\n fileName: '3517-2025',\n annexFields: (data: Cerfa3517_2025) => getCerfa3517DDRCentury25egistrationField(data),\n },\n];\n\nexport const getVatCerfaObject = (idCerfaType: CerfaType, endDate: string): VatDocument => {\n // Suppression du add(1, 'day') suite à une déclaration 3310 31/12 rejetée car millésime trop avancé pour le champ (0C3CE366-26EB-4BBA-AB61-93A606686C9A)\n\n // CA12 => Utiliser le millésime N pour les déclarations dont la date de fin de période CB/DTM >= 31/12/N-1\n // Autre => Utiliser le millésime N pour les déclarations dont la date de fin de période CB/DTM >= 01/01/N\n const year =\n idCerfaType === CerfaType.CERFA_3517 && dayjs(endDate).format('MM-DD') === '12-31'\n ? +dayjs(endDate).year() + 1\n : +dayjs(endDate).year();\n\n const cerfa = vatDocuments.find((v) => v.idCerfaType === idCerfaType && v.centuries.find((c) => c === year));\n if (!cerfa) throw new Error(`Cerfa type #${idCerfaType} with century ${year} is not managed yet.`);\n\n return cerfa;\n};\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.173",
|
|
4
4
|
"description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
|
|
5
5
|
"homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
|
-
import { CreateDocumentRequest, IDocumentRequest, QueryDocumentRequest } from '../../types';
|
|
2
|
+
import { CreateDocumentRequest, IDocumentRequest, QueryDocumentRequest, UpdateDocumentRequest } from '../../types';
|
|
3
3
|
|
|
4
4
|
export class DocumentRequest extends Resource {
|
|
5
5
|
create(body: CreateDocumentRequest): Promise<IDocumentRequest> {
|
|
6
6
|
return this.axios.$post('/documents-requests', body);
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
+
update(id: number, body: UpdateDocumentRequest): Promise<IDocumentRequest> {
|
|
10
|
+
return this.axios.$put(`/documents-requests/${id}`, body);
|
|
11
|
+
}
|
|
12
|
+
|
|
9
13
|
getAllBySociety(idSociety: number, query?: QueryDocumentRequest, signal?: AbortSignal): Promise<IDocumentRequest[]> {
|
|
10
14
|
return this.axios.$get(`/documents-requests/society/${idSociety}`, {
|
|
11
15
|
...signal && { signal },
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Resource } from '../Resource';
|
|
2
|
+
import { CreateInformationRequest, IInformationRequest, QueryInformationRequest, UpdateInformationRequest } from '../../types';
|
|
3
|
+
|
|
4
|
+
export class InformationRequest extends Resource {
|
|
5
|
+
create(body: CreateInformationRequest): Promise<IInformationRequest> {
|
|
6
|
+
return this.axios.$post('/information-requests', body);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
update(id: number, body: UpdateInformationRequest): Promise<IInformationRequest> {
|
|
10
|
+
return this.axios.$put(`/information-requests/${id}`, body);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
getAllBySociety(idSociety: number, query?: QueryInformationRequest, signal?: AbortSignal): Promise<IInformationRequest[]> {
|
|
14
|
+
return this.axios.$get(`/information-requests/society/${idSociety}`, {
|
|
15
|
+
...signal && { signal },
|
|
16
|
+
...query && { params: query },
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
getPendingBySociety(idSociety: number, query?: QueryInformationRequest, signal?: AbortSignal): Promise<IInformationRequest[]> {
|
|
21
|
+
return this.axios.$get(`/information-requests/pending/${idSociety}`, {
|
|
22
|
+
...signal && { signal },
|
|
23
|
+
...query && { params: query },
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
getById(id: number, signal?: AbortSignal): Promise<IInformationRequest> {
|
|
28
|
+
return this.axios.$get(`/information-requests/${id}`, {
|
|
29
|
+
...signal && { signal },
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
delete(id: number): Promise<void> {
|
|
34
|
+
return this.axios.$delete(`/information-requests/${id}`);
|
|
35
|
+
}
|
|
36
|
+
}
|
package/ts/api/resources.ts
CHANGED
|
@@ -186,6 +186,7 @@ import { DashboardLayout } from './resources/DashboardLayout';
|
|
|
186
186
|
import { DocumentRequest } from './resources/DocumentRequest';
|
|
187
187
|
import { BalanceSheetReport } from './resources/BalanceSheetReport';
|
|
188
188
|
import { Revenue } from './resources/Revenue';
|
|
189
|
+
import { InformationRequest } from './resources/InformationRequest';
|
|
189
190
|
import { AutomaticRegistration } from './resources/AutomaticRegistration';
|
|
190
191
|
|
|
191
192
|
export const resources = {
|
|
@@ -377,5 +378,6 @@ export const resources = {
|
|
|
377
378
|
documentRequest: DocumentRequest,
|
|
378
379
|
balanceSheetReport: BalanceSheetReport,
|
|
379
380
|
revenue: Revenue,
|
|
381
|
+
informationRequest: InformationRequest,
|
|
380
382
|
automaticRegistration: AutomaticRegistration,
|
|
381
383
|
};
|
|
@@ -233,14 +233,14 @@ export const BalanceSheetDetails = [
|
|
|
233
233
|
forRoles: [['front_office'], ['expert'], ['satisfaction']],
|
|
234
234
|
},
|
|
235
235
|
{
|
|
236
|
-
text:
|
|
236
|
+
text: 'Accepté SIE en l\'état',
|
|
237
237
|
value: BalanceSheetState.ACCEPTED_BY_SIE_IN_STATE,
|
|
238
238
|
color: 'green darken-3',
|
|
239
239
|
colorText: 'green--text',
|
|
240
240
|
forRoles: [['front_office'], ['expert']],
|
|
241
241
|
},
|
|
242
242
|
{
|
|
243
|
-
text:
|
|
243
|
+
text: 'Refus d\'établir',
|
|
244
244
|
value: BalanceSheetState.ESTABLISH_REFUSED,
|
|
245
245
|
color: 'orange darken-1',
|
|
246
246
|
colorText: 'orange--text text--darken-1',
|
|
@@ -271,7 +271,7 @@ export const ForecastBalanceSheetDetails = [
|
|
|
271
271
|
forRoles: [['front_office'], ['expert']],
|
|
272
272
|
},
|
|
273
273
|
{
|
|
274
|
-
text:
|
|
274
|
+
text: 'Prévisionnel d\' abandonné',
|
|
275
275
|
value: BalanceSheetState.ABANDONED_FORECAST,
|
|
276
276
|
color: 'green darken-3',
|
|
277
277
|
colorText: 'green--text',
|
|
@@ -319,7 +319,7 @@ export type BalanceSheetList = BalanceSheetField[];
|
|
|
319
319
|
|
|
320
320
|
export enum BalanceSheetLabel {
|
|
321
321
|
CAPITAL_SOUSCRIT = 'Capital souscrit - non appelé',
|
|
322
|
-
FRAIS_ETABLISSEMENT =
|
|
322
|
+
FRAIS_ETABLISSEMENT = 'Frais d\'établissement',
|
|
323
323
|
CONCESSIONS_BREVETS = 'Concessions, brevets, licences, marques, procédés, logiciels, droits et valeurs similaires',
|
|
324
324
|
FOND_COMMERCIAL = 'Fonds commercial',
|
|
325
325
|
AUTRES_IMMOBILISATIONS_INCORPORELLES = 'Autres immobilisations inc.',
|
|
@@ -345,7 +345,7 @@ export enum BalanceSheetLabel {
|
|
|
345
345
|
VALEUR_MOBILIERE_PLACEMENT_ACTION_PROPRE = 'Actions propres',
|
|
346
346
|
VALEUR_MOBILIERE_PLACEMENT = 'Valeurs mobilières de placement',
|
|
347
347
|
DISPONIBILITES = 'Disponibilités',
|
|
348
|
-
CHARGES_CONSTATEES_AVANCE =
|
|
348
|
+
CHARGES_CONSTATEES_AVANCE = 'Charges constatées d\'avance',
|
|
349
349
|
TOTAL_2 = 'Total (II)',
|
|
350
350
|
PRIMES_DE_REMBOURSEMENT_DES_EMPRUNTS = 'Primes de remboursement des emprunts (IV)',
|
|
351
351
|
ECARTS_DE_CONVERSIONS = 'Ecarts de conversion Actif (V)',
|
|
@@ -479,7 +479,7 @@ export const BALANCE_SHEET_LIST_ACTIVE: BalanceSheetList = [
|
|
|
479
479
|
accountsDescription: [],
|
|
480
480
|
},
|
|
481
481
|
{
|
|
482
|
-
name:
|
|
482
|
+
name: 'Titres immobilisés de l\'activité de portefeuille',
|
|
483
483
|
accounts: ['273'],
|
|
484
484
|
accountsDeducted: ['2973'],
|
|
485
485
|
accountsDescription: [],
|
|
@@ -716,13 +716,13 @@ export const BALANCE_SHEET_LIST_ACTIVE: BalanceSheetList = [
|
|
|
716
716
|
export enum BalanceSheetPassiveLabel {
|
|
717
717
|
CAPITAL = 'Capital (dont versé...)',
|
|
718
718
|
RESERVE_LEGALE = 'Réserve légale',
|
|
719
|
-
PRIMES_EMISSION =
|
|
719
|
+
PRIMES_EMISSION = 'Primes d\'émission, de fusion, d\'apport',
|
|
720
720
|
ECART_DE_REEVALUATION = 'Ecart de réévaluation',
|
|
721
721
|
RESERVES_STATUAIRES = 'Réserves statutaires ou contractuelles',
|
|
722
722
|
RESERVES_REGLEMENTEES = 'Réserves réglementées',
|
|
723
723
|
AUTRES_RESERVES = 'Autres',
|
|
724
724
|
REPORT_A_NOUVEAU = 'Report à nouveau',
|
|
725
|
-
SUBVENTIONS_INVESTISSEMENT =
|
|
725
|
+
SUBVENTIONS_INVESTISSEMENT = 'Subventions d\'investissement',
|
|
726
726
|
PROVISIONS_REFLEMENTEES = 'Provisions réglementées',
|
|
727
727
|
PROVISIONS_POUR_RISQUES = 'Provisions pour risques',
|
|
728
728
|
PROVISIONS_POUR_CHARGES = 'Provisions pour charges',
|
|
@@ -735,7 +735,7 @@ export enum BalanceSheetPassiveLabel {
|
|
|
735
735
|
DETTES_FISCALES_ET_SOCIALES = 'Dettes fiscales et sociales',
|
|
736
736
|
DETTES_SUR_IMMOBILISATIONS_ET_COMPTES_RATTACHES = 'Dettes sur immobilisations et Comptes rattachés',
|
|
737
737
|
AUTRES_DETTES = 'Autres dettes',
|
|
738
|
-
PRODUITS_CONSTATES_D_AVANCE =
|
|
738
|
+
PRODUITS_CONSTATES_D_AVANCE = 'Produits constatés d\'avance',
|
|
739
739
|
ECART_PASSIF = 'Ecarts de conversion passif (IV)',
|
|
740
740
|
TOTAL_GENERAL = 'Total général (I+II+III+IV)',
|
|
741
741
|
CONCOURS = '(1) Dont concours bancaires courants et soldes créditeurs de banques',
|
|
@@ -769,7 +769,7 @@ export const BALANCE_SHEET_LIST_PASSIVE: BalanceSheetList = [
|
|
|
769
769
|
accountsDescription: [],
|
|
770
770
|
},
|
|
771
771
|
{
|
|
772
|
-
name:
|
|
772
|
+
name: 'Ecart d\'équivalence',
|
|
773
773
|
key: 'equivalenceGap',
|
|
774
774
|
accounts: ['107'],
|
|
775
775
|
isSubcategory: true,
|
|
@@ -815,7 +815,7 @@ export const BALANCE_SHEET_LIST_PASSIVE: BalanceSheetList = [
|
|
|
815
815
|
accountsDescription: [],
|
|
816
816
|
},
|
|
817
817
|
{
|
|
818
|
-
name:
|
|
818
|
+
name: 'Résultat de l\'exercice (bénéfice ou perte)',
|
|
819
819
|
key: 'resultExercice',
|
|
820
820
|
accounts: ['12'], // comptes 6 - 7
|
|
821
821
|
isSubcategory: true,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LegalForm } from '..';
|
|
1
|
+
import { IBalanceSheetModule, LegalForm } from '..';
|
|
2
2
|
|
|
3
3
|
export enum BalanceSheetModule {
|
|
4
4
|
SHARE_CAPITAL = 1,
|
|
@@ -62,3 +62,26 @@ export const BalanceSheetModuleByCompanyType: IBalanceSheetModuleByCompanyType =
|
|
|
62
62
|
},
|
|
63
63
|
},
|
|
64
64
|
};
|
|
65
|
+
|
|
66
|
+
export const BalanceSheetModuleFieldMapping: Record<BalanceSheetModule, keyof IBalanceSheetModule> = {
|
|
67
|
+
[BalanceSheetModule.SHARE_CAPITAL]: 'hasShareCapital',
|
|
68
|
+
[BalanceSheetModule.IMMOBILIZATIONS]: 'recoveryImmobilization',
|
|
69
|
+
[BalanceSheetModule.LOANS]: 'loanToDeclare',
|
|
70
|
+
[BalanceSheetModule.SALARY_FILES]: 'salariesFile',
|
|
71
|
+
[BalanceSheetModule.INCOME_ALLOCATION]: 'incomeAllocation',
|
|
72
|
+
[BalanceSheetModule.MANUAL_ENTRIES]: 'hasManualEntryToDeclare',
|
|
73
|
+
[BalanceSheetModule.MEAL_EXPENSES]: 'hasMealExpenses',
|
|
74
|
+
[BalanceSheetModule.INVENTORY]: 'inventory',
|
|
75
|
+
[BalanceSheetModule.PROFESSIONAL_SHARE]: 'hasLaundryFees',
|
|
76
|
+
[BalanceSheetModule.PROVISIONS]: 'provisionToDeclare',
|
|
77
|
+
[BalanceSheetModule.VAT_CONTROL]: 'hasCheckedVAT',
|
|
78
|
+
[BalanceSheetModule.CUSTOMER_INVOICE_TO_ESTABLISH]: 'hasCustomerInvoiceToEstablish',
|
|
79
|
+
[BalanceSheetModule.CUSTOMER_ASSET_TO_ESTABLISH]: 'hasCustomerAssetToEstablish',
|
|
80
|
+
[BalanceSheetModule.CUSTOMER_PREPAID_INCOME]: 'hasCustomerPrepaidIncome',
|
|
81
|
+
[BalanceSheetModule.NOT_RECEIVED_PROVIDER_INVOICE]: 'hasProviderInvoiceNotReceived',
|
|
82
|
+
[BalanceSheetModule.PROVIDER_ASSET_TO_RECEIVE]: 'hasProviderAssetToReceived',
|
|
83
|
+
[BalanceSheetModule.PROVIDER_PREPAID_EXPENSES]: 'hasProviderPrepaidReceived',
|
|
84
|
+
[BalanceSheetModule.COMPANY_TAX]: 'hasCheckedCompanyTax',
|
|
85
|
+
[BalanceSheetModule.PREVIOUS_FISCAL_PERIOD]: 'hasPreviousExercice',
|
|
86
|
+
[BalanceSheetModule.FINANCIAL_CHARGES]: 'hasFinancialCharges',
|
|
87
|
+
};
|
|
@@ -93,7 +93,7 @@ export const DepositDocumentType = [
|
|
|
93
93
|
idGedFolder: GedFolder.JURIDICAL,
|
|
94
94
|
},
|
|
95
95
|
{
|
|
96
|
-
id: TypeFile.
|
|
96
|
+
id: TypeFile.RECIPROCITY,
|
|
97
97
|
name: 'Réciprocité des comptes',
|
|
98
98
|
description: 'Télécharger la réciprocité des comptes ici',
|
|
99
99
|
idGedFolder: GedFolder.JURIDICAL,
|