@silexpert/core 1.1.389 → 1.1.391
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/Mail.d.ts +1 -1
- package/dist/cjs/api/resources/Mail.d.ts.map +1 -1
- package/dist/cjs/api/resources/Mail.js +2 -2
- package/dist/cjs/api/resources/Mail.js.map +1 -1
- package/dist/cjs/api/resources/PrevisionalForm.d.ts +10 -0
- package/dist/cjs/api/resources/PrevisionalForm.d.ts.map +1 -0
- package/dist/cjs/api/resources/PrevisionalForm.js +23 -0
- package/dist/cjs/api/resources/PrevisionalForm.js.map +1 -0
- package/dist/cjs/api/resources/Vat.d.ts +1 -3
- package/dist/cjs/api/resources/Vat.d.ts.map +1 -1
- package/dist/cjs/api/resources/Vat.js +0 -9
- package/dist/cjs/api/resources/Vat.js.map +1 -1
- package/dist/cjs/api/resources.d.ts +2 -0
- package/dist/cjs/api/resources.d.ts.map +1 -1
- package/dist/cjs/api/resources.js +2 -0
- package/dist/cjs/api/resources.js.map +1 -1
- package/dist/cjs/types/Enum/Ged.d.ts +2 -1
- package/dist/cjs/types/Enum/Ged.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Ged.js +2 -0
- package/dist/cjs/types/Enum/Ged.js.map +1 -1
- package/dist/cjs/types/Enum/Log.d.ts +14 -1
- package/dist/cjs/types/Enum/Log.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Log.js +13 -0
- package/dist/cjs/types/Enum/Log.js.map +1 -1
- package/dist/cjs/types/Enum/PrevisionalForm.d.ts +16 -0
- package/dist/cjs/types/Enum/PrevisionalForm.d.ts.map +1 -0
- package/dist/cjs/types/Enum/PrevisionalForm.js +15 -0
- package/dist/cjs/types/Enum/PrevisionalForm.js.map +1 -0
- package/dist/cjs/types/Enum/Template.d.ts +13 -0
- package/dist/cjs/types/Enum/Template.d.ts.map +1 -0
- package/dist/cjs/types/Enum/Template.js +17 -0
- package/dist/cjs/types/Enum/Template.js.map +1 -0
- package/dist/cjs/types/Enum/TypeSupportForNotation.js +2 -2
- package/dist/cjs/types/Enum/TypeSupportForNotation.js.map +1 -1
- package/dist/cjs/types/Enum/VatDeclarationType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/VatDeclarationType.js +67 -1
- package/dist/cjs/types/Enum/VatDeclarationType.js.map +1 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Create.d.ts +11 -0
- package/dist/cjs/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Create.js +66 -0
- package/dist/cjs/types/Interface/api/commercialManagement/Create.js.map +1 -1
- package/dist/cjs/types/Interface/api/exercice/Create.d.ts +1 -0
- package/dist/cjs/types/Interface/api/exercice/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/exercice/Create.js +6 -0
- package/dist/cjs/types/Interface/api/exercice/Create.js.map +1 -1
- package/dist/cjs/types/Interface/api/payment/Util.d.ts +0 -1
- 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/previsionalForm/CreatePrevisionalForm.d.ts +76 -0
- package/dist/cjs/types/Interface/api/previsionalForm/CreatePrevisionalForm.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/previsionalForm/CreatePrevisionalForm.js +217 -0
- package/dist/cjs/types/Interface/api/previsionalForm/CreatePrevisionalForm.js.map +1 -0
- package/dist/cjs/types/Interface/api/previsionalForm/PrevisionalFormPayload.d.ts +65 -0
- package/dist/cjs/types/Interface/api/previsionalForm/PrevisionalFormPayload.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/previsionalForm/PrevisionalFormPayload.js +3 -0
- package/dist/cjs/types/Interface/api/previsionalForm/PrevisionalFormPayload.js.map +1 -0
- package/dist/cjs/types/Interface/api/terminationList/TerminationList.d.ts +7 -0
- package/dist/cjs/types/Interface/api/terminationList/TerminationList.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/terminationList/TerminationList.js +42 -0
- package/dist/cjs/types/Interface/api/terminationList/TerminationList.js.map +1 -0
- package/dist/cjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.d.ts +0 -3
- package/dist/cjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.js +1 -9
- package/dist/cjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.js.map +1 -1
- package/dist/cjs/types/Interface/models/IPrevisionalForm.d.ts +13 -0
- package/dist/cjs/types/Interface/models/IPrevisionalForm.d.ts.map +1 -0
- package/dist/cjs/types/Interface/models/IPrevisionalForm.js +3 -0
- package/dist/cjs/types/Interface/models/IPrevisionalForm.js.map +1 -0
- package/dist/cjs/types/Interface/models/ISocietyGescom.d.ts +11 -0
- package/dist/cjs/types/Interface/models/ISocietyGescom.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ISocietyGescom.js.map +1 -1
- package/dist/cjs/types/index.d.ts +5 -0
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +5 -0
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/cjs/utils/commercialManagement/templates/common.d.ts.map +1 -1
- package/dist/cjs/utils/commercialManagement/templates/common.js +18 -1
- package/dist/cjs/utils/commercialManagement/templates/common.js.map +1 -1
- package/dist/cjs/utils/payment.d.ts.map +1 -1
- package/dist/cjs/utils/payment.js +13 -8
- package/dist/cjs/utils/payment.js.map +1 -1
- package/dist/cjs/utils/prestation.js +1 -1
- package/dist/cjs/utils/prestation.js.map +1 -1
- package/dist/cjs/utils/tests/payment.spec.js +0 -16
- package/dist/cjs/utils/tests/payment.spec.js.map +1 -1
- package/dist/mjs/api/resources/Mail.d.ts +1 -1
- package/dist/mjs/api/resources/Mail.d.ts.map +1 -1
- package/dist/mjs/api/resources/Mail.js +5 -2
- package/dist/mjs/api/resources/Mail.js.map +1 -1
- package/dist/mjs/api/resources/PrevisionalForm.d.ts +10 -0
- package/dist/mjs/api/resources/PrevisionalForm.d.ts.map +1 -0
- package/dist/mjs/api/resources/PrevisionalForm.js +23 -0
- package/dist/mjs/api/resources/PrevisionalForm.js.map +1 -0
- package/dist/mjs/api/resources/Vat.d.ts +1 -3
- package/dist/mjs/api/resources/Vat.d.ts.map +1 -1
- package/dist/mjs/api/resources/Vat.js +0 -9
- package/dist/mjs/api/resources/Vat.js.map +1 -1
- package/dist/mjs/api/resources.d.ts +2 -0
- package/dist/mjs/api/resources.d.ts.map +1 -1
- package/dist/mjs/api/resources.js +2 -0
- package/dist/mjs/api/resources.js.map +1 -1
- package/dist/mjs/types/Enum/Ged.d.ts +2 -1
- package/dist/mjs/types/Enum/Ged.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Ged.js +2 -0
- package/dist/mjs/types/Enum/Ged.js.map +1 -1
- package/dist/mjs/types/Enum/Log.d.ts +14 -1
- package/dist/mjs/types/Enum/Log.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Log.js +13 -0
- package/dist/mjs/types/Enum/Log.js.map +1 -1
- package/dist/mjs/types/Enum/PrevisionalForm.d.ts +16 -0
- package/dist/mjs/types/Enum/PrevisionalForm.d.ts.map +1 -0
- package/dist/mjs/types/Enum/PrevisionalForm.js +12 -0
- package/dist/mjs/types/Enum/PrevisionalForm.js.map +1 -0
- package/dist/mjs/types/Enum/Template.d.ts +13 -0
- package/dist/mjs/types/Enum/Template.d.ts.map +1 -0
- package/dist/mjs/types/Enum/Template.js +14 -0
- package/dist/mjs/types/Enum/Template.js.map +1 -0
- package/dist/mjs/types/Enum/TypeSupportForNotation.js +2 -2
- package/dist/mjs/types/Enum/TypeSupportForNotation.js.map +1 -1
- package/dist/mjs/types/Enum/VatDeclarationType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/VatDeclarationType.js +67 -1
- package/dist/mjs/types/Enum/VatDeclarationType.js.map +1 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Create.d.ts +11 -0
- package/dist/mjs/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Create.js +77 -0
- package/dist/mjs/types/Interface/api/commercialManagement/Create.js.map +1 -1
- package/dist/mjs/types/Interface/api/exercice/Create.d.ts +1 -0
- package/dist/mjs/types/Interface/api/exercice/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/exercice/Create.js +7 -0
- package/dist/mjs/types/Interface/api/exercice/Create.js.map +1 -1
- package/dist/mjs/types/Interface/api/payment/Util.d.ts +0 -1
- 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/previsionalForm/CreatePrevisionalForm.d.ts +76 -0
- package/dist/mjs/types/Interface/api/previsionalForm/CreatePrevisionalForm.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/previsionalForm/CreatePrevisionalForm.js +277 -0
- package/dist/mjs/types/Interface/api/previsionalForm/CreatePrevisionalForm.js.map +1 -0
- package/dist/mjs/types/Interface/api/previsionalForm/PrevisionalFormPayload.d.ts +65 -0
- package/dist/mjs/types/Interface/api/previsionalForm/PrevisionalFormPayload.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/previsionalForm/PrevisionalFormPayload.js +2 -0
- package/dist/mjs/types/Interface/api/previsionalForm/PrevisionalFormPayload.js.map +1 -0
- package/dist/mjs/types/Interface/api/terminationList/TerminationList.d.ts +7 -0
- package/dist/mjs/types/Interface/api/terminationList/TerminationList.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/terminationList/TerminationList.js +42 -0
- package/dist/mjs/types/Interface/api/terminationList/TerminationList.js.map +1 -0
- package/dist/mjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.d.ts +0 -3
- package/dist/mjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.js +0 -8
- package/dist/mjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.js.map +1 -1
- package/dist/mjs/types/Interface/models/IPrevisionalForm.d.ts +13 -0
- package/dist/mjs/types/Interface/models/IPrevisionalForm.d.ts.map +1 -0
- package/dist/mjs/types/Interface/models/IPrevisionalForm.js +2 -0
- package/dist/mjs/types/Interface/models/IPrevisionalForm.js.map +1 -0
- package/dist/mjs/types/Interface/models/ISocietyGescom.d.ts +11 -0
- package/dist/mjs/types/Interface/models/ISocietyGescom.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ISocietyGescom.js.map +1 -1
- package/dist/mjs/types/index.d.ts +5 -0
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +5 -0
- package/dist/mjs/types/index.js.map +1 -1
- package/dist/mjs/utils/commercialManagement/templates/common.d.ts.map +1 -1
- package/dist/mjs/utils/commercialManagement/templates/common.js +18 -1
- package/dist/mjs/utils/commercialManagement/templates/common.js.map +1 -1
- package/dist/mjs/utils/payment.d.ts.map +1 -1
- package/dist/mjs/utils/payment.js +13 -8
- package/dist/mjs/utils/payment.js.map +1 -1
- package/dist/mjs/utils/prestation.js +1 -1
- package/dist/mjs/utils/prestation.js.map +1 -1
- package/dist/mjs/utils/tests/payment.spec.js +0 -16
- package/dist/mjs/utils/tests/payment.spec.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Mail.ts +5 -2
- package/ts/api/resources/PrevisionalForm.ts +28 -0
- package/ts/api/resources/Vat.ts +1 -12
- package/ts/api/resources.ts +2 -0
- package/ts/types/Enum/Ged.ts +2 -0
- package/ts/types/Enum/Log.ts +13 -0
- package/ts/types/Enum/PrevisionalForm.ts +11 -0
- package/ts/types/Enum/Template.ts +12 -0
- package/ts/types/Enum/TypeSupportForNotation.ts +2 -2
- package/ts/types/Enum/VatDeclarationType.ts +67 -1
- package/ts/types/Interface/api/commercialManagement/Create.ts +57 -0
- package/ts/types/Interface/api/exercice/Create.ts +5 -0
- package/ts/types/Interface/api/payment/Util.ts +0 -1
- package/ts/types/Interface/api/previsionalForm/CreatePrevisionalForm.ts +177 -0
- package/ts/types/Interface/api/previsionalForm/PrevisionalFormPayload.ts +73 -0
- package/ts/types/Interface/api/terminationList/TerminationList.ts +28 -0
- package/ts/types/Interface/api/vatDeclaration/QueryVatDeclaration.ts +0 -6
- package/ts/types/Interface/models/IPrevisionalForm.ts +15 -0
- package/ts/types/Interface/models/ISocietyGescom.ts +11 -0
- package/ts/types/index.ts +5 -0
- package/ts/utils/commercialManagement/templates/common.ts +18 -1
- package/ts/utils/payment.ts +13 -9
- package/ts/utils/prestation.ts +1 -1
- package/ts/utils/tests/payment.spec.ts +0 -16
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { LegalFormTypeEnum } from '../../../Enum/LegalForm';
|
|
2
|
+
import { TaxSystem } from '../../../Enum/TaxSystem';
|
|
3
|
+
import { NumberFiscalYears, PrevisionalFormActivity, PrevisionalFormPayload } from '../../..';
|
|
4
|
+
import { ApiProperty } from '../../../../utils';
|
|
5
|
+
import { IsNumber, IsBoolean, IsEnum, IsString } from 'class-validator';
|
|
6
|
+
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
7
|
+
|
|
8
|
+
export class NumberFiscalYearsValidation implements NumberFiscalYears {
|
|
9
|
+
@ApiProperty()
|
|
10
|
+
@IsNumber()
|
|
11
|
+
n: number;
|
|
12
|
+
|
|
13
|
+
@ApiProperty()
|
|
14
|
+
@IsNumber()
|
|
15
|
+
n1: number;
|
|
16
|
+
|
|
17
|
+
@ApiProperty()
|
|
18
|
+
@IsNumber()
|
|
19
|
+
n2: number;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export class CreatePrevisionalFormData implements PrevisionalFormPayload {
|
|
23
|
+
/**
|
|
24
|
+
* Description de la société
|
|
25
|
+
*/
|
|
26
|
+
@ApiProperty()
|
|
27
|
+
@IsBoolean()
|
|
28
|
+
@ToBoolean()
|
|
29
|
+
isCompanyCreation: boolean;
|
|
30
|
+
|
|
31
|
+
@ApiProperty()
|
|
32
|
+
@IsEnum(LegalFormTypeEnum)
|
|
33
|
+
idLegalForm: LegalFormTypeEnum;
|
|
34
|
+
|
|
35
|
+
@ApiProperty()
|
|
36
|
+
@IsEnum(TaxSystem)
|
|
37
|
+
idTaxSystem: TaxSystem;
|
|
38
|
+
|
|
39
|
+
@ApiProperty()
|
|
40
|
+
@IsString()
|
|
41
|
+
activity: PrevisionalFormActivity;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Investissement
|
|
45
|
+
*/
|
|
46
|
+
@ApiProperty()
|
|
47
|
+
computerHardware: NumberFiscalYearsValidation;
|
|
48
|
+
|
|
49
|
+
@ApiProperty()
|
|
50
|
+
vehicle: NumberFiscalYearsValidation;
|
|
51
|
+
|
|
52
|
+
@ApiProperty()
|
|
53
|
+
toolsEquipment: NumberFiscalYearsValidation;
|
|
54
|
+
|
|
55
|
+
@ApiProperty()
|
|
56
|
+
software: NumberFiscalYearsValidation;
|
|
57
|
+
|
|
58
|
+
@ApiProperty()
|
|
59
|
+
website: NumberFiscalYearsValidation;
|
|
60
|
+
|
|
61
|
+
@ApiProperty()
|
|
62
|
+
businessAssets: NumberFiscalYearsValidation;
|
|
63
|
+
|
|
64
|
+
@ApiProperty()
|
|
65
|
+
immobilizedSecurities: NumberFiscalYearsValidation;
|
|
66
|
+
|
|
67
|
+
@ApiProperty()
|
|
68
|
+
deposit: NumberFiscalYearsValidation;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Financement
|
|
72
|
+
*/
|
|
73
|
+
@ApiProperty()
|
|
74
|
+
socialCapital: NumberFiscalYearsValidation;
|
|
75
|
+
|
|
76
|
+
@ApiProperty()
|
|
77
|
+
accountContribution: NumberFiscalYearsValidation;
|
|
78
|
+
|
|
79
|
+
@ApiProperty()
|
|
80
|
+
loan: NumberFiscalYearsValidation;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Chiffres d’affaires et charge liées à l’activité
|
|
84
|
+
*/
|
|
85
|
+
@ApiProperty()
|
|
86
|
+
turnover: NumberFiscalYearsValidation;
|
|
87
|
+
|
|
88
|
+
@ApiProperty()
|
|
89
|
+
outsourcing: NumberFiscalYearsValidation;
|
|
90
|
+
|
|
91
|
+
@ApiProperty()
|
|
92
|
+
merchandisePurchase: NumberFiscalYearsValidation;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Consommables
|
|
96
|
+
*/
|
|
97
|
+
@ApiProperty()
|
|
98
|
+
packaging: NumberFiscalYearsValidation;
|
|
99
|
+
|
|
100
|
+
@ApiProperty()
|
|
101
|
+
utilities: NumberFiscalYearsValidation;
|
|
102
|
+
|
|
103
|
+
@ApiProperty()
|
|
104
|
+
fuel: NumberFiscalYearsValidation;
|
|
105
|
+
|
|
106
|
+
@ApiProperty()
|
|
107
|
+
equipmentAndSupplies: NumberFiscalYearsValidation;
|
|
108
|
+
|
|
109
|
+
@ApiProperty()
|
|
110
|
+
administrativeSupplies: NumberFiscalYearsValidation;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Autes charges liées à l’activité
|
|
114
|
+
*/
|
|
115
|
+
@ApiProperty()
|
|
116
|
+
realEstateRental: NumberFiscalYearsValidation;
|
|
117
|
+
|
|
118
|
+
@ApiProperty()
|
|
119
|
+
otherRental: NumberFiscalYearsValidation;
|
|
120
|
+
|
|
121
|
+
@ApiProperty()
|
|
122
|
+
maintenanceAndRepair: NumberFiscalYearsValidation;
|
|
123
|
+
|
|
124
|
+
@ApiProperty()
|
|
125
|
+
insuranceAndProfessionalLiability: NumberFiscalYearsValidation;
|
|
126
|
+
|
|
127
|
+
@ApiProperty()
|
|
128
|
+
accountingFees: NumberFiscalYearsValidation;
|
|
129
|
+
|
|
130
|
+
@ApiProperty()
|
|
131
|
+
otherFees: NumberFiscalYearsValidation;
|
|
132
|
+
|
|
133
|
+
@ApiProperty()
|
|
134
|
+
advertising: NumberFiscalYearsValidation;
|
|
135
|
+
|
|
136
|
+
@ApiProperty()
|
|
137
|
+
kilometricAllowances: NumberFiscalYearsValidation;
|
|
138
|
+
|
|
139
|
+
@ApiProperty()
|
|
140
|
+
otherTravelExpenses: NumberFiscalYearsValidation;
|
|
141
|
+
|
|
142
|
+
@ApiProperty()
|
|
143
|
+
telephonyInternetNetworks: NumberFiscalYearsValidation;
|
|
144
|
+
|
|
145
|
+
@ApiProperty()
|
|
146
|
+
bankFees: NumberFiscalYearsValidation;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Social et rémunération
|
|
150
|
+
*/
|
|
151
|
+
@ApiProperty()
|
|
152
|
+
isACREBeneficiary: boolean;
|
|
153
|
+
|
|
154
|
+
@ApiProperty()
|
|
155
|
+
employee1GrossSalary: NumberFiscalYearsValidation;
|
|
156
|
+
|
|
157
|
+
@ApiProperty()
|
|
158
|
+
employee2GrossSalary: NumberFiscalYearsValidation;
|
|
159
|
+
|
|
160
|
+
@ApiProperty()
|
|
161
|
+
employee3GrossSalary: NumberFiscalYearsValidation;
|
|
162
|
+
|
|
163
|
+
@ApiProperty()
|
|
164
|
+
remunerationPresident: NumberFiscalYearsValidation;
|
|
165
|
+
|
|
166
|
+
@ApiProperty()
|
|
167
|
+
remunerationManager: NumberFiscalYearsValidation;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export class CreatePrevisionalForm {
|
|
171
|
+
@ApiProperty()
|
|
172
|
+
@IsNumber()
|
|
173
|
+
idSociety: number;
|
|
174
|
+
|
|
175
|
+
@ApiProperty()
|
|
176
|
+
payload: CreatePrevisionalFormData;
|
|
177
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { LegalFormTypeEnum } from '../../../Enum/LegalForm';
|
|
2
|
+
import { PrevisionalFormActivity } from '../../../Enum/PrevisionalForm';
|
|
3
|
+
import { TaxSystem } from '../../../Enum/TaxSystem';
|
|
4
|
+
|
|
5
|
+
export interface NumberFiscalYears {
|
|
6
|
+
n: number;
|
|
7
|
+
n1: number;
|
|
8
|
+
n2: number;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface CompanyDescription {
|
|
12
|
+
isCompanyCreation: boolean; // Est-ce une création ?
|
|
13
|
+
idLegalForm: LegalFormTypeEnum; // Statut Juridique
|
|
14
|
+
idTaxSystem: TaxSystem; // Régime d'imposition prévu
|
|
15
|
+
activity: PrevisionalFormActivity; // Quelle est l'activité de la société ?
|
|
16
|
+
// + question "De combien est le capital initial apporté ?" socialCapital pour année N
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface Investment {
|
|
20
|
+
computerHardware: NumberFiscalYears; // Matériel informatique
|
|
21
|
+
vehicle: NumberFiscalYears; // Véhicules
|
|
22
|
+
toolsEquipment: NumberFiscalYears; // Outillage, matériel
|
|
23
|
+
software: NumberFiscalYears; // Logiciel
|
|
24
|
+
website: NumberFiscalYears; // Site internet
|
|
25
|
+
businessAssets: NumberFiscalYears; // Fonds de commerce
|
|
26
|
+
immobilizedSecurities: NumberFiscalYears; // Titres immobilisés
|
|
27
|
+
deposit: NumberFiscalYears; // Caution
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface Financing {
|
|
31
|
+
socialCapital: NumberFiscalYears; // Augmentation social
|
|
32
|
+
accountContribution: NumberFiscalYears; // Apport en compte courant d'associé
|
|
33
|
+
loan: NumberFiscalYears; // Emprunt bancaire
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface TurnoverAndCharges {
|
|
37
|
+
turnover: NumberFiscalYears; // Chiffre d'affaires prévu
|
|
38
|
+
outsourcing: NumberFiscalYears; // Sous-traitance prévue
|
|
39
|
+
merchandisePurchase: NumberFiscalYears; // Achats de marchandises / matières premières
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface Consumables {
|
|
43
|
+
packaging: NumberFiscalYears; // Emballages
|
|
44
|
+
utilities: NumberFiscalYears; // Eau, électricité, gaz
|
|
45
|
+
fuel: NumberFiscalYears; // Carburant
|
|
46
|
+
equipmentAndSupplies: NumberFiscalYears; // Petit équipement et matériel
|
|
47
|
+
administrativeSupplies: NumberFiscalYears; // Fournitures administratives
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface OtherCharges {
|
|
51
|
+
realEstateRental: NumberFiscalYears; // Location immobilière
|
|
52
|
+
otherRental: NumberFiscalYears; // Autres locations et crédit bail
|
|
53
|
+
maintenanceAndRepair: NumberFiscalYears; // Entretien et réparation
|
|
54
|
+
insuranceAndProfessionalLiability: NumberFiscalYears; // Assurances et RC Pro
|
|
55
|
+
accountingFees: NumberFiscalYears; // Honoraires comptables
|
|
56
|
+
otherFees: NumberFiscalYears; // Autres frais de gestion
|
|
57
|
+
advertising: NumberFiscalYears; // Publicité
|
|
58
|
+
kilometricAllowances: NumberFiscalYears; // Indemnités kilométriques
|
|
59
|
+
otherTravelExpenses: NumberFiscalYears; // Autres frais de déplacement
|
|
60
|
+
telephonyInternetNetworks: NumberFiscalYears; // Téléphonie, interne, réseaux
|
|
61
|
+
bankFees: NumberFiscalYears; // Frais bancaires
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export interface SocialAndRemuneration {
|
|
65
|
+
isACREBeneficiary: boolean; // Bénéficiaire de l'ACRE
|
|
66
|
+
employee1GrossSalary: NumberFiscalYears; // Salaire brut employé 1
|
|
67
|
+
employee2GrossSalary: NumberFiscalYears; // Salaire brut employé 2
|
|
68
|
+
employee3GrossSalary: NumberFiscalYears; // Salaire brut employé 3
|
|
69
|
+
remunerationPresident: NumberFiscalYears; // Rémunération brut président
|
|
70
|
+
remunerationManager: NumberFiscalYears; // Rémunération gérant
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export interface PrevisionalFormPayload extends CompanyDescription, Investment, Financing, TurnoverAndCharges, Consumables, OtherCharges, SocialAndRemuneration {}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IsBoolean,
|
|
3
|
+
IsInt,
|
|
4
|
+
IsOptional,
|
|
5
|
+
} from 'class-validator';
|
|
6
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
7
|
+
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
8
|
+
|
|
9
|
+
export class CountAndDisableBalanceSheetParams {
|
|
10
|
+
@ApiProperty()
|
|
11
|
+
@IsInt()
|
|
12
|
+
idSociety: number;
|
|
13
|
+
|
|
14
|
+
@ApiProperty()
|
|
15
|
+
@IsInt()
|
|
16
|
+
currentIdUser: number;
|
|
17
|
+
|
|
18
|
+
@ApiPropertyOptional()
|
|
19
|
+
@IsOptional()
|
|
20
|
+
@IsInt()
|
|
21
|
+
lastIdExerciceToProduce?: number;
|
|
22
|
+
|
|
23
|
+
@ApiPropertyOptional()
|
|
24
|
+
@IsOptional()
|
|
25
|
+
@IsBoolean()
|
|
26
|
+
@ToBoolean()
|
|
27
|
+
hasToDisableBalanceSheets?: boolean;
|
|
28
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IFile, ISociety, PrevisionalFormPayload } from '../..';
|
|
2
|
+
|
|
3
|
+
export interface IPrevisionalForm {
|
|
4
|
+
id?: number;
|
|
5
|
+
idSociety: number;
|
|
6
|
+
idFile?: number | null;
|
|
7
|
+
payload: PrevisionalFormPayload;
|
|
8
|
+
createdAt?: Date;
|
|
9
|
+
updatedAt?: Date;
|
|
10
|
+
deletedAt?: Date | null;
|
|
11
|
+
|
|
12
|
+
// Associations
|
|
13
|
+
society?: ISociety;
|
|
14
|
+
file?: IFile;
|
|
15
|
+
}
|
|
@@ -52,4 +52,15 @@ export interface ISocietyGescom {
|
|
|
52
52
|
updatedAt?: Date | null;
|
|
53
53
|
shouldHideBrandName?: boolean;
|
|
54
54
|
shouldHideEmailHeader?: boolean;
|
|
55
|
+
customerBlockBorderThickness?: number | null;
|
|
56
|
+
customerBlockBorderColor?: string | null;
|
|
57
|
+
lineSeparationThickness?: number | null;
|
|
58
|
+
lineSeparationType?: string | null;
|
|
59
|
+
lineSeparationColor?: string | null;
|
|
60
|
+
columnSeparationThickness?: number | null;
|
|
61
|
+
columnSeparationType?: string | null;
|
|
62
|
+
columnSeparationColor?: string | null;
|
|
63
|
+
externalBorderThickness?: number | null;
|
|
64
|
+
externalBorderType?: string | null;
|
|
65
|
+
externalBorderColor?: string | null;
|
|
55
66
|
}
|
package/ts/types/index.ts
CHANGED
|
@@ -335,6 +335,7 @@ export * from './Interface/models/IUserTimeSlot';
|
|
|
335
335
|
export * from './Interface/models/ICompanyCreationForm';
|
|
336
336
|
export * from './Interface/models/IAnnotation';
|
|
337
337
|
export * from './Interface/models/ILoanEarlyRepayment';
|
|
338
|
+
export * from './Interface/models/IPrevisionalForm';
|
|
338
339
|
|
|
339
340
|
|
|
340
341
|
// Schemas
|
|
@@ -550,6 +551,7 @@ export * from './Enum/LetterResponseType';
|
|
|
550
551
|
export * from './Enum/StatusRating';
|
|
551
552
|
export * from './Enum/TypeSupportForNotation';
|
|
552
553
|
export * from './Enum/ToRecallRating';
|
|
554
|
+
export * from './Enum/PrevisionalForm';
|
|
553
555
|
|
|
554
556
|
// Interfaces API
|
|
555
557
|
export * from './Interface/api/exercice/ReadExercice';
|
|
@@ -1018,6 +1020,7 @@ export * from './Interface/api/legalNotice/UpdateLegalNotice';
|
|
|
1018
1020
|
export * from './Interface/api/wallet/QueryWallet';
|
|
1019
1021
|
export * from './Interface/api/terminationList/QueryTerminationList';
|
|
1020
1022
|
export * from './Interface/api/terminationList/DestroyTerminationList';
|
|
1023
|
+
export * from './Interface/api/terminationList/TerminationList';
|
|
1021
1024
|
export * from './Interface/api/terminationList/CreateTerminationList';
|
|
1022
1025
|
export * from './Interface/api/pdf/ReadPdfizer';
|
|
1023
1026
|
export * from './Interface/api/gedFile/updateGedFile';
|
|
@@ -1099,6 +1102,8 @@ export * from './Interface/api/companyCreationForm/CreateCompanyCreationForm';
|
|
|
1099
1102
|
export * from './Interface/api/companyCreationForm/UpdateCompanyCreationForm';
|
|
1100
1103
|
export * from './Interface/api/companyCreationForm/CompanyCreationFormPayload';
|
|
1101
1104
|
export * from './Interface/api/sellsy/CreateInvoicesSellsy';
|
|
1105
|
+
export * from './Interface/api/previsionalForm/PrevisionalFormPayload';
|
|
1106
|
+
export * from './Interface/api/previsionalForm/CreatePrevisionalForm';
|
|
1102
1107
|
export * from './Interface/api/toDoExpress/Query';
|
|
1103
1108
|
export * from './Interface/api/toDoExpress/Read';
|
|
1104
1109
|
|
|
@@ -245,7 +245,7 @@ export class CommercialDocumentCommonHTML {
|
|
|
245
245
|
.pdf-content .logo-placeholder { width: 300px; max-height: 150px;text-align: <%= settings && settings.logoAlignment === 'left' ? 'left' : 'right' %>; margin-bottom: <%= settings && settings.logoAlignment === 'left' ? '10px;' : '0px' %>}
|
|
246
246
|
.pdf-content .logo-placeholder > svg, .pdf-content .logo-placeholder > img { max-width: 100%; max-height: 150px; }
|
|
247
247
|
.pdf-content .document-reference { font-size: 20px !important; }
|
|
248
|
-
.pdf-content .customer-border { border: 2px solid #EAEAEA
|
|
248
|
+
.pdf-content .customer-border { border: <%= settings && settings.customerBlockBorderThickness ? settings.customerBlockBorderThickness + 'px' : '2px' %> solid <% settings && settings.customerBlockBorderColor ? settings.customerBlockBorderColor : '#EAEAEA' %>; border-radius: 6px; padding: 7px; }
|
|
249
249
|
|
|
250
250
|
/* Body */
|
|
251
251
|
.pdf-content table.commercial-table-preview { border-spacing: 1px; border-collapse: collapse; }
|
|
@@ -265,6 +265,23 @@ export class CommercialDocumentCommonHTML {
|
|
|
265
265
|
.pdf-content table.commercial-table-preview .discount-percent { color: #838384; font-size: smaller }
|
|
266
266
|
.pdf-content a.payment-button { margin-left: 40px; display: flex; align-items: center; background-color: #EBF1FF; border-radius: 10px; font-weight: 450; font-size: 12px !important; color: #1656FF; border: none; padding: 8px 14px; text-decoration: none; }
|
|
267
267
|
.pdf-content a.payment-button svg { margin-left: 15px; }
|
|
268
|
+
|
|
269
|
+
<% if (settings && !settings.areLineSeparationHidden) { %>
|
|
270
|
+
.pdf-content td { border-top: <%= settings && settings.lineSeparationThickness ? settings.lineSeparationThickness + 'px' : '2px' %> <%= settings && settings.lineSeparationType ? settings.lineSeparationType : 'solid' %> <%= settings && settings.lineSeparationColor ? settings.lineSeparationColor : '#EAEAEA' %> !important; border-bottom: <%= settings && settings.lineSeparationThickness ? settings.lineSeparationThickness + 'px' : '2px' %> <%= settings && settings.lineSeparationType ? settings.lineSeparationType : 'solid' %> <%= settings && settings.lineSeparationColor ? settings.lineSeparationColor : '#EAEAEA' %> !important; }
|
|
271
|
+
<% } %>
|
|
272
|
+
|
|
273
|
+
<% if (settings && !settings.areColumnsSeparationHidden) { %>
|
|
274
|
+
.pdf-content td { border-left: <%= settings && settings.columnSeparationThickness ? settings.columnSeparationThickness + 'px' : '2px' %> <%= settings && settings.columnSeparationColor ? settings.columnSeparationColor : 'solid' %> <%= settings && settings.columnSeparationColor ? settings.columnSeparationColor : '#EAEAEA' %> !important; border-right: <%= settings && settings.columnSeparationThickness ? settings.columnSeparationThickness + 'px' : '2px' %> <%= settings && settings.columnSeparationColor ? settings.columnSeparationColor : 'solid' %> <%= settings && settings.columnSeparationColor ? settings.columnSeparationColor : '#EAEAEA' %> !important; }
|
|
275
|
+
<% } %>
|
|
276
|
+
|
|
277
|
+
<% if (settings && !settings.areExternalBordersHidden) { %>
|
|
278
|
+
.pdf-content table.commercial-table-preview { border: <%= settings && settings.columnSeparationThickness ? settings.columnSeparationThickness + 'px' : '2px' %> <%= settings && settings.columnSeparationColor ? settings.columnSeparationColor : 'solid' %> <%= settings && settings.columnSeparationColor ? settings.columnSeparationColor : '#EAEAEA' %> !important; }
|
|
279
|
+
.pdf-content table.commercial-table-preview tr:last-child td { border-bottom: <%= settings && settings.columnSeparationThickness ? settings.columnSeparationThickness + 'px' : '2px' %> <%= settings && settings.columnSeparationColor ? settings.columnSeparationColor : 'solid' %> <%= settings && settings.columnSeparationColor ? settings.columnSeparationColor : '#EAEAEA' %> !important; }
|
|
280
|
+
.pdf-content table.commercial-table-preview thead td { border-top: <%= settings && settings.columnSeparationThickness ? settings.columnSeparationThickness + 'px' : '2px' %> <%= settings && settings.columnSeparationColor ? settings.columnSeparationColor : 'solid' %> <%= settings && settings.columnSeparationColor ? settings.columnSeparationColor : '#EAEAEA' %> !important; }
|
|
281
|
+
.pdf-content table.commercial-table-preview td:first-child { border-left: <%= settings && settings.columnSeparationThickness ? settings.columnSeparationThickness + 'px' : '2px' %> <%= settings && settings.columnSeparationColor ? settings.columnSeparationColor : 'solid' %> <%= settings && settings.columnSeparationColor ? settings.columnSeparationColor : '#EAEAEA' %> !important; }
|
|
282
|
+
.pdf-content table.commercial-table-preview td:last-child { border-right: <%= settings && settings.columnSeparationThickness ? settings.columnSeparationThickness + 'px' : '2px' %> <%= settings && settings.columnSeparationColor ? settings.columnSeparationColor : 'solid' %> <%= settings && settings.columnSeparationColor ? settings.columnSeparationColor : '#EAEAEA' %> !important; }
|
|
283
|
+
<% } %>
|
|
284
|
+
|
|
268
285
|
<% if (settings && settings.areLinesSeparationHidden) { %>
|
|
269
286
|
.pdf-content td { border-top: none !important; border-bottom: none !important; }
|
|
270
287
|
<% } %>
|
package/ts/utils/payment.ts
CHANGED
|
@@ -58,13 +58,15 @@ const groupPaymentsByServiceType = (payments: IPayment[], types: ('isComptable'
|
|
|
58
58
|
return societyPayment;
|
|
59
59
|
};
|
|
60
60
|
|
|
61
|
-
const calculateFees = (amount: number,
|
|
61
|
+
const calculateFees = (amount: number, paymentDate: Date):number => {
|
|
62
62
|
const yearlyPriceIncreasing = 1.0275;
|
|
63
63
|
|
|
64
|
-
|
|
64
|
+
// Commenté car en fin d'année, pour appliquer le taux d'inflation annuel,
|
|
65
|
+
// un script enlève les 2,75€ appliqués pour appliquer le bon taux
|
|
66
|
+
// const oneYearLessIfIn3LastMonthsOfYear = dayjs(goToClient).month() >= 9 ? 1 : 0;
|
|
65
67
|
|
|
66
68
|
if (dayjs(paymentDate).year() - dayjs().year() > 0) {
|
|
67
|
-
const nbYearsMore = dayjs(paymentDate).year() - dayjs().year()
|
|
69
|
+
const nbYearsMore = dayjs(paymentDate).year() - dayjs().year()/* - oneYearLessIfIn3LastMonthsOfYear */;
|
|
68
70
|
// on applique X fois l'augmentation
|
|
69
71
|
// ex. : si on lance l'appel en 2024, et qu'on génére un paiement pour 2026, on applique 2 fois l'augmentation
|
|
70
72
|
// soit amount * yearlyPriceIncreasing * yearlyPriceIncreasing
|
|
@@ -90,7 +92,7 @@ const calculateFees = (amount: number, goToClient: Date, paymentDate: Date):numb
|
|
|
90
92
|
* @returns { IPayment[] } list of payment to create for billing auto, after each presta go to onBoarding
|
|
91
93
|
*/
|
|
92
94
|
const calculatePaymentsAuto = (params: ParamsForPaymentsAuto):PaymentAuto[] => {
|
|
93
|
-
const { idTypeBrand,
|
|
95
|
+
const { idTypeBrand, isWithApplicationFees, firstExerciceNonExpresssEndDate, idPrestation, idLegalForm, prestationList, idVat, yearlyAmountNonExpress, nextYearlyAmountNonExpress, listPartialExercicePrestationExpress, listRegulations, recoveryDate } = params;
|
|
94
96
|
|
|
95
97
|
if (!yearlyAmountNonExpress) throw new Error('Le montant annuel des prestations non express ne peut pas être nul.');
|
|
96
98
|
|
|
@@ -245,10 +247,11 @@ const calculatePaymentsAuto = (params: ParamsForPaymentsAuto):PaymentAuto[] => {
|
|
|
245
247
|
|
|
246
248
|
let hasGeneratedWholeYear = false;
|
|
247
249
|
let isFirstNonExpress = true;
|
|
250
|
+
let countNonExpressGenerated = 0;
|
|
248
251
|
|
|
249
|
-
//On génère des paiements jusqu'à ce qu'un exercice soit entier (12 mois), non express
|
|
250
|
-
|
|
251
|
-
|
|
252
|
+
// On génère des paiements jusqu'à ce qu'un exercice soit entier (12 mois), non express
|
|
253
|
+
// et qu'au moins 13 mois de paiements ont été générés depuis la date de reprise
|
|
254
|
+
while (!hasGeneratedWholeYear || countNonExpressGenerated < 2) {
|
|
252
255
|
//On compte le nb de mois restants entre la date à laquelle le paiement va être créé et la date de fin d'exercice
|
|
253
256
|
let countMonthsBeforeExerciceEnd = Math.ceil(dayjs(exerciceEndDate).diff(paymentDate, 'months', true));
|
|
254
257
|
if (countMonthsBeforeExerciceEnd < 3) countMonthsBeforeExerciceEnd = 3;
|
|
@@ -295,7 +298,7 @@ const calculatePaymentsAuto = (params: ParamsForPaymentsAuto):PaymentAuto[] => {
|
|
|
295
298
|
|
|
296
299
|
// Si besoin, on applique les frais nécessaires :
|
|
297
300
|
// - 2,75% d'augmentation chaque année, sauf si souscriptiuon dans les 3 derniers mois de l'année civile)
|
|
298
|
-
amount = calculateFees(amount,
|
|
301
|
+
amount = calculateFees(amount, paymentDate);
|
|
299
302
|
|
|
300
303
|
listPayments.push({
|
|
301
304
|
amount: Math.round(100 * amount) / 100,
|
|
@@ -312,6 +315,7 @@ const calculatePaymentsAuto = (params: ParamsForPaymentsAuto):PaymentAuto[] => {
|
|
|
312
315
|
remainingAmount = 0;
|
|
313
316
|
if (countMonthsBeforeExerciceEnd === 12) hasGeneratedWholeYear = true;
|
|
314
317
|
isFirstNonExpress = false;
|
|
318
|
+
countNonExpressGenerated += 1;
|
|
315
319
|
}
|
|
316
320
|
|
|
317
321
|
remainingAmount = 0;
|
|
@@ -341,7 +345,7 @@ const calculatePaymentsAuto = (params: ParamsForPaymentsAuto):PaymentAuto[] => {
|
|
|
341
345
|
// Si besoin, on applique les frais nécessaires :
|
|
342
346
|
// - 2,75% d'augmentation chaque année, sauf si souscriptiuon dans les 3 derniers mois de l'année civile)
|
|
343
347
|
// - frais d'application dès les second exo non express
|
|
344
|
-
amount = calculateFees(amount,
|
|
348
|
+
amount = calculateFees(amount, paymentDate);
|
|
345
349
|
|
|
346
350
|
listPayments.push({
|
|
347
351
|
amount: Math.round(100 * amount) / 100,
|
package/ts/utils/prestation.ts
CHANGED
|
@@ -395,7 +395,7 @@ const calculatePrestationPrice = (
|
|
|
395
395
|
/* Offre pourcentage offer */
|
|
396
396
|
if (totalPercentage > 0) totalPrestation = totalPrestation - (totalPrestation * (totalPercentage / 100));
|
|
397
397
|
/* Gesstioin du prix minimum acceptable pour la prestation */
|
|
398
|
-
if (prestationList.minimumPrice && totalPrestation < prestationList.minimumPrice) totalPrestation = prestationList.minimumPrice;
|
|
398
|
+
if (prestationList && prestationList.minimumPrice && totalPrestation < prestationList.minimumPrice) totalPrestation = prestationList.minimumPrice;
|
|
399
399
|
/* Gestion des options */
|
|
400
400
|
let OptionTotalPrice: number = 0;
|
|
401
401
|
if (optionsList.length) {
|
|
@@ -79,7 +79,6 @@ describe('Payment', () => {
|
|
|
79
79
|
prestationList.hidden = true;
|
|
80
80
|
calculatePaymentsAuto({
|
|
81
81
|
idTypeBrand: 1,
|
|
82
|
-
goToClient: dayjs('2024-06-06').toDate(),
|
|
83
82
|
firstExerciceNonExpresssEndDate,
|
|
84
83
|
idPrestation,
|
|
85
84
|
isWithApplicationFees: true,
|
|
@@ -107,7 +106,6 @@ describe('Payment', () => {
|
|
|
107
106
|
test('if only one express, monthly payments of actual exo should be in parallel of express monthly payments, smoothed in number of remaining months (mini 3 months) (if not in 3 last month)', async () => {
|
|
108
107
|
const payments = calculatePaymentsAuto({
|
|
109
108
|
idTypeBrand: 1,
|
|
110
|
-
goToClient: dayjs('2024-06-06').toDate(),
|
|
111
109
|
firstExerciceNonExpresssEndDate,
|
|
112
110
|
idPrestation,
|
|
113
111
|
isWithApplicationFees: true,
|
|
@@ -126,7 +124,6 @@ describe('Payment', () => {
|
|
|
126
124
|
test('if more than one express, monthly payments of actual exo should be in a row of express monthly payments and smoothed, smoothed in number of remaining months after express monthly payments (mini 3 months) (if in 3 last month of exercice)', async () => {
|
|
127
125
|
const payments = calculatePaymentsAuto({
|
|
128
126
|
idTypeBrand: 1,
|
|
129
|
-
goToClient: dayjs('2024-06-06').toDate(),
|
|
130
127
|
firstExerciceNonExpresssEndDate,
|
|
131
128
|
idPrestation,
|
|
132
129
|
isWithApplicationFees: true,
|
|
@@ -152,7 +149,6 @@ describe('Payment', () => {
|
|
|
152
149
|
|
|
153
150
|
const payments = calculatePaymentsAuto({
|
|
154
151
|
idTypeBrand: 1,
|
|
155
|
-
goToClient: dayjs('2024-06-06').toDate(),
|
|
156
152
|
firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
|
|
157
153
|
idPrestation,
|
|
158
154
|
isWithApplicationFees: true,
|
|
@@ -179,7 +175,6 @@ describe('Payment', () => {
|
|
|
179
175
|
|
|
180
176
|
const payments = calculatePaymentsAuto({
|
|
181
177
|
idTypeBrand: 1,
|
|
182
|
-
goToClient: dayjs('2024-06-06').toDate(),
|
|
183
178
|
firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
|
|
184
179
|
idPrestation,
|
|
185
180
|
isWithApplicationFees: true,
|
|
@@ -209,7 +204,6 @@ describe('Payment', () => {
|
|
|
209
204
|
} as IRegulation];
|
|
210
205
|
const payments = calculatePaymentsAuto({
|
|
211
206
|
idTypeBrand: 1,
|
|
212
|
-
goToClient: dayjs('2024-06-06').toDate(),
|
|
213
207
|
firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
|
|
214
208
|
idPrestation,
|
|
215
209
|
isWithApplicationFees: false,
|
|
@@ -237,7 +231,6 @@ describe('Payment', () => {
|
|
|
237
231
|
} as IRegulation];
|
|
238
232
|
const payments = calculatePaymentsAuto({
|
|
239
233
|
idTypeBrand: 1,
|
|
240
|
-
goToClient: dayjs('2024-06-06').toDate(),
|
|
241
234
|
firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
|
|
242
235
|
idPrestation,
|
|
243
236
|
isWithApplicationFees: false,
|
|
@@ -263,7 +256,6 @@ describe('Payment', () => {
|
|
|
263
256
|
|
|
264
257
|
const payments = calculatePaymentsAuto({
|
|
265
258
|
idTypeBrand: 1,
|
|
266
|
-
goToClient: dayjs('2024-06-06').toDate(),
|
|
267
259
|
firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
|
|
268
260
|
idPrestation,
|
|
269
261
|
isWithApplicationFees: true,
|
|
@@ -292,7 +284,6 @@ describe('Payment', () => {
|
|
|
292
284
|
|
|
293
285
|
const payments = calculatePaymentsAuto({
|
|
294
286
|
idTypeBrand: 1,
|
|
295
|
-
goToClient: dayjs('2024-06-06').toDate(),
|
|
296
287
|
firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
|
|
297
288
|
idPrestation,
|
|
298
289
|
isWithApplicationFees: true,
|
|
@@ -321,7 +312,6 @@ describe('Payment', () => {
|
|
|
321
312
|
|
|
322
313
|
const payments = calculatePaymentsAuto({
|
|
323
314
|
idTypeBrand: 1,
|
|
324
|
-
goToClient: dayjs('2024-06-06').toDate(),
|
|
325
315
|
firstExerciceNonExpresssEndDate: newFirstExerciceNonExpresssEndDate,
|
|
326
316
|
idPrestation,
|
|
327
317
|
isWithApplicationFees: false,
|
|
@@ -356,7 +346,6 @@ describe('Payment', () => {
|
|
|
356
346
|
};
|
|
357
347
|
const payments = calculatePaymentsAuto({
|
|
358
348
|
idTypeBrand: 1,
|
|
359
|
-
goToClient: dayjs('2024-06-06').toDate(),
|
|
360
349
|
firstExerciceNonExpresssEndDate,
|
|
361
350
|
idPrestation,
|
|
362
351
|
isWithApplicationFees: true,
|
|
@@ -376,7 +365,6 @@ describe('Payment', () => {
|
|
|
376
365
|
|
|
377
366
|
const payments = calculatePaymentsAuto({
|
|
378
367
|
idTypeBrand: 1,
|
|
379
|
-
goToClient: dayjs('2024-06-06').toDate(),
|
|
380
368
|
firstExerciceNonExpresssEndDate,
|
|
381
369
|
idPrestation,
|
|
382
370
|
isWithApplicationFees: false,
|
|
@@ -415,7 +403,6 @@ describe('Payment', () => {
|
|
|
415
403
|
|
|
416
404
|
const payments = calculatePaymentsAuto({
|
|
417
405
|
idTypeBrand: 1,
|
|
418
|
-
goToClient: dayjs('2024-06-06').toDate(),
|
|
419
406
|
firstExerciceNonExpresssEndDate,
|
|
420
407
|
idPrestation,
|
|
421
408
|
isWithApplicationFees: false,
|
|
@@ -436,7 +423,6 @@ describe('Payment', () => {
|
|
|
436
423
|
|
|
437
424
|
const payments = calculatePaymentsAuto({
|
|
438
425
|
idTypeBrand: 1,
|
|
439
|
-
goToClient: dayjs('2024-06-06').toDate(),
|
|
440
426
|
firstExerciceNonExpresssEndDate,
|
|
441
427
|
idPrestation,
|
|
442
428
|
isWithApplicationFees: true,
|
|
@@ -453,7 +439,6 @@ describe('Payment', () => {
|
|
|
453
439
|
test('first payment and last payment should have at least one year difference (ex. : 23 - 24)', async () => {
|
|
454
440
|
const payments = calculatePaymentsAuto({
|
|
455
441
|
idTypeBrand: 1,
|
|
456
|
-
goToClient: dayjs('2024-06-06').toDate(),
|
|
457
442
|
firstExerciceNonExpresssEndDate,
|
|
458
443
|
idPrestation,
|
|
459
444
|
isWithApplicationFees: true,
|
|
@@ -469,7 +454,6 @@ describe('Payment', () => {
|
|
|
469
454
|
test('real case : idSociety 114440', async () => {
|
|
470
455
|
const payments = calculatePaymentsAuto({
|
|
471
456
|
idTypeBrand: 1,
|
|
472
|
-
goToClient: dayjs('2024-06-06').toDate(),
|
|
473
457
|
firstExerciceNonExpresssEndDate: dayjs('2024-12-31').toDate(),
|
|
474
458
|
idPrestation,
|
|
475
459
|
isWithApplicationFees: true,
|