@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.
- package/dist/cjs/api/resources/BalanceSheet.d.ts +3 -0
- package/dist/cjs/api/resources/BalanceSheet.d.ts.map +1 -1
- package/dist/cjs/api/resources/BalanceSheet.js +3 -0
- package/dist/cjs/api/resources/BalanceSheet.js.map +1 -1
- package/dist/cjs/api/resources/Tax.d.ts +2 -2
- package/dist/cjs/api/resources/Tax.d.ts.map +1 -1
- package/dist/cjs/api/resources/Tax.js.map +1 -1
- package/dist/cjs/types/Enum/MaritalStatus.d.ts +30 -5
- package/dist/cjs/types/Enum/MaritalStatus.d.ts.map +1 -1
- package/dist/cjs/types/Enum/MaritalStatus.js +2 -0
- package/dist/cjs/types/Enum/MaritalStatus.js.map +1 -1
- package/dist/cjs/types/Enum/TaskResponseType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/TaskResponseType.js +11 -0
- package/dist/cjs/types/Enum/TaskResponseType.js.map +1 -1
- package/dist/cjs/types/Interface/models/IAccount.d.ts +1 -0
- package/dist/cjs/types/Interface/models/IAccount.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IAccount.js.map +1 -1
- package/dist/cjs/utils/prestation.d.ts +1 -1
- package/dist/cjs/utils/prestation.d.ts.map +1 -1
- package/dist/cjs/utils/prestation.js +2 -2
- package/dist/cjs/utils/prestation.js.map +1 -1
- package/dist/mjs/api/resources/BalanceSheet.d.ts +3 -0
- package/dist/mjs/api/resources/BalanceSheet.d.ts.map +1 -1
- package/dist/mjs/api/resources/BalanceSheet.js +3 -0
- package/dist/mjs/api/resources/BalanceSheet.js.map +1 -1
- package/dist/mjs/api/resources/Tax.d.ts +2 -2
- package/dist/mjs/api/resources/Tax.d.ts.map +1 -1
- package/dist/mjs/api/resources/Tax.js.map +1 -1
- package/dist/mjs/types/Enum/MaritalStatus.d.ts +30 -5
- package/dist/mjs/types/Enum/MaritalStatus.d.ts.map +1 -1
- package/dist/mjs/types/Enum/MaritalStatus.js +2 -0
- package/dist/mjs/types/Enum/MaritalStatus.js.map +1 -1
- package/dist/mjs/types/Enum/TaskResponseType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/TaskResponseType.js +11 -0
- package/dist/mjs/types/Enum/TaskResponseType.js.map +1 -1
- package/dist/mjs/types/Interface/models/IAccount.d.ts +1 -0
- package/dist/mjs/types/Interface/models/IAccount.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IAccount.js.map +1 -1
- package/dist/mjs/utils/prestation.d.ts +1 -1
- package/dist/mjs/utils/prestation.d.ts.map +1 -1
- package/dist/mjs/utils/prestation.js +2 -2
- package/dist/mjs/utils/prestation.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/BalanceSheet.ts +4 -0
- package/ts/api/resources/Tax.ts +3 -2
- package/ts/types/Enum/MaritalStatus.ts +3 -1
- package/ts/types/Enum/TaskResponseType.ts +11 -0
- package/ts/types/Interface/models/IAccount.ts +1 -0
- package/ts/utils/prestation.ts +3 -2
package/ts/utils/prestation.ts
CHANGED
|
@@ -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));
|