@silexpert/core 1.1.174 → 1.1.175
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/ExercicePrestation.d.ts +11 -0
- package/dist/cjs/api/resources/ExercicePrestation.d.ts.map +1 -0
- package/dist/cjs/api/resources/ExercicePrestation.js +16 -0
- package/dist/cjs/api/resources/ExercicePrestation.js.map +1 -0
- package/dist/cjs/api/resources/Notion.d.ts +5 -4
- package/dist/cjs/api/resources/Notion.d.ts.map +1 -1
- package/dist/cjs/api/resources/Notion.js +1 -1
- package/dist/cjs/api/resources/Notion.js.map +1 -1
- package/dist/cjs/api/resources.d.ts +2 -0
- package/dist/cjs/api/resources.d.ts.map +1 -1
- package/dist/cjs/api/resources.js +2 -0
- package/dist/cjs/api/resources.js.map +1 -1
- package/dist/cjs/types/Interface/api/exercicePrestation/Query.d.ts +7 -0
- package/dist/cjs/types/Interface/api/exercicePrestation/Query.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/exercicePrestation/Query.js +28 -0
- package/dist/cjs/types/Interface/api/exercicePrestation/Query.js.map +1 -0
- package/dist/cjs/types/Interface/api/notion/NotionResponse.d.ts +1537 -0
- package/dist/cjs/types/Interface/api/notion/NotionResponse.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/notion/NotionResponse.js +3 -0
- package/dist/cjs/types/Interface/api/notion/NotionResponse.js.map +1 -0
- package/dist/cjs/types/index.d.ts +2 -0
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +2 -0
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/cjs/utils/prestation.d.ts +1 -0
- 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/ExercicePrestation.d.ts +11 -0
- package/dist/mjs/api/resources/ExercicePrestation.d.ts.map +1 -0
- package/dist/mjs/api/resources/ExercicePrestation.js +12 -0
- package/dist/mjs/api/resources/ExercicePrestation.js.map +1 -0
- package/dist/mjs/api/resources/Notion.d.ts +5 -4
- package/dist/mjs/api/resources/Notion.d.ts.map +1 -1
- package/dist/mjs/api/resources/Notion.js +1 -1
- package/dist/mjs/api/resources/Notion.js.map +1 -1
- package/dist/mjs/api/resources.d.ts +2 -0
- package/dist/mjs/api/resources.d.ts.map +1 -1
- package/dist/mjs/api/resources.js +2 -0
- package/dist/mjs/api/resources.js.map +1 -1
- package/dist/mjs/types/Interface/api/exercicePrestation/Query.d.ts +7 -0
- package/dist/mjs/types/Interface/api/exercicePrestation/Query.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/exercicePrestation/Query.js +26 -0
- package/dist/mjs/types/Interface/api/exercicePrestation/Query.js.map +1 -0
- package/dist/mjs/types/Interface/api/notion/NotionResponse.d.ts +1537 -0
- package/dist/mjs/types/Interface/api/notion/NotionResponse.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/notion/NotionResponse.js +2 -0
- package/dist/mjs/types/Interface/api/notion/NotionResponse.js.map +1 -0
- package/dist/mjs/types/index.d.ts +2 -0
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +2 -0
- package/dist/mjs/types/index.js.map +1 -1
- package/dist/mjs/utils/prestation.d.ts +1 -0
- 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/ExercicePrestation.ts +16 -0
- package/ts/api/resources/Notion.ts +6 -5
- package/ts/api/resources.ts +2 -0
- package/ts/types/Interface/api/exercicePrestation/Query.ts +14 -0
- package/ts/types/Interface/api/notion/NotionResponse.ts +1288 -0
- package/ts/types/index.ts +3 -0
- package/ts/utils/prestation.ts +3 -3
package/ts/types/index.ts
CHANGED
|
@@ -936,6 +936,7 @@ export * from './Interface/api/file/Create';
|
|
|
936
936
|
export * from './Interface/api/file/Read';
|
|
937
937
|
export * from './Interface/api/societyConfig/update';
|
|
938
938
|
export * from './Interface/api/wallet/UpdateAttribution';
|
|
939
|
+
export * from './Interface/api/exercicePrestation/Query';
|
|
939
940
|
export * from './Interface/api/prestation/CreatePrestation';
|
|
940
941
|
export * from './Interface/api/prestation/Query';
|
|
941
942
|
export * from './Interface/api/prestation/QueryPrestation';
|
|
@@ -983,6 +984,8 @@ export * from './Interface/api/visualizedInformation/Update';
|
|
|
983
984
|
export * from './Interface/api/society/QueryArchived';
|
|
984
985
|
export * from './Interface/api/vatControl/CreateVatControl';
|
|
985
986
|
export * from './Interface/api/vatControl/QueryVatControl';
|
|
987
|
+
export * from './Interface/api/notion/NotionResponse';
|
|
988
|
+
|
|
986
989
|
// Enums types
|
|
987
990
|
export * from './Interface/enum/Util';
|
|
988
991
|
export * from './Interface/enum/Date';
|
package/ts/utils/prestation.ts
CHANGED
|
@@ -193,7 +193,7 @@ const calculatePrestationPriceWithPrestationList = (prestationList: IPrestationL
|
|
|
193
193
|
return totalPrestation;
|
|
194
194
|
};
|
|
195
195
|
|
|
196
|
-
const calculatePrestationPrice = (idPrestationList: number, prestationList: IPrestationList, endDate: string, NbrMonth: number, turnover: number, rentsNumber: number, employeesNumber: number, associatesNumber: number, idTypeBrand: number, idVatRegime: number, pastBalanceSheet: boolean, optionsList: number[], totalPercentage: number, totalAmount: number, totalMonth: number, isWithApplicationFees: boolean, idTaxSystem: number, isYearly: boolean = false): { totalPrestation: number, reduceMonth: number, canBeCreated: boolean, calculDetail: string, price: number } => {
|
|
196
|
+
const calculatePrestationPrice = (idPrestationList: number, prestationList: IPrestationList, endDate: string, NbrMonth: number, turnover: number, rentsNumber: number, employeesNumber: number, associatesNumber: number, idTypeBrand: number, idVatRegime: number, pastBalanceSheet: boolean, optionsList: number[], totalPercentage: number, totalAmount: number, totalMonth: number, isWithApplicationFees: boolean, idTaxSystem: number, isYearly: boolean = false): { totalPrestation: number, reduceMonth: number, canBeCreated: boolean, calculDetail: string, monthlyPrice: string, price: number } => {
|
|
197
197
|
let totalPrestation: number = 0;
|
|
198
198
|
let reduceMonth: number = 0;
|
|
199
199
|
let canBeCreated: boolean = true;
|
|
@@ -246,9 +246,9 @@ const calculatePrestationPrice = (idPrestationList: number, prestationList: IPre
|
|
|
246
246
|
|
|
247
247
|
if (isWithApplicationFees) totalPrestation += 50;
|
|
248
248
|
|
|
249
|
-
const calculDetail = `${monthNbr > 0 ? monthNbr + ' mois x ' + price + '€' : price + '€'} ${totalAmount > 0 ? '- ' + totalAmount + '€' : ''} ${totalPercentage > 0 ? '- ' + totalPercentage + '%' : ''} ${isWithApplicationFees ? '+ 50€' : ''}`;
|
|
249
|
+
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€' : ''}`;
|
|
250
250
|
|
|
251
|
-
return { totalPrestation, reduceMonth, canBeCreated, calculDetail, price };
|
|
251
|
+
return { totalPrestation, reduceMonth, canBeCreated, calculDetail, monthlyPrice: monthNbr > 0 ? price + '€/mois' : price + '€', price };
|
|
252
252
|
};
|
|
253
253
|
|
|
254
254
|
const getPrestationOptions = (idPrestationList: number): PrestationOptionType[] => {
|