@silexpert/core 1.3.55 → 1.3.57-0

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 (61) hide show
  1. package/dist/cjs/api/resources/Card.d.ts +2 -2
  2. package/dist/cjs/api/resources/Card.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/Card.js.map +1 -1
  4. package/dist/cjs/api/resources/User.d.ts +2 -1
  5. package/dist/cjs/api/resources/User.d.ts.map +1 -1
  6. package/dist/cjs/api/resources/User.js +3 -0
  7. package/dist/cjs/api/resources/User.js.map +1 -1
  8. package/dist/cjs/types/Enum/BalanceSheet.js +11 -11
  9. package/dist/cjs/types/Enum/BalanceSheet.js.map +1 -1
  10. package/dist/cjs/types/Enum/JobTitle.d.ts +2 -1
  11. package/dist/cjs/types/Enum/JobTitle.d.ts.map +1 -1
  12. package/dist/cjs/types/Enum/JobTitle.js +6 -0
  13. package/dist/cjs/types/Enum/JobTitle.js.map +1 -1
  14. package/dist/cjs/types/Interface/api/config/ConfigType.d.ts +0 -7
  15. package/dist/cjs/types/Interface/api/config/ConfigType.d.ts.map +1 -1
  16. package/dist/cjs/types/Interface/api/config/ConfigType.js.map +1 -1
  17. package/dist/cjs/types/Interface/api/user/Query.d.ts +9 -0
  18. package/dist/cjs/types/Interface/api/user/Query.d.ts.map +1 -1
  19. package/dist/cjs/types/Interface/api/user/Query.js +30 -1
  20. package/dist/cjs/types/Interface/api/user/Query.js.map +1 -1
  21. package/dist/cjs/types/Interface/models/ICard.d.ts +0 -4
  22. package/dist/cjs/types/Interface/models/ICard.d.ts.map +1 -1
  23. package/dist/cjs/types/Interface/models/ICard.js.map +1 -1
  24. package/dist/cjs/utils/prestation.d.ts.map +1 -1
  25. package/dist/cjs/utils/prestation.js +10 -6
  26. package/dist/cjs/utils/prestation.js.map +1 -1
  27. package/dist/mjs/api/resources/Card.d.ts +2 -2
  28. package/dist/mjs/api/resources/Card.d.ts.map +1 -1
  29. package/dist/mjs/api/resources/Card.js.map +1 -1
  30. package/dist/mjs/api/resources/User.d.ts +2 -1
  31. package/dist/mjs/api/resources/User.d.ts.map +1 -1
  32. package/dist/mjs/api/resources/User.js +6 -0
  33. package/dist/mjs/api/resources/User.js.map +1 -1
  34. package/dist/mjs/types/Enum/BalanceSheet.js +11 -11
  35. package/dist/mjs/types/Enum/BalanceSheet.js.map +1 -1
  36. package/dist/mjs/types/Enum/JobTitle.d.ts +2 -1
  37. package/dist/mjs/types/Enum/JobTitle.d.ts.map +1 -1
  38. package/dist/mjs/types/Enum/JobTitle.js +6 -0
  39. package/dist/mjs/types/Enum/JobTitle.js.map +1 -1
  40. package/dist/mjs/types/Interface/api/config/ConfigType.d.ts +0 -7
  41. package/dist/mjs/types/Interface/api/config/ConfigType.d.ts.map +1 -1
  42. package/dist/mjs/types/Interface/api/config/ConfigType.js.map +1 -1
  43. package/dist/mjs/types/Interface/api/user/Query.d.ts +9 -0
  44. package/dist/mjs/types/Interface/api/user/Query.d.ts.map +1 -1
  45. package/dist/mjs/types/Interface/api/user/Query.js +28 -0
  46. package/dist/mjs/types/Interface/api/user/Query.js.map +1 -1
  47. package/dist/mjs/types/Interface/models/ICard.d.ts +0 -4
  48. package/dist/mjs/types/Interface/models/ICard.d.ts.map +1 -1
  49. package/dist/mjs/types/Interface/models/ICard.js.map +1 -1
  50. package/dist/mjs/utils/prestation.d.ts.map +1 -1
  51. package/dist/mjs/utils/prestation.js +10 -6
  52. package/dist/mjs/utils/prestation.js.map +1 -1
  53. package/package.json +1 -1
  54. package/ts/api/resources/Card.ts +1 -2
  55. package/ts/api/resources/User.ts +8 -0
  56. package/ts/types/Enum/BalanceSheet.ts +11 -11
  57. package/ts/types/Enum/JobTitle.ts +6 -0
  58. package/ts/types/Interface/api/config/ConfigType.ts +0 -8
  59. package/ts/types/Interface/api/user/Query.ts +26 -0
  60. package/ts/types/Interface/models/ICard.ts +0 -5
  61. package/ts/utils/prestation.ts +10 -5
@@ -488,7 +488,12 @@ const calculatePrestationPrice = (
488
488
  price = totalWithReduce.price;
489
489
  } else {
490
490
  totalPrestation = calculatePrestationPriceWithPrestationList(prestationList);
491
- if ([PrestationType.CREATION_SOCIETE].includes(idPrestationList) && !isSubPrestation) totalPrestation += 50;
491
+ if ([PrestationType.CREATION_SOCIETE].includes(idPrestationList) && !isSubPrestation){
492
+ // totalPrestation += 50;
493
+ // La création est offerte désormais
494
+ // inutile d'ajouter les frais de greffe et d'annonce légale,
495
+ // car ne compte pas dans le calcul pour les sales
496
+ }
492
497
  }
493
498
  /* Gestion des offres */
494
499
  /* Offre montant offer */
@@ -510,10 +515,10 @@ const calculatePrestationPrice = (
510
515
  }
511
516
  totalPrestation += OptionTotalPrice ? OptionTotalPrice : 0;
512
517
  /* Gestion des frais de dossier */
513
- if (isWithApplicationFees) {
514
- const applicationFeesAmount = getApplicationFeesAmount(idLegalForm);
515
- totalPrestation += applicationFeesAmount;
516
- }
518
+ // if (isWithApplicationFees) {
519
+ // const applicationFeesAmount = getApplicationFeesAmount(idLegalForm);
520
+ // totalPrestation += applicationFeesAmount;
521
+ // }
517
522
 
518
523
  const calculDetail = `${monthNbr > 0 ? monthNbr + ' mois x ' + Math.round(price * 100) / 100 + '€' : Math.round(price * 100) / 100 + '€'} ${totalAmount > 0 ? '- ' + totalAmount + '€' : ''} ${totalPercentage > 0 ? '- ' + totalPercentage + '%' : ''} ${isWithApplicationFees ? '+ 50€' : ''}`;
519
524