@silexpert/core 1.1.24 → 1.1.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/api/resources/AccountingFiles.d.ts +1 -1
- package/es/api/resources/AccountingFiles.d.ts.map +1 -1
- package/es/api/resources/AccountingFiles.js +4 -1
- package/es/api/resources/AccountingFiles.js.map +1 -1
- package/es/api/resources/CashAndExpense.d.ts +8 -0
- package/es/api/resources/CashAndExpense.d.ts.map +1 -0
- package/es/api/resources/CashAndExpense.js +27 -0
- package/es/api/resources/CashAndExpense.js.map +1 -0
- package/es/api/resources/FIle.d.ts +3 -1
- package/es/api/resources/FIle.d.ts.map +1 -1
- package/es/api/resources/FIle.js +3 -0
- package/es/api/resources/FIle.js.map +1 -1
- package/es/api/resources/Mail.d.ts.map +1 -1
- package/es/api/resources/Mail.js +5 -0
- package/es/api/resources/Mail.js.map +1 -1
- package/es/api/resources/Prestations.d.ts +6 -0
- package/es/api/resources/Prestations.d.ts.map +1 -1
- package/es/api/resources/Prestations.js +8 -0
- package/es/api/resources/Prestations.js.map +1 -1
- package/es/api/resources.d.ts +2 -0
- package/es/api/resources.d.ts.map +1 -1
- package/es/api/resources.js +2 -0
- package/es/api/resources.js.map +1 -1
- package/es/types/Enum/Account.d.ts +8 -0
- package/es/types/Enum/Account.d.ts.map +1 -1
- package/es/types/Enum/Account.js +8 -0
- package/es/types/Enum/Account.js.map +1 -1
- package/es/types/Enum/BalanceSheet.d.ts +1 -1
- package/es/types/Enum/BalanceSheet.js +1 -1
- package/es/types/Enum/BalanceSheet.js.map +1 -1
- package/es/types/Enum/BrandClementine.js +2 -2
- package/es/types/Enum/BrandClementine.js.map +1 -1
- package/es/types/Enum/CashDeskTransactionType.d.ts +7 -0
- package/es/types/Enum/CashDeskTransactionType.d.ts.map +1 -0
- package/es/types/Enum/CashDeskTransactionType.js +8 -0
- package/es/types/Enum/CashDeskTransactionType.js.map +1 -0
- package/es/types/Enum/Compensation.d.ts +15 -0
- package/es/types/Enum/Compensation.d.ts.map +1 -0
- package/es/types/Enum/Compensation.js +15 -0
- package/es/types/Enum/Compensation.js.map +1 -0
- package/es/types/Enum/ConstitutionState.d.ts +0 -2
- package/es/types/Enum/ConstitutionState.d.ts.map +1 -1
- package/es/types/Enum/ConstitutionState.js +10 -10
- package/es/types/Enum/ConstitutionState.js.map +1 -1
- package/es/types/Enum/InternalService.d.ts +12 -0
- package/es/types/Enum/InternalService.d.ts.map +1 -1
- package/es/types/Enum/InternalService.js +12 -0
- package/es/types/Enum/InternalService.js.map +1 -1
- package/es/types/Enum/JobTitle.d.ts +7 -1
- package/es/types/Enum/JobTitle.d.ts.map +1 -1
- package/es/types/Enum/JobTitle.js +36 -0
- package/es/types/Enum/JobTitle.js.map +1 -1
- package/es/types/Enum/Log.d.ts +201 -1
- package/es/types/Enum/Log.d.ts.map +1 -1
- package/es/types/Enum/Log.js +200 -0
- package/es/types/Enum/Log.js.map +1 -1
- package/es/types/Enum/MealExpenseThresholds.d.ts.map +1 -1
- package/es/types/Enum/MealExpenseThresholds.js +6 -2
- package/es/types/Enum/MealExpenseThresholds.js.map +1 -1
- package/es/types/Enum/PrestationType.js +1 -1
- package/es/types/Enum/PrestationType.js.map +1 -1
- package/es/types/Enum/ReportService.d.ts +9 -4
- package/es/types/Enum/ReportService.d.ts.map +1 -1
- package/es/types/Enum/ReportService.js +17 -6
- package/es/types/Enum/ReportService.js.map +1 -1
- package/es/types/Enum/Role.d.ts +3 -1
- package/es/types/Enum/Role.d.ts.map +1 -1
- package/es/types/Enum/Role.js +2 -0
- package/es/types/Enum/Role.js.map +1 -1
- package/es/types/Enum/RoleDetail.d.ts +14 -0
- package/es/types/Enum/RoleDetail.d.ts.map +1 -1
- package/es/types/Enum/RoleDetail.js +15 -1
- package/es/types/Enum/RoleDetail.js.map +1 -1
- package/es/types/Enum/TaskResponseType.d.ts +3 -1
- package/es/types/Enum/TaskResponseType.d.ts.map +1 -1
- package/es/types/Enum/TaskResponseType.js +57 -0
- package/es/types/Enum/TaskResponseType.js.map +1 -1
- package/es/types/Enum/ThirdParty.d.ts +7 -0
- package/es/types/Enum/ThirdParty.d.ts.map +1 -0
- package/es/types/Enum/ThirdParty.js +7 -0
- package/es/types/Enum/ThirdParty.js.map +1 -0
- package/es/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts +1 -0
- package/es/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts.map +1 -1
- package/es/types/Interface/api/accountingFiles/queryAccountingFiles.js +5 -1
- package/es/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -1
- package/es/types/Interface/api/archive/ImportSocietyArchive.d.ts +1 -1
- package/es/types/Interface/api/archive/ImportSocietyArchive.d.ts.map +1 -1
- package/es/types/Interface/api/archive/ImportSocietyArchive.js +1 -1
- package/es/types/Interface/api/archive/ImportSocietyArchive.js.map +1 -1
- package/es/types/Interface/api/cashAndExpense/Create.d.ts +27 -0
- package/es/types/Interface/api/cashAndExpense/Create.d.ts.map +1 -0
- package/es/types/Interface/api/cashAndExpense/Create.js +91 -0
- package/es/types/Interface/api/cashAndExpense/Create.js.map +1 -0
- package/es/types/Interface/api/file/Query.d.ts +4 -0
- package/es/types/Interface/api/file/Query.d.ts.map +1 -0
- package/es/types/Interface/api/file/Query.js +17 -0
- package/es/types/Interface/api/file/Query.js.map +1 -0
- package/es/types/Interface/api/generalLedger/IGeneralLedgerAccount.d.ts +2 -0
- package/es/types/Interface/api/generalLedger/IGeneralLedgerAccount.d.ts.map +1 -1
- package/es/types/Interface/api/generalLedger/IGeneralLedgerAccount.js.map +1 -1
- package/es/types/Interface/api/prestation/QueryCreatePrestationSocieties.d.ts +7 -0
- package/es/types/Interface/api/prestation/QueryCreatePrestationSocieties.d.ts.map +1 -0
- package/es/types/Interface/api/prestation/QueryCreatePrestationSocieties.js +39 -0
- package/es/types/Interface/api/prestation/QueryCreatePrestationSocieties.js.map +1 -0
- package/es/types/Interface/api/report/ReadReportStats.d.ts +1 -0
- package/es/types/Interface/api/report/ReadReportStats.d.ts.map +1 -1
- package/es/types/Interface/api/report/ReadReportStats.js.map +1 -1
- package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.d.ts +2 -1
- package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.d.ts.map +1 -1
- package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.js +9 -4
- package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.js.map +1 -1
- package/es/types/Interface/api/vatDeclaration/QueryVatDeclaration.d.ts +3 -1
- package/es/types/Interface/api/vatDeclaration/QueryVatDeclaration.d.ts.map +1 -1
- package/es/types/Interface/api/vatDeclaration/QueryVatDeclaration.js +13 -2
- package/es/types/Interface/api/vatDeclaration/QueryVatDeclaration.js.map +1 -1
- package/es/types/Interface/models/IAccountingTransaction.d.ts +2 -0
- package/es/types/Interface/models/IAccountingTransaction.d.ts.map +1 -1
- package/es/types/Interface/models/IAccountingTransaction.js.map +1 -1
- package/es/types/Interface/models/IApiError.d.ts +2 -1
- package/es/types/Interface/models/IApiError.d.ts.map +1 -1
- package/es/types/Interface/models/IApiError.js +2 -0
- package/es/types/Interface/models/IApiError.js.map +1 -1
- package/es/types/Interface/models/IEstimateInvoice.d.ts +1 -0
- package/es/types/Interface/models/IEstimateInvoice.d.ts.map +1 -1
- package/es/types/Interface/models/IEstimateInvoice.js.map +1 -1
- package/es/types/Interface/models/IExercice.d.ts +2 -0
- package/es/types/Interface/models/IExercice.d.ts.map +1 -1
- package/es/types/Interface/models/IExercice.js.map +1 -1
- package/es/types/Interface/models/IKilometricAllowanceScale.d.ts +1 -0
- package/es/types/Interface/models/IKilometricAllowanceScale.d.ts.map +1 -1
- package/es/types/Interface/models/IKilometricAllowanceScale.js.map +1 -1
- package/es/types/Interface/models/ILog.d.ts +0 -2
- package/es/types/Interface/models/ILog.d.ts.map +1 -1
- package/es/types/Interface/models/ILog.js.map +1 -1
- package/es/types/Interface/models/IPayment.d.ts +1 -0
- package/es/types/Interface/models/IPayment.d.ts.map +1 -1
- package/es/types/Interface/models/IPayment.js.map +1 -1
- package/es/types/Interface/models/IRegulate.d.ts +5 -3
- package/es/types/Interface/models/IRegulate.d.ts.map +1 -1
- package/es/types/Interface/models/IRegulate.js.map +1 -1
- package/es/types/Interface/models/IReport.d.ts +3 -0
- package/es/types/Interface/models/IReport.d.ts.map +1 -1
- package/es/types/Interface/models/IReport.js.map +1 -1
- package/es/types/Interface/models/ISociety.d.ts +2 -1
- package/es/types/Interface/models/ISociety.d.ts.map +1 -1
- package/es/types/Interface/models/ISociety.js.map +1 -1
- package/es/types/Interface/models/IThirdPartySociety.d.ts +2 -0
- package/es/types/Interface/models/IThirdPartySociety.d.ts.map +1 -1
- package/es/types/Interface/models/IThirdPartySociety.js.map +1 -1
- package/es/types/index.d.ts +6 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +6 -0
- package/es/types/index.js.map +1 -1
- package/es/utils/email/templates/signature.d.ts.map +1 -1
- package/es/utils/email/templates/signature.js +6 -7
- package/es/utils/email/templates/signature.js.map +1 -1
- package/es/utils/quotation.d.ts.map +1 -1
- package/es/utils/quotation.js +5 -3
- package/es/utils/quotation.js.map +1 -1
- package/es/utils/vat/3517/century23.js +9 -9
- package/es/utils/vat/3517/century23.js.map +1 -1
- package/es/utils/vat/utils.d.ts.map +1 -1
- package/es/utils/vat/utils.js +1 -3
- package/es/utils/vat/utils.js.map +1 -1
- package/js/api/resources/AccountingFiles.js +4 -1
- package/js/api/resources/AccountingFiles.js.map +1 -1
- package/js/api/resources/CashAndExpense.js +37 -0
- package/js/api/resources/CashAndExpense.js.map +1 -0
- package/js/api/resources/FIle.js +6 -0
- package/js/api/resources/FIle.js.map +1 -1
- package/js/api/resources/Mail.js +5 -0
- package/js/api/resources/Mail.js.map +1 -1
- package/js/api/resources/Prestations.js +8 -0
- package/js/api/resources/Prestations.js.map +1 -1
- package/js/api/resources.js +3 -1
- package/js/api/resources.js.map +1 -1
- package/js/types/Enum/Account.js +8 -0
- package/js/types/Enum/Account.js.map +1 -1
- package/js/types/Enum/BalanceSheet.js +1 -1
- package/js/types/Enum/BalanceSheet.js.map +1 -1
- package/js/types/Enum/BrandClementine.js +2 -2
- package/js/types/Enum/BrandClementine.js.map +1 -1
- package/js/types/Enum/CashDeskTransactionType.js +13 -0
- package/js/types/Enum/CashDeskTransactionType.js.map +1 -0
- package/js/types/Enum/Compensation.js +20 -0
- package/js/types/Enum/Compensation.js.map +1 -0
- package/js/types/Enum/ConstitutionState.js +6 -6
- package/js/types/Enum/ConstitutionState.js.map +1 -1
- package/js/types/Enum/InternalService.js +12 -0
- package/js/types/Enum/InternalService.js.map +1 -1
- package/js/types/Enum/JobTitle.js +30 -0
- package/js/types/Enum/JobTitle.js.map +1 -1
- package/js/types/Enum/Log.js +200 -0
- package/js/types/Enum/Log.js.map +1 -1
- package/js/types/Enum/MealExpenseThresholds.js +6 -2
- package/js/types/Enum/MealExpenseThresholds.js.map +1 -1
- package/js/types/Enum/PrestationType.js +1 -1
- package/js/types/Enum/PrestationType.js.map +1 -1
- package/js/types/Enum/ReportService.js +21 -9
- package/js/types/Enum/ReportService.js.map +1 -1
- package/js/types/Enum/Role.js +2 -0
- package/js/types/Enum/Role.js.map +1 -1
- package/js/types/Enum/RoleDetail.js +15 -1
- package/js/types/Enum/RoleDetail.js.map +1 -1
- package/js/types/Enum/TaskResponseType.js +52 -0
- package/js/types/Enum/TaskResponseType.js.map +1 -1
- package/js/types/Enum/ThirdParty.js +12 -0
- package/js/types/Enum/ThirdParty.js.map +1 -0
- package/js/types/Interface/api/accountingFiles/queryAccountingFiles.js +1 -0
- package/js/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -1
- package/js/types/Interface/api/archive/ImportSocietyArchive.js +1 -1
- package/js/types/Interface/api/archive/ImportSocietyArchive.js.map +1 -1
- package/js/types/Interface/api/cashAndExpense/Create.js +44 -0
- package/js/types/Interface/api/cashAndExpense/Create.js.map +1 -0
- package/js/types/Interface/api/file/Query.js +21 -0
- package/js/types/Interface/api/file/Query.js.map +1 -0
- package/js/types/Interface/api/generalLedger/IGeneralLedgerAccount.js.map +1 -1
- package/js/types/Interface/api/prestation/QueryCreatePrestationSocieties.js +30 -0
- package/js/types/Interface/api/prestation/QueryCreatePrestationSocieties.js.map +1 -0
- package/js/types/Interface/api/report/ReadReportStats.js.map +1 -1
- package/js/types/Interface/api/taxDeadline/QueryTaxDeadline.js +2 -1
- package/js/types/Interface/api/taxDeadline/QueryTaxDeadline.js.map +1 -1
- package/js/types/Interface/api/vatDeclaration/QueryVatDeclaration.js +3 -1
- package/js/types/Interface/api/vatDeclaration/QueryVatDeclaration.js.map +1 -1
- package/js/types/Interface/models/IAccountingTransaction.js.map +1 -1
- package/js/types/Interface/models/IApiError.js +2 -0
- package/js/types/Interface/models/IApiError.js.map +1 -1
- package/js/types/Interface/models/IEstimateInvoice.js.map +1 -1
- package/js/types/Interface/models/IExercice.js.map +1 -1
- package/js/types/Interface/models/IKilometricAllowanceScale.js.map +1 -1
- package/js/types/Interface/models/ILog.js.map +1 -1
- package/js/types/Interface/models/IPayment.js.map +1 -1
- package/js/types/Interface/models/IRegulate.js.map +1 -1
- package/js/types/Interface/models/IReport.js.map +1 -1
- package/js/types/Interface/models/ISociety.js.map +1 -1
- package/js/types/Interface/models/IThirdPartySociety.js.map +1 -1
- package/js/types/index.js +66 -6
- package/js/types/index.js.map +1 -1
- package/js/utils/email/templates/signature.js +6 -7
- package/js/utils/email/templates/signature.js.map +1 -1
- package/js/utils/quotation.js +5 -3
- package/js/utils/quotation.js.map +1 -1
- package/js/utils/vat/3517/century23.js +9 -9
- package/js/utils/vat/3517/century23.js.map +1 -1
- package/js/utils/vat/utils.js +1 -3
- package/js/utils/vat/utils.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/AccountingFiles.ts +5 -2
- package/ts/api/resources/CashAndExpense.ts +31 -0
- package/ts/api/resources/FIle.ts +5 -0
- package/ts/api/resources/Mail.ts +5 -0
- package/ts/api/resources/Prestations.ts +9 -0
- package/ts/api/resources.ts +2 -0
- package/ts/types/Enum/Account.ts +8 -0
- package/ts/types/Enum/BalanceSheet.ts +1 -1
- package/ts/types/Enum/BrandClementine.ts +2 -2
- package/ts/types/Enum/CashDeskTransactionType.ts +6 -0
- package/ts/types/Enum/Compensation.ts +14 -0
- package/ts/types/Enum/ConstitutionState.ts +4 -4
- package/ts/types/Enum/InternalService.ts +12 -0
- package/ts/types/Enum/JobTitle.ts +36 -0
- package/ts/types/Enum/Log.ts +202 -1
- package/ts/types/Enum/MealExpenseThresholds.ts +6 -2
- package/ts/types/Enum/PrestationType.ts +1 -1
- package/ts/types/Enum/ReportService.ts +20 -8
- package/ts/types/Enum/Role.ts +2 -0
- package/ts/types/Enum/RoleDetail.ts +15 -1
- package/ts/types/Enum/TaskResponseType.ts +57 -0
- package/ts/types/Enum/ThirdParty.ts +6 -0
- package/ts/types/Interface/api/accountingFiles/queryAccountingFiles.ts +4 -1
- package/ts/types/Interface/api/archive/ImportSocietyArchive.ts +1 -1
- package/ts/types/Interface/api/cashAndExpense/Create.ts +67 -0
- package/ts/types/Interface/api/file/Query.ts +6 -0
- package/ts/types/Interface/api/generalLedger/IGeneralLedgerAccount.ts +3 -1
- package/ts/types/Interface/api/prestation/QueryCreatePrestationSocieties.ts +27 -0
- package/ts/types/Interface/api/report/ReadReportStats.ts +2 -1
- package/ts/types/Interface/api/taxDeadline/QueryTaxDeadline.ts +7 -3
- package/ts/types/Interface/api/vatDeclaration/QueryVatDeclaration.ts +11 -2
- package/ts/types/Interface/models/IAccountingTransaction.ts +2 -0
- package/ts/types/Interface/models/IApiError.ts +3 -0
- package/ts/types/Interface/models/IEstimateInvoice.ts +1 -0
- package/ts/types/Interface/models/IExercice.ts +2 -0
- package/ts/types/Interface/models/IKilometricAllowanceScale.ts +1 -0
- package/ts/types/Interface/models/ILog.ts +0 -2
- package/ts/types/Interface/models/IPayment.ts +1 -0
- package/ts/types/Interface/models/IRegulate.ts +5 -3
- package/ts/types/Interface/models/IReport.ts +3 -0
- package/ts/types/Interface/models/ISociety.ts +2 -0
- package/ts/types/Interface/models/IThirdPartySociety.ts +5 -0
- package/ts/types/index.ts +6 -0
- package/ts/utils/email/templates/signature.ts +6 -7
- package/ts/utils/quotation.ts +5 -3
- package/ts/utils/vat/3517/century23.ts +9 -9
- package/ts/utils/vat/utils.ts +1 -3
|
@@ -33,6 +33,8 @@ export enum RoleAvailableForTask {
|
|
|
33
33
|
COMMERCIAL = Role.COMMERCIAL,
|
|
34
34
|
// BACK_MANAGER = Role.BACK_MANAGER,
|
|
35
35
|
EXPERT_ACCOUNTANT = Role.EXPERT_ACCOUNTANT,
|
|
36
|
+
REFERENT_CLIENT = Role.EXPERT_ACCOUNTANT,
|
|
37
|
+
REFERENT_LITIGE = Role.EXPERT_ACCOUNTANT,
|
|
36
38
|
}
|
|
37
39
|
|
|
38
40
|
export const TaskResponseType = {
|
|
@@ -161,6 +163,61 @@ export const TaskResponseType = {
|
|
|
161
163
|
responseType: null,
|
|
162
164
|
description: 'Est-ce que nous pouvons réaliser le bilan 2020 de ce client ?',
|
|
163
165
|
},
|
|
166
|
+
{
|
|
167
|
+
id: 12,
|
|
168
|
+
label: 'Référent litige',
|
|
169
|
+
role: Role.REFERENT_LITIGE,
|
|
170
|
+
deadline: Deadline,
|
|
171
|
+
isForWholeRole: false,
|
|
172
|
+
backToClient: false,
|
|
173
|
+
goToCalendar: false,
|
|
174
|
+
responseType: null,
|
|
175
|
+
description: 'Signalement pour référent litige',
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
id: 13,
|
|
179
|
+
label: 'Référent client',
|
|
180
|
+
role: Role.REFERENT_CLIENT,
|
|
181
|
+
deadline: Deadline,
|
|
182
|
+
isForWholeRole: false,
|
|
183
|
+
backToClient: false,
|
|
184
|
+
goToCalendar: false,
|
|
185
|
+
responseType: null,
|
|
186
|
+
description: 'Signalement pour référent client',
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
id: 14,
|
|
190
|
+
label: 'Administratif',
|
|
191
|
+
role: Role.ADMIN,
|
|
192
|
+
deadline: Deadline,
|
|
193
|
+
isForWholeRole: false,
|
|
194
|
+
backToClient: false,
|
|
195
|
+
goToCalendar: false,
|
|
196
|
+
responseType: null,
|
|
197
|
+
description: 'Signalement pour administratif',
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
id: 15,
|
|
201
|
+
label: 'Expert-Comptable',
|
|
202
|
+
role: Role.EXPERT_ACCOUNTANT,
|
|
203
|
+
deadline: Deadline,
|
|
204
|
+
isForWholeRole: false,
|
|
205
|
+
backToClient: false,
|
|
206
|
+
goToCalendar: false,
|
|
207
|
+
responseType: null,
|
|
208
|
+
description: 'Signalement pour expert-comptable',
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
id: 16,
|
|
212
|
+
label: 'Comptable',
|
|
213
|
+
role: Role.FRONT_OFFICE,
|
|
214
|
+
deadline: Deadline,
|
|
215
|
+
isForWholeRole: false,
|
|
216
|
+
backToClient: false,
|
|
217
|
+
goToCalendar: false,
|
|
218
|
+
responseType: null,
|
|
219
|
+
description: 'Signalement pour comptable',
|
|
220
|
+
},
|
|
164
221
|
],
|
|
165
222
|
},
|
|
166
223
|
EXTERN: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiProperty } from '../../../../utils';
|
|
1
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
2
2
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
3
3
|
|
|
4
4
|
export class QueryAccountingFiles {
|
|
@@ -19,4 +19,7 @@ export class QueryAccountingFiles {
|
|
|
19
19
|
|
|
20
20
|
@ApiProperty()
|
|
21
21
|
files: File[];
|
|
22
|
+
|
|
23
|
+
@ApiPropertyOptional()
|
|
24
|
+
emissionDate?: string;
|
|
22
25
|
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { IsBoolean, IsOptional } from 'class-validator';
|
|
2
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
import { CashDeskTransactionType } from '../../../Enum/CashDeskTransactionType';
|
|
4
|
+
import { FormEntry } from '../accountingEntry/AnnotateAccountingTransaction';
|
|
5
|
+
import { TFile } from '../file/TFile';
|
|
6
|
+
import { AccountingJournal } from '../../../Enum/AccountingJournal';
|
|
7
|
+
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
8
|
+
|
|
9
|
+
export class CreateCashDesk {
|
|
10
|
+
@ApiProperty()
|
|
11
|
+
dateStart: Date;
|
|
12
|
+
|
|
13
|
+
@ApiProperty()
|
|
14
|
+
amountStart: number;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export class CreateCashAndExpenseTransaction {
|
|
18
|
+
@ApiProperty()
|
|
19
|
+
dateValue: string;
|
|
20
|
+
|
|
21
|
+
@ApiProperty()
|
|
22
|
+
idAccountingJournal: AccountingJournal;
|
|
23
|
+
|
|
24
|
+
@ApiProperty()
|
|
25
|
+
entries: FormEntry[];
|
|
26
|
+
|
|
27
|
+
@ApiPropertyOptional()
|
|
28
|
+
@IsOptional()
|
|
29
|
+
idSocietyPartner?: number;
|
|
30
|
+
|
|
31
|
+
@ApiPropertyOptional()
|
|
32
|
+
@IsOptional()
|
|
33
|
+
cashDeskTransactionType?: CashDeskTransactionType;
|
|
34
|
+
|
|
35
|
+
@ApiPropertyOptional()
|
|
36
|
+
@IsOptional()
|
|
37
|
+
@IsBoolean()
|
|
38
|
+
@ToBoolean()
|
|
39
|
+
bypassAmountLimit?: boolean;
|
|
40
|
+
|
|
41
|
+
@ApiPropertyOptional()
|
|
42
|
+
@IsOptional()
|
|
43
|
+
file?: TFile;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export class CreateKilometricAllowance {
|
|
47
|
+
@ApiProperty()
|
|
48
|
+
idSocietyVehicle: number;
|
|
49
|
+
|
|
50
|
+
@ApiProperty()
|
|
51
|
+
dateValue: Date;
|
|
52
|
+
|
|
53
|
+
@ApiProperty()
|
|
54
|
+
distance: number;
|
|
55
|
+
|
|
56
|
+
@ApiProperty()
|
|
57
|
+
reason: string;
|
|
58
|
+
|
|
59
|
+
@ApiProperty()
|
|
60
|
+
departureCity: string;
|
|
61
|
+
|
|
62
|
+
@ApiProperty()
|
|
63
|
+
arrivalCity: string;
|
|
64
|
+
|
|
65
|
+
@ApiProperty()
|
|
66
|
+
idSocietyPartner: number;
|
|
67
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IsArray, IsDate, IsInt, IsNumber,
|
|
3
|
+
} from 'class-validator';
|
|
4
|
+
import { ApiProperty } from '../../../../utils';
|
|
5
|
+
|
|
6
|
+
export class QueryCreatePrestationSocieties {
|
|
7
|
+
@ApiProperty({
|
|
8
|
+
description: 'array of id society',
|
|
9
|
+
required: true,
|
|
10
|
+
type: [Number],
|
|
11
|
+
example: [1, 13],
|
|
12
|
+
})
|
|
13
|
+
@IsArray()
|
|
14
|
+
societiesIds: number[];
|
|
15
|
+
|
|
16
|
+
@ApiProperty()
|
|
17
|
+
@IsDate()
|
|
18
|
+
datePayment: Date;
|
|
19
|
+
|
|
20
|
+
@ApiProperty()
|
|
21
|
+
@IsInt()
|
|
22
|
+
idPrestationList: number;
|
|
23
|
+
|
|
24
|
+
@ApiProperty()
|
|
25
|
+
@IsNumber()
|
|
26
|
+
amount: number;
|
|
27
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
-
IsOptional, IsEnum,
|
|
2
|
+
IsOptional, IsEnum, IsDateString, IsString, IsArray, IsBoolean, IsNumber,
|
|
3
3
|
} from 'class-validator';
|
|
4
4
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
5
5
|
import {
|
|
@@ -113,8 +113,7 @@ export class QueryTaxDeadlineStatistics {
|
|
|
113
113
|
|
|
114
114
|
export class QueryCompanyTaxesByCollaborater {
|
|
115
115
|
@ApiProperty({ description: 'Id collaborater' })
|
|
116
|
-
|
|
117
|
-
idUser: number;
|
|
116
|
+
idUser: number | number[];
|
|
118
117
|
|
|
119
118
|
@ApiProperty()
|
|
120
119
|
@IsDateString()
|
|
@@ -128,6 +127,11 @@ export class QueryCompanyTaxesByCollaborater {
|
|
|
128
127
|
@IsString()
|
|
129
128
|
@IsOptional()
|
|
130
129
|
search?: string;
|
|
130
|
+
|
|
131
|
+
@ApiPropertyOptional()
|
|
132
|
+
@IsNumber()
|
|
133
|
+
@IsOptional()
|
|
134
|
+
idState?: TaxState;
|
|
131
135
|
}
|
|
132
136
|
|
|
133
137
|
export class QueryVatDeadline extends RequiredQueryPaginate {
|
|
@@ -15,10 +15,19 @@ export class QueryPreviousVatDeclaration {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
export class QueryVatMigrationEntry {
|
|
18
|
-
@
|
|
18
|
+
@ApiProperty()
|
|
19
19
|
@IsNumber()
|
|
20
|
+
id: number;
|
|
21
|
+
|
|
22
|
+
@ApiPropertyOptional()
|
|
23
|
+
@IsDateString()
|
|
24
|
+
@IsOptional()
|
|
25
|
+
startDate?: string;
|
|
26
|
+
|
|
27
|
+
@ApiPropertyOptional()
|
|
28
|
+
@IsDateString()
|
|
20
29
|
@IsOptional()
|
|
21
|
-
|
|
30
|
+
endDate?: string;
|
|
22
31
|
}
|
|
23
32
|
|
|
24
33
|
export class QueryVatDeclaration {
|
|
@@ -11,6 +11,7 @@ import { IComptaType } from './IComptaType';
|
|
|
11
11
|
import { IPartnerTransaction } from './IPartnerTransaction';
|
|
12
12
|
import { ICurrency } from './ICurrency';
|
|
13
13
|
import { IMachineLearningResult } from './IMachineLearningResult';
|
|
14
|
+
import { ISocietyPartner } from './ISocietyPartner';
|
|
14
15
|
|
|
15
16
|
// accountingTransactions
|
|
16
17
|
export interface IAccountingTransaction {
|
|
@@ -74,4 +75,5 @@ export interface IAccountingTransaction {
|
|
|
74
75
|
parents?: IAccountingTransaction[];
|
|
75
76
|
childs?: IAccountingTransaction[];
|
|
76
77
|
machineLearningResults?: IMachineLearningResult[];
|
|
78
|
+
societyPartner?: ISocietyPartner;
|
|
77
79
|
}
|
|
@@ -184,6 +184,9 @@ export enum Code {
|
|
|
184
184
|
CAN_NOT_DELETE_DOCUMENT = 'can_not_delete_document',
|
|
185
185
|
CAN_NOT_EDIT_INVOICE = 'can_not_edit_invoice',
|
|
186
186
|
INVALID_INVOICE_TYPE = 'invalid_invoice_type',
|
|
187
|
+
|
|
188
|
+
// Expense Notes
|
|
189
|
+
LIMIT_MONTH_REACHED = 'limit_month_reached',
|
|
187
190
|
}
|
|
188
191
|
|
|
189
192
|
export interface IApiError {
|
|
@@ -11,6 +11,7 @@ import { IFile } from './IFile';
|
|
|
11
11
|
import { ISociety } from './ISociety';
|
|
12
12
|
import { IExerciceDetail } from './IExerciceDetail';
|
|
13
13
|
import { IBalanceSheetModule } from './IBalanceSheetModule';
|
|
14
|
+
import { IRegistration } from './IRegistration';
|
|
14
15
|
|
|
15
16
|
// exercices
|
|
16
17
|
export interface IExercice {
|
|
@@ -60,4 +61,5 @@ export interface IExercice {
|
|
|
60
61
|
society?: ISociety;
|
|
61
62
|
exerciceDetail?: IExerciceDetail;
|
|
62
63
|
exerciceBalanceSheetModule?: IBalanceSheetModule;
|
|
64
|
+
registrations: IRegistration[];
|
|
63
65
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { IUser } from './IUser';
|
|
2
2
|
import { ISociety } from './ISociety';
|
|
3
3
|
import { IExercice } from './IExercice';
|
|
4
|
-
import { ILogType } from './ILogType';
|
|
5
4
|
|
|
6
5
|
// logs
|
|
7
6
|
export interface ILog {
|
|
@@ -23,5 +22,4 @@ export interface ILog {
|
|
|
23
22
|
user: IUser;
|
|
24
23
|
society: ISociety;
|
|
25
24
|
exercice: IExercice;
|
|
26
|
-
typeLog: ILogType;
|
|
27
25
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ISociety, IUser } from '../..';
|
|
1
|
+
import { IPrestation, ISociety, IUser } from '../..';
|
|
2
2
|
|
|
3
3
|
// regulates
|
|
4
4
|
export interface IRegulate {
|
|
@@ -8,10 +8,12 @@ export interface IRegulate {
|
|
|
8
8
|
canceled: boolean;
|
|
9
9
|
idUser: number;
|
|
10
10
|
idSociety: number;
|
|
11
|
+
idPrestation?: number;
|
|
11
12
|
idType: number;
|
|
12
13
|
createdAt?: Date | null;
|
|
13
14
|
updatedAt?: Date | null;
|
|
14
15
|
|
|
15
|
-
society
|
|
16
|
-
user
|
|
16
|
+
society?: ISociety;
|
|
17
|
+
user?: IUser;
|
|
18
|
+
prestation?: IPrestation;
|
|
17
19
|
}
|
|
@@ -10,6 +10,9 @@ export interface IReport {
|
|
|
10
10
|
idLetterType?: number | null;
|
|
11
11
|
declareSoupcons?: boolean | null;
|
|
12
12
|
state?: number | null;
|
|
13
|
+
compensationAmount?: number | null;
|
|
14
|
+
compensationDate?: Date | null;
|
|
15
|
+
compensationType?: number | null;
|
|
13
16
|
informerjlb?: boolean | null;
|
|
14
17
|
ressenti?: number | null;
|
|
15
18
|
action?: number | null;
|
|
@@ -53,6 +53,7 @@ import {
|
|
|
53
53
|
IAccountsSocieties,
|
|
54
54
|
IUnpaidCallHistory,
|
|
55
55
|
IAccountingFile,
|
|
56
|
+
IThirdPartySociety,
|
|
56
57
|
} from '../..';
|
|
57
58
|
import { IBrandType } from './IBrandType';
|
|
58
59
|
import { IFile } from './IFile';
|
|
@@ -159,6 +160,7 @@ export interface ISociety {
|
|
|
159
160
|
accounts?: IAccount[];
|
|
160
161
|
accountsSocieties?: IAccountsSocieties[];
|
|
161
162
|
comments?: IComment[];
|
|
163
|
+
thirdPartiesSociety?: IThirdPartySociety[];
|
|
162
164
|
thirdParty?: IThirdParty[];
|
|
163
165
|
reports?: IReport[];
|
|
164
166
|
connectors?: IConnector[];
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { IThirdParty } from './IThirdParty';
|
|
2
|
+
|
|
1
3
|
// thirdPartySocieties
|
|
2
4
|
export interface IThirdPartySociety {
|
|
3
5
|
id?: number;
|
|
@@ -6,4 +8,7 @@ export interface IThirdPartySociety {
|
|
|
6
8
|
isHidden: boolean;
|
|
7
9
|
createdAt?: Date | null;
|
|
8
10
|
updatedAt?: Date | null;
|
|
11
|
+
|
|
12
|
+
// associations
|
|
13
|
+
thirdParty?: IThirdParty;
|
|
9
14
|
}
|
package/ts/types/index.ts
CHANGED
|
@@ -487,6 +487,9 @@ export * from './Enum/CommercialImportHeader';
|
|
|
487
487
|
export * from './Enum/ReasonTerminationType';
|
|
488
488
|
export * from './Enum/RemoteType';
|
|
489
489
|
export * from './Enum/EntityType';
|
|
490
|
+
export * from './Enum/Compensation';
|
|
491
|
+
export * from './Enum/CashDeskTransactionType';
|
|
492
|
+
export * from './Enum/ThirdParty';
|
|
490
493
|
|
|
491
494
|
// Interfaces API
|
|
492
495
|
export * from './Interface/api/adjustment/Query';
|
|
@@ -889,10 +892,12 @@ export * from './Interface/api/qonto/ProcessBankAccount';
|
|
|
889
892
|
export * from './Interface/api/qonto/Read';
|
|
890
893
|
export * from './Interface/api/file/Create';
|
|
891
894
|
export * from './Interface/api/file/Read';
|
|
895
|
+
export * from './Interface/api/file/Query';
|
|
892
896
|
export * from './Interface/api/societyConfig/update';
|
|
893
897
|
export * from './Interface/api/wallet/UpdateAttribution';
|
|
894
898
|
export * from './Interface/api/prestation/CreatePrestation';
|
|
895
899
|
export * from './Interface/api/prestation/QueryPrestation';
|
|
900
|
+
export * from './Interface/api/prestation/QueryCreatePrestationSocieties';
|
|
896
901
|
export * from './Interface/api/paymentExpectation/QueryPaymentExpectation';
|
|
897
902
|
export * from './Interface/api/legalNotice/UpdateLegalNotice';
|
|
898
903
|
export * from './Interface/api/wallet/QueryWallet';
|
|
@@ -919,6 +924,7 @@ export * from './Interface/api/prestations/QueryGetAllPrestations';
|
|
|
919
924
|
export * from './Interface/api/commercialImport/Read';
|
|
920
925
|
export * from './Interface/api/commercialImport/Query';
|
|
921
926
|
export * from './Interface/api/commercialImport/Create';
|
|
927
|
+
export * from './Interface/api/cashAndExpense/Create';
|
|
922
928
|
|
|
923
929
|
// Enums types
|
|
924
930
|
export * from './Interface/enum/Util';
|
|
@@ -19,10 +19,9 @@ const avatar = `<% if (!forceRole && user?.avatar?.token) { %>
|
|
|
19
19
|
width="100">
|
|
20
20
|
<p style="padding: 20px;background-image: url('https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_quotes.png');background-size: 26%;background-position: 81% -3%;background-repeat: no-repeat;">
|
|
21
21
|
<img
|
|
22
|
-
style="max-height: 90px;max-width: 90px; border-radius: 100%; padding-top:
|
|
23
|
-
|
|
24
|
-
<%= hostS3 %>users/<%= user.id %>/<%= user.avatar.token %>
|
|
25
|
-
"
|
|
22
|
+
style="max-height: 90px;max-width: 90px; border-radius: 100%; padding-top: 10px"
|
|
23
|
+
alt="Avatar"
|
|
24
|
+
src="<%= hostS3 %>users/<%= user.id %>/<%= user.avatar.token %>"
|
|
26
25
|
/>
|
|
27
26
|
</p>
|
|
28
27
|
</td>
|
|
@@ -36,7 +35,7 @@ const footer = `<% if(brandName === 'Clementine') { %>
|
|
|
36
35
|
<table style="width: 100%" width="100%">
|
|
37
36
|
<tr>
|
|
38
37
|
<td style="padding:0 10px 0 0" width="120">
|
|
39
|
-
<a href="https://app.
|
|
38
|
+
<a href="https://app.clementine.fr/" target="_blank" style="text-decoration: none; color: #6E6E71; white-space: nowrap;">
|
|
40
39
|
<img
|
|
41
40
|
src="https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_connect2.png"
|
|
42
41
|
style="vertical-align: text-top;"
|
|
@@ -86,10 +85,10 @@ const footer = `<% if(brandName === 'Clementine') { %>
|
|
|
86
85
|
<tr>
|
|
87
86
|
<td colspan="7" style="padding-top: 12px">
|
|
88
87
|
<span style="text-align: left; text-decoration: none; color: #A0A1A6; white-space: nowrap; float: left;">
|
|
89
|
-
Une question ? Découvrez votre <a href="https://www.
|
|
88
|
+
Une question ? Découvrez votre <a href="https://www.clementine.fr/aide/" style="color: #FF7E3C">centre d'aide</a>
|
|
90
89
|
</span>
|
|
91
90
|
<span style="text-align: right; text-decoration: none; color: #A0A1A6; white-space: nowrap; float: right;">
|
|
92
|
-
Jusqu’à 500€ avec notre <a href="https://www.
|
|
91
|
+
Jusqu’à 500€ avec notre <a href="https://www.clementine.fr/parrainage/?utm_source=signature&utm_medium=email&utm_campaign=signature&utm_content=cta" style="color: #FF7E3C">programme de parrainage</a>
|
|
93
92
|
</span>
|
|
94
93
|
</td>
|
|
95
94
|
</tr>
|
package/ts/utils/quotation.ts
CHANGED
|
@@ -247,9 +247,11 @@ export function getClientQuotation(society: ISociety, otherSocieties: ISociety[]
|
|
|
247
247
|
}
|
|
248
248
|
|
|
249
249
|
/* LAB refusée */
|
|
250
|
-
if (
|
|
251
|
-
|
|
252
|
-
|
|
250
|
+
if (society?.societyDetail) {
|
|
251
|
+
if (!society.societyDetail?.acceptation) {
|
|
252
|
+
quotationNegative -= 10;
|
|
253
|
+
detailQuotation.labRefused -= 10;
|
|
254
|
+
}
|
|
253
255
|
}
|
|
254
256
|
|
|
255
257
|
/* Cessation de paiement - redressement judiciaire - procédure en cours / signalements / résiliation */
|
|
@@ -21,21 +21,21 @@ export function getCerfa3517Century23Payload(accountingEntries: IAccountingEntry
|
|
|
21
21
|
|
|
22
22
|
const taxedOperationsAccounts = ['701', '702', '703', '704', '705', '706', '707', '708'];
|
|
23
23
|
|
|
24
|
-
const vatNormalRate20 = getAmountByAccountNumber(vatEntries.filter((ae) => ae.idVat === Vat.TX_20.id), taxedOperationsAccounts);
|
|
25
|
-
const vatReducedRate5Dot5 = getAmountByAccountNumber(vatEntries.filter((ae) => ae.idVat === Vat.TX_5_5.id), taxedOperationsAccounts);
|
|
26
|
-
const vatReducedRate10 = getAmountByAccountNumber(vatEntries.filter((ae) => ae.idVat === Vat.TX_10.id), taxedOperationsAccounts);
|
|
27
|
-
const vatReducedRate8Dot5 = getAmountByAccountNumber(vatEntries.filter((ae) => ae.idVat === Vat.TX_8_5.id), taxedOperationsAccounts);
|
|
28
|
-
const vatReducedRate2Dot1 = getAmountByAccountNumber(vatEntries.filter((ae) => ae.idVat === Vat.TX_2_1.id), taxedOperationsAccounts);
|
|
24
|
+
const vatNormalRate20 = getAmountByAccountNumber(vatEntries.filter((ae) => ae.idVat === Vat.TX_20.id), taxedOperationsAccounts, 0, true);
|
|
25
|
+
const vatReducedRate5Dot5 = getAmountByAccountNumber(vatEntries.filter((ae) => ae.idVat === Vat.TX_5_5.id), taxedOperationsAccounts, 0, true);
|
|
26
|
+
const vatReducedRate10 = getAmountByAccountNumber(vatEntries.filter((ae) => ae.idVat === Vat.TX_10.id), taxedOperationsAccounts, 0, true);
|
|
27
|
+
const vatReducedRate8Dot5 = getAmountByAccountNumber(vatEntries.filter((ae) => ae.idVat === Vat.TX_8_5.id), taxedOperationsAccounts, 0, true);
|
|
28
|
+
const vatReducedRate2Dot1 = getAmountByAccountNumber(vatEntries.filter((ae) => ae.idVat === Vat.TX_2_1.id), taxedOperationsAccounts, 0, true);
|
|
29
29
|
|
|
30
30
|
const prestation2Entries = vatEntries.filter((ae) => intracomVat.includes(ae.idVat));
|
|
31
31
|
const presta2Accounts = ['604', '61', '62'];
|
|
32
|
-
const prestation2Base = getAmountByAccountNumber(prestation2Entries, presta2Accounts);
|
|
32
|
+
const prestation2Base = getAmountByAccountNumber(prestation2Entries, presta2Accounts, 0, true);
|
|
33
33
|
const prestation2AmountOfVat = getTaxAmountByAccountNumber(prestation2Entries, presta2Accounts);
|
|
34
34
|
|
|
35
|
-
const saleOfImmobilization = getAmountByAccountNumber(vatEntries.filter((ae) => !withoutTaxVat.includes(ae.idVat) && frenchVat.includes(ae.idVat)), ['775']);
|
|
35
|
+
const saleOfImmobilization = getAmountByAccountNumber(vatEntries.filter((ae) => !withoutTaxVat.includes(ae.idVat) && frenchVat.includes(ae.idVat)), ['775'], 0, true);
|
|
36
36
|
|
|
37
|
-
const onInvoiceDeductible = getAmountByAccountNumber(vatEntries, ['445660']);
|
|
38
|
-
const onImmobilizationDeductible = getAmountByAccountNumber(vatEntries, ['445662']);
|
|
37
|
+
const onInvoiceDeductible = getAmountByAccountNumber(vatEntries, ['445660'], 0, true);
|
|
38
|
+
const onImmobilizationDeductible = getAmountByAccountNumber(vatEntries, ['445662'], 0, true);
|
|
39
39
|
|
|
40
40
|
const julyAdvance: IRegistration | null = payload?.exerciceAdvanceRegistrations?.find((a) => dayjs(a.endDate).month() === 6) ?? null;
|
|
41
41
|
const julyAdvancePayload: Cerfa3514_2022 | null = julyAdvance?.payload ?? null;
|
package/ts/utils/vat/utils.ts
CHANGED
|
@@ -8,9 +8,7 @@ export function getAmountByAccountNumber(accountingEntries: IAccountingEntry[],
|
|
|
8
8
|
let accTmp = acc;
|
|
9
9
|
accountsNumber.some((number) => {
|
|
10
10
|
if (accountingEntry.account && accountingEntry.account.number && accountingEntry.account.number.toString().startsWith(number)) {
|
|
11
|
-
|
|
12
|
-
accTmp += (accountingEntry.debit - accountingEntry.credit);
|
|
13
|
-
}
|
|
11
|
+
accTmp += (accountingEntry.debit - accountingEntry.credit);
|
|
14
12
|
return true;
|
|
15
13
|
}
|
|
16
14
|
return false;
|