@silexpert/core 1.3.169-4 → 1.3.170

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