@silexpert/core 1.3.169-4 → 1.3.170
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 +1 -2
- package/dist/cjs/api/resources/DocumentRequest.d.ts.map +1 -1
- package/dist/cjs/api/resources/DocumentRequest.js +0 -3
- package/dist/cjs/api/resources/DocumentRequest.js.map +1 -1
- package/dist/cjs/api/resources/Revenue.d.ts +0 -9
- package/dist/cjs/api/resources/Revenue.d.ts.map +1 -1
- package/dist/cjs/api/resources/Revenue.js +0 -11
- package/dist/cjs/api/resources/Revenue.js.map +1 -1
- package/dist/cjs/api/resources.d.ts +1 -3
- package/dist/cjs/api/resources.d.ts.map +1 -1
- package/dist/cjs/api/resources.js +1 -3
- package/dist/cjs/api/resources.js.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheet.d.ts +2 -14
- package/dist/cjs/types/Enum/BalanceSheet.d.ts.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheet.js +13 -48
- package/dist/cjs/types/Enum/BalanceSheet.js.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheetModule.d.ts +0 -2
- package/dist/cjs/types/Enum/BalanceSheetModule.d.ts.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheetModule.js +1 -23
- 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 +4 -19
- package/dist/cjs/types/Enum/Ged.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Ged.js +5 -142
- package/dist/cjs/types/Enum/Ged.js.map +1 -1
- package/dist/cjs/types/Enum/LetterType.js +2 -2
- package/dist/cjs/types/Enum/LetterType.js.map +1 -1
- package/dist/cjs/types/Enum/PrestationType.js +6 -6
- package/dist/cjs/types/Enum/PrestationType.js.map +1 -1
- package/dist/cjs/types/Enum/ReasonTerminationType.d.ts +1 -2
- package/dist/cjs/types/Enum/ReasonTerminationType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/ReasonTerminationType.js +0 -6
- package/dist/cjs/types/Enum/ReasonTerminationType.js.map +1 -1
- package/dist/cjs/types/Enum/Revenue.d.ts +1 -3
- package/dist/cjs/types/Enum/Revenue.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Revenue.js +0 -2
- package/dist/cjs/types/Enum/Revenue.js.map +1 -1
- package/dist/cjs/types/Interface/api/documentRequest/Create.d.ts +0 -1
- package/dist/cjs/types/Interface/api/documentRequest/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/documentRequest/Create.js +0 -8
- package/dist/cjs/types/Interface/api/documentRequest/Create.js.map +1 -1
- package/dist/cjs/types/Interface/api/documentRequest/Query.d.ts +0 -3
- package/dist/cjs/types/Interface/api/documentRequest/Query.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/documentRequest/Query.js +0 -12
- package/dist/cjs/types/Interface/api/documentRequest/Query.js.map +1 -1
- package/dist/cjs/types/Interface/api/payment/Params.d.ts +0 -1
- package/dist/cjs/types/Interface/api/payment/Params.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/payment/Params.js +0 -6
- package/dist/cjs/types/Interface/api/payment/Params.js.map +1 -1
- package/dist/cjs/types/Interface/api/revenue/revenueMovement.d.ts +0 -23
- package/dist/cjs/types/Interface/api/revenue/revenueMovement.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/revenue/revenueMovement.js +1 -58
- package/dist/cjs/types/Interface/api/revenue/revenueMovement.js.map +1 -1
- package/dist/cjs/types/Interface/models/IBalanceSheetModule.d.ts +0 -4
- 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 +1 -7
- 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/IPayment.d.ts +0 -1
- package/dist/cjs/types/Interface/models/IPayment.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IPayment.js.map +1 -1
- package/dist/cjs/types/index.d.ts +0 -7
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +0 -7
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/cjs/utils/checkup.d.ts +368 -12
- package/dist/cjs/utils/checkup.d.ts.map +1 -1
- package/dist/cjs/utils/checkup.js +565 -342
- package/dist/cjs/utils/checkup.js.map +1 -1
- package/dist/cjs/utils/exercice.d.ts +0 -9
- package/dist/cjs/utils/exercice.d.ts.map +1 -1
- package/dist/cjs/utils/exercice.js +1 -15
- package/dist/cjs/utils/exercice.js.map +1 -1
- package/dist/cjs/utils/vat/3310/century23.js +18 -19
- package/dist/cjs/utils/vat/3310/century23.js.map +1 -1
- package/dist/cjs/utils/vat/3310/century24.js +18 -19
- package/dist/cjs/utils/vat/3310/century24.js.map +1 -1
- package/dist/cjs/utils/vat/3310/century25.js +17 -18
- package/dist/cjs/utils/vat/3310/century25.js.map +1 -1
- package/dist/mjs/api/resources/DocumentRequest.d.ts +1 -2
- package/dist/mjs/api/resources/DocumentRequest.d.ts.map +1 -1
- package/dist/mjs/api/resources/DocumentRequest.js +0 -3
- package/dist/mjs/api/resources/DocumentRequest.js.map +1 -1
- package/dist/mjs/api/resources/Revenue.d.ts +0 -9
- package/dist/mjs/api/resources/Revenue.d.ts.map +1 -1
- package/dist/mjs/api/resources/Revenue.js +0 -11
- package/dist/mjs/api/resources/Revenue.js.map +1 -1
- package/dist/mjs/api/resources.d.ts +1 -3
- package/dist/mjs/api/resources.d.ts.map +1 -1
- package/dist/mjs/api/resources.js +1 -3
- package/dist/mjs/api/resources.js.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheet.d.ts +2 -14
- package/dist/mjs/types/Enum/BalanceSheet.d.ts.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheet.js +13 -45
- package/dist/mjs/types/Enum/BalanceSheet.js.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheetModule.d.ts +0 -2
- package/dist/mjs/types/Enum/BalanceSheetModule.d.ts.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheetModule.js +0 -22
- 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 +4 -19
- package/dist/mjs/types/Enum/Ged.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Ged.js +5 -142
- package/dist/mjs/types/Enum/Ged.js.map +1 -1
- package/dist/mjs/types/Enum/LetterType.js +2 -2
- package/dist/mjs/types/Enum/LetterType.js.map +1 -1
- package/dist/mjs/types/Enum/PrestationType.js +6 -6
- package/dist/mjs/types/Enum/PrestationType.js.map +1 -1
- package/dist/mjs/types/Enum/ReasonTerminationType.d.ts +1 -2
- package/dist/mjs/types/Enum/ReasonTerminationType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/ReasonTerminationType.js +0 -6
- package/dist/mjs/types/Enum/ReasonTerminationType.js.map +1 -1
- package/dist/mjs/types/Enum/Revenue.d.ts +1 -3
- package/dist/mjs/types/Enum/Revenue.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Revenue.js +0 -2
- package/dist/mjs/types/Enum/Revenue.js.map +1 -1
- package/dist/mjs/types/Interface/api/documentRequest/Create.d.ts +0 -1
- package/dist/mjs/types/Interface/api/documentRequest/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/documentRequest/Create.js +1 -10
- package/dist/mjs/types/Interface/api/documentRequest/Create.js.map +1 -1
- package/dist/mjs/types/Interface/api/documentRequest/Query.d.ts +0 -3
- package/dist/mjs/types/Interface/api/documentRequest/Query.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/documentRequest/Query.js +1 -15
- package/dist/mjs/types/Interface/api/documentRequest/Query.js.map +1 -1
- package/dist/mjs/types/Interface/api/payment/Params.d.ts +0 -1
- package/dist/mjs/types/Interface/api/payment/Params.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/payment/Params.js +0 -7
- package/dist/mjs/types/Interface/api/payment/Params.js.map +1 -1
- package/dist/mjs/types/Interface/api/revenue/revenueMovement.d.ts +0 -23
- package/dist/mjs/types/Interface/api/revenue/revenueMovement.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/revenue/revenueMovement.js +1 -57
- package/dist/mjs/types/Interface/api/revenue/revenueMovement.js.map +1 -1
- package/dist/mjs/types/Interface/models/IBalanceSheetModule.d.ts +0 -4
- 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 +1 -7
- 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/IPayment.d.ts +0 -1
- package/dist/mjs/types/Interface/models/IPayment.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IPayment.js.map +1 -1
- package/dist/mjs/types/index.d.ts +0 -7
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +0 -7
- package/dist/mjs/types/index.js.map +1 -1
- package/dist/mjs/utils/checkup.d.ts +368 -12
- package/dist/mjs/utils/checkup.d.ts.map +1 -1
- package/dist/mjs/utils/checkup.js +566 -343
- package/dist/mjs/utils/checkup.js.map +1 -1
- package/dist/mjs/utils/exercice.d.ts +0 -9
- package/dist/mjs/utils/exercice.d.ts.map +1 -1
- package/dist/mjs/utils/exercice.js +0 -13
- package/dist/mjs/utils/exercice.js.map +1 -1
- package/dist/mjs/utils/vat/3310/century23.js +18 -19
- package/dist/mjs/utils/vat/3310/century23.js.map +1 -1
- package/dist/mjs/utils/vat/3310/century24.js +18 -19
- package/dist/mjs/utils/vat/3310/century24.js.map +1 -1
- package/dist/mjs/utils/vat/3310/century25.js +16 -17
- package/dist/mjs/utils/vat/3310/century25.js.map +1 -1
- package/package.json +2 -2
- package/ts/api/resources/DocumentRequest.ts +1 -5
- package/ts/api/resources/Revenue.ts +0 -12
- package/ts/api/resources.ts +1 -3
- package/ts/types/Enum/BalanceSheet.ts +17 -59
- package/ts/types/Enum/BalanceSheetModule.ts +1 -24
- package/ts/types/Enum/DepositDocumentType.ts +1 -1
- package/ts/types/Enum/Ged.ts +5 -143
- package/ts/types/Enum/LetterType.ts +2 -2
- package/ts/types/Enum/PrestationType.ts +6 -6
- package/ts/types/Enum/ReasonTerminationType.ts +0 -6
- package/ts/types/Enum/Revenue.ts +0 -3
- package/ts/types/Interface/api/documentRequest/Create.ts +1 -8
- package/ts/types/Interface/api/documentRequest/Query.ts +1 -12
- package/ts/types/Interface/api/payment/Params.ts +0 -5
- package/ts/types/Interface/api/revenue/revenueMovement.ts +1 -61
- package/ts/types/Interface/models/IBalanceSheetModule.ts +1 -7
- package/ts/types/Interface/models/IDocumentRequest.ts +2 -8
- package/ts/types/Interface/models/IPayment.ts +0 -1
- package/ts/types/index.ts +0 -7
- package/ts/utils/checkup.ts +566 -347
- package/ts/utils/exercice.ts +0 -14
- package/ts/utils/vat/3310/century23.ts +16 -16
- package/ts/utils/vat/3310/century24.ts +18 -18
- package/ts/utils/vat/3310/century25.ts +19 -19
- package/dist/cjs/api/resources/InformationRequest.d.ts +0 -11
- package/dist/cjs/api/resources/InformationRequest.d.ts.map +0 -1
- package/dist/cjs/api/resources/InformationRequest.js +0 -26
- package/dist/cjs/api/resources/InformationRequest.js.map +0 -1
- package/dist/cjs/types/Enum/InformationRequestState.d.ts +0 -6
- package/dist/cjs/types/Enum/InformationRequestState.d.ts.map +0 -1
- package/dist/cjs/types/Enum/InformationRequestState.js +0 -10
- package/dist/cjs/types/Enum/InformationRequestState.js.map +0 -1
- package/dist/cjs/types/Enum/InformationRequestType.d.ts +0 -17
- package/dist/cjs/types/Enum/InformationRequestType.d.ts.map +0 -1
- package/dist/cjs/types/Enum/InformationRequestType.js +0 -44
- package/dist/cjs/types/Enum/InformationRequestType.js.map +0 -1
- package/dist/cjs/types/Interface/api/documentRequest/Update.d.ts +0 -12
- package/dist/cjs/types/Interface/api/documentRequest/Update.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/documentRequest/Update.js +0 -63
- package/dist/cjs/types/Interface/api/documentRequest/Update.js.map +0 -1
- package/dist/cjs/types/Interface/api/informationRequest/Create.d.ts +0 -10
- package/dist/cjs/types/Interface/api/informationRequest/Create.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/informationRequest/Create.js +0 -49
- package/dist/cjs/types/Interface/api/informationRequest/Create.js.map +0 -1
- package/dist/cjs/types/Interface/api/informationRequest/Query.d.ts +0 -11
- package/dist/cjs/types/Interface/api/informationRequest/Query.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/informationRequest/Query.js +0 -54
- package/dist/cjs/types/Interface/api/informationRequest/Query.js.map +0 -1
- package/dist/cjs/types/Interface/api/informationRequest/Update.d.ts +0 -12
- package/dist/cjs/types/Interface/api/informationRequest/Update.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/informationRequest/Update.js +0 -58
- package/dist/cjs/types/Interface/api/informationRequest/Update.js.map +0 -1
- package/dist/cjs/types/Interface/models/IInformationRequest.d.ts +0 -25
- package/dist/cjs/types/Interface/models/IInformationRequest.d.ts.map +0 -1
- package/dist/cjs/types/Interface/models/IInformationRequest.js +0 -3
- package/dist/cjs/types/Interface/models/IInformationRequest.js.map +0 -1
- package/dist/mjs/api/resources/InformationRequest.d.ts +0 -11
- package/dist/mjs/api/resources/InformationRequest.d.ts.map +0 -1
- package/dist/mjs/api/resources/InformationRequest.js +0 -30
- package/dist/mjs/api/resources/InformationRequest.js.map +0 -1
- package/dist/mjs/types/Enum/InformationRequestState.d.ts +0 -6
- package/dist/mjs/types/Enum/InformationRequestState.d.ts.map +0 -1
- package/dist/mjs/types/Enum/InformationRequestState.js +0 -7
- package/dist/mjs/types/Enum/InformationRequestState.js.map +0 -1
- package/dist/mjs/types/Enum/InformationRequestType.d.ts +0 -17
- package/dist/mjs/types/Enum/InformationRequestType.d.ts.map +0 -1
- package/dist/mjs/types/Enum/InformationRequestType.js +0 -41
- package/dist/mjs/types/Enum/InformationRequestType.js.map +0 -1
- package/dist/mjs/types/Interface/api/documentRequest/Update.d.ts +0 -12
- package/dist/mjs/types/Interface/api/documentRequest/Update.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/documentRequest/Update.js +0 -66
- package/dist/mjs/types/Interface/api/documentRequest/Update.js.map +0 -1
- package/dist/mjs/types/Interface/api/informationRequest/Create.d.ts +0 -10
- package/dist/mjs/types/Interface/api/informationRequest/Create.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/informationRequest/Create.js +0 -50
- package/dist/mjs/types/Interface/api/informationRequest/Create.js.map +0 -1
- package/dist/mjs/types/Interface/api/informationRequest/Query.d.ts +0 -11
- package/dist/mjs/types/Interface/api/informationRequest/Query.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/informationRequest/Query.js +0 -56
- package/dist/mjs/types/Interface/api/informationRequest/Query.js.map +0 -1
- package/dist/mjs/types/Interface/api/informationRequest/Update.d.ts +0 -12
- package/dist/mjs/types/Interface/api/informationRequest/Update.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/informationRequest/Update.js +0 -60
- package/dist/mjs/types/Interface/api/informationRequest/Update.js.map +0 -1
- package/dist/mjs/types/Interface/models/IInformationRequest.d.ts +0 -25
- package/dist/mjs/types/Interface/models/IInformationRequest.d.ts.map +0 -1
- package/dist/mjs/types/Interface/models/IInformationRequest.js +0 -2
- package/dist/mjs/types/Interface/models/IInformationRequest.js.map +0 -1
- package/ts/api/resources/InformationRequest.ts +0 -36
- package/ts/types/Enum/InformationRequestState.ts +0 -5
- package/ts/types/Enum/InformationRequestType.ts +0 -51
- package/ts/types/Interface/api/documentRequest/Update.ts +0 -43
- package/ts/types/Interface/api/informationRequest/Create.ts +0 -31
- package/ts/types/Interface/api/informationRequest/Query.ts +0 -36
- package/ts/types/Interface/api/informationRequest/Update.ts +0 -39
- package/ts/types/Interface/models/IInformationRequest.ts +0 -27
package/ts/utils/exercice.ts
CHANGED
|
@@ -32,17 +32,3 @@ const exerciceNumber = (endDate: Date, exerciceList: IExercice[]): number => {
|
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
export { exerciceNumber, isExerciceAfterRecoveryDate };
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Compute the real number of months in an exercice, inclusive of the last day.
|
|
38
|
-
* For accounting correctness, we include the end day in the diff.
|
|
39
|
-
*
|
|
40
|
-
* @param startDate - Exercice start date
|
|
41
|
-
* @param endDate - Exercice end date
|
|
42
|
-
* @returns Number of months in the exercice
|
|
43
|
-
*/
|
|
44
|
-
export const getNbExerciceMonths = (startDate: Date, endDate: Date): number => {
|
|
45
|
-
const start = dayjs(startDate);
|
|
46
|
-
const end = dayjs(endDate).add(1, 'day');
|
|
47
|
-
return Math.round(end.diff(start, 'months', true));
|
|
48
|
-
};
|
|
@@ -462,12 +462,12 @@ export function getCerfa3310Century23Payload(
|
|
|
462
462
|
),
|
|
463
463
|
) + (payload?.vatControl?.deducted?.other ?? 0);
|
|
464
464
|
|
|
465
|
-
const
|
|
466
|
-
const report = isNil ? 0 :
|
|
465
|
+
const report =
|
|
467
466
|
(payload.vat?.deductible?.toReport && payload.vat?.deductible?.toReport >= 0
|
|
468
467
|
? _round(payload.vat?.deductible?.toReport ?? 0)
|
|
469
468
|
: (payload.previousVatDeclaration?.credit?.toReport ?? 0)) + (payload?.vatControl?.deducted?.reported ?? 0);
|
|
470
469
|
const coefficient = _round(payload.vat?.deductible?.coefficient ?? 100, 2);
|
|
470
|
+
const isNil = payload.isNil === true;
|
|
471
471
|
const isHolidayDeposit = payload.isHolidayDeposit === true;
|
|
472
472
|
|
|
473
473
|
const sumToAdd =
|
|
@@ -1048,7 +1048,7 @@ export function getCerfa3310Century23RegistrationFields(data: Cerfa3310_2023): A
|
|
|
1048
1048
|
tag: 'Valeur',
|
|
1049
1049
|
isMultiple: false,
|
|
1050
1050
|
description:
|
|
1051
|
-
|
|
1051
|
+
"MOA Livraisons d'electricité, de gaz naturel, de chaleur ou de froid imposables en France, base hors taxe",
|
|
1052
1052
|
value: data.taxedOperations.energyDelivery,
|
|
1053
1053
|
},
|
|
1054
1054
|
{
|
|
@@ -1056,7 +1056,7 @@ export function getCerfa3310Century23RegistrationFields(data: Cerfa3310_2023): A
|
|
|
1056
1056
|
tag: 'Valeur',
|
|
1057
1057
|
isMultiple: false,
|
|
1058
1058
|
description:
|
|
1059
|
-
|
|
1059
|
+
"MOA Achats de biens ou de prestations de services réalisés auprès d'un assujetti non établi en France, art 283-1 du CGI",
|
|
1060
1060
|
value: data.taxedOperations.purchaseOfServicesNotInFrance,
|
|
1061
1061
|
},
|
|
1062
1062
|
{
|
|
@@ -1105,7 +1105,7 @@ export function getCerfa3310Century23RegistrationFields(data: Cerfa3310_2023): A
|
|
|
1105
1105
|
key: 'DC',
|
|
1106
1106
|
tag: 'Valeur',
|
|
1107
1107
|
isMultiple: false,
|
|
1108
|
-
description:
|
|
1108
|
+
description: "MOA Livraisons intracommunautaires à destination d'une personne assujettie 100077",
|
|
1109
1109
|
value: data.untaxedOperations.intracommunityDelivery,
|
|
1110
1110
|
},
|
|
1111
1111
|
{
|
|
@@ -1127,7 +1127,7 @@ export function getCerfa3310Century23RegistrationFields(data: Cerfa3310_2023): A
|
|
|
1127
1127
|
tag: 'Valeur',
|
|
1128
1128
|
isMultiple: false,
|
|
1129
1129
|
description:
|
|
1130
|
-
|
|
1130
|
+
"MOA Livraisons d'electricité, de gaz naturel, de chaleur ou de froid non imposables en France 100122",
|
|
1131
1131
|
value: data.untaxedOperations.energyDelivery,
|
|
1132
1132
|
},
|
|
1133
1133
|
{
|
|
@@ -1334,7 +1334,7 @@ export function getCerfa3310Century23RegistrationFields(data: Cerfa3310_2023): A
|
|
|
1334
1334
|
tag: 'Valeur',
|
|
1335
1335
|
isMultiple: false,
|
|
1336
1336
|
description:
|
|
1337
|
-
|
|
1337
|
+
"PCD Pourcentage de déduction applicable pour la période s'il est différent de 100% Valeur entière et au plus 2 décimales",
|
|
1338
1338
|
value:
|
|
1339
1339
|
isDefined(data.vat.deductible.coefficient) && data.vat.deductible.coefficient !== 100
|
|
1340
1340
|
? data.vat.deductible.coefficient
|
|
@@ -1365,7 +1365,7 @@ export function getCerfa3310Century23RegistrationFields(data: Cerfa3310_2023): A
|
|
|
1365
1365
|
key: 'HJ',
|
|
1366
1366
|
tag: 'Valeur',
|
|
1367
1367
|
isMultiple: false,
|
|
1368
|
-
description:
|
|
1368
|
+
description: "CCITBX Mention membre d'un groupe Table TBX avec X pour sélectionné, CCI/7037 = CAV/1131 =",
|
|
1369
1369
|
value: null,
|
|
1370
1370
|
},
|
|
1371
1371
|
{
|
|
@@ -1571,7 +1571,7 @@ export function getCerfa3310Century23RegistrationFields(data: Cerfa3310_2023): A
|
|
|
1571
1571
|
tag: 'Valeur',
|
|
1572
1572
|
isMultiple: false,
|
|
1573
1573
|
description:
|
|
1574
|
-
|
|
1574
|
+
"CCITBX Mention de qualité de représentant d'un assujetti unique Table TBX avec X pour sélectionné, CCI/7037 = CAV/1131 =",
|
|
1575
1575
|
value: null,
|
|
1576
1576
|
},
|
|
1577
1577
|
{
|
|
@@ -1592,7 +1592,7 @@ export function getCerfa3310Century23RegistrationFields(data: Cerfa3310_2023): A
|
|
|
1592
1592
|
key: 'MD',
|
|
1593
1593
|
tag: 'Valeur',
|
|
1594
1594
|
isMultiple: false,
|
|
1595
|
-
description:
|
|
1595
|
+
description: "MOA Retenue de TVA sur droits d'auteur taxe due",
|
|
1596
1596
|
value: data.vat.otherRate.author.tax,
|
|
1597
1597
|
},
|
|
1598
1598
|
{
|
|
@@ -1613,7 +1613,7 @@ export function getCerfa3310Century23RegistrationFields(data: Cerfa3310_2023): A
|
|
|
1613
1613
|
key: 'MG',
|
|
1614
1614
|
tag: 'Valeur',
|
|
1615
1615
|
isMultiple: false,
|
|
1616
|
-
description:
|
|
1616
|
+
description: "MOA Retenue de TVA sur droits d'auteur base HT",
|
|
1617
1617
|
value: data.vat.otherRate.oldRate.base,
|
|
1618
1618
|
},
|
|
1619
1619
|
{
|
|
@@ -1799,12 +1799,12 @@ export const cerfa3310Century23Fields: CerfaPayloadForm[] = [
|
|
|
1799
1799
|
type: 'number',
|
|
1800
1800
|
},
|
|
1801
1801
|
{
|
|
1802
|
-
label:
|
|
1802
|
+
label: "B3 - Achats d'electricité, de gaz naturel, de chaleur ou de froid imposables en France",
|
|
1803
1803
|
key: 'taxedOperations.energyDelivery',
|
|
1804
1804
|
type: 'number',
|
|
1805
1805
|
},
|
|
1806
1806
|
{
|
|
1807
|
-
label:
|
|
1807
|
+
label: "B4 - Achats de biens ou de prestations de services réalisés auprès d'un assujetti non établi en France",
|
|
1808
1808
|
key: 'taxedOperations.regularizations',
|
|
1809
1809
|
type: 'number',
|
|
1810
1810
|
},
|
|
@@ -1834,7 +1834,7 @@ export const cerfa3310Century23Fields: CerfaPayloadForm[] = [
|
|
|
1834
1834
|
type: 'number',
|
|
1835
1835
|
},
|
|
1836
1836
|
{
|
|
1837
|
-
label:
|
|
1837
|
+
label: "F3 - Livraisons d'électricité, de gaz naturel, de chaleur ou de froid non imposables en France",
|
|
1838
1838
|
key: 'untaxedOperations.energyDelivery',
|
|
1839
1839
|
type: 'number',
|
|
1840
1840
|
},
|
|
@@ -1864,7 +1864,7 @@ export const cerfa3310Century23Fields: CerfaPayloadForm[] = [
|
|
|
1864
1864
|
type: 'number',
|
|
1865
1865
|
},
|
|
1866
1866
|
{
|
|
1867
|
-
label:
|
|
1867
|
+
label: "F9 - Opérations internes réalisées entre membres d'un assujetti unique",
|
|
1868
1868
|
key: 'untaxedOperations.internalUniq',
|
|
1869
1869
|
type: 'number',
|
|
1870
1870
|
},
|
|
@@ -1951,7 +1951,7 @@ export const cerfa3310Century23Fields: CerfaPayloadForm[] = [
|
|
|
1951
1951
|
type: 'number',
|
|
1952
1952
|
},
|
|
1953
1953
|
{
|
|
1954
|
-
label:
|
|
1954
|
+
label: "29 - Taxes assimilées calculées sur l'annexe n° 3310 A",
|
|
1955
1955
|
key: 'credit.assimiledTaxes',
|
|
1956
1956
|
type: 'number',
|
|
1957
1957
|
},
|
|
@@ -461,13 +461,13 @@ export function getCerfa3310Century24Payload(
|
|
|
461
461
|
),
|
|
462
462
|
) + (payload?.vatControl?.deducted?.other ?? 0);
|
|
463
463
|
|
|
464
|
-
|
|
465
|
-
const report = isNil ? 0 :
|
|
464
|
+
const report =
|
|
466
465
|
(isDefined(payload.vat?.deductible?.toReport) && payload.vat?.deductible?.toReport >= 0
|
|
467
466
|
? _round(payload.vat?.deductible?.toReport ?? 0)
|
|
468
467
|
: (payload.previousVatDeclaration?.credit?.toReport ?? 0)) + (payload?.vatControl?.deducted?.reported ?? 0);
|
|
469
|
-
|
|
470
|
-
|
|
468
|
+
const coefficient = _round(payload.vat?.deductible?.coefficient ?? 100, 2);
|
|
469
|
+
const isNil = payload.isNil === true;
|
|
470
|
+
const isHolidayDeposit = payload.isHolidayDeposit === true;
|
|
471
471
|
|
|
472
472
|
const sumToAdd =
|
|
473
473
|
setZeroIfIsNegative(
|
|
@@ -1053,7 +1053,7 @@ export function getCerfa3310Century24RegistrationFields(data: Cerfa3310_2024): A
|
|
|
1053
1053
|
tag: 'Valeur',
|
|
1054
1054
|
isMultiple: false,
|
|
1055
1055
|
description:
|
|
1056
|
-
|
|
1056
|
+
"MOA Livraisons d'electricité, de gaz naturel, de chaleur ou de froid imposables en France, base hors taxe",
|
|
1057
1057
|
value: data.taxedOperations.energyDelivery,
|
|
1058
1058
|
},
|
|
1059
1059
|
{
|
|
@@ -1061,7 +1061,7 @@ export function getCerfa3310Century24RegistrationFields(data: Cerfa3310_2024): A
|
|
|
1061
1061
|
tag: 'Valeur',
|
|
1062
1062
|
isMultiple: false,
|
|
1063
1063
|
description:
|
|
1064
|
-
|
|
1064
|
+
"MOA Achats de biens ou de prestations de services réalisés auprès d'un assujetti non établi en France, art 283-1 du CGI",
|
|
1065
1065
|
value: data.taxedOperations.purchaseOfServicesNotInFrance,
|
|
1066
1066
|
},
|
|
1067
1067
|
{
|
|
@@ -1124,7 +1124,7 @@ export function getCerfa3310Century24RegistrationFields(data: Cerfa3310_2024): A
|
|
|
1124
1124
|
key: 'DC',
|
|
1125
1125
|
tag: 'Valeur',
|
|
1126
1126
|
isMultiple: false,
|
|
1127
|
-
description:
|
|
1127
|
+
description: "MOA Livraisons intracommunautaires à destination d'une personne assujettie 100077",
|
|
1128
1128
|
value: data.untaxedOperations.intracommunityDelivery,
|
|
1129
1129
|
},
|
|
1130
1130
|
{
|
|
@@ -1146,7 +1146,7 @@ export function getCerfa3310Century24RegistrationFields(data: Cerfa3310_2024): A
|
|
|
1146
1146
|
tag: 'Valeur',
|
|
1147
1147
|
isMultiple: false,
|
|
1148
1148
|
description:
|
|
1149
|
-
|
|
1149
|
+
"MOA Livraisons d'electricité, de gaz naturel, de chaleur ou de froid non imposables en France 100122",
|
|
1150
1150
|
value: data.untaxedOperations.energyDelivery,
|
|
1151
1151
|
},
|
|
1152
1152
|
{
|
|
@@ -1353,7 +1353,7 @@ export function getCerfa3310Century24RegistrationFields(data: Cerfa3310_2024): A
|
|
|
1353
1353
|
tag: 'Valeur',
|
|
1354
1354
|
isMultiple: false,
|
|
1355
1355
|
description:
|
|
1356
|
-
|
|
1356
|
+
"PCD Pourcentage de déduction applicable pour la période s'il est différent de 100% Valeur entière et au plus 2 décimales",
|
|
1357
1357
|
value:
|
|
1358
1358
|
isDefined(data.vat.deductible.coefficient) && data.vat.deductible.coefficient !== 100
|
|
1359
1359
|
? data.vat.deductible.coefficient
|
|
@@ -1384,7 +1384,7 @@ export function getCerfa3310Century24RegistrationFields(data: Cerfa3310_2024): A
|
|
|
1384
1384
|
key: 'HJ',
|
|
1385
1385
|
tag: 'Valeur',
|
|
1386
1386
|
isMultiple: false,
|
|
1387
|
-
description:
|
|
1387
|
+
description: "CCITBX Mention membre d'un groupe Table TBX avec X pour sélectionné, CCI/7037 = CAV/1131 =",
|
|
1388
1388
|
value: null,
|
|
1389
1389
|
},
|
|
1390
1390
|
{
|
|
@@ -1591,7 +1591,7 @@ export function getCerfa3310Century24RegistrationFields(data: Cerfa3310_2024): A
|
|
|
1591
1591
|
tag: 'Valeur',
|
|
1592
1592
|
isMultiple: false,
|
|
1593
1593
|
description:
|
|
1594
|
-
|
|
1594
|
+
"CCITBX Mention de qualité de représentant d'un assujetti unique Table TBX avec X pour sélectionné, CCI/7037 = CAV/1131 =",
|
|
1595
1595
|
value: null,
|
|
1596
1596
|
},
|
|
1597
1597
|
{
|
|
@@ -1612,7 +1612,7 @@ export function getCerfa3310Century24RegistrationFields(data: Cerfa3310_2024): A
|
|
|
1612
1612
|
key: 'MD',
|
|
1613
1613
|
tag: 'Valeur',
|
|
1614
1614
|
isMultiple: false,
|
|
1615
|
-
description:
|
|
1615
|
+
description: "MOA Retenue de TVA sur droits d'auteur taxe due",
|
|
1616
1616
|
value: data.vat.otherRate.author.tax,
|
|
1617
1617
|
},
|
|
1618
1618
|
{
|
|
@@ -1633,7 +1633,7 @@ export function getCerfa3310Century24RegistrationFields(data: Cerfa3310_2024): A
|
|
|
1633
1633
|
key: 'MG',
|
|
1634
1634
|
tag: 'Valeur',
|
|
1635
1635
|
isMultiple: false,
|
|
1636
|
-
description:
|
|
1636
|
+
description: "MOA Retenue de TVA sur droits d'auteur base HT",
|
|
1637
1637
|
value: data.vat.otherRate.oldRate.base,
|
|
1638
1638
|
},
|
|
1639
1639
|
{
|
|
@@ -1820,12 +1820,12 @@ export const cerfa3310Century24Fields: CerfaPayloadForm[] = [
|
|
|
1820
1820
|
type: 'number',
|
|
1821
1821
|
},
|
|
1822
1822
|
{
|
|
1823
|
-
label:
|
|
1823
|
+
label: "B3 - Achats d'electricité, de gaz naturel, de chaleur ou de froid imposables en France",
|
|
1824
1824
|
key: 'taxedOperations.energyDelivery',
|
|
1825
1825
|
type: 'number',
|
|
1826
1826
|
},
|
|
1827
1827
|
{
|
|
1828
|
-
label:
|
|
1828
|
+
label: "B4 - Achats de biens ou de prestations de services réalisés auprès d'un assujetti non établi en France",
|
|
1829
1829
|
key: 'taxedOperations.regularizations',
|
|
1830
1830
|
type: 'number',
|
|
1831
1831
|
},
|
|
@@ -1855,7 +1855,7 @@ export const cerfa3310Century24Fields: CerfaPayloadForm[] = [
|
|
|
1855
1855
|
type: 'number',
|
|
1856
1856
|
},
|
|
1857
1857
|
{
|
|
1858
|
-
label:
|
|
1858
|
+
label: "F3 - Livraisons d'électricité, de gaz naturel, de chaleur ou de froid non imposables en France",
|
|
1859
1859
|
key: 'untaxedOperations.energyDelivery',
|
|
1860
1860
|
type: 'number',
|
|
1861
1861
|
},
|
|
@@ -1885,7 +1885,7 @@ export const cerfa3310Century24Fields: CerfaPayloadForm[] = [
|
|
|
1885
1885
|
type: 'number',
|
|
1886
1886
|
},
|
|
1887
1887
|
{
|
|
1888
|
-
label:
|
|
1888
|
+
label: "F9 - Opérations internes réalisées entre membres d'un assujetti unique",
|
|
1889
1889
|
key: 'untaxedOperations.internalUniq',
|
|
1890
1890
|
type: 'number',
|
|
1891
1891
|
},
|
|
@@ -1972,7 +1972,7 @@ export const cerfa3310Century24Fields: CerfaPayloadForm[] = [
|
|
|
1972
1972
|
type: 'number',
|
|
1973
1973
|
},
|
|
1974
1974
|
{
|
|
1975
|
-
label:
|
|
1975
|
+
label: "29 - Taxes assimilées calculées sur l'annexe n° 3310 A",
|
|
1976
1976
|
key: 'credit.assimiledTaxes',
|
|
1977
1977
|
type: 'number',
|
|
1978
1978
|
},
|
|
@@ -461,12 +461,12 @@ export function getCerfa3310Century25Payload(
|
|
|
461
461
|
),
|
|
462
462
|
) + (payload?.vatControl?.deducted?.other ?? 0);
|
|
463
463
|
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
(
|
|
468
|
-
|
|
469
|
-
|
|
464
|
+
const report =
|
|
465
|
+
(isDefined(payload.vat?.deductible?.toReport) && payload.vat?.deductible?.toReport >= 0
|
|
466
|
+
? _round(payload.vat?.deductible?.toReport ?? 0)
|
|
467
|
+
: (payload.previousVatDeclaration?.credit?.toReport ?? 0)) + (payload?.vatControl?.deducted?.reported ?? 0);
|
|
468
|
+
const coefficient = _round(payload.vat?.deductible?.coefficient ?? 100, 2);
|
|
469
|
+
const isNil = payload.isNil === true;
|
|
470
470
|
const isHolidayDeposit = payload.isHolidayDeposit === true;
|
|
471
471
|
|
|
472
472
|
const sumToAdd =
|
|
@@ -1068,7 +1068,7 @@ export function getCerfa3310Century25RegistrationFields(data: Cerfa3310_2025): A
|
|
|
1068
1068
|
tag: 'Valeur',
|
|
1069
1069
|
isMultiple: false,
|
|
1070
1070
|
description:
|
|
1071
|
-
|
|
1071
|
+
"MOA Livraisons d'electricité, de gaz naturel, de chaleur ou de froid imposables en France, base hors taxe",
|
|
1072
1072
|
value: data.taxedOperations.energyDelivery,
|
|
1073
1073
|
},
|
|
1074
1074
|
{
|
|
@@ -1076,7 +1076,7 @@ export function getCerfa3310Century25RegistrationFields(data: Cerfa3310_2025): A
|
|
|
1076
1076
|
tag: 'Valeur',
|
|
1077
1077
|
isMultiple: false,
|
|
1078
1078
|
description:
|
|
1079
|
-
|
|
1079
|
+
"MOA Achats de biens ou de prestations de services réalisés auprès d'un assujetti non établi en France, art 283-1 du CGI",
|
|
1080
1080
|
value: data.taxedOperations.purchaseOfServicesNotInFrance,
|
|
1081
1081
|
},
|
|
1082
1082
|
|
|
@@ -1140,7 +1140,7 @@ export function getCerfa3310Century25RegistrationFields(data: Cerfa3310_2025): A
|
|
|
1140
1140
|
key: 'DC',
|
|
1141
1141
|
tag: 'Valeur',
|
|
1142
1142
|
isMultiple: false,
|
|
1143
|
-
description:
|
|
1143
|
+
description: "MOA Livraisons intracommunautaires à destination d'une personne assujettie 100077",
|
|
1144
1144
|
value: data.untaxedOperations.intracommunityDelivery,
|
|
1145
1145
|
},
|
|
1146
1146
|
{
|
|
@@ -1162,7 +1162,7 @@ export function getCerfa3310Century25RegistrationFields(data: Cerfa3310_2025): A
|
|
|
1162
1162
|
tag: 'Valeur',
|
|
1163
1163
|
isMultiple: false,
|
|
1164
1164
|
description:
|
|
1165
|
-
|
|
1165
|
+
"MOA Livraisons d'electricité, de gaz naturel, de chaleur ou de froid non imposables en France 100122",
|
|
1166
1166
|
value: data.untaxedOperations.energyDelivery,
|
|
1167
1167
|
},
|
|
1168
1168
|
{
|
|
@@ -1369,7 +1369,7 @@ export function getCerfa3310Century25RegistrationFields(data: Cerfa3310_2025): A
|
|
|
1369
1369
|
tag: 'Valeur',
|
|
1370
1370
|
isMultiple: false,
|
|
1371
1371
|
description:
|
|
1372
|
-
|
|
1372
|
+
"PCD Pourcentage de déduction applicable pour la période s'il est différent de 100% Valeur entière et au plus 2 décimales",
|
|
1373
1373
|
value:
|
|
1374
1374
|
isDefined(data.vat.deductible.coefficient) && data.vat.deductible.coefficient !== 100
|
|
1375
1375
|
? data.vat.deductible.coefficient
|
|
@@ -1400,7 +1400,7 @@ export function getCerfa3310Century25RegistrationFields(data: Cerfa3310_2025): A
|
|
|
1400
1400
|
key: 'HJ',
|
|
1401
1401
|
tag: 'Valeur',
|
|
1402
1402
|
isMultiple: false,
|
|
1403
|
-
description:
|
|
1403
|
+
description: "CCITBX Mention membre d'un groupe Table TBX avec X pour sélectionné, CCI/7037 = CAV/1131 =",
|
|
1404
1404
|
value: null,
|
|
1405
1405
|
},
|
|
1406
1406
|
{
|
|
@@ -1607,7 +1607,7 @@ export function getCerfa3310Century25RegistrationFields(data: Cerfa3310_2025): A
|
|
|
1607
1607
|
tag: 'Valeur',
|
|
1608
1608
|
isMultiple: false,
|
|
1609
1609
|
description:
|
|
1610
|
-
|
|
1610
|
+
"CCITBX Mention de qualité de représentant d'un assujetti unique Table TBX avec X pour sélectionné, CCI/7037 = CAV/1131 =",
|
|
1611
1611
|
value: null,
|
|
1612
1612
|
},
|
|
1613
1613
|
{
|
|
@@ -1628,7 +1628,7 @@ export function getCerfa3310Century25RegistrationFields(data: Cerfa3310_2025): A
|
|
|
1628
1628
|
key: 'MD',
|
|
1629
1629
|
tag: 'Valeur',
|
|
1630
1630
|
isMultiple: false,
|
|
1631
|
-
description:
|
|
1631
|
+
description: "MOA Retenue de TVA sur droits d'auteur taxe due",
|
|
1632
1632
|
value: data.vat.otherRate.author.tax,
|
|
1633
1633
|
},
|
|
1634
1634
|
{
|
|
@@ -1649,7 +1649,7 @@ export function getCerfa3310Century25RegistrationFields(data: Cerfa3310_2025): A
|
|
|
1649
1649
|
key: 'MG',
|
|
1650
1650
|
tag: 'Valeur',
|
|
1651
1651
|
isMultiple: false,
|
|
1652
|
-
description:
|
|
1652
|
+
description: "MOA Retenue de TVA sur droits d'auteur base HT",
|
|
1653
1653
|
value: data.vat.otherRate.oldRate.base,
|
|
1654
1654
|
},
|
|
1655
1655
|
{
|
|
@@ -1865,12 +1865,12 @@ export const cerfa3310Century25Fields: CerfaPayloadForm[] = [
|
|
|
1865
1865
|
type: 'number',
|
|
1866
1866
|
},
|
|
1867
1867
|
{
|
|
1868
|
-
label:
|
|
1868
|
+
label: "B3 - Achats d'electricité, de gaz naturel, de chaleur ou de froid imposables en France",
|
|
1869
1869
|
key: 'taxedOperations.energyDelivery',
|
|
1870
1870
|
type: 'number',
|
|
1871
1871
|
},
|
|
1872
1872
|
{
|
|
1873
|
-
label:
|
|
1873
|
+
label: "B4 - Achats de biens ou de prestations de services réalisés auprès d'un assujetti non établi en France",
|
|
1874
1874
|
key: 'taxedOperations.regularizations',
|
|
1875
1875
|
type: 'number',
|
|
1876
1876
|
},
|
|
@@ -1900,7 +1900,7 @@ export const cerfa3310Century25Fields: CerfaPayloadForm[] = [
|
|
|
1900
1900
|
type: 'number',
|
|
1901
1901
|
},
|
|
1902
1902
|
{
|
|
1903
|
-
label:
|
|
1903
|
+
label: "F3 - Livraisons d'électricité, de gaz naturel, de chaleur ou de froid non imposables en France",
|
|
1904
1904
|
key: 'untaxedOperations.energyDelivery',
|
|
1905
1905
|
type: 'number',
|
|
1906
1906
|
},
|
|
@@ -2017,7 +2017,7 @@ export const cerfa3310Century25Fields: CerfaPayloadForm[] = [
|
|
|
2017
2017
|
type: 'number',
|
|
2018
2018
|
},
|
|
2019
2019
|
{
|
|
2020
|
-
label:
|
|
2020
|
+
label: "29 - Taxes assimilées calculées sur l'annexe n° 3310 A",
|
|
2021
2021
|
key: 'credit.assimiledTaxes',
|
|
2022
2022
|
type: 'number',
|
|
2023
2023
|
},
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Resource } from '../Resource';
|
|
2
|
-
import { CreateInformationRequest, IInformationRequest, QueryInformationRequest, UpdateInformationRequest } from '../../types';
|
|
3
|
-
export declare class InformationRequest extends Resource {
|
|
4
|
-
create(body: CreateInformationRequest): Promise<IInformationRequest>;
|
|
5
|
-
update(id: number, body: UpdateInformationRequest): Promise<IInformationRequest>;
|
|
6
|
-
getAllBySociety(idSociety: number, query?: QueryInformationRequest, signal?: AbortSignal): Promise<IInformationRequest[]>;
|
|
7
|
-
getPendingBySociety(idSociety: number, query?: QueryInformationRequest, signal?: AbortSignal): Promise<IInformationRequest[]>;
|
|
8
|
-
getById(id: number, signal?: AbortSignal): Promise<IInformationRequest>;
|
|
9
|
-
delete(id: number): Promise<void>;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=InformationRequest.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InformationRequest.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/InformationRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAE/H,qBAAa,kBAAmB,SAAQ,QAAQ;IAC9C,MAAM,CAAC,IAAI,EAAE,wBAAwB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAIpE,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,wBAAwB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAIhF,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,uBAAuB,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,mBAAmB,EAAE,CAAC;IAOzH,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,uBAAuB,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,mBAAmB,EAAE,CAAC;IAO7H,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAMvE,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAGlC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InformationRequest = void 0;
|
|
4
|
-
const Resource_1 = require("../Resource");
|
|
5
|
-
class InformationRequest extends Resource_1.Resource {
|
|
6
|
-
create(body) {
|
|
7
|
-
return this.axios.$post('/information-requests', body);
|
|
8
|
-
}
|
|
9
|
-
update(id, body) {
|
|
10
|
-
return this.axios.$put(`/information-requests/${id}`, body);
|
|
11
|
-
}
|
|
12
|
-
getAllBySociety(idSociety, query, signal) {
|
|
13
|
-
return this.axios.$get(`/information-requests/society/${idSociety}`, Object.assign(Object.assign({}, signal && { signal }), query && { params: query }));
|
|
14
|
-
}
|
|
15
|
-
getPendingBySociety(idSociety, query, signal) {
|
|
16
|
-
return this.axios.$get(`/information-requests/pending/${idSociety}`, Object.assign(Object.assign({}, signal && { signal }), query && { params: query }));
|
|
17
|
-
}
|
|
18
|
-
getById(id, signal) {
|
|
19
|
-
return this.axios.$get(`/information-requests/${id}`, Object.assign({}, signal && { signal }));
|
|
20
|
-
}
|
|
21
|
-
delete(id) {
|
|
22
|
-
return this.axios.$delete(`/information-requests/${id}`);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
exports.InformationRequest = InformationRequest;
|
|
26
|
-
//# sourceMappingURL=InformationRequest.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InformationRequest.js","sourceRoot":"","sources":["../../../../ts/api/resources/InformationRequest.ts"],"names":[],"mappings":";;;AAAA,0CAAuC;AAGvC,MAAa,kBAAmB,SAAQ,mBAAQ;IAC9C,MAAM,CAAC,IAA8B;QACnC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,uBAAuB,EAAE,IAAI,CAAC,CAAC;IACzD,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,IAA8B;QAC/C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;IAED,eAAe,CAAC,SAAiB,EAAE,KAA+B,EAAE,MAAoB;QACtF,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,iCAAiC,SAAS,EAAE,kCAC9D,MAAM,IAAI,EAAE,MAAM,EAAE,GACpB,KAAK,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,EAC7B,CAAC;IACL,CAAC;IAED,mBAAmB,CAAC,SAAiB,EAAE,KAA+B,EAAE,MAAoB;QAC1F,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,iCAAiC,SAAS,EAAE,kCAC9D,MAAM,IAAI,EAAE,MAAM,EAAE,GACpB,KAAK,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,EAC7B,CAAC;IACL,CAAC;IAED,OAAO,CAAC,EAAU,EAAE,MAAoB;QACtC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,oBAC/C,MAAM,IAAI,EAAE,MAAM,EAAE,EACvB,CAAC;IACL,CAAC;IAED,MAAM,CAAC,EAAU;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,yBAAyB,EAAE,EAAE,CAAC,CAAC;IAC3D,CAAC;CACF;AAhCD,gDAgCC","sourcesContent":["import { Resource } from '../Resource';\nimport { CreateInformationRequest, IInformationRequest, QueryInformationRequest, UpdateInformationRequest } from '../../types';\n\nexport class InformationRequest extends Resource {\n create(body: CreateInformationRequest): Promise<IInformationRequest> {\n return this.axios.$post('/information-requests', body);\n }\n\n update(id: number, body: UpdateInformationRequest): Promise<IInformationRequest> {\n return this.axios.$put(`/information-requests/${id}`, body);\n }\n\n getAllBySociety(idSociety: number, query?: QueryInformationRequest, signal?: AbortSignal): Promise<IInformationRequest[]> {\n return this.axios.$get(`/information-requests/society/${idSociety}`, {\n ...signal && { signal },\n ...query && { params: query },\n });\n }\n\n getPendingBySociety(idSociety: number, query?: QueryInformationRequest, signal?: AbortSignal): Promise<IInformationRequest[]> {\n return this.axios.$get(`/information-requests/pending/${idSociety}`, {\n ...signal && { signal },\n ...query && { params: query },\n });\n }\n\n getById(id: number, signal?: AbortSignal): Promise<IInformationRequest> {\n return this.axios.$get(`/information-requests/${id}`, {\n ...signal && { signal },\n });\n }\n\n delete(id: number): Promise<void> {\n return this.axios.$delete(`/information-requests/${id}`);\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InformationRequestState.d.ts","sourceRoot":"","sources":["../../../../ts/types/Enum/InformationRequestState.ts"],"names":[],"mappings":"AAAA,oBAAY,uBAAuB;IACjC,OAAO,IAAI;IACX,SAAS,IAAI;IACb,aAAa,IAAI;CAClB"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InformationRequestState = void 0;
|
|
4
|
-
var InformationRequestState;
|
|
5
|
-
(function (InformationRequestState) {
|
|
6
|
-
InformationRequestState[InformationRequestState["PENDING"] = 1] = "PENDING";
|
|
7
|
-
InformationRequestState[InformationRequestState["COMPLETED"] = 2] = "COMPLETED";
|
|
8
|
-
InformationRequestState[InformationRequestState["NOT_CONCERNED"] = 3] = "NOT_CONCERNED";
|
|
9
|
-
})(InformationRequestState || (exports.InformationRequestState = InformationRequestState = {}));
|
|
10
|
-
//# sourceMappingURL=InformationRequestState.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InformationRequestState.js","sourceRoot":"","sources":["../../../../ts/types/Enum/InformationRequestState.ts"],"names":[],"mappings":";;;AAAA,IAAY,uBAIX;AAJD,WAAY,uBAAuB;IACjC,2EAAW,CAAA;IACX,+EAAa,CAAA;IACb,uFAAiB,CAAA;AACnB,CAAC,EAJW,uBAAuB,uCAAvB,uBAAuB,QAIlC","sourcesContent":["export enum InformationRequestState {\n PENDING = 1,\n COMPLETED = 2,\n NOT_CONCERNED = 3,\n}\n"]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { TypeFile } from './Ged';
|
|
2
|
-
export declare enum InformationRequestType {
|
|
3
|
-
CASH_BOOK = 1,
|
|
4
|
-
STOCK_STATUS = 2,
|
|
5
|
-
SUPPLIER_DEBTS = 3,
|
|
6
|
-
CUSTOMER_RECEIVABLES = 4,
|
|
7
|
-
Z_TICKETS = 5,
|
|
8
|
-
KILOMETRIC_ALLOWANCES_SUMMARY = 6
|
|
9
|
-
}
|
|
10
|
-
export interface InformationRequestTypeDetail {
|
|
11
|
-
id: InformationRequestType;
|
|
12
|
-
name: string;
|
|
13
|
-
typeFile?: TypeFile;
|
|
14
|
-
helpText?: string;
|
|
15
|
-
}
|
|
16
|
-
export declare const InformationRequestTypeDetails: Record<InformationRequestType, InformationRequestTypeDetail>;
|
|
17
|
-
//# sourceMappingURL=InformationRequestType.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InformationRequestType.d.ts","sourceRoot":"","sources":["../../../../ts/types/Enum/InformationRequestType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,oBAAY,sBAAsB;IAChC,SAAS,IAAI;IACb,YAAY,IAAI;IAChB,cAAc,IAAI;IAClB,oBAAoB,IAAI;IACxB,SAAS,IAAI;IACb,6BAA6B,IAAI;CAClC;AAED,MAAM,WAAW,4BAA4B;IAC3C,EAAE,EAAE,sBAAsB,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,6BAA6B,EAAE,MAAM,CAChD,sBAAsB,EACtB,4BAA4B,CA8B7B,CAAC"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InformationRequestTypeDetails = exports.InformationRequestType = void 0;
|
|
4
|
-
const Ged_1 = require("./Ged");
|
|
5
|
-
var InformationRequestType;
|
|
6
|
-
(function (InformationRequestType) {
|
|
7
|
-
InformationRequestType[InformationRequestType["CASH_BOOK"] = 1] = "CASH_BOOK";
|
|
8
|
-
InformationRequestType[InformationRequestType["STOCK_STATUS"] = 2] = "STOCK_STATUS";
|
|
9
|
-
InformationRequestType[InformationRequestType["SUPPLIER_DEBTS"] = 3] = "SUPPLIER_DEBTS";
|
|
10
|
-
InformationRequestType[InformationRequestType["CUSTOMER_RECEIVABLES"] = 4] = "CUSTOMER_RECEIVABLES";
|
|
11
|
-
InformationRequestType[InformationRequestType["Z_TICKETS"] = 5] = "Z_TICKETS";
|
|
12
|
-
InformationRequestType[InformationRequestType["KILOMETRIC_ALLOWANCES_SUMMARY"] = 6] = "KILOMETRIC_ALLOWANCES_SUMMARY";
|
|
13
|
-
})(InformationRequestType || (exports.InformationRequestType = InformationRequestType = {}));
|
|
14
|
-
exports.InformationRequestTypeDetails = {
|
|
15
|
-
[InformationRequestType.CASH_BOOK]: {
|
|
16
|
-
id: InformationRequestType.CASH_BOOK,
|
|
17
|
-
name: 'Livre de caisse',
|
|
18
|
-
typeFile: Ged_1.TypeFile.CAISSE,
|
|
19
|
-
},
|
|
20
|
-
[InformationRequestType.STOCK_STATUS]: {
|
|
21
|
-
id: InformationRequestType.STOCK_STATUS,
|
|
22
|
-
name: 'L\'état de vos stocks à la date de clôture',
|
|
23
|
-
},
|
|
24
|
-
[InformationRequestType.SUPPLIER_DEBTS]: {
|
|
25
|
-
id: InformationRequestType.SUPPLIER_DEBTS,
|
|
26
|
-
name: 'Vos dettes fournisseurs',
|
|
27
|
-
typeFile: Ged_1.TypeFile.SUPPLIER_DEBTS,
|
|
28
|
-
},
|
|
29
|
-
[InformationRequestType.CUSTOMER_RECEIVABLES]: {
|
|
30
|
-
id: InformationRequestType.CUSTOMER_RECEIVABLES,
|
|
31
|
-
name: 'Vos créances clients',
|
|
32
|
-
typeFile: Ged_1.TypeFile.CUSTOMER_RECEIVABLES,
|
|
33
|
-
},
|
|
34
|
-
[InformationRequestType.Z_TICKETS]: {
|
|
35
|
-
id: InformationRequestType.Z_TICKETS,
|
|
36
|
-
name: 'Vos ticket Z',
|
|
37
|
-
},
|
|
38
|
-
[InformationRequestType.KILOMETRIC_ALLOWANCES_SUMMARY]: {
|
|
39
|
-
id: InformationRequestType.KILOMETRIC_ALLOWANCES_SUMMARY,
|
|
40
|
-
name: 'Un récapitulatif de vos indemnités kilométriques',
|
|
41
|
-
typeFile: Ged_1.TypeFile.MILEAGE_ALLOWANCES_SUMMARY,
|
|
42
|
-
},
|
|
43
|
-
};
|
|
44
|
-
//# sourceMappingURL=InformationRequestType.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InformationRequestType.js","sourceRoot":"","sources":["../../../../ts/types/Enum/InformationRequestType.ts"],"names":[],"mappings":";;;AAAA,+BAAiC;AAEjC,IAAY,sBAOX;AAPD,WAAY,sBAAsB;IAChC,6EAAa,CAAA;IACb,mFAAgB,CAAA;IAChB,uFAAkB,CAAA;IAClB,mGAAwB,CAAA;IACxB,6EAAa,CAAA;IACb,qHAAiC,CAAA;AACnC,CAAC,EAPW,sBAAsB,sCAAtB,sBAAsB,QAOjC;AASY,QAAA,6BAA6B,GAGtC;IACF,CAAC,sBAAsB,CAAC,SAAS,CAAC,EAAE;QAClC,EAAE,EAAE,sBAAsB,CAAC,SAAS;QACpC,IAAI,EAAE,iBAAiB;QACvB,QAAQ,EAAE,cAAQ,CAAC,MAAM;KAC1B;IACD,CAAC,sBAAsB,CAAC,YAAY,CAAC,EAAE;QACrC,EAAE,EAAE,sBAAsB,CAAC,YAAY;QACvC,IAAI,EAAE,4CAA4C;KACnD;IACD,CAAC,sBAAsB,CAAC,cAAc,CAAC,EAAE;QACvC,EAAE,EAAE,sBAAsB,CAAC,cAAc;QACzC,IAAI,EAAE,yBAAyB;QAC/B,QAAQ,EAAE,cAAQ,CAAC,cAAc;KAClC;IACD,CAAC,sBAAsB,CAAC,oBAAoB,CAAC,EAAE;QAC7C,EAAE,EAAE,sBAAsB,CAAC,oBAAoB;QAC/C,IAAI,EAAE,sBAAsB;QAC5B,QAAQ,EAAE,cAAQ,CAAC,oBAAoB;KACxC;IACD,CAAC,sBAAsB,CAAC,SAAS,CAAC,EAAE;QAClC,EAAE,EAAE,sBAAsB,CAAC,SAAS;QACpC,IAAI,EAAE,cAAc;KACrB;IACD,CAAC,sBAAsB,CAAC,6BAA6B,CAAC,EAAE;QACtD,EAAE,EAAE,sBAAsB,CAAC,6BAA6B;QACxD,IAAI,EAAE,kDAAkD;QACxD,QAAQ,EAAE,cAAQ,CAAC,0BAA0B;KAC9C;CACF,CAAC","sourcesContent":["import { TypeFile } from './Ged';\n\nexport enum InformationRequestType {\n CASH_BOOK = 1,\n STOCK_STATUS = 2,\n SUPPLIER_DEBTS = 3,\n CUSTOMER_RECEIVABLES = 4,\n Z_TICKETS = 5,\n KILOMETRIC_ALLOWANCES_SUMMARY = 6,\n}\n\nexport interface InformationRequestTypeDetail {\n id: InformationRequestType;\n name: string;\n typeFile?: TypeFile; // For some information request, we ask for upload a document too\n helpText?: string;\n}\n\nexport const InformationRequestTypeDetails: Record<\n InformationRequestType,\n InformationRequestTypeDetail\n> = {\n [InformationRequestType.CASH_BOOK]: {\n id: InformationRequestType.CASH_BOOK,\n name: 'Livre de caisse',\n typeFile: TypeFile.CAISSE,\n },\n [InformationRequestType.STOCK_STATUS]: {\n id: InformationRequestType.STOCK_STATUS,\n name: 'L\\'état de vos stocks à la date de clôture',\n },\n [InformationRequestType.SUPPLIER_DEBTS]: {\n id: InformationRequestType.SUPPLIER_DEBTS,\n name: 'Vos dettes fournisseurs',\n typeFile: TypeFile.SUPPLIER_DEBTS,\n },\n [InformationRequestType.CUSTOMER_RECEIVABLES]: {\n id: InformationRequestType.CUSTOMER_RECEIVABLES,\n name: 'Vos créances clients',\n typeFile: TypeFile.CUSTOMER_RECEIVABLES,\n },\n [InformationRequestType.Z_TICKETS]: {\n id: InformationRequestType.Z_TICKETS,\n name: 'Vos ticket Z',\n },\n [InformationRequestType.KILOMETRIC_ALLOWANCES_SUMMARY]: {\n id: InformationRequestType.KILOMETRIC_ALLOWANCES_SUMMARY,\n name: 'Un récapitulatif de vos indemnités kilométriques',\n typeFile: TypeFile.MILEAGE_ALLOWANCES_SUMMARY,\n },\n};"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IDocumentRequest } from '../../models/IDocumentRequest';
|
|
2
|
-
import { TypeFile } from '../../../Enum/Ged';
|
|
3
|
-
export declare class UpdateDocumentRequest implements Partial<Omit<IDocumentRequest, 'id' | 'idRequestedBy' | 'notConcernedAt'>> {
|
|
4
|
-
idSociety?: number;
|
|
5
|
-
typeFile?: TypeFile;
|
|
6
|
-
idExercice?: number;
|
|
7
|
-
idBalanceSheet?: number;
|
|
8
|
-
comment?: string;
|
|
9
|
-
isNotConcerned?: boolean;
|
|
10
|
-
isMandatory?: boolean;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=Update.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Update.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/documentRequest/Update.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAG7C,qBAAa,qBAAsB,YAAW,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE,IAAI,GAAG,eAAe,GAAG,gBAAgB,CAAC,CAAC;IAItH,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAKpB,UAAU,CAAC,EAAE,MAAM,CAAC;IAKpB,cAAc,CAAC,EAAE,MAAM,CAAC;IAIxB,OAAO,CAAC,EAAE,MAAM,CAAC;IAMjB,cAAc,CAAC,EAAE,OAAO,CAAC;IAMzB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB"}
|