@silexpert/core 1.1.221 → 1.1.222

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 (49) hide show
  1. package/dist/cjs/api/resources/BalanceSheet.d.ts +3 -0
  2. package/dist/cjs/api/resources/BalanceSheet.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/BalanceSheet.js +3 -0
  4. package/dist/cjs/api/resources/BalanceSheet.js.map +1 -1
  5. package/dist/cjs/api/resources/Tax.d.ts +2 -2
  6. package/dist/cjs/api/resources/Tax.d.ts.map +1 -1
  7. package/dist/cjs/api/resources/Tax.js.map +1 -1
  8. package/dist/cjs/types/Enum/MaritalStatus.d.ts +30 -5
  9. package/dist/cjs/types/Enum/MaritalStatus.d.ts.map +1 -1
  10. package/dist/cjs/types/Enum/MaritalStatus.js +2 -0
  11. package/dist/cjs/types/Enum/MaritalStatus.js.map +1 -1
  12. package/dist/cjs/types/Enum/TaskResponseType.d.ts.map +1 -1
  13. package/dist/cjs/types/Enum/TaskResponseType.js +11 -0
  14. package/dist/cjs/types/Enum/TaskResponseType.js.map +1 -1
  15. package/dist/cjs/types/Interface/models/IAccount.d.ts +1 -0
  16. package/dist/cjs/types/Interface/models/IAccount.d.ts.map +1 -1
  17. package/dist/cjs/types/Interface/models/IAccount.js.map +1 -1
  18. package/dist/cjs/utils/prestation.d.ts +1 -1
  19. package/dist/cjs/utils/prestation.d.ts.map +1 -1
  20. package/dist/cjs/utils/prestation.js +2 -2
  21. package/dist/cjs/utils/prestation.js.map +1 -1
  22. package/dist/mjs/api/resources/BalanceSheet.d.ts +3 -0
  23. package/dist/mjs/api/resources/BalanceSheet.d.ts.map +1 -1
  24. package/dist/mjs/api/resources/BalanceSheet.js +3 -0
  25. package/dist/mjs/api/resources/BalanceSheet.js.map +1 -1
  26. package/dist/mjs/api/resources/Tax.d.ts +2 -2
  27. package/dist/mjs/api/resources/Tax.d.ts.map +1 -1
  28. package/dist/mjs/api/resources/Tax.js.map +1 -1
  29. package/dist/mjs/types/Enum/MaritalStatus.d.ts +30 -5
  30. package/dist/mjs/types/Enum/MaritalStatus.d.ts.map +1 -1
  31. package/dist/mjs/types/Enum/MaritalStatus.js +2 -0
  32. package/dist/mjs/types/Enum/MaritalStatus.js.map +1 -1
  33. package/dist/mjs/types/Enum/TaskResponseType.d.ts.map +1 -1
  34. package/dist/mjs/types/Enum/TaskResponseType.js +11 -0
  35. package/dist/mjs/types/Enum/TaskResponseType.js.map +1 -1
  36. package/dist/mjs/types/Interface/models/IAccount.d.ts +1 -0
  37. package/dist/mjs/types/Interface/models/IAccount.d.ts.map +1 -1
  38. package/dist/mjs/types/Interface/models/IAccount.js.map +1 -1
  39. package/dist/mjs/utils/prestation.d.ts +1 -1
  40. package/dist/mjs/utils/prestation.d.ts.map +1 -1
  41. package/dist/mjs/utils/prestation.js +2 -2
  42. package/dist/mjs/utils/prestation.js.map +1 -1
  43. package/package.json +1 -1
  44. package/ts/api/resources/BalanceSheet.ts +4 -0
  45. package/ts/api/resources/Tax.ts +3 -2
  46. package/ts/types/Enum/MaritalStatus.ts +3 -1
  47. package/ts/types/Enum/TaskResponseType.ts +11 -0
  48. package/ts/types/Interface/models/IAccount.ts +1 -0
  49. package/ts/utils/prestation.ts +3 -2
@@ -275,7 +275,8 @@ const calculatePrestationPrice = (
275
275
  isWithApplicationFees: boolean,
276
276
  idTaxSystem: number,
277
277
  idLegalForm: number,
278
- isYearly: boolean = false,
278
+ isYearly: boolean = false,
279
+ isSubPrestation: boolean = false,
279
280
  balanceSheetOffered: number = 0,
280
281
  exerciceList: IExercice[] = [],
281
282
  ): {
@@ -348,7 +349,7 @@ const calculatePrestationPrice = (
348
349
  price = totalWithReduce.price;
349
350
  } else {
350
351
  totalPrestation = calculatePrestationPriceWithPrestationList(prestationList);
351
- if ([PrestationType.CREATION_SOCIETE].includes(idPrestationList)) totalPrestation += 50;
352
+ if ([PrestationType.CREATION_SOCIETE].includes(idPrestationList) && !isSubPrestation) totalPrestation += 50;
352
353
  }
353
354
  if (totalAmount > 0) totalPrestation = totalPrestation - totalAmount;
354
355
  if (totalPercentage > 0) totalPrestation = totalPrestation - (totalPrestation * (totalPercentage / 100));