@silexpert/core 1.3.182 → 1.3.183

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.
Files changed (31) hide show
  1. package/dist/cjs/types/Enum/BalanceSheet.d.ts.map +1 -1
  2. package/dist/cjs/types/Enum/BalanceSheet.js +6 -6
  3. package/dist/cjs/types/Enum/BalanceSheet.js.map +1 -1
  4. package/dist/cjs/types/Enum/Consistency.d.ts +1 -1
  5. package/dist/cjs/types/Enum/Consistency.js +7 -7
  6. package/dist/cjs/types/Enum/Consistency.js.map +1 -1
  7. package/dist/cjs/types/Enum/KilometricAllowanceScale.d.ts.map +1 -1
  8. package/dist/cjs/types/Enum/KilometricAllowanceScale.js +119 -0
  9. package/dist/cjs/types/Enum/KilometricAllowanceScale.js.map +1 -1
  10. package/dist/cjs/utils/checkup.d.ts +12 -368
  11. package/dist/cjs/utils/checkup.d.ts.map +1 -1
  12. package/dist/cjs/utils/checkup.js +342 -565
  13. package/dist/cjs/utils/checkup.js.map +1 -1
  14. package/dist/mjs/types/Enum/BalanceSheet.d.ts.map +1 -1
  15. package/dist/mjs/types/Enum/BalanceSheet.js +6 -6
  16. package/dist/mjs/types/Enum/BalanceSheet.js.map +1 -1
  17. package/dist/mjs/types/Enum/Consistency.d.ts +1 -1
  18. package/dist/mjs/types/Enum/Consistency.js +7 -7
  19. package/dist/mjs/types/Enum/Consistency.js.map +1 -1
  20. package/dist/mjs/types/Enum/KilometricAllowanceScale.d.ts.map +1 -1
  21. package/dist/mjs/types/Enum/KilometricAllowanceScale.js +119 -0
  22. package/dist/mjs/types/Enum/KilometricAllowanceScale.js.map +1 -1
  23. package/dist/mjs/utils/checkup.d.ts +12 -368
  24. package/dist/mjs/utils/checkup.d.ts.map +1 -1
  25. package/dist/mjs/utils/checkup.js +343 -566
  26. package/dist/mjs/utils/checkup.js.map +1 -1
  27. package/package.json +1 -1
  28. package/ts/types/Enum/BalanceSheet.ts +17 -17
  29. package/ts/types/Enum/Consistency.ts +7 -7
  30. package/ts/types/Enum/KilometricAllowanceScale.ts +119 -0
  31. package/ts/utils/checkup.ts +347 -566
@@ -1,16 +1,15 @@
1
1
  "use strict";
2
+ /* eslint-disable @typescript-eslint/no-unsafe-return */
2
3
  Object.defineProperty(exports, "__esModule", { value: true });
3
4
  exports.getCheckupDetailForm = exports.setRangeItems = void 0;
4
5
  const Constants_1 = require("../types/Enum/Constants");
5
6
  const Quality_1 = require("../types/Enum/Quality");
6
- const Vat_1 = require("../types/Enum/Vat");
7
7
  const dayjs = require("dayjs");
8
8
  const setRangeItems = (maxRange) => {
9
9
  const res = [];
10
10
  for (let i = 0; i < maxRange; i += 1) {
11
11
  res.push({ text: i, value: i });
12
12
  }
13
- // eslint-disable-next-line @typescript-eslint/no-unsafe-return
14
13
  return res;
15
14
  };
16
15
  exports.setRangeItems = setRangeItems;
@@ -24,6 +23,241 @@ brandName, bankList, dateOfRegistration, recoveryDate) => {
24
23
  dayjs(dateOfRegistration).isBetween(dayjs(recoveryDate).subtract(1, 'month'), dayjs(recoveryDate).add(1, 'month')))
25
24
  ? true
26
25
  : false;
26
+ if (!isSocietyCreationCompute) {
27
+ return [
28
+ {
29
+ name: "Découverte de l'entreprise (1/2)",
30
+ questions: [
31
+ {
32
+ value: 'detailActivity',
33
+ component: 'FormInputTextArea',
34
+ text: 'Expliquez-nous votre activité',
35
+ required: true,
36
+ meta: {
37
+ placeholder: 'Ex : Je suis freelance et propose du conseil en marketing',
38
+ hideDetails: true,
39
+ },
40
+ },
41
+ {
42
+ component: 'FormInputSelect',
43
+ text: "Votre structure a-t-elle des participations dans d'autres sociétés ?",
44
+ value: 'interestOtherCompanies',
45
+ required: true,
46
+ meta: {
47
+ items: (0, exports.setRangeItems)(15).map((i) => (Object.assign(Object.assign({}, i), { value: i.value.toString() }))),
48
+ hideDetails: true,
49
+ },
50
+ lg: 12,
51
+ },
52
+ {
53
+ component: 'FormInputSelect',
54
+ text: 'Avez-vous un logiciel de facturation ?',
55
+ value: 'hasBillingSoftware',
56
+ required: true,
57
+ meta: {
58
+ items: Constants_1.SelectYesNoStatementBool.map((i) => (Object.assign(Object.assign({}, i), { value: i.value.toString() }))),
59
+ hideDetails: true,
60
+ },
61
+ lg: 12,
62
+ },
63
+ {
64
+ component: 'FormInputSelect',
65
+ text: 'Quels sont les modes de réglements dont vous disposez ?',
66
+ value: 'collectionSystem',
67
+ required: true,
68
+ meta: {
69
+ multiple: true,
70
+ items: [
71
+ { text: 'Carte bancaire', value: 'carte bancaire' },
72
+ { text: 'Virement bancaire', value: 'virement' },
73
+ { text: 'Chèque', value: 'cheque' },
74
+ { text: 'Espèces', value: 'espece' },
75
+ { text: 'Prélèvement automatique', value: 'prelevement' },
76
+ ],
77
+ hideDetails: true,
78
+ },
79
+ lg: 12,
80
+ },
81
+ ],
82
+ },
83
+ {
84
+ name: "Découverte de l'entreprise (2/2)",
85
+ questions: [
86
+ {
87
+ component: 'FormInputSelect',
88
+ text: 'Avez-vous fait des investissements dans le cadre de la création de votre entreprise ?',
89
+ value: 'investissement',
90
+ required: true,
91
+ meta: {
92
+ items: Constants_1.SelectYesNoStatementBool.map((i) => (Object.assign(Object.assign({}, i), { value: i.value.toString() }))),
93
+ hideDetails: true,
94
+ },
95
+ lg: 12,
96
+ },
97
+ {
98
+ component: 'FormInputSelect',
99
+ text: 'Avez-vous déjà eu des contrôles fiscaux ?',
100
+ value: 'fiscalControl',
101
+ required: true,
102
+ meta: {
103
+ items: Constants_1.SelectYesNoStatementBool.map((i) => (Object.assign(Object.assign({}, i), { value: i.value.toString() }))),
104
+ hideDetails: true,
105
+ },
106
+ lg: 12,
107
+ },
108
+ // {
109
+ // component: 'FormInputSelect',
110
+ // text: 'Avez-vous des emprunts?',
111
+ // value: 'hasBorrowing',
112
+ // required: true,
113
+ // meta: {
114
+ // items: SelectYesNoStatementBool.map((i) => ({ ...i, value: i.value.toString() })),
115
+ // hideDetails: true,
116
+ // },
117
+ // lg: 12,
118
+ // },
119
+ {
120
+ component: 'FormInputSelect',
121
+ text: 'Si oui, combien?',
122
+ value: 'borrowingInProgress',
123
+ required: true,
124
+ meta: {
125
+ items: (0, exports.setRangeItems)(15).map((i) => (Object.assign(Object.assign({}, i), { value: i.value.toString() }))),
126
+ hideDetails: true,
127
+ },
128
+ condition: societyDetail.hasBorrowing === '1',
129
+ lg: 12,
130
+ },
131
+ {
132
+ component: 'FormInputSelect',
133
+ text: "Quels est/sont les motifs de votre changement d'expert comptable ?",
134
+ value: 'listReasonsWhyChangingEC',
135
+ required: true,
136
+ meta: {
137
+ multiple: true,
138
+ items: [
139
+ { text: 'Litige', value: 'litige' },
140
+ { text: 'Prix', value: 'prix' },
141
+ { text: 'Manque de réactivité', value: 'pas réactif' },
142
+ { text: 'Manque de conseil', value: 'manque de conseil' },
143
+ ],
144
+ hideDetails: true,
145
+ },
146
+ lg: 12,
147
+ },
148
+ ],
149
+ },
150
+ {
151
+ name: "Découverte du chef d'entreprise (1/2)",
152
+ questions: [
153
+ {
154
+ component: 'FormInputSelect',
155
+ text: 'Avez-vous suivi une formation particulière en lien avec votre activité ?',
156
+ value: 'descriptionFormation',
157
+ required: true,
158
+ meta: {
159
+ items: Constants_1.SelectYesNoStatementBool.map((i) => (Object.assign(Object.assign({}, i), { value: i.value.toString() }))),
160
+ hideDetails: true,
161
+ },
162
+ lg: 12,
163
+ },
164
+ {
165
+ component: 'FormInputSelect',
166
+ text: 'Avez-vous des responsabilités politiques ?',
167
+ value: 'politicalResponsability',
168
+ required: true,
169
+ meta: {
170
+ items: Constants_1.SelectYesNoStatementBool.map((i) => (Object.assign(Object.assign({}, i), { value: i.value.toString() }))),
171
+ hideDetails: true,
172
+ },
173
+ lg: 12,
174
+ },
175
+ {
176
+ component: 'FormInputSelect',
177
+ text: 'Êtes-vous résident fiscal français ?',
178
+ value: 'frenchTaxResident',
179
+ required: true,
180
+ meta: {
181
+ items: Constants_1.SelectYesNoStatementBool.map((i) => (Object.assign(Object.assign({}, i), { value: i.value.toString() }))),
182
+ hideDetails: true,
183
+ },
184
+ lg: 12,
185
+ },
186
+ {
187
+ component: 'FormInputSelect',
188
+ text: 'Êtes-vous en redressement judiciaire ?',
189
+ value: 'judiciaryRecovery',
190
+ required: true,
191
+ meta: {
192
+ items: Constants_1.SelectYesNoStatementBool.map((i) => (Object.assign(Object.assign({}, i), { value: i.value.toString() }))),
193
+ hideDetails: true,
194
+ },
195
+ lg: 12,
196
+ },
197
+ ],
198
+ },
199
+ {
200
+ name: "Découverte du chef d'entreprise (2/2)",
201
+ questions: [
202
+ {
203
+ component: 'FormInputSelect',
204
+ text: "Quelle est votre fonction dans l'entreprise ?",
205
+ value: 'listQualities',
206
+ required: true,
207
+ meta: {
208
+ items: Quality_1.QualityList.map((quality) => ({ text: quality.label, value: quality.id })),
209
+ hideDetails: true,
210
+ },
211
+ lg: 12,
212
+ },
213
+ {
214
+ component: 'FormInputSelect',
215
+ text: "Avez vous des connaissances en gestion d'entreprise ?",
216
+ value: 'managementKnowledge',
217
+ required: true,
218
+ meta: {
219
+ items: Constants_1.SelectYesNoStatementBool.map((i) => (Object.assign(Object.assign({}, i), { value: i.value.toString() }))),
220
+ hideDetails: true,
221
+ },
222
+ lg: 12,
223
+ },
224
+ {
225
+ component: 'FormInputSelect',
226
+ text: "Avez-vous des participations dans d'autres sociétés ?",
227
+ value: 'participationsInOtherSociety',
228
+ required: true,
229
+ meta: {
230
+ items: Constants_1.SelectYesNoStatementBool.map((i) => (Object.assign(Object.assign({}, i), { value: i.value.toString() }))),
231
+ hideDetails: true,
232
+ },
233
+ lg: 12,
234
+ },
235
+ {
236
+ component: 'FormInputSelect',
237
+ text: 'Êtes-vous interdit bancaire ?',
238
+ value: 'prohibitedBanking',
239
+ required: true,
240
+ meta: {
241
+ items: Constants_1.SelectYesNoStatementBool.map((i) => (Object.assign(Object.assign({}, i), { value: i.value.toString() }))),
242
+ hideDetails: true,
243
+ },
244
+ lg: 12,
245
+ },
246
+ {
247
+ component: 'FormInputSelect',
248
+ text: "Êtes-vous imposable au titre de l'année 2023/2024 ?",
249
+ value: 'isIrTaxable',
250
+ required: true,
251
+ meta: {
252
+ items: Constants_1.SelectYesNoStatementBool.map((i) => (Object.assign(Object.assign({}, i), { value: i.value.toString() }))),
253
+ hideDetails: true,
254
+ },
255
+ lg: 12,
256
+ },
257
+ ],
258
+ },
259
+ ];
260
+ }
27
261
  return [
28
262
  {
29
263
  name: "Découverte de l'entreprise",
@@ -31,744 +265,287 @@ brandName, bankList, dateOfRegistration, recoveryDate) => {
31
265
  {
32
266
  value: 'detailActivity',
33
267
  component: 'FormInputTextArea',
34
- text: 'Pouvez vous m’expliquer le fonctionnement de votre activité ?',
35
- //TODO: conseil à afficher
36
- meta: {
37
- placeholder: 'E-commerce, ventes de produits finis, artisanat...',
38
- hideDetails: true,
39
- },
40
- },
41
- {
42
- value: 'nbBankaccounts',
43
- component: 'FormInputSelect',
44
- text: 'Combien de comptes bancaires avez-vous ?',
45
- meta: {
46
- // eslint-disable-next-line @typescript-eslint/no-unsafe-return
47
- items: (0, exports.setRangeItems)(15).map((i) => (Object.assign(Object.assign({}, i), { value: i.value.toString() }))),
48
- hideDetails: true,
49
- },
50
- lg: societyDetail.nbBankaccounts > 0 ? 8 : 12,
51
- },
52
- {
53
- //TODO: champ à créer
54
- component: 'FormInputSelect',
55
- text: 'Lesquelles ?',
56
- value: 'listBanks',
57
- meta: {
58
- multiple: true,
59
- items: [...bankList, { id: 'hors-ue', name: 'Hors UE' }],
60
- itemText: 'name',
61
- itemValue: 'id',
62
- hideDetails: true,
63
- },
64
- lg: societyDetail.nbBankaccounts > 0 ? 4 : 12,
65
- condition: societyDetail.nbBankaccounts > 0,
66
- },
67
- {
68
- component: 'FormInputSelect',
69
- text: "Combien d'associés êtes-vous ?",
70
- // lg: 4,
71
- value: 'nbAssociates',
72
- meta: {
73
- items: (0, exports.setRangeItems)(20),
74
- hideDetails: true,
75
- },
76
- lg: 4,
77
- },
78
- {
79
- component: 'FormInputSelect',
80
- text: "Combien d'associés travaillent dans la société ?",
81
- // lg: 4,
82
- value: 'nbAssociatesInCompany',
83
- meta: {
84
- items: (0, exports.setRangeItems)(20),
85
- hideDetails: true,
86
- },
87
- lg: 4,
88
- },
89
- {
90
- component: 'FormInputSelect',
91
- text: 'Combien de salariés êtes-vous ?',
92
- value: 'nbEmployees',
93
- meta: {
94
- items: (0, exports.setRangeItems)(20),
95
- hideDetails: true,
96
- },
97
- lg: 4,
98
- },
99
- {
100
- component: 'FormInputSelect', //'FormInputRadio',
101
- text: 'Avez-vous des prévisions d’embauches ?',
102
- value: 'hiringPromess',
103
- meta: {
104
- items: Constants_1.SelectYesNoStatementBool.map((i) => (Object.assign(Object.assign({}, i), { value: i.value.toString() }))),
105
- hideDetails: true,
106
- },
107
- lg: 4,
108
- },
109
- {
110
- component: 'FormInputSelect',
111
- text: 'Le siège social est-il au domicile ?',
112
- // lg: 4,
113
- value: 'isPersoAdress',
268
+ text: 'Expliquez-nous votre activité',
269
+ required: true,
114
270
  meta: {
115
- items: Constants_1.SelectYesNoStatementBool.map((i) => (Object.assign(Object.assign({}, i), { value: i.value.toString() }))),
116
- hideDetails: true,
117
- },
118
- lg: societyDetail.isPersoAdress === '1' ? 4 : 8,
119
- },
120
- {
121
- component: 'FormInputSelect', //'FormInputRadio',
122
- text: 'Êtes-vous propriétaire ?',
123
- value: 'professionnalRent',
124
- meta: {
125
- items: Constants_1.SelectYesNoStatementBool.map((i) => (Object.assign(Object.assign({}, i), { value: i.value.toString() }))),
271
+ placeholder: 'Ex : Je suis freelance et propose du conseil en marketing',
126
272
  hideDetails: true,
127
273
  },
128
- condition: societyDetail.isPersoAdress === '1',
129
- lg: 4,
130
- },
131
- {
132
- component: 'FormInputSelect', //'FormInputRadio',
133
- text: 'Avez-vous un bail commercial ?',
134
- value: 'hasCommercialLease',
135
- meta: {
136
- items: Constants_1.SelectYesNoStatementBool.map((i) => (Object.assign(Object.assign({}, i), { value: i.value.toString() }))),
137
- hideDetails: true,
138
- },
139
- //TODO: conseil à afficher
140
- condition: societyDetail.isPersoAdress !== '1',
141
- lg: societyDetail.hasCommercialLease === '1' ? 4 : 12,
142
- },
143
- {
144
- component: 'FormInputText',
145
- text: 'Quelle est la surface approximative du local ?',
146
- value: 'commercialArea',
147
- type: 'number',
148
- meta: {
149
- suffix: 'm²',
150
- hideDetails: true,
151
- },
152
- condition: societyDetail.isPersoAdress !== '1' && societyDetail.hasCommercialLease === '1',
153
- lg: 4,
154
- },
155
- {
156
- component: 'FormInputText',
157
- text: 'Quel est le montant du loyer mensuel',
158
- value: 'commercialRentAmount',
159
- type: 'number',
160
- meta: {
161
- suffix: '€',
162
- hideDetails: true,
163
- },
164
- condition: societyDetail.isPersoAdress !== '1' && societyDetail.hasCommercialLease === '1',
165
- lg: 4,
166
- },
167
- {
168
- component: 'FormInputSelect',
169
- text: 'Utilisez-vous votre véhicule personnel dans le cadre de votre activité ?',
170
- value: 'vehicle',
171
- required: false,
172
- meta: {
173
- items: Constants_1.SelectYesNoStatementBool.map((i) => (Object.assign(Object.assign({}, i), { value: i.value.toString() }))),
174
- hideDetails: true,
175
- },
176
- lg: 4,
177
- //TODO: conseil à afficher
178
274
  },
179
275
  {
180
276
  component: 'FormInputSelect',
181
- text: "Votre structure a-t-elle des participations dans d'autres sociétés ?",
277
+ text: "Votre structure a-t-elle des participations dans d'autres sociétés ?",
182
278
  value: 'interestOtherCompanies',
279
+ required: true,
183
280
  meta: {
184
- // eslint-disable-next-line @typescript-eslint/no-unsafe-return
185
281
  items: (0, exports.setRangeItems)(15).map((i) => (Object.assign(Object.assign({}, i), { value: i.value.toString() }))),
186
282
  hideDetails: true,
187
283
  },
188
- lg: parseInt(societyDetail.interestOtherCompanies, 10) > 0 ? 4 : 12,
189
- },
190
- {
191
- component: 'FormInputText',
192
- text: 'Si oui, quels sont les noms des sociétés ?',
193
- value: 'listCompaniesInterestedIn',
194
- condition: parseInt(societyDetail.interestOtherCompanies, 10) > 0,
195
- lg: parseInt(societyDetail.interestOtherCompanies, 10) > 0 ? 4 : 12,
196
- },
197
- {
198
- //TODO: champ à créer
199
- component: 'FormInputSelect', //'FormInputRadio',
200
- text: `Sont-elles clientes chez ${brandName}`,
201
- value: 'areOtherCompaniesOnOurBrand',
202
- meta: {
203
- items: Constants_1.SelectYesNoStatementBool.map((i) => (Object.assign(Object.assign({}, i), { value: i.value.toString() }))),
204
- hideDetails: true,
205
- },
206
- condition: parseInt(societyDetail.interestOtherCompanies, 10) > 0,
207
- lg: parseInt(societyDetail.interestOtherCompanies, 10) > 0 ? 4 : 12,
208
- //TODO: si non, conseil à afficher
209
- },
210
- {
211
- //TODO: champ à créer
212
- component: 'FormInputSelect',
213
- text: 'Quels sont vos taux de TVA ?',
214
- value: 'listTva',
215
- meta: {
216
- multiple: true,
217
- items: Object.values(Vat_1.Vat)
218
- .filter((v) => !v.isVatIntracom && !v.isVatImportation && v.immobilization)
219
- .sort((a, b) => b.displayOrder - a.displayOrder),
220
- itemText: 'name',
221
- itemValue: 'id',
222
- hideDetails: true,
223
- },
224
- lg: 4,
225
- },
226
- {
227
- //TODO: champ à créer
228
- component: 'FormInputSelect', //'FormInputRadio',
229
- text: 'Votre compte impôts.gouv.fr a t-il été paramétré avec le RIB transmis au service facturation ?',
230
- value: 'ribSentToTaxDepartment',
231
- meta: {
232
- items: Constants_1.SelectYesNoStatementBool.map((i) => (Object.assign(Object.assign({}, i), { value: i.value.toString() }))),
233
- hideDetails: true,
234
- },
235
- lg: 8,
236
- },
237
- {
238
- //TRICK: insertion du bloc de DropBox de RIB
239
- value: 'rib',
240
- condition: societyDetail.ribSentToTaxDepartment === '0',
241
- //TODO: conseil à afficher
242
- lg: 4,
243
- },
244
- {
245
- component: 'FormInputTextArea',
246
- text: 'Remarques',
247
- value: 'historyComments',
248
- required: false,
249
- meta: {
250
- hideDetails: true,
251
- },
252
284
  lg: 12,
253
285
  },
254
286
  {
255
- //TODO: champ à créer
256
- component: 'FormInputSelect', //'FormInputRadio',
287
+ component: 'FormInputSelect',
257
288
  text: 'Avez-vous un logiciel de facturation ?',
258
289
  value: 'hasBillingSoftware',
290
+ required: true,
259
291
  meta: {
260
292
  items: Constants_1.SelectYesNoStatementBool.map((i) => (Object.assign(Object.assign({}, i), { value: i.value.toString() }))),
261
293
  hideDetails: true,
262
294
  },
263
- lg: 4,
264
- },
265
- {
266
- component: 'FormInputText',
267
- text: 'Lequel ?',
268
- value: 'billingSoftware',
269
- //TODO: si non, conseil à afficher
270
- lg: 4,
271
- meta: {
272
- hideDetails: true,
273
- },
274
- condition: societyDetail.hasBillingSoftware === '1',
295
+ lg: 12,
275
296
  },
276
297
  {
277
298
  component: 'FormInputSelect',
278
299
  text: 'Quels sont les modes de réglements dont vous disposez ?',
279
300
  value: 'collectionSystem',
301
+ required: true,
280
302
  meta: {
303
+ multiple: true,
281
304
  items: [
282
- //TODO: ajouter PayPal et Stripe ?
305
+ { text: 'Carte bancaire', value: 'carte bancaire' },
306
+ { text: 'Virement bancaire', value: 'virement' },
283
307
  { text: 'Chèque', value: 'cheque' },
284
- { text: 'Espèce', value: 'espece' },
285
- { text: 'Intermédiaire', value: 'intermediaire' },
286
- { text: 'Virement', value: 'virement' },
308
+ { text: 'Espèces', value: 'espece' },
287
309
  { text: 'Prélèvement automatique', value: 'prelevement' },
288
- { text: 'Carte bancaire', value: 'carte bancaire' },
289
- ],
290
- hideDetails: true,
291
- },
292
- lg: 4,
293
- },
294
- {
295
- //TODO: champ à créer
296
- component: 'FormInputSelect',
297
- text: 'Où est situé le siège de l’entreprise ?',
298
- value: 'officeType',
299
- meta: {
300
- items: [
301
- { text: 'Domicile', value: 'Domicile' },
302
- { text: 'Boîte de Domiciliation', value: 'Boîte de Domiciliation' },
303
- { text: 'Local ou Bureau', value: 'Local/Bureau' },
304
310
  ],
305
311
  hideDetails: true,
306
312
  },
307
- //TODO: 3 conseils à afficher
308
- lg: 4,
313
+ lg: 12,
309
314
  },
310
315
  ],
311
316
  },
312
317
  {
313
- name: "Création d'entreprise",
314
- display: isSocietyCreationCompute === true,
318
+ name: "Création d'entreprise (1/2)",
315
319
  questions: [
316
320
  {
317
- component: 'FormInputSelect', //'FormInputRadio',
318
- text: 'Avez-vous utilisé des apports personnels en capital lors de la création ?',
321
+ component: 'FormInputSelect',
322
+ text: 'Avez-vous utilisé des apports personnels en capital lors de la création de votre société ?',
319
323
  value: 'personnalContributionCapital',
324
+ required: true,
320
325
  meta: {
321
326
  items: Constants_1.SelectYesNoStatementBool.map((i) => (Object.assign(Object.assign({}, i), { value: i.value.toString() }))),
322
327
  hideDetails: true,
323
328
  },
324
- lg: 4,
329
+ lg: 12,
325
330
  },
326
331
  {
327
- component: 'FormInputSelect', //'FormInputRadio',
328
- text: 'Avez-vous utilisé des apports personnels en compte courant lors de la création ?',
332
+ component: 'FormInputSelect',
333
+ text: 'Avez-vous utilisé des apports personnels en compte courant lors de la création de votre société ?',
329
334
  value: 'personnalContributionCurrentBankAccount',
335
+ required: true,
330
336
  meta: {
331
337
  items: Constants_1.SelectYesNoStatementBool.map((i) => (Object.assign(Object.assign({}, i), { value: i.value.toString() }))),
332
338
  hideDetails: true,
333
339
  },
334
- lg: 4,
335
- },
336
- {
337
- component: 'FormInputSelect', //'FormInputRadio',
338
- text: 'Avez-vous utilisé des apports personnels en nature lors de la création ?',
339
- value: 'personnalContributionInKind',
340
- meta: {
341
- items: Constants_1.SelectYesNoStatementBool.map((i) => (Object.assign(Object.assign({}, i), { value: i.value.toString() }))),
342
- hideDetails: true,
343
- },
344
- lg: 4,
345
- },
346
- {
347
- component: 'FormInputText',
348
- text: 'Quelle activité exerciez-vous auparavant ?',
349
- value: 'oldActivite',
350
- meta: {
351
- hideDetails: true,
352
- },
340
+ lg: 12,
353
341
  },
354
342
  {
355
- component: 'FormInputSelect', //'FormInputRadio',
356
- text: "Avez-vous bénéficié d'une rupture conventionnelle ou du versement d'une indemnité de licenciement dans le cadre de votre installation ?",
343
+ component: 'FormInputSelect',
344
+ text: "Avez-vous bénéficié d'une rupture conventionnelle ou du versement d'une indemnité de licenciement dans le cadre de votre création de société ?",
357
345
  value: 'indemnite',
358
- required: false,
359
- meta: {
360
- items: Constants_1.SelectYesNoStatementBool.map((i) => (Object.assign(Object.assign({}, i), { value: i.value.toString() }))),
361
- hideDetails: true,
362
- },
363
- },
364
- {
365
- component: 'FormInputSelect', //'FormInputRadio',
366
- text: "Bénéficiez vous de l'aide de Pôle Emploi ?",
367
- value: 'poleEmploiAid',
368
- required: false,
346
+ required: true,
369
347
  meta: {
370
348
  items: Constants_1.SelectYesNoStatementBool.map((i) => (Object.assign(Object.assign({}, i), { value: i.value.toString() }))),
371
349
  hideDetails: true,
372
350
  },
373
- lg: societyDetail.poleEmploiAid === '1' ? 6 : 12,
374
- },
375
- {
376
- component: 'FormInputText',
377
- text: 'Si oui, option retenue ?',
378
- value: 'poleEmploiAidType',
379
- required: false,
380
- meta: {
381
- hideDetails: true,
382
- },
383
- condition: societyDetail.poleEmploiAid === '1',
384
- lg: societyDetail.poleEmploiAid === '1' ? 6 : 12,
351
+ lg: 12,
385
352
  },
386
353
  {
387
- component: 'FormInputSelect', //'FormInputRadio',
354
+ component: 'FormInputSelect',
388
355
  text: "Avez-vous bénéficié d'un prêt d'honneur ?",
389
356
  value: 'honorLoan',
390
- required: false,
357
+ required: true,
391
358
  meta: {
392
359
  items: Constants_1.SelectYesNoStatementBool.map((i) => (Object.assign(Object.assign({}, i), { value: i.value.toString() }))),
393
360
  hideDetails: true,
394
361
  },
395
- lg: societyDetail.honorLoan === '1' ? 6 : 12,
396
- },
397
- {
398
- component: 'FormInputText',
399
- text: "Si oui, quel est le montant du prêt d'honneur ?",
400
- value: 'honorLoanAmount',
401
- type: 'number',
402
- required: false,
403
- meta: {
404
- suffix: '€',
405
- hideDetails: true,
406
- },
407
- condition: societyDetail.honorLoan === '1',
408
- lg: societyDetail.honorLoan === '1' ? 6 : 12,
362
+ lg: 12,
409
363
  },
364
+ ],
365
+ },
366
+ {
367
+ name: "Création d'entreprise (2/2)",
368
+ questions: [
410
369
  {
411
- component: 'FormInputSelect', //'FormInputRadio',
412
- text: "Allez-vous travailler à l'international ? (import ou export)",
370
+ component: 'FormInputSelect',
371
+ text: "Comptez-vous travailler à l'international ?",
413
372
  value: 'workInternationnal',
414
- required: false,
373
+ required: true,
415
374
  meta: {
416
375
  items: Constants_1.SelectYesNoStatementBool.map((i) => (Object.assign(Object.assign({}, i), { value: i.value.toString() }))),
417
376
  hideDetails: true,
418
377
  },
419
- lg: 4,
378
+ lg: 12,
420
379
  },
421
380
  {
422
- component: 'FormInputSelect', //'FormInputRadio',
423
- text: 'Avez-vous financer un stock de départ ?',
381
+ component: 'FormInputSelect',
382
+ text: 'Avez-vous du financer un stock de départ ?',
424
383
  value: 'financingStartingStock',
425
- required: false,
384
+ required: true,
426
385
  meta: {
427
386
  items: Constants_1.SelectYesNoStatementBool.map((i) => (Object.assign(Object.assign({}, i), { value: i.value.toString() }))),
428
387
  hideDetails: true,
429
388
  },
430
- lg: societyDetail.financingStartingStock === '1' ? 4 : 8,
431
- },
432
- {
433
- component: 'FormInputText',
434
- text: 'Si oui, montant approximatif',
435
- value: 'financingStartingStockAmount',
436
- type: 'number',
437
- required: false,
438
- meta: {
439
- suffix: '€',
440
- hideDetails: true,
441
- },
442
- condition: societyDetail.financingStartingStock === '1',
443
- lg: societyDetail.financingStartingStock === '1' ? 4 : 8,
389
+ lg: 12,
444
390
  },
445
391
  {
446
- //TODO: champ à créer
447
392
  component: 'FormInputSelect',
448
393
  text: "Quels sont vos types d'apport ?",
449
394
  value: 'contributionTypes',
395
+ required: true,
450
396
  meta: {
451
397
  multiple: true,
452
398
  items: [
453
- { text: 'Nature', value: 'nature' }, //TODO: créer un ENUM
399
+ { text: 'Nature', value: 'nature' },
454
400
  { text: 'Numéraire', value: 'numeraire' },
455
401
  { text: 'Industriel', value: 'industriel' },
456
402
  ],
457
403
  hideDetails: true,
458
404
  },
459
- lg: 4,
405
+ lg: 12,
460
406
  },
461
407
  {
462
408
  component: 'FormInputText',
463
- text: "Chiffre d'affaires Prévisionnel ?",
409
+ text: "Chiffre d'affaires prévisionnel",
464
410
  value: 'previsionCa',
411
+ required: true,
465
412
  meta: {
466
413
  suffix: '€',
467
414
  hideDetails: true,
468
415
  },
469
- lg: 4,
416
+ lg: 12,
470
417
  },
418
+ // {
419
+ // component: 'FormInputSelect',
420
+ // text: 'Avez-vous des emprunts en cours ?',
421
+ // value: 'isLoans',
422
+ // required: true,
423
+ // meta: {
424
+ // items: SelectYesNoStatementBool.map((i) => ({ ...i, value: i.value.toString() })),
425
+ // hideDetails: true,
426
+ // },
427
+ // lg: 12,
428
+ // },
471
429
  {
472
430
  component: 'FormInputSelect',
473
- text: 'Existe-t-il des emprunts en cours ?',
431
+ text: 'Si oui, combien ?',
474
432
  value: 'isLoans',
433
+ required: true,
475
434
  meta: {
476
- // eslint-disable-next-line @typescript-eslint/no-unsafe-return
477
435
  items: (0, exports.setRangeItems)(15).map((i) => (Object.assign(Object.assign({}, i), { value: i.value.toString() }))),
478
436
  hideDetails: true,
479
437
  },
480
- lg: 4,
438
+ condition: societyDetail.isLoans === '1',
439
+ lg: 12,
481
440
  },
482
441
  ],
483
442
  },
484
443
  {
485
- name: 'Entreprise existante',
486
- display: isSocietyCreationCompute === false,
444
+ name: "Découverte du chef d'entreprise (1/2)",
487
445
  questions: [
488
446
  {
489
- component: 'FormInputSelect', //'FormInputRadio',
490
- text: 'Aviez-vous fait des investissements dans le cadre de la création de votre entreprise ?',
491
- value: 'investissement',
492
- meta: {
493
- items: Constants_1.SelectYesNoStatementBool.map((i) => (Object.assign(Object.assign({}, i), { value: i.value.toString() }))),
494
- hideDetails: true,
495
- },
496
- lg: societyDetail.investissement === '1' ? 4 : 8,
497
- },
498
- {
499
- //TODO: champ à créer
500
447
  component: 'FormInputSelect',
501
- text: 'De quelles natures ?',
502
- value: 'investissementTypes',
503
- meta: {
504
- multiple: true,
505
- items: [
506
- { text: 'Nature', value: 'nature' }, //TODO: créer un ENUM
507
- { text: 'Numéraire', value: 'numeraire' },
508
- { text: 'Industriel', value: 'industriel' },
509
- ],
510
- hideDetails: true,
511
- },
512
- condition: societyDetail.investissement === '1',
513
- lg: societyDetail.investissement === '1' ? 4 : 8,
514
- },
515
- {
516
- component: 'FormInputSelect', //'FormInputRadio',
517
- text: "Avez-vous des projets d'investissement à court ou moyen terme ?",
518
- value: 'investissementCTMT',
448
+ text: 'Avez-vous suivi une formation particulière en lien avec votre activité ',
449
+ value: 'descriptionFormation',
450
+ required: true,
519
451
  meta: {
520
452
  items: Constants_1.SelectYesNoStatementBool.map((i) => (Object.assign(Object.assign({}, i), { value: i.value.toString() }))),
521
453
  hideDetails: true,
522
454
  },
523
- lg: 4,
455
+ lg: 12,
524
456
  },
525
457
  {
526
- component: 'FormInputSelect', //'FormInputRadio',
527
- text: 'Avez-vous déjà eu des contrôles fiscaux ?',
528
- value: 'fiscalControl',
458
+ component: 'FormInputSelect',
459
+ text: 'Avez-vous des responsabilités politiques ?',
460
+ value: 'politicalResponsability',
461
+ required: true,
529
462
  meta: {
530
463
  items: Constants_1.SelectYesNoStatementBool.map((i) => (Object.assign(Object.assign({}, i), { value: i.value.toString() }))),
531
464
  hideDetails: true,
532
465
  },
533
- lg: 4,
466
+ lg: 12,
534
467
  },
535
468
  {
536
469
  component: 'FormInputSelect',
537
- text: 'Existe-t-il des emprunts en cours ?',
538
- value: 'borrowingInProgress',
470
+ text: 'Êtes-vous résident fiscal français ?',
471
+ value: 'frenchTaxResident',
472
+ required: true,
539
473
  meta: {
540
- // eslint-disable-next-line @typescript-eslint/no-unsafe-return
541
- items: (0, exports.setRangeItems)(15).map((i) => (Object.assign(Object.assign({}, i), { value: i.value.toString() }))),
474
+ items: Constants_1.SelectYesNoStatementBool.map((i) => (Object.assign(Object.assign({}, i), { value: i.value.toString() }))),
542
475
  hideDetails: true,
543
476
  },
544
- lg: 4,
477
+ lg: 12,
545
478
  },
546
479
  {
547
- //TODO: champ à créer
548
480
  component: 'FormInputSelect',
549
- text: "Quel(s) est/sont le(s) motif(s) de votre changement d'Expert-Comptable ?",
550
- value: 'listReasonsWhyChangingEC',
481
+ text: 'Êtes-vous en redressement judiciaire ?',
482
+ value: 'judiciaryRecovery',
483
+ required: true,
551
484
  meta: {
552
- multiple: true,
553
- items: [
554
- { text: 'Litige', value: 'litige' },
555
- { text: 'Impayé', value: 'impayé' },
556
- { text: 'Pas réactif', value: 'pas réactif' },
557
- { text: 'Manque de conseil', value: 'manque de conseil' },
558
- { text: 'Proximité', value: 'proximité' },
559
- { text: 'Prix', value: 'prix' },
560
- { text: 'Non Concerné', value: 'nc' },
561
- ],
485
+ items: Constants_1.SelectYesNoStatementBool.map((i) => (Object.assign(Object.assign({}, i), { value: i.value.toString() }))),
562
486
  hideDetails: true,
563
487
  },
564
- lg: 4,
488
+ lg: 12,
565
489
  },
566
490
  ],
567
491
  },
568
492
  {
569
- name: "Découverte chef d'entreprise",
493
+ name: "Découverte du chef d'entreprise (2/2)",
570
494
  questions: [
571
495
  {
572
- component: 'FormInputSelect', //'FormInputRadio',
573
- text: 'Avez-vous suivi une formation particulière en lien avec votre activité ?',
574
- value: 'descriptionFormation',
496
+ component: 'FormInputSelect',
497
+ text: "Quelle est votre fonction dans l'entreprise ?",
498
+ value: 'listQualities',
499
+ required: true,
575
500
  meta: {
576
- items: Constants_1.SelectYesNoStatementBool.map((i) => (Object.assign(Object.assign({}, i), { value: i.value.toString() }))),
501
+ items: Quality_1.QualityList.map((quality) => ({ text: quality.label, value: quality.id })),
577
502
  hideDetails: true,
578
503
  },
579
- lg: 6,
580
- //TODO: si non, conseil à afficher
504
+ lg: 12,
581
505
  },
582
506
  {
583
- component: 'FormInputSelect', //'FormInputRadio',
584
- text: 'Avez-vous des connaissances de gestion ?',
507
+ component: 'FormInputSelect',
508
+ text: "Avez vous des connaissances en gestion d'entreprise ?",
585
509
  value: 'managementKnowledge',
510
+ required: true,
586
511
  meta: {
587
512
  items: Constants_1.SelectYesNoStatementBool.map((i) => (Object.assign(Object.assign({}, i), { value: i.value.toString() }))),
588
513
  hideDetails: true,
589
514
  },
590
- lg: 6,
591
- },
592
- {
593
- component: 'FormInputSelect', //'FormInputRadio',
594
- text: 'Avez-vous des responsabilités politiques ?',
595
- value: 'politicalResponsability',
596
- meta: {
597
- items: Constants_1.SelectYesNoStatementBool.map((i) => (Object.assign(Object.assign({}, i), { value: i.value.toString() }))),
598
- hideDetails: true,
599
- },
600
- lg: 6,
515
+ lg: 12,
601
516
  },
602
517
  {
603
- component: 'FormInputSelect', //'FormInputRadio',
518
+ component: 'FormInputSelect',
604
519
  text: "Avez-vous des participations dans d'autres sociétés ?",
605
520
  value: 'participationsInOtherSociety',
521
+ required: true,
606
522
  meta: {
607
523
  items: Constants_1.SelectYesNoStatementBool.map((i) => (Object.assign(Object.assign({}, i), { value: i.value.toString() }))),
608
524
  hideDetails: true,
609
525
  },
610
- lg: 6,
611
- },
612
- {
613
- component: 'FormInputSelect', //'FormInputRadio',
614
- text: 'Êtes-vous résident fiscal français ?',
615
- value: 'frenchTaxResident',
616
- meta: {
617
- items: Constants_1.SelectYesNoStatementBool.map((i) => (Object.assign(Object.assign({}, i), { value: i.value.toString() }))),
618
- hideDetails: true,
619
- },
620
- lg: 6,
526
+ lg: 12,
621
527
  },
622
528
  {
623
- component: 'FormInputSelect', //'FormInputRadio',
624
- text: 'Êtes-vous interdit bancaire ?',
529
+ component: 'FormInputSelect',
530
+ text: 'Êtes-vous interdit bancaire ?',
625
531
  value: 'prohibitedBanking',
532
+ required: true,
626
533
  meta: {
627
534
  items: Constants_1.SelectYesNoStatementBool.map((i) => (Object.assign(Object.assign({}, i), { value: i.value.toString() }))),
628
535
  hideDetails: true,
629
536
  },
630
- lg: 6,
631
- },
632
- {
633
- component: 'FormInputSelect', //'FormInputRadio',
634
- text: 'Êtes-vous en redressement judiciaire ?',
635
- value: 'judiciaryRecovery',
636
- meta: {
637
- items: Constants_1.SelectYesNoStatementBool.map((i) => (Object.assign(Object.assign({}, i), { value: i.value.toString() }))),
638
- hideDetails: true,
639
- },
640
- lg: 6,
641
- },
642
- {
643
- component: 'FormInputSelect', //'FormInputRadio',
644
- text: `Êtes-vous imposable au titre de l'IR ${dayjs().subtract(2, 'year').format('YYYY')}/${dayjs()
645
- .subtract(1, 'year')
646
- .format('YYYY')} ?`,
647
- value: 'isIrTaxable',
648
- meta: {
649
- items: Constants_1.SelectYesNoStatementBool.map((i) => (Object.assign(Object.assign({}, i), { value: i.value.toString() }))),
650
- hideDetails: true,
651
- },
652
- lg: 6,
653
- },
654
- {
655
- //TODO: champ à créer
656
- component: 'FormInputSelect',
657
- text: "Quelle est votre fonction dans l'entreprise ?",
658
- value: 'listQualities',
659
- meta: {
660
- multiple: true,
661
- items: Object.values(Quality_1.QualityList).sort((a, b) => (a.label > b.label ? 1 : -1)),
662
- itemText: 'label',
663
- itemValue: 'id',
664
- hideDetails: true,
665
- },
666
- lg: 6,
667
- },
668
- ],
669
- },
670
- {
671
- name: 'Organisation',
672
- questions: [
673
- {
674
- //TODO: champ à créer
675
- component: 'FormInputSelect',
676
- text: 'En combien de temps vos clients vous règlent-ils ?',
677
- value: 'averageCustomerRegulationTime',
678
- meta: {
679
- items: Constants_1.AverageTimeItems,
680
- hideDetails: true,
681
- },
537
+ lg: 12,
682
538
  },
683
539
  {
684
- //TODO: champ à créer
685
540
  component: 'FormInputSelect',
686
- text: 'En combien de temps réglez-vous vos fournisseurs ?',
687
- value: 'averageSupplierRegulationTime',
688
- meta: {
689
- items: Constants_1.AverageTimeItems,
690
- hideDetails: true,
691
- },
692
- },
693
- {
694
- component: 'FormInputSelect', //'FormInputRadio',
695
- text: 'Classez-vous vos pièces comptables (factures d’achats par mois, etc ...) ?',
696
- value: 'rankFiles',
541
+ text: "Êtes-vous imposable au titre de l'année 2023/2024 ?",
542
+ value: 'isIrTaxable',
543
+ required: true,
697
544
  meta: {
698
545
  items: Constants_1.SelectYesNoStatementBool.map((i) => (Object.assign(Object.assign({}, i), { value: i.value.toString() }))),
699
546
  hideDetails: true,
700
547
  },
701
- },
702
- ],
703
- },
704
- {
705
- name: 'Assurance',
706
- questions: [
707
- {
708
- component: 'FormInputSwitch', //'FormInputRadio',
709
- text: 'Êtes-vous indemnisé par l’assurance chômage ?',
710
- value: 'unemploymentInsurance',
711
- meta: {
712
- hideDetails: true,
713
- },
714
- lg: 6,
715
- },
716
- {
717
- component: 'FormInputSwitch', //'FormInputRadio',
718
- text: 'Avez-vous une couverture mutuelle ?',
719
- value: 'hasMutualInsurance',
720
- meta: {
721
- hideDetails: true,
722
- },
723
- lg: 6,
724
- },
725
- {
726
- component: 'FormInputSwitch', //'FormInputRadio',
727
- text: 'Avez-vous une responsabilité civile professionnelle (RC Pro) ?',
728
- value: 'hasProfessionalLiabilityInsurance',
729
- meta: {
730
- hideDetails: true,
731
- },
732
- lg: 6,
733
- },
734
- {
735
- component: 'FormInputSwitch', //'FormInputRadio',
736
- text: 'Souhaitez-vous faire un audit de vos contracts d’assurances ?',
737
- value: 'insuranceContractAudit',
738
- meta: {
739
- hideDetails: true,
740
- },
741
- lg: 6,
742
- },
743
- ],
744
- },
745
- {
746
- name: 'Conclusion',
747
- questions: [
748
- {
749
- component: 'FormInputText',
750
- text: 'Avez-vous des besoins spécifiques ?',
751
- value: 'specificNeeds',
752
- meta: {
753
- hideDetails: true,
754
- },
755
- },
756
- {
757
- component: 'FormInputTextArea',
758
- text: 'Commentaires généraux',
759
- value: 'remarqueComment',
760
- meta: {
761
- hideDetails: true,
762
- },
763
- },
764
- {
765
- component: 'FormInputSelect',
766
- text: 'Comment nous avez-vous connu ?',
767
- meta: {
768
- items: Constants_1.ClementineSources,
769
- hideDetails: true,
770
- },
771
- value: 'idFindClementine',
548
+ lg: 12,
772
549
  },
773
550
  ],
774
551
  },