@silexpert/core 1.3.131-2 → 1.3.131-4
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/BalanceSheetReport.d.ts +10 -0
- package/dist/cjs/api/resources/BalanceSheetReport.d.ts.map +1 -0
- package/dist/cjs/api/resources/BalanceSheetReport.js +23 -0
- package/dist/cjs/api/resources/BalanceSheetReport.js.map +1 -0
- package/dist/cjs/api/resources/Checklist.d.ts +29 -1
- package/dist/cjs/api/resources/Checklist.d.ts.map +1 -1
- package/dist/cjs/api/resources/Checklist.js +47 -0
- package/dist/cjs/api/resources/Checklist.js.map +1 -1
- package/dist/cjs/api/resources/DashboardLayout.d.ts +9 -0
- package/dist/cjs/api/resources/DashboardLayout.d.ts.map +1 -0
- package/dist/cjs/api/resources/DashboardLayout.js +20 -0
- package/dist/cjs/api/resources/DashboardLayout.js.map +1 -0
- package/dist/cjs/api/resources/DocumentRequest.d.ts +10 -0
- package/dist/cjs/api/resources/DocumentRequest.d.ts.map +1 -0
- package/dist/cjs/api/resources/DocumentRequest.js +23 -0
- package/dist/cjs/api/resources/DocumentRequest.js.map +1 -0
- package/dist/cjs/api/resources/Exercice.d.ts +1 -0
- package/dist/cjs/api/resources/Exercice.d.ts.map +1 -1
- package/dist/cjs/api/resources/Exercice.js +3 -0
- package/dist/cjs/api/resources/Exercice.js.map +1 -1
- package/dist/cjs/api/resources/Mfa.d.ts +3 -0
- package/dist/cjs/api/resources/Mfa.d.ts.map +1 -1
- package/dist/cjs/api/resources/Mfa.js +4 -0
- package/dist/cjs/api/resources/Mfa.js.map +1 -1
- package/dist/cjs/api/resources/Payment.d.ts +3 -2
- package/dist/cjs/api/resources/Payment.d.ts.map +1 -1
- package/dist/cjs/api/resources/Payment.js +3 -0
- package/dist/cjs/api/resources/Payment.js.map +1 -1
- package/dist/cjs/api/resources/Registration.js +1 -1
- package/dist/cjs/api/resources/Registration.js.map +1 -1
- package/dist/cjs/api/resources/Team.d.ts +21 -1
- package/dist/cjs/api/resources/Team.d.ts.map +1 -1
- package/dist/cjs/api/resources/Team.js +26 -0
- package/dist/cjs/api/resources/Team.js.map +1 -1
- package/dist/cjs/api/resources.d.ts +6 -0
- package/dist/cjs/api/resources.d.ts.map +1 -1
- package/dist/cjs/api/resources.js +6 -0
- package/dist/cjs/api/resources.js.map +1 -1
- package/dist/cjs/types/Enum/Aspone.d.ts +8 -0
- package/dist/cjs/types/Enum/Aspone.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Aspone.js +11 -1
- package/dist/cjs/types/Enum/Aspone.js.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheet.d.ts +66 -0
- package/dist/cjs/types/Enum/BalanceSheet.d.ts.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheet.js +136 -69
- package/dist/cjs/types/Enum/BalanceSheet.js.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheetQuestion.d.ts +62 -1
- package/dist/cjs/types/Enum/BalanceSheetQuestion.d.ts.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheetQuestion.js +62 -0
- package/dist/cjs/types/Enum/BalanceSheetQuestion.js.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheetQuestionWording.d.ts +58 -13
- package/dist/cjs/types/Enum/BalanceSheetQuestionWording.d.ts.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheetQuestionWording.js +58 -12
- package/dist/cjs/types/Enum/BalanceSheetQuestionWording.js.map +1 -1
- package/dist/cjs/types/Enum/ChecklistType.d.ts +8 -1
- package/dist/cjs/types/Enum/ChecklistType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/ChecklistType.js +8 -0
- package/dist/cjs/types/Enum/ChecklistType.js.map +1 -1
- package/dist/cjs/types/Enum/ConstitutionState.js +1 -1
- package/dist/cjs/types/Enum/ConstitutionState.js.map +1 -1
- package/dist/cjs/types/Enum/DashboardBlock.d.ts +13 -0
- package/dist/cjs/types/Enum/DashboardBlock.d.ts.map +1 -0
- package/dist/cjs/types/Enum/DashboardBlock.js +17 -0
- package/dist/cjs/types/Enum/DashboardBlock.js.map +1 -0
- package/dist/cjs/types/Enum/Ged.d.ts +31 -1
- package/dist/cjs/types/Enum/Ged.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Ged.js +152 -5
- package/dist/cjs/types/Enum/Ged.js.map +1 -1
- package/dist/cjs/types/Enum/GlobalRegime.js +19 -19
- package/dist/cjs/types/Enum/GlobalRegime.js.map +1 -1
- package/dist/cjs/types/Enum/IncomeStatement.d.ts +32 -0
- package/dist/cjs/types/Enum/IncomeStatement.d.ts.map +1 -1
- package/dist/cjs/types/Enum/IncomeStatement.js +74 -41
- package/dist/cjs/types/Enum/IncomeStatement.js.map +1 -1
- package/dist/cjs/types/Enum/LegalForm.d.ts +1 -0
- package/dist/cjs/types/Enum/LegalForm.d.ts.map +1 -1
- package/dist/cjs/types/Enum/LegalForm.js +39 -4
- package/dist/cjs/types/Enum/LegalForm.js.map +1 -1
- package/dist/cjs/types/Enum/MailAuto.d.ts +2 -1
- package/dist/cjs/types/Enum/MailAuto.d.ts.map +1 -1
- package/dist/cjs/types/Enum/MailAuto.js +1 -0
- package/dist/cjs/types/Enum/MailAuto.js.map +1 -1
- package/dist/cjs/types/Enum/PrestationType.d.ts +8 -1
- package/dist/cjs/types/Enum/PrestationType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/PrestationType.js +162 -15
- package/dist/cjs/types/Enum/PrestationType.js.map +1 -1
- package/dist/cjs/types/Enum/SalesContractBrandClementine.js +7 -7
- package/dist/cjs/types/Enum/SalesContractBrandClementine.js.map +1 -1
- package/dist/cjs/types/Enum/ZoneCode.d.ts +6 -0
- package/dist/cjs/types/Enum/ZoneCode.d.ts.map +1 -1
- package/dist/cjs/types/Enum/ZoneCode.js +7 -0
- package/dist/cjs/types/Enum/ZoneCode.js.map +1 -1
- package/dist/cjs/types/Interface/api/DashboardLayout.d.ts +24 -0
- package/dist/cjs/types/Interface/api/DashboardLayout.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/DashboardLayout.js +3 -0
- package/dist/cjs/types/Interface/api/DashboardLayout.js.map +1 -0
- package/dist/cjs/types/Interface/api/OnBoarding.d.ts +1 -0
- package/dist/cjs/types/Interface/api/OnBoarding.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/OnBoarding.js +6 -0
- package/dist/cjs/types/Interface/api/OnBoarding.js.map +1 -1
- package/dist/cjs/types/Interface/api/balanceSheet/ReadBalanceSheet.d.ts +3 -2
- package/dist/cjs/types/Interface/api/balanceSheet/ReadBalanceSheet.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/balanceSheet/ReadBalanceSheet.js.map +1 -1
- package/dist/cjs/types/Interface/api/balanceSheetReport/Query.d.ts +40 -0
- package/dist/cjs/types/Interface/api/balanceSheetReport/Query.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/balanceSheetReport/Query.js +207 -0
- package/dist/cjs/types/Interface/api/balanceSheetReport/Query.js.map +1 -0
- package/dist/cjs/types/Interface/api/cerfa/2031.d.ts +3 -2
- package/dist/cjs/types/Interface/api/cerfa/2031.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2031.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2050.d.ts +1592 -1634
- package/dist/cjs/types/Interface/api/cerfa/2050.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2050.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2065.d.ts +3 -2
- package/dist/cjs/types/Interface/api/cerfa/2065.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2065.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/ReadCerfa.d.ts +10 -1
- 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/checklist/Query.d.ts +6 -0
- package/dist/cjs/types/Interface/api/checklist/Query.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/checklist/Query.js +20 -1
- package/dist/cjs/types/Interface/api/checklist/Query.js.map +1 -1
- package/dist/cjs/types/Interface/api/checklist/Update.d.ts +11 -1
- package/dist/cjs/types/Interface/api/checklist/Update.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/checklist/Update.js +49 -1
- package/dist/cjs/types/Interface/api/checklist/Update.js.map +1 -1
- package/dist/cjs/types/Interface/api/documentRequest/Create.d.ts +10 -0
- package/dist/cjs/types/Interface/api/documentRequest/Create.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/documentRequest/Create.js +46 -0
- package/dist/cjs/types/Interface/api/documentRequest/Create.js.map +1 -0
- package/dist/cjs/types/Interface/api/documentRequest/Query.d.ts +5 -0
- package/dist/cjs/types/Interface/api/documentRequest/Query.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/documentRequest/Query.js +30 -0
- package/dist/cjs/types/Interface/api/documentRequest/Query.js.map +1 -0
- package/dist/cjs/types/Interface/api/feature/GetAvailableDashboardBlocks.d.ts +5 -0
- package/dist/cjs/types/Interface/api/feature/GetAvailableDashboardBlocks.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/feature/GetAvailableDashboardBlocks.js +3 -0
- package/dist/cjs/types/Interface/api/feature/GetAvailableDashboardBlocks.js.map +1 -0
- package/dist/cjs/types/Interface/api/gedFile/createFileAndGed.d.ts +2 -0
- package/dist/cjs/types/Interface/api/gedFile/createFileAndGed.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/gedFile/createFileAndGed.js +9 -1
- package/dist/cjs/types/Interface/api/gedFile/createFileAndGed.js.map +1 -1
- package/dist/cjs/types/Interface/api/incomeStatement/ReadIncomeStatement.d.ts +3 -2
- package/dist/cjs/types/Interface/api/incomeStatement/ReadIncomeStatement.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/incomeStatement/ReadIncomeStatement.js.map +1 -1
- package/dist/cjs/types/Interface/api/library/QueryLibrary.d.ts +4 -2
- package/dist/cjs/types/Interface/api/library/QueryLibrary.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/library/QueryLibrary.js +6 -2
- package/dist/cjs/types/Interface/api/library/QueryLibrary.js.map +1 -1
- package/dist/cjs/types/Interface/api/payment/Params.d.ts +4 -0
- package/dist/cjs/types/Interface/api/payment/Params.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/payment/Params.js +18 -1
- package/dist/cjs/types/Interface/api/payment/Params.js.map +1 -1
- package/dist/cjs/types/Interface/api/payment/Util.d.ts +0 -2
- package/dist/cjs/types/Interface/api/payment/Util.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/payment/Util.js.map +1 -1
- package/dist/cjs/types/Interface/api/registration/ReadRegistration.d.ts +4 -0
- package/dist/cjs/types/Interface/api/registration/ReadRegistration.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/registration/ReadRegistration.js.map +1 -1
- package/dist/cjs/types/Interface/api/society/ReadSociety.d.ts +8 -6
- package/dist/cjs/types/Interface/api/society/ReadSociety.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/society/ReadSociety.js.map +1 -1
- package/dist/cjs/types/Interface/api/team/UpdateTeamsForUser.d.ts +6 -0
- package/dist/cjs/types/Interface/api/team/UpdateTeamsForUser.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/team/UpdateTeamsForUser.js +38 -0
- package/dist/cjs/types/Interface/api/team/UpdateTeamsForUser.js.map +1 -0
- package/dist/cjs/types/Interface/models/IAttestation.d.ts +20 -18
- package/dist/cjs/types/Interface/models/IAttestation.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IAttestation.js.map +1 -1
- package/dist/cjs/types/Interface/models/IChecklist.d.ts +2 -2
- package/dist/cjs/types/Interface/models/IChecklist.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IChecklist.js.map +1 -1
- package/dist/cjs/types/Interface/models/IChecklistDetail.d.ts +3 -3
- package/dist/cjs/types/Interface/models/IChecklistDetail.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IChecklistDetail.js.map +1 -1
- package/dist/cjs/types/Interface/models/IDocumentRequest.d.ts +23 -0
- package/dist/cjs/types/Interface/models/IDocumentRequest.d.ts.map +1 -0
- package/dist/cjs/types/Interface/models/IDocumentRequest.js +3 -0
- package/dist/cjs/types/Interface/models/IDocumentRequest.js.map +1 -0
- package/dist/cjs/types/Interface/models/IGedFile.d.ts +6 -1
- package/dist/cjs/types/Interface/models/IGedFile.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IGedFile.js.map +1 -1
- package/dist/cjs/types/Interface/models/IPrestation.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IPrestation.js.map +1 -1
- 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/payment.js +54 -50
- package/dist/cjs/utils/payment.js.map +1 -1
- package/dist/cjs/utils/prestation.d.ts +1 -0
- package/dist/cjs/utils/prestation.d.ts.map +1 -1
- package/dist/cjs/utils/prestation.js +1 -0
- package/dist/cjs/utils/prestation.js.map +1 -1
- package/dist/cjs/utils/tests/payment.spec.js +33 -33
- package/dist/cjs/utils/tests/payment.spec.js.map +1 -1
- package/dist/cjs/utils/vat/3310/century25.js +1 -1
- package/dist/cjs/utils/vat/3310/century25.js.map +1 -1
- package/dist/cjs/utils/vat/3517/century25.js +1 -1
- package/dist/cjs/utils/vat/3517/century25.js.map +1 -1
- package/dist/cjs/utils/vat/utils.js +3 -3
- package/dist/cjs/utils/vat/utils.js.map +1 -1
- package/dist/cjs/utils/webmail.d.ts.map +1 -1
- package/dist/cjs/utils/webmail.js +4 -3
- package/dist/cjs/utils/webmail.js.map +1 -1
- package/dist/mjs/api/resources/BalanceSheetReport.d.ts +10 -0
- package/dist/mjs/api/resources/BalanceSheetReport.d.ts.map +1 -0
- package/dist/mjs/api/resources/BalanceSheetReport.js +22 -0
- package/dist/mjs/api/resources/BalanceSheetReport.js.map +1 -0
- package/dist/mjs/api/resources/Checklist.d.ts +29 -1
- package/dist/mjs/api/resources/Checklist.d.ts.map +1 -1
- package/dist/mjs/api/resources/Checklist.js +47 -0
- package/dist/mjs/api/resources/Checklist.js.map +1 -1
- package/dist/mjs/api/resources/DashboardLayout.d.ts +9 -0
- package/dist/mjs/api/resources/DashboardLayout.d.ts.map +1 -0
- package/dist/mjs/api/resources/DashboardLayout.js +16 -0
- package/dist/mjs/api/resources/DashboardLayout.js.map +1 -0
- package/dist/mjs/api/resources/DocumentRequest.d.ts +10 -0
- package/dist/mjs/api/resources/DocumentRequest.d.ts.map +1 -0
- package/dist/mjs/api/resources/DocumentRequest.js +27 -0
- package/dist/mjs/api/resources/DocumentRequest.js.map +1 -0
- package/dist/mjs/api/resources/Exercice.d.ts +1 -0
- package/dist/mjs/api/resources/Exercice.d.ts.map +1 -1
- package/dist/mjs/api/resources/Exercice.js +3 -0
- package/dist/mjs/api/resources/Exercice.js.map +1 -1
- package/dist/mjs/api/resources/Mfa.d.ts +3 -0
- package/dist/mjs/api/resources/Mfa.d.ts.map +1 -1
- package/dist/mjs/api/resources/Mfa.js +4 -0
- package/dist/mjs/api/resources/Mfa.js.map +1 -1
- package/dist/mjs/api/resources/Payment.d.ts +3 -2
- package/dist/mjs/api/resources/Payment.d.ts.map +1 -1
- package/dist/mjs/api/resources/Payment.js +3 -0
- package/dist/mjs/api/resources/Payment.js.map +1 -1
- package/dist/mjs/api/resources/Registration.js +1 -1
- package/dist/mjs/api/resources/Registration.js.map +1 -1
- package/dist/mjs/api/resources/Team.d.ts +21 -1
- package/dist/mjs/api/resources/Team.d.ts.map +1 -1
- package/dist/mjs/api/resources/Team.js +26 -0
- package/dist/mjs/api/resources/Team.js.map +1 -1
- package/dist/mjs/api/resources.d.ts +6 -0
- package/dist/mjs/api/resources.d.ts.map +1 -1
- package/dist/mjs/api/resources.js +6 -0
- package/dist/mjs/api/resources.js.map +1 -1
- package/dist/mjs/types/Enum/Aspone.d.ts +8 -0
- package/dist/mjs/types/Enum/Aspone.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Aspone.js +10 -0
- package/dist/mjs/types/Enum/Aspone.js.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheet.d.ts +66 -0
- package/dist/mjs/types/Enum/BalanceSheet.d.ts.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheet.js +135 -68
- package/dist/mjs/types/Enum/BalanceSheet.js.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheetQuestion.d.ts +62 -1
- package/dist/mjs/types/Enum/BalanceSheetQuestion.d.ts.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheetQuestion.js +62 -0
- package/dist/mjs/types/Enum/BalanceSheetQuestion.js.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheetQuestionWording.d.ts +58 -13
- package/dist/mjs/types/Enum/BalanceSheetQuestionWording.d.ts.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheetQuestionWording.js +58 -12
- package/dist/mjs/types/Enum/BalanceSheetQuestionWording.js.map +1 -1
- package/dist/mjs/types/Enum/ChecklistType.d.ts +8 -1
- package/dist/mjs/types/Enum/ChecklistType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/ChecklistType.js +8 -0
- package/dist/mjs/types/Enum/ChecklistType.js.map +1 -1
- package/dist/mjs/types/Enum/ConstitutionState.js +1 -1
- package/dist/mjs/types/Enum/ConstitutionState.js.map +1 -1
- package/dist/mjs/types/Enum/DashboardBlock.d.ts +13 -0
- package/dist/mjs/types/Enum/DashboardBlock.d.ts.map +1 -0
- package/dist/mjs/types/Enum/DashboardBlock.js +14 -0
- package/dist/mjs/types/Enum/DashboardBlock.js.map +1 -0
- package/dist/mjs/types/Enum/Ged.d.ts +31 -1
- package/dist/mjs/types/Enum/Ged.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Ged.js +151 -4
- package/dist/mjs/types/Enum/Ged.js.map +1 -1
- package/dist/mjs/types/Enum/GlobalRegime.js +19 -19
- package/dist/mjs/types/Enum/GlobalRegime.js.map +1 -1
- package/dist/mjs/types/Enum/IncomeStatement.d.ts +32 -0
- package/dist/mjs/types/Enum/IncomeStatement.d.ts.map +1 -1
- package/dist/mjs/types/Enum/IncomeStatement.js +73 -40
- package/dist/mjs/types/Enum/IncomeStatement.js.map +1 -1
- package/dist/mjs/types/Enum/LegalForm.d.ts +1 -0
- package/dist/mjs/types/Enum/LegalForm.d.ts.map +1 -1
- package/dist/mjs/types/Enum/LegalForm.js +39 -4
- package/dist/mjs/types/Enum/LegalForm.js.map +1 -1
- package/dist/mjs/types/Enum/MailAuto.d.ts +2 -1
- package/dist/mjs/types/Enum/MailAuto.d.ts.map +1 -1
- package/dist/mjs/types/Enum/MailAuto.js +1 -0
- package/dist/mjs/types/Enum/MailAuto.js.map +1 -1
- package/dist/mjs/types/Enum/PrestationType.d.ts +8 -1
- package/dist/mjs/types/Enum/PrestationType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/PrestationType.js +162 -15
- package/dist/mjs/types/Enum/PrestationType.js.map +1 -1
- package/dist/mjs/types/Enum/SalesContractBrandClementine.js +7 -7
- package/dist/mjs/types/Enum/SalesContractBrandClementine.js.map +1 -1
- package/dist/mjs/types/Enum/ZoneCode.d.ts +6 -0
- package/dist/mjs/types/Enum/ZoneCode.d.ts.map +1 -1
- package/dist/mjs/types/Enum/ZoneCode.js +7 -0
- package/dist/mjs/types/Enum/ZoneCode.js.map +1 -1
- package/dist/mjs/types/Interface/api/DashboardLayout.d.ts +24 -0
- package/dist/mjs/types/Interface/api/DashboardLayout.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/DashboardLayout.js +2 -0
- package/dist/mjs/types/Interface/api/DashboardLayout.js.map +1 -0
- package/dist/mjs/types/Interface/api/OnBoarding.d.ts +1 -0
- package/dist/mjs/types/Interface/api/OnBoarding.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/OnBoarding.js +7 -0
- package/dist/mjs/types/Interface/api/OnBoarding.js.map +1 -1
- package/dist/mjs/types/Interface/api/balanceSheet/ReadBalanceSheet.d.ts +3 -2
- package/dist/mjs/types/Interface/api/balanceSheet/ReadBalanceSheet.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/balanceSheet/ReadBalanceSheet.js.map +1 -1
- package/dist/mjs/types/Interface/api/balanceSheetReport/Query.d.ts +40 -0
- package/dist/mjs/types/Interface/api/balanceSheetReport/Query.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/balanceSheetReport/Query.js +200 -0
- package/dist/mjs/types/Interface/api/balanceSheetReport/Query.js.map +1 -0
- package/dist/mjs/types/Interface/api/cerfa/2031.d.ts +3 -2
- package/dist/mjs/types/Interface/api/cerfa/2031.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2031.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2050.d.ts +1592 -1634
- package/dist/mjs/types/Interface/api/cerfa/2050.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2050.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2065.d.ts +3 -2
- package/dist/mjs/types/Interface/api/cerfa/2065.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2065.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/ReadCerfa.d.ts +10 -1
- 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/checklist/Query.d.ts +6 -0
- package/dist/mjs/types/Interface/api/checklist/Query.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/checklist/Query.js +19 -0
- package/dist/mjs/types/Interface/api/checklist/Query.js.map +1 -1
- package/dist/mjs/types/Interface/api/checklist/Update.d.ts +11 -1
- package/dist/mjs/types/Interface/api/checklist/Update.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/checklist/Update.js +57 -3
- package/dist/mjs/types/Interface/api/checklist/Update.js.map +1 -1
- package/dist/mjs/types/Interface/api/documentRequest/Create.d.ts +10 -0
- package/dist/mjs/types/Interface/api/documentRequest/Create.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/documentRequest/Create.js +47 -0
- package/dist/mjs/types/Interface/api/documentRequest/Create.js.map +1 -0
- package/dist/mjs/types/Interface/api/documentRequest/Query.d.ts +5 -0
- package/dist/mjs/types/Interface/api/documentRequest/Query.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/documentRequest/Query.js +28 -0
- package/dist/mjs/types/Interface/api/documentRequest/Query.js.map +1 -0
- package/dist/mjs/types/Interface/api/feature/GetAvailableDashboardBlocks.d.ts +5 -0
- package/dist/mjs/types/Interface/api/feature/GetAvailableDashboardBlocks.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/feature/GetAvailableDashboardBlocks.js +2 -0
- package/dist/mjs/types/Interface/api/feature/GetAvailableDashboardBlocks.js.map +1 -0
- package/dist/mjs/types/Interface/api/gedFile/createFileAndGed.d.ts +2 -0
- package/dist/mjs/types/Interface/api/gedFile/createFileAndGed.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/gedFile/createFileAndGed.js +12 -2
- package/dist/mjs/types/Interface/api/gedFile/createFileAndGed.js.map +1 -1
- package/dist/mjs/types/Interface/api/incomeStatement/ReadIncomeStatement.d.ts +3 -2
- package/dist/mjs/types/Interface/api/incomeStatement/ReadIncomeStatement.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/incomeStatement/ReadIncomeStatement.js.map +1 -1
- package/dist/mjs/types/Interface/api/library/QueryLibrary.d.ts +4 -2
- package/dist/mjs/types/Interface/api/library/QueryLibrary.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/library/QueryLibrary.js +9 -3
- package/dist/mjs/types/Interface/api/library/QueryLibrary.js.map +1 -1
- package/dist/mjs/types/Interface/api/payment/Params.d.ts +4 -0
- package/dist/mjs/types/Interface/api/payment/Params.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/payment/Params.js +19 -1
- package/dist/mjs/types/Interface/api/payment/Params.js.map +1 -1
- package/dist/mjs/types/Interface/api/payment/Util.d.ts +0 -2
- package/dist/mjs/types/Interface/api/payment/Util.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/payment/Util.js.map +1 -1
- package/dist/mjs/types/Interface/api/registration/ReadRegistration.d.ts +4 -0
- package/dist/mjs/types/Interface/api/registration/ReadRegistration.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/registration/ReadRegistration.js.map +1 -1
- package/dist/mjs/types/Interface/api/society/ReadSociety.d.ts +8 -6
- package/dist/mjs/types/Interface/api/society/ReadSociety.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/society/ReadSociety.js.map +1 -1
- package/dist/mjs/types/Interface/api/team/UpdateTeamsForUser.d.ts +6 -0
- package/dist/mjs/types/Interface/api/team/UpdateTeamsForUser.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/team/UpdateTeamsForUser.js +37 -0
- package/dist/mjs/types/Interface/api/team/UpdateTeamsForUser.js.map +1 -0
- package/dist/mjs/types/Interface/models/IAttestation.d.ts +20 -18
- package/dist/mjs/types/Interface/models/IAttestation.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IAttestation.js.map +1 -1
- package/dist/mjs/types/Interface/models/IChecklist.d.ts +2 -2
- package/dist/mjs/types/Interface/models/IChecklist.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IChecklist.js.map +1 -1
- package/dist/mjs/types/Interface/models/IChecklistDetail.d.ts +3 -3
- package/dist/mjs/types/Interface/models/IChecklistDetail.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IChecklistDetail.js.map +1 -1
- package/dist/mjs/types/Interface/models/IDocumentRequest.d.ts +23 -0
- package/dist/mjs/types/Interface/models/IDocumentRequest.d.ts.map +1 -0
- package/dist/mjs/types/Interface/models/IDocumentRequest.js +2 -0
- package/dist/mjs/types/Interface/models/IDocumentRequest.js.map +1 -0
- package/dist/mjs/types/Interface/models/IGedFile.d.ts +6 -1
- package/dist/mjs/types/Interface/models/IGedFile.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IGedFile.js.map +1 -1
- package/dist/mjs/types/Interface/models/IPrestation.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IPrestation.js.map +1 -1
- 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/payment.js +52 -48
- package/dist/mjs/utils/payment.js.map +1 -1
- package/dist/mjs/utils/prestation.d.ts +1 -0
- package/dist/mjs/utils/prestation.d.ts.map +1 -1
- package/dist/mjs/utils/prestation.js +1 -0
- package/dist/mjs/utils/prestation.js.map +1 -1
- package/dist/mjs/utils/tests/payment.spec.js +34 -34
- package/dist/mjs/utils/tests/payment.spec.js.map +1 -1
- package/dist/mjs/utils/vat/3310/century25.js +1 -1
- package/dist/mjs/utils/vat/3310/century25.js.map +1 -1
- package/dist/mjs/utils/vat/3517/century25.js +1 -1
- package/dist/mjs/utils/vat/3517/century25.js.map +1 -1
- package/dist/mjs/utils/vat/utils.js +3 -3
- package/dist/mjs/utils/vat/utils.js.map +1 -1
- package/dist/mjs/utils/webmail.d.ts.map +1 -1
- package/dist/mjs/utils/webmail.js +4 -3
- package/dist/mjs/utils/webmail.js.map +1 -1
- package/package.json +14 -14
- package/ts/api/resources/BalanceSheetReport.ts +36 -0
- package/ts/api/resources/Checklist.ts +59 -0
- package/ts/api/resources/DashboardLayout.ts +20 -0
- package/ts/api/resources/DocumentRequest.ts +32 -0
- package/ts/api/resources/Exercice.ts +4 -0
- package/ts/api/resources/Mfa.ts +5 -0
- package/ts/api/resources/Payment.ts +6 -1
- package/ts/api/resources/Registration.ts +1 -1
- package/ts/api/resources/Team.ts +31 -1
- package/ts/api/resources.ts +6 -0
- package/ts/types/Enum/Aspone.ts +10 -0
- package/ts/types/Enum/BalanceSheet.ts +137 -68
- package/ts/types/Enum/BalanceSheetQuestion.ts +63 -0
- package/ts/types/Enum/BalanceSheetQuestionWording.ts +130 -81
- package/ts/types/Enum/ChecklistType.ts +9 -0
- package/ts/types/Enum/ConstitutionState.ts +1 -1
- package/ts/types/Enum/DashboardBlock.ts +12 -0
- package/ts/types/Enum/Ged.ts +345 -193
- package/ts/types/Enum/GlobalRegime.ts +19 -19
- package/ts/types/Enum/IncomeStatement.ts +73 -40
- package/ts/types/Enum/LegalForm.ts +40 -4
- package/ts/types/Enum/MailAuto.ts +1 -0
- package/ts/types/Enum/PrestationType.ts +162 -15
- package/ts/types/Enum/SalesContractBrandClementine.ts +7 -7
- package/ts/types/Enum/ZoneCode.ts +7 -0
- package/ts/types/Interface/api/DashboardLayout.ts +27 -0
- package/ts/types/Interface/api/OnBoarding.ts +5 -0
- package/ts/types/Interface/api/balanceSheet/ReadBalanceSheet.ts +4 -2
- package/ts/types/Interface/api/balanceSheetReport/Query.ts +160 -0
- package/ts/types/Interface/api/cerfa/2031.ts +3 -2
- package/ts/types/Interface/api/cerfa/2050.ts +1580 -1399
- package/ts/types/Interface/api/cerfa/2065.ts +2 -2
- package/ts/types/Interface/api/cerfa/ReadCerfa.ts +20 -2
- package/ts/types/Interface/api/checklist/Query.ts +15 -0
- package/ts/types/Interface/api/checklist/Update.ts +44 -3
- package/ts/types/Interface/api/documentRequest/Create.ts +28 -0
- package/ts/types/Interface/api/documentRequest/Query.ts +14 -0
- package/ts/types/Interface/api/feature/GetAvailableDashboardBlocks.ts +5 -0
- package/ts/types/Interface/api/gedFile/createFileAndGed.ts +7 -1
- package/ts/types/Interface/api/incomeStatement/ReadIncomeStatement.ts +4 -2
- package/ts/types/Interface/api/library/QueryLibrary.ts +4 -2
- package/ts/types/Interface/api/payment/Params.ts +14 -1
- package/ts/types/Interface/api/payment/Util.ts +2 -2
- package/ts/types/Interface/api/registration/ReadRegistration.ts +4 -0
- package/ts/types/Interface/api/society/ReadSociety.ts +8 -6
- package/ts/types/Interface/api/team/UpdateTeamsForUser.ts +22 -0
- package/ts/types/Interface/models/IAttestation.ts +20 -18
- package/ts/types/Interface/models/IChecklist.ts +2 -2
- package/ts/types/Interface/models/IChecklistDetail.ts +3 -3
- package/ts/types/Interface/models/IDocumentRequest.ts +25 -0
- package/ts/types/Interface/models/IGedFile.ts +6 -1
- package/ts/types/Interface/models/IPrestation.ts +1 -0
- package/ts/types/index.ts +7 -0
- package/ts/utils/payment.ts +49 -49
- package/ts/utils/prestation.ts +1 -0
- package/ts/utils/tests/payment.spec.ts +34 -34
- package/ts/utils/vat/3310/century25.ts +1 -1
- package/ts/utils/vat/3517/century25.ts +1 -1
- package/ts/utils/vat/utils.ts +3 -3
- package/ts/utils/webmail.ts +19 -16
package/ts/utils/payment.ts
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from '../types';
|
|
11
11
|
import * as dayjs from 'dayjs';
|
|
12
12
|
import { PartialExercicePrestationExpress } from '../types/Interface/api/payment/Util';
|
|
13
|
-
import { getApplicationFeesAmount, getPriceGrid } from './prestation';
|
|
13
|
+
import { /* getApplicationFeesAmount, */ getPriceGrid } from './prestation';
|
|
14
14
|
|
|
15
15
|
export interface PaymentsWithList extends IPayment {
|
|
16
16
|
type?: 'isComptable' | 'isJuridique' | 'isSocial' | 'isOther';
|
|
@@ -85,23 +85,23 @@ const groupPaymentsByServiceType = (
|
|
|
85
85
|
return societyPayment;
|
|
86
86
|
};
|
|
87
87
|
|
|
88
|
-
const calculateFees = (amount: number, paymentDate: Date): number => {
|
|
89
|
-
|
|
88
|
+
// const calculateFees = (amount: number, paymentDate: Date): number => {
|
|
89
|
+
// const yearlyPriceIncreasing = 1.0275;
|
|
90
90
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
// // Commenté car en fin d'année, pour appliquer le taux d'inflation annuel,
|
|
92
|
+
// // un script enlève les 2,75€ appliqués pour appliquer le bon taux
|
|
93
|
+
// // const oneYearLessIfIn3LastMonthsOfYear = dayjs(goToClient).month() >= 9 ? 1 : 0;
|
|
94
94
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
};
|
|
95
|
+
// if (dayjs(paymentDate).year() - dayjs().year() > 0) {
|
|
96
|
+
// const nbYearsMore = dayjs(paymentDate).year() - dayjs().year(); /* - oneYearLessIfIn3LastMonthsOfYear */
|
|
97
|
+
// // on applique X fois l'augmentation
|
|
98
|
+
// // ex. : si on lance l'appel en 2024, et qu'on génére un paiement pour 2026, on applique 2 fois l'augmentation
|
|
99
|
+
// // soit amount * yearlyPriceIncreasing * yearlyPriceIncreasing
|
|
100
|
+
// // soit amount * yearlyPriceIncreasing ^ nbYearsMore
|
|
101
|
+
// amount = amount * Math.pow(yearlyPriceIncreasing, nbYearsMore);
|
|
102
|
+
// }
|
|
103
|
+
// return amount;
|
|
104
|
+
// };
|
|
105
105
|
|
|
106
106
|
/**
|
|
107
107
|
// * @param {number} firstPaymentAmount - amount of the first payment (first regulation of the customer)
|
|
@@ -121,10 +121,10 @@ const calculateFees = (amount: number, paymentDate: Date): number => {
|
|
|
121
121
|
const calculatePaymentsAuto = (params: ParamsForPaymentsAuto): PaymentAuto[] => {
|
|
122
122
|
const {
|
|
123
123
|
idTypeBrand,
|
|
124
|
-
isWithApplicationFees,
|
|
124
|
+
// isWithApplicationFees,
|
|
125
125
|
firstExerciceNonExpresssEndDate,
|
|
126
126
|
idPrestation,
|
|
127
|
-
idLegalForm,
|
|
127
|
+
// idLegalForm,
|
|
128
128
|
prestationList,
|
|
129
129
|
idVat,
|
|
130
130
|
yearlyAmountNonExpress,
|
|
@@ -157,10 +157,10 @@ const calculatePaymentsAuto = (params: ParamsForPaymentsAuto): PaymentAuto[] =>
|
|
|
157
157
|
if (!prestationList.id) throw new Error('idPrestationList manquant');
|
|
158
158
|
const priceGrid = getPriceGrid(idTypeBrand, prestationList.id);
|
|
159
159
|
if (!priceGrid) throw new Error('Impossible de trouver la grille tarifaire correspondante');
|
|
160
|
-
const { applicationCost, priceWithTaxesIncluded } = priceGrid;
|
|
161
|
-
const applicationCostTotalTTC =
|
|
162
|
-
|
|
163
|
-
const applicationFeesAmountTTC = getApplicationFeesAmount(idLegalForm, idVat);
|
|
160
|
+
const { /* applicationCost, */ priceWithTaxesIncluded } = priceGrid;
|
|
161
|
+
// const applicationCostTotalTTC =
|
|
162
|
+
// (priceWithTaxesIncluded ? applicationCost : getTaxesIncludedAmount(applicationCost, idVat)) * 12;
|
|
163
|
+
// const applicationFeesAmountTTC = getApplicationFeesAmount(idLegalForm, idVat);
|
|
164
164
|
|
|
165
165
|
if (prestationList?.isCatalog || !prestationList?.isComptable)
|
|
166
166
|
throw new Error('Ce type de prestation ne correspond pas aux conditions attendues.');
|
|
@@ -170,10 +170,10 @@ const calculatePaymentsAuto = (params: ParamsForPaymentsAuto): PaymentAuto[] =>
|
|
|
170
170
|
)
|
|
171
171
|
throw new Error('Start date of some exercice are missing');
|
|
172
172
|
|
|
173
|
-
let yearlyAmountNonExpressClone = yearlyAmountNonExpress;
|
|
174
|
-
if (isWithApplicationFees) {
|
|
175
|
-
|
|
176
|
-
}
|
|
173
|
+
// let yearlyAmountNonExpressClone = yearlyAmountNonExpress;
|
|
174
|
+
// if (isWithApplicationFees) {
|
|
175
|
+
// yearlyAmountNonExpressClone -= getApplicationFeesAmount(idLegalForm); //HT
|
|
176
|
+
// }
|
|
177
177
|
|
|
178
178
|
const nbExoExpress = listPartialExercicePrestationExpress.length;
|
|
179
179
|
const listPayments: PaymentAuto[] = [];
|
|
@@ -212,20 +212,20 @@ const calculatePaymentsAuto = (params: ParamsForPaymentsAuto): PaymentAuto[] =>
|
|
|
212
212
|
});
|
|
213
213
|
|
|
214
214
|
// Si les frais de dossiers sont facturés, on ajoute un paiement sur le mois en cours
|
|
215
|
-
if (isWithApplicationFees) {
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
}
|
|
215
|
+
// if (isWithApplicationFees) {
|
|
216
|
+
// listPayments.push({
|
|
217
|
+
// amount: applicationFeesAmountTTC, //TTC
|
|
218
|
+
// isPaid: true,
|
|
219
|
+
// datePayment: dayjs().toDate(),
|
|
220
|
+
// idPrestation,
|
|
221
|
+
// idPaymentMethod: listRegulations[0]?.idPaymentMethod ?? PaymentMethod.DIRECT_DEBIT.id,
|
|
222
|
+
// closingDate: listPartialExercicePrestationExpress?.length
|
|
223
|
+
// ? listPartialExercicePrestationExpress[0].endDate
|
|
224
|
+
// : firstExerciceNonExpresssEndDate,
|
|
225
|
+
// comment: 'Frais de dossier',
|
|
226
|
+
// });
|
|
227
|
+
// remainingAmount += applicationFeesAmountTTC;
|
|
228
|
+
// }
|
|
229
229
|
|
|
230
230
|
// =========================
|
|
231
231
|
// EXPRESS
|
|
@@ -324,7 +324,7 @@ const calculatePaymentsAuto = (params: ParamsForPaymentsAuto): PaymentAuto[] =>
|
|
|
324
324
|
continue;
|
|
325
325
|
}
|
|
326
326
|
|
|
327
|
-
const exoAmount = isFirstNonExpress ?
|
|
327
|
+
const exoAmount = isFirstNonExpress ? yearlyAmountNonExpress : nextYearlyAmountNonExpress;
|
|
328
328
|
const remainingBeforeThisExo = remainingAmount;
|
|
329
329
|
remainingAmount += priceWithTaxesIncluded ? exoAmount : getTaxesIncludedAmount(exoAmount, idVat);
|
|
330
330
|
|
|
@@ -356,17 +356,17 @@ const calculatePaymentsAuto = (params: ParamsForPaymentsAuto): PaymentAuto[] =>
|
|
|
356
356
|
let remainingAmountByExercicePrestation = remainingAmount;
|
|
357
357
|
|
|
358
358
|
// - frais d'application dès les second exo non express
|
|
359
|
-
if (!isFirstNonExpress) remainingAmountByExercicePrestation += applicationCostTotalTTC;
|
|
359
|
+
// if (!isFirstNonExpress) remainingAmountByExercicePrestation += applicationCostTotalTTC;
|
|
360
360
|
|
|
361
361
|
const monthlyAmount = remainingAmountByExercicePrestation / countMonthsBeforeExerciceEnd; //TTC
|
|
362
362
|
|
|
363
363
|
if (monthlyAmount > 0) {
|
|
364
364
|
for (let index = 1; index <= countMonthsBeforeExerciceEnd; index++) {
|
|
365
|
-
|
|
365
|
+
const amount = index < countMonthsBeforeExerciceEnd ? monthlyAmount : remainingAmountByExercicePrestation;
|
|
366
366
|
|
|
367
367
|
// Si besoin, on applique les frais nécessaires :
|
|
368
368
|
// - 2,75% d'augmentation chaque année, sauf si souscriptiuon dans les 3 derniers mois de l'année civile)
|
|
369
|
-
amount = calculateFees(amount, paymentDate);
|
|
369
|
+
// amount = calculateFees(amount, paymentDate);
|
|
370
370
|
|
|
371
371
|
listPayments.push({
|
|
372
372
|
amount: Math.round(100 * amount) / 100,
|
|
@@ -396,13 +396,13 @@ const calculatePaymentsAuto = (params: ParamsForPaymentsAuto): PaymentAuto[] =>
|
|
|
396
396
|
? nextYearlyAmountNonExpress
|
|
397
397
|
: getTaxesIncludedAmount(nextYearlyAmountNonExpress, idVat);
|
|
398
398
|
|
|
399
|
-
|
|
399
|
+
const remainingAmountByExercicePrestation = remainingAmount;
|
|
400
400
|
//On compte le nb de mois restants entre la date à laquelle le paiement va être créé et la date de fin d'exercice
|
|
401
401
|
let countMonthsBeforeExerciceEnd = Math.ceil(dayjs(exerciceEndDate).diff(paymentDate, 'months', true));
|
|
402
402
|
if (countMonthsBeforeExerciceEnd < 3) countMonthsBeforeExerciceEnd = 3;
|
|
403
403
|
|
|
404
404
|
// - frais d'application dès les second exo non express
|
|
405
|
-
remainingAmountByExercicePrestation += applicationCostTotalTTC;
|
|
405
|
+
// remainingAmountByExercicePrestation += applicationCostTotalTTC;
|
|
406
406
|
|
|
407
407
|
const monthlyAmount = remainingAmountByExercicePrestation / countMonthsBeforeExerciceEnd;
|
|
408
408
|
|
|
@@ -410,15 +410,15 @@ const calculatePaymentsAuto = (params: ParamsForPaymentsAuto): PaymentAuto[] =>
|
|
|
410
410
|
if (!listPayments.length) return [];
|
|
411
411
|
|
|
412
412
|
while (dayjs(listPayments.slice(-1)[0].datePayment).month() < 11) {
|
|
413
|
-
|
|
413
|
+
// const amount = monthlyAmount;
|
|
414
414
|
|
|
415
415
|
// Si besoin, on applique les frais nécessaires :
|
|
416
416
|
// - 2,75% d'augmentation chaque année, sauf si souscriptiuon dans les 3 derniers mois de l'année civile)
|
|
417
417
|
// - frais d'application dès les second exo non express
|
|
418
|
-
amount = calculateFees(amount, paymentDate);
|
|
418
|
+
// amount = calculateFees(amount, paymentDate);
|
|
419
419
|
|
|
420
420
|
listPayments.push({
|
|
421
|
-
amount: Math.round(100 *
|
|
421
|
+
amount: Math.round(100 * monthlyAmount) / 100,
|
|
422
422
|
datePayment: paymentDate,
|
|
423
423
|
idPrestation,
|
|
424
424
|
idPaymentMethod: PaymentMethod.DIRECT_DEBIT.id,
|
package/ts/utils/prestation.ts
CHANGED
|
@@ -429,6 +429,7 @@ const calculatePrestationPriceWithPrestationList = (prestationList: IPrestationL
|
|
|
429
429
|
* @param idLegalForm
|
|
430
430
|
* @param idVat
|
|
431
431
|
* @returns amount of application fees, without taxes included
|
|
432
|
+
* @deprecated Application fees are not charged anymore
|
|
432
433
|
*/
|
|
433
434
|
const getApplicationFeesAmount = (idLegalForm: number, idVat?: number) => {
|
|
434
435
|
let applicationFeesAmount = 50;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as dayjs from 'dayjs';
|
|
2
|
-
import { IRegulation, Vat, PaymentMethod,
|
|
2
|
+
import { IRegulation, Vat, PaymentMethod, getTaxesIncludedAmount } from '../../types';
|
|
3
3
|
import MockDate from 'mockdate';
|
|
4
4
|
|
|
5
5
|
import { calculatePaymentsAuto } from '../payment';
|
|
@@ -77,7 +77,7 @@ describe('Payment', () => {
|
|
|
77
77
|
// =====================
|
|
78
78
|
// errors handling
|
|
79
79
|
// =====================
|
|
80
|
-
test(
|
|
80
|
+
test("should return error if prestationList doesn't correspond (!hidden, isCatalog, isComptable)", () => {
|
|
81
81
|
expect.assertions(2);
|
|
82
82
|
try {
|
|
83
83
|
prestationList.hidden = true;
|
|
@@ -85,8 +85,8 @@ describe('Payment', () => {
|
|
|
85
85
|
idTypeBrand: 1,
|
|
86
86
|
firstExerciceNonExpresssEndDate,
|
|
87
87
|
idPrestation,
|
|
88
|
-
isWithApplicationFees: true,
|
|
89
|
-
idLegalForm: LegalFormTypeEnum.SARL,
|
|
88
|
+
// isWithApplicationFees: true,
|
|
89
|
+
// idLegalForm: LegalFormTypeEnum.SARL,
|
|
90
90
|
prestationList: {
|
|
91
91
|
...prestationList,
|
|
92
92
|
isCatalog: true,
|
|
@@ -113,8 +113,8 @@ describe('Payment', () => {
|
|
|
113
113
|
idTypeBrand: 1,
|
|
114
114
|
firstExerciceNonExpresssEndDate,
|
|
115
115
|
idPrestation,
|
|
116
|
-
isWithApplicationFees: true,
|
|
117
|
-
idLegalForm: LegalFormTypeEnum.SARL,
|
|
116
|
+
// isWithApplicationFees: true,
|
|
117
|
+
// idLegalForm: LegalFormTypeEnum.SARL,
|
|
118
118
|
prestationList,
|
|
119
119
|
idVat,
|
|
120
120
|
listPartialExercicePrestationExpress: [listPartialExercicePrestationExpress[0]],
|
|
@@ -136,8 +136,8 @@ describe('Payment', () => {
|
|
|
136
136
|
idTypeBrand: 1,
|
|
137
137
|
firstExerciceNonExpresssEndDate,
|
|
138
138
|
idPrestation,
|
|
139
|
-
isWithApplicationFees: true,
|
|
140
|
-
idLegalForm: LegalFormTypeEnum.SARL,
|
|
139
|
+
// isWithApplicationFees: true,
|
|
140
|
+
// idLegalForm: LegalFormTypeEnum.SARL,
|
|
141
141
|
prestationList,
|
|
142
142
|
idVat,
|
|
143
143
|
listPartialExercicePrestationExpress,
|
|
@@ -166,8 +166,8 @@ describe('Payment', () => {
|
|
|
166
166
|
idTypeBrand: 1,
|
|
167
167
|
firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
|
|
168
168
|
idPrestation,
|
|
169
|
-
isWithApplicationFees: true,
|
|
170
|
-
idLegalForm: LegalFormTypeEnum.SARL,
|
|
169
|
+
// isWithApplicationFees: true,
|
|
170
|
+
// idLegalForm: LegalFormTypeEnum.SARL,
|
|
171
171
|
prestationList,
|
|
172
172
|
idVat,
|
|
173
173
|
listPartialExercicePrestationExpress: [],
|
|
@@ -197,8 +197,8 @@ describe('Payment', () => {
|
|
|
197
197
|
idTypeBrand: 1,
|
|
198
198
|
firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
|
|
199
199
|
idPrestation,
|
|
200
|
-
isWithApplicationFees: true,
|
|
201
|
-
idLegalForm: LegalFormTypeEnum.SARL,
|
|
200
|
+
// isWithApplicationFees: true,
|
|
201
|
+
// idLegalForm: LegalFormTypeEnum.SARL,
|
|
202
202
|
prestationList,
|
|
203
203
|
idVat,
|
|
204
204
|
listPartialExercicePrestationExpress: [],
|
|
@@ -233,8 +233,8 @@ describe('Payment', () => {
|
|
|
233
233
|
idTypeBrand: 1,
|
|
234
234
|
firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
|
|
235
235
|
idPrestation,
|
|
236
|
-
isWithApplicationFees: false,
|
|
237
|
-
idLegalForm: LegalFormTypeEnum.SARL,
|
|
236
|
+
// isWithApplicationFees: false,
|
|
237
|
+
// idLegalForm: LegalFormTypeEnum.SARL,
|
|
238
238
|
prestationList,
|
|
239
239
|
idVat,
|
|
240
240
|
listPartialExercicePrestationExpress: [],
|
|
@@ -265,8 +265,8 @@ describe('Payment', () => {
|
|
|
265
265
|
idTypeBrand: 1,
|
|
266
266
|
firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
|
|
267
267
|
idPrestation,
|
|
268
|
-
isWithApplicationFees: false,
|
|
269
|
-
idLegalForm: LegalFormTypeEnum.SARL,
|
|
268
|
+
// isWithApplicationFees: false,
|
|
269
|
+
// idLegalForm: LegalFormTypeEnum.SARL,
|
|
270
270
|
prestationList,
|
|
271
271
|
idVat,
|
|
272
272
|
listPartialExercicePrestationExpress: [],
|
|
@@ -293,8 +293,8 @@ describe('Payment', () => {
|
|
|
293
293
|
idTypeBrand: 1,
|
|
294
294
|
firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
|
|
295
295
|
idPrestation,
|
|
296
|
-
isWithApplicationFees: true,
|
|
297
|
-
idLegalForm: LegalFormTypeEnum.SARL,
|
|
296
|
+
// isWithApplicationFees: true,
|
|
297
|
+
// idLegalForm: LegalFormTypeEnum.SARL,
|
|
298
298
|
prestationList,
|
|
299
299
|
idVat,
|
|
300
300
|
listPartialExercicePrestationExpress: [],
|
|
@@ -326,8 +326,8 @@ describe('Payment', () => {
|
|
|
326
326
|
idTypeBrand: 1,
|
|
327
327
|
firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
|
|
328
328
|
idPrestation,
|
|
329
|
-
isWithApplicationFees: true,
|
|
330
|
-
idLegalForm: LegalFormTypeEnum.SARL,
|
|
329
|
+
// isWithApplicationFees: true,
|
|
330
|
+
// idLegalForm: LegalFormTypeEnum.SARL,
|
|
331
331
|
prestationList,
|
|
332
332
|
idVat,
|
|
333
333
|
listPartialExercicePrestationExpress: [],
|
|
@@ -357,8 +357,8 @@ describe('Payment', () => {
|
|
|
357
357
|
idTypeBrand: 1,
|
|
358
358
|
firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
|
|
359
359
|
idPrestation,
|
|
360
|
-
isWithApplicationFees: false,
|
|
361
|
-
idLegalForm: LegalFormTypeEnum.SARL,
|
|
360
|
+
// isWithApplicationFees: false,
|
|
361
|
+
// idLegalForm: LegalFormTypeEnum.SARL,
|
|
362
362
|
prestationList,
|
|
363
363
|
idVat,
|
|
364
364
|
listPartialExercicePrestationExpress: [],
|
|
@@ -398,8 +398,8 @@ describe('Payment', () => {
|
|
|
398
398
|
idTypeBrand: 1,
|
|
399
399
|
firstExerciceNonExpresssEndDate,
|
|
400
400
|
idPrestation,
|
|
401
|
-
isWithApplicationFees: true,
|
|
402
|
-
idLegalForm: LegalFormTypeEnum.SARL,
|
|
401
|
+
// isWithApplicationFees: true,
|
|
402
|
+
// idLegalForm: LegalFormTypeEnum.SARL,
|
|
403
403
|
prestationList,
|
|
404
404
|
idVat,
|
|
405
405
|
listPartialExercicePrestationExpress: listPartialExercicePrestationExpressCloned,
|
|
@@ -420,8 +420,8 @@ describe('Payment', () => {
|
|
|
420
420
|
idTypeBrand: 1,
|
|
421
421
|
firstExerciceNonExpresssEndDate,
|
|
422
422
|
idPrestation,
|
|
423
|
-
isWithApplicationFees: false,
|
|
424
|
-
idLegalForm: LegalFormTypeEnum.SARL,
|
|
423
|
+
// isWithApplicationFees: false,
|
|
424
|
+
// idLegalForm: LegalFormTypeEnum.SARL,
|
|
425
425
|
prestationList,
|
|
426
426
|
idVat,
|
|
427
427
|
listPartialExercicePrestationExpress,
|
|
@@ -459,8 +459,8 @@ describe('Payment', () => {
|
|
|
459
459
|
idTypeBrand: 1,
|
|
460
460
|
firstExerciceNonExpresssEndDate,
|
|
461
461
|
idPrestation,
|
|
462
|
-
isWithApplicationFees: false,
|
|
463
|
-
idLegalForm: LegalFormTypeEnum.SARL,
|
|
462
|
+
// isWithApplicationFees: false,
|
|
463
|
+
// idLegalForm: LegalFormTypeEnum.SARL,
|
|
464
464
|
prestationList,
|
|
465
465
|
idVat,
|
|
466
466
|
listPartialExercicePrestationExpress,
|
|
@@ -480,8 +480,8 @@ describe('Payment', () => {
|
|
|
480
480
|
idTypeBrand: 1,
|
|
481
481
|
firstExerciceNonExpresssEndDate,
|
|
482
482
|
idPrestation,
|
|
483
|
-
isWithApplicationFees: true,
|
|
484
|
-
idLegalForm: LegalFormTypeEnum.SARL,
|
|
483
|
+
// isWithApplicationFees: true,
|
|
484
|
+
// idLegalForm: LegalFormTypeEnum.SARL,
|
|
485
485
|
prestationList,
|
|
486
486
|
idVat,
|
|
487
487
|
listPartialExercicePrestationExpress,
|
|
@@ -497,8 +497,8 @@ describe('Payment', () => {
|
|
|
497
497
|
idTypeBrand: 1,
|
|
498
498
|
firstExerciceNonExpresssEndDate,
|
|
499
499
|
idPrestation,
|
|
500
|
-
isWithApplicationFees: true,
|
|
501
|
-
idLegalForm: LegalFormTypeEnum.SARL,
|
|
500
|
+
// isWithApplicationFees: true,
|
|
501
|
+
// idLegalForm: LegalFormTypeEnum.SARL,
|
|
502
502
|
prestationList,
|
|
503
503
|
idVat,
|
|
504
504
|
listPartialExercicePrestationExpress: [],
|
|
@@ -515,8 +515,8 @@ describe('Payment', () => {
|
|
|
515
515
|
idTypeBrand: 1,
|
|
516
516
|
firstExerciceNonExpresssEndDate: dayjs('2024-12-31').toDate(),
|
|
517
517
|
idPrestation,
|
|
518
|
-
isWithApplicationFees: true,
|
|
519
|
-
idLegalForm: LegalFormTypeEnum.SARL,
|
|
518
|
+
// isWithApplicationFees: true,
|
|
519
|
+
// idLegalForm: LegalFormTypeEnum.SARL,
|
|
520
520
|
prestationList,
|
|
521
521
|
idVat: Vat.TX_20.id,
|
|
522
522
|
listPartialExercicePrestationExpress: [],
|
|
@@ -974,7 +974,7 @@ export function getCerfa3310Century25RegistrationFields(data: Cerfa3310_2025): A
|
|
|
974
974
|
tag: 'Valeur',
|
|
975
975
|
isMultiple: false,
|
|
976
976
|
description: 'Autres',
|
|
977
|
-
value:
|
|
977
|
+
value: comment && comment?.length > 0 && !data.isHolidayDeposit ? 'X' : null,
|
|
978
978
|
},
|
|
979
979
|
{
|
|
980
980
|
key: 'BB',
|
|
@@ -1350,7 +1350,7 @@ export function getCerfa3517Century25RegistrationField(data: Cerfa3517_2025): As
|
|
|
1350
1350
|
tag: 'Valeur',
|
|
1351
1351
|
isMultiple: false,
|
|
1352
1352
|
description: 'Autres',
|
|
1353
|
-
value:
|
|
1353
|
+
value: comment && comment.length > 0 ? 'X' : null,
|
|
1354
1354
|
},
|
|
1355
1355
|
{
|
|
1356
1356
|
key: 'SH',
|
package/ts/utils/vat/utils.ts
CHANGED
|
@@ -52,7 +52,7 @@ export function getTaxAmountByAccountNumber(
|
|
|
52
52
|
accountingEntry.account.number.toString().startsWith(number)
|
|
53
53
|
) {
|
|
54
54
|
// eslint-disable-next-line no-console
|
|
55
|
-
if (logging) console.log(
|
|
55
|
+
if (logging) console.log('\'\'');
|
|
56
56
|
// eslint-disable-next-line no-console
|
|
57
57
|
if (logging) console.log(accountingEntry);
|
|
58
58
|
|
|
@@ -70,12 +70,12 @@ export function getTaxAmountByAccountNumber(
|
|
|
70
70
|
|
|
71
71
|
export function textFormatting(value: any, length: number | null = null, start?: number): string | null {
|
|
72
72
|
if (value && typeof value === 'string') {
|
|
73
|
-
let formattedValue = value.replace(/[\u2018\u2019]/g,
|
|
73
|
+
let formattedValue = value.replace(/[\u2018\u2019]/g, '\''); // Suppression des "Curly Quotes"
|
|
74
74
|
formattedValue = formattedValue.replace(/&/g, ''); // Suppression des &
|
|
75
75
|
formattedValue = formattedValue.replace(/!/g, ''); // Suppression des !
|
|
76
76
|
formattedValue = formattedValue.replace(/[\t]/g, ''); // Suppression des tabulations
|
|
77
77
|
|
|
78
|
-
formattedValue = formattedValue.replace(/`/g,
|
|
78
|
+
formattedValue = formattedValue.replace(/`/g, '\''); // Suppression des `
|
|
79
79
|
formattedValue = formattedValue.replace(/"/g, ''); // Suppression des "
|
|
80
80
|
formattedValue = formattedValue.replace(/^ */, ''); // Suppression des espaces de début
|
|
81
81
|
formattedValue = formattedValue.replace(/ *$/, ''); // Suppression des espaces de fin
|
package/ts/utils/webmail.ts
CHANGED
|
@@ -7,7 +7,8 @@ const getIdRoleUsedForEmail = (listRoles: number[]): Role => {
|
|
|
7
7
|
} else if (listRoles.includes(Role.TECHNICAL_ADVISOR)) {
|
|
8
8
|
idRole = Role.TECHNICAL_ADVISOR;
|
|
9
9
|
} else if (listRoles.includes(Role.FRONT_OFFICE)) {
|
|
10
|
-
idRole = Role.FRONT_OFFICE;
|
|
10
|
+
// idRole = Role.FRONT_OFFICE;
|
|
11
|
+
idRole = Role.CUSTOMER_SUCCESS;
|
|
11
12
|
} else if (listRoles.includes(Role.FRONT_OFFICE_EXPRESS)) {
|
|
12
13
|
idRole = Role.FRONT_OFFICE_EXPRESS;
|
|
13
14
|
} else if (listRoles.includes(Role.DATA_OFFICER)) {
|
|
@@ -31,21 +32,23 @@ const getIdRoleUsedForEmail = (listRoles: number[]): Role => {
|
|
|
31
32
|
};
|
|
32
33
|
|
|
33
34
|
const getListIdRolesUsedForEmail = (listRoles: number[]): Role[] => {
|
|
34
|
-
const listIdRoles:Role[] = listRoles.filter(r =>
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
35
|
+
const listIdRoles: Role[] = listRoles.filter((r) =>
|
|
36
|
+
[
|
|
37
|
+
Role.FACTURATION,
|
|
38
|
+
Role.CUSTOMER_SUCCESS,
|
|
39
|
+
Role.TECHNICAL_ADVISOR,
|
|
40
|
+
Role.FRONT_OFFICE,
|
|
41
|
+
Role.FRONT_OFFICE_EXPRESS,
|
|
42
|
+
Role.DATA_OFFICER,
|
|
43
|
+
Role.COMMERCIAL,
|
|
44
|
+
Role.EXPERT_ACCOUNTANT,
|
|
45
|
+
Role.JURIDICAL_SUPPORT,
|
|
46
|
+
Role.JURIDIC,
|
|
47
|
+
Role.SOCIAL,
|
|
48
|
+
Role.ON_BOARDER,
|
|
49
|
+
Role.SATISFACTION,
|
|
50
|
+
].includes(r),
|
|
51
|
+
);
|
|
49
52
|
return listIdRoles;
|
|
50
53
|
};
|
|
51
54
|
|