@silexpert/core 1.1.181 → 1.1.183
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/types/Enum/CityOfGreffe.d.ts +327 -0
- package/dist/cjs/types/Enum/CityOfGreffe.d.ts.map +1 -0
- package/dist/cjs/types/Enum/CityOfGreffe.js +649 -0
- package/dist/cjs/types/Enum/CityOfGreffe.js.map +1 -0
- package/dist/cjs/types/Enum/PriceGridClementine.d.ts +29 -2
- package/dist/cjs/types/Enum/PriceGridClementine.d.ts.map +1 -1
- package/dist/cjs/types/Enum/PriceGridClementine.js +116 -86
- package/dist/cjs/types/Enum/PriceGridClementine.js.map +1 -1
- package/dist/cjs/types/Enum/Supervision.d.ts +2 -1
- package/dist/cjs/types/Enum/Supervision.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Supervision.js +7 -0
- package/dist/cjs/types/Enum/Supervision.js.map +1 -1
- package/dist/cjs/types/Interface/api/kilometricAllowance/ReadKilometricAllowance.d.ts +6 -0
- package/dist/cjs/types/Interface/api/kilometricAllowance/ReadKilometricAllowance.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/kilometricAllowance/ReadKilometricAllowance.js.map +1 -1
- package/dist/cjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js +2 -0
- package/dist/cjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js.map +1 -1
- package/dist/cjs/types/Interface/models/ICard.d.ts +0 -1
- package/dist/cjs/types/Interface/models/ICard.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ICard.js.map +1 -1
- package/dist/cjs/types/Interface/models/ICommercialOffer.d.ts +1 -0
- package/dist/cjs/types/Interface/models/ICommercialOffer.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ICommercialOffer.js.map +1 -1
- package/dist/cjs/types/Interface/models/ICustomerVat.d.ts +1 -0
- package/dist/cjs/types/Interface/models/ICustomerVat.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ICustomerVat.js.map +1 -1
- package/dist/cjs/types/Interface/models/ISociety.d.ts +2 -0
- package/dist/cjs/types/Interface/models/ISociety.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ISociety.js.map +1 -1
- package/dist/cjs/types/index.d.ts +1 -0
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +1 -0
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/cjs/utils/commercialOffer.d.ts +1 -1
- package/dist/cjs/utils/commercialOffer.d.ts.map +1 -1
- package/dist/cjs/utils/commercialOffer.js +2 -2
- package/dist/cjs/utils/commercialOffer.js.map +1 -1
- package/dist/cjs/utils/email/templates/signature.d.ts.map +1 -1
- package/dist/cjs/utils/email/templates/signature.js +5 -3
- package/dist/cjs/utils/email/templates/signature.js.map +1 -1
- package/dist/cjs/utils/prestation.d.ts.map +1 -1
- package/dist/cjs/utils/prestation.js +6 -0
- package/dist/cjs/utils/prestation.js.map +1 -1
- package/dist/mjs/types/Enum/CityOfGreffe.d.ts +327 -0
- package/dist/mjs/types/Enum/CityOfGreffe.d.ts.map +1 -0
- package/dist/mjs/types/Enum/CityOfGreffe.js +646 -0
- package/dist/mjs/types/Enum/CityOfGreffe.js.map +1 -0
- package/dist/mjs/types/Enum/PriceGridClementine.d.ts +29 -2
- package/dist/mjs/types/Enum/PriceGridClementine.d.ts.map +1 -1
- package/dist/mjs/types/Enum/PriceGridClementine.js +116 -86
- package/dist/mjs/types/Enum/PriceGridClementine.js.map +1 -1
- package/dist/mjs/types/Enum/Supervision.d.ts +2 -1
- package/dist/mjs/types/Enum/Supervision.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Supervision.js +7 -0
- package/dist/mjs/types/Enum/Supervision.js.map +1 -1
- package/dist/mjs/types/Interface/api/kilometricAllowance/ReadKilometricAllowance.d.ts +6 -0
- package/dist/mjs/types/Interface/api/kilometricAllowance/ReadKilometricAllowance.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/kilometricAllowance/ReadKilometricAllowance.js.map +1 -1
- package/dist/mjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js +2 -0
- package/dist/mjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js.map +1 -1
- package/dist/mjs/types/Interface/models/ICard.d.ts +0 -1
- package/dist/mjs/types/Interface/models/ICard.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ICard.js.map +1 -1
- package/dist/mjs/types/Interface/models/ICommercialOffer.d.ts +1 -0
- package/dist/mjs/types/Interface/models/ICommercialOffer.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ICommercialOffer.js.map +1 -1
- package/dist/mjs/types/Interface/models/ICustomerVat.d.ts +1 -0
- package/dist/mjs/types/Interface/models/ICustomerVat.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ICustomerVat.js.map +1 -1
- package/dist/mjs/types/Interface/models/ISociety.d.ts +2 -0
- package/dist/mjs/types/Interface/models/ISociety.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ISociety.js.map +1 -1
- package/dist/mjs/types/index.d.ts +1 -0
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +1 -0
- package/dist/mjs/types/index.js.map +1 -1
- package/dist/mjs/utils/commercialOffer.d.ts +1 -1
- package/dist/mjs/utils/commercialOffer.d.ts.map +1 -1
- package/dist/mjs/utils/commercialOffer.js +2 -2
- package/dist/mjs/utils/commercialOffer.js.map +1 -1
- package/dist/mjs/utils/email/templates/signature.d.ts.map +1 -1
- package/dist/mjs/utils/email/templates/signature.js +5 -3
- package/dist/mjs/utils/email/templates/signature.js.map +1 -1
- package/dist/mjs/utils/prestation.d.ts.map +1 -1
- package/dist/mjs/utils/prestation.js +6 -0
- package/dist/mjs/utils/prestation.js.map +1 -1
- package/package.json +1 -1
- package/ts/types/Enum/CityOfGreffe.ts +645 -0
- package/ts/types/Enum/PriceGridClementine.ts +32 -2
- package/ts/types/Enum/Supervision.ts +7 -0
- package/ts/types/Interface/api/kilometricAllowance/ReadKilometricAllowance.ts +7 -0
- package/ts/types/Interface/api/paymentExpectation/QueryPaymentExpectation.ts +2 -0
- package/ts/types/Interface/models/ICard.ts +0 -1
- package/ts/types/Interface/models/ICommercialOffer.ts +1 -0
- package/ts/types/Interface/models/ICustomerVat.ts +1 -0
- package/ts/types/Interface/models/ISociety.ts +2 -0
- package/ts/types/index.ts +1 -0
- package/ts/utils/commercialOffer.ts +2 -2
- package/ts/utils/email/templates/signature.ts +5 -3
- package/ts/utils/prestation.ts +6 -0
|
@@ -8,6 +8,7 @@ export enum Supervision {
|
|
|
8
8
|
TO_REVIEW = 10,
|
|
9
9
|
SUPERVISION_WAITING = 11,
|
|
10
10
|
ESTABLISH_REFUSED = 12,
|
|
11
|
+
WITHOUT_ATTESTATION = 13,
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
export const SupervisionStateList = [
|
|
@@ -65,4 +66,10 @@ export const SupervisionStateList = [
|
|
|
65
66
|
color: 'orange darken-1',
|
|
66
67
|
textColor: 'orange--text text--darken-1',
|
|
67
68
|
},
|
|
69
|
+
{
|
|
70
|
+
id: Supervision.WITHOUT_ATTESTATION,
|
|
71
|
+
label: 'Sans attestation',
|
|
72
|
+
color: 'orange lighten-1',
|
|
73
|
+
textColor: 'orange--text text--lighten-1',
|
|
74
|
+
},
|
|
68
75
|
];
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import { ISocietyVehicle } from '../../models/ISocietyVehicle';
|
|
2
2
|
|
|
3
|
+
export type ReadKilometricAllowanceByVehicleInfoPerYear = {
|
|
4
|
+
year: string;
|
|
5
|
+
amount: number;
|
|
6
|
+
kilometers: number;
|
|
7
|
+
};
|
|
8
|
+
|
|
3
9
|
export type ReadKilometricAllowanceByVehicle = {
|
|
4
10
|
vehicle: ISocietyVehicle;
|
|
5
11
|
amount: number;
|
|
6
12
|
kilometers: number;
|
|
13
|
+
informationsPerYear: ReadKilometricAllowanceByVehicleInfoPerYear[]
|
|
7
14
|
};
|
|
@@ -56,6 +56,7 @@ import {
|
|
|
56
56
|
import { IBrandType } from './IBrandType';
|
|
57
57
|
import { IFile } from './IFile';
|
|
58
58
|
import { IBusinessSector } from './IBusinessSector';
|
|
59
|
+
import { CityOfGreffe } from '../../Enum/CityOfGreffe';
|
|
59
60
|
// societies
|
|
60
61
|
export interface ISociety {
|
|
61
62
|
id?: number;
|
|
@@ -74,6 +75,7 @@ export interface ISociety {
|
|
|
74
75
|
city?: string | null;
|
|
75
76
|
zipCode?: string | null;
|
|
76
77
|
address?: string | null;
|
|
78
|
+
idCityOfGreffe?: CityOfGreffe | null;
|
|
77
79
|
siret?: string | null;
|
|
78
80
|
diaCode?: string | null;
|
|
79
81
|
socialCapital?: string | null;
|
package/ts/types/index.ts
CHANGED
|
@@ -353,6 +353,7 @@ export * from './Enum/AbsenceType';
|
|
|
353
353
|
export * from './Enum/Role';
|
|
354
354
|
export * from './Enum/RoleDetail';
|
|
355
355
|
export * from './Enum/MaritalStatus';
|
|
356
|
+
export * from './Enum/CityOfGreffe';
|
|
356
357
|
export * from './Enum/StatutsSection';
|
|
357
358
|
export * from './Enum/PrestationOption';
|
|
358
359
|
export * from './Enum/TimeCounterType';
|
|
@@ -27,8 +27,8 @@ const disableCommercialOffer = (idCurrentOffer: number, idOfferSelected: number[
|
|
|
27
27
|
else return false;
|
|
28
28
|
};
|
|
29
29
|
|
|
30
|
-
const getCommercialOfferList = (idCommercialOfferType: number, offerList: ICommercialOffer[]): ICommercialOffer[] => {
|
|
31
|
-
const commercialOfferList: ICommercialOffer[] = offerList.filter((offer) => offer.idCommercialOfferType === idCommercialOfferType);
|
|
30
|
+
const getCommercialOfferList = (idCommercialOfferType: number, societyBrand: number, offerList: ICommercialOffer[]): ICommercialOffer[] => {
|
|
31
|
+
const commercialOfferList: ICommercialOffer[] = offerList.filter((offer) => offer.idCommercialOfferType === idCommercialOfferType && offer.brand.includes(societyBrand));
|
|
32
32
|
return commercialOfferList.filter(offer => dayjs().isBetween(dayjs(offer.startDate), dayjs(offer.endDate), 'day', '[]'));
|
|
33
33
|
};
|
|
34
34
|
|
|
@@ -177,9 +177,11 @@ ${logoClementine}
|
|
|
177
177
|
src="https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_smileYourPlanet.png"
|
|
178
178
|
alt="Initiative Smile your planet" height="36"></a>
|
|
179
179
|
<% if(user.calendlyUrl) { %>
|
|
180
|
-
<a href="<%= user.calendlyUrl %>" style="display: inline-block; color:#6E6E71;" target="_blank"
|
|
181
|
-
|
|
182
|
-
|
|
180
|
+
<a href="<%= user.calendlyUrl %>" style="display: inline-block; color:#6E6E71;" target="_blank">
|
|
181
|
+
<img
|
|
182
|
+
src="https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_rdv_tel<%= brandName === 'Pourcentage' ? '_pourcentage' : '' %>.png"
|
|
183
|
+
alt="Demande de rdv téléphonique">
|
|
184
|
+
</a>
|
|
183
185
|
<% } %>
|
|
184
186
|
</p>
|
|
185
187
|
</td>
|
package/ts/utils/prestation.ts
CHANGED
|
@@ -220,6 +220,12 @@ const calculatePrestationPrice = (idPrestationList: number, prestationList: IPre
|
|
|
220
220
|
PrestationType.GESTION_JURIDIQUE,
|
|
221
221
|
PrestationType.COMPTA_PRO_COMPTASTART,
|
|
222
222
|
PrestationType.COMPTA_PRO_COMPTASTART_EXPRESS,
|
|
223
|
+
PrestationType.COMPTA_EI_KLEMS,
|
|
224
|
+
PrestationType.COMPTA_EI_KLEMS_EXPRESS,
|
|
225
|
+
PrestationType.COMPTA_MICRO_KLEMS,
|
|
226
|
+
PrestationType.COMPTA_MICRO_KLEMS_EXPRESS,
|
|
227
|
+
PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS,
|
|
228
|
+
PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS_EXPRESS,
|
|
223
229
|
].includes(idPrestationList)
|
|
224
230
|
) {
|
|
225
231
|
totalWithReduce = calculatePrestationPriceWithPriceGrid(idPrestationList, endDate, NbrMonth, turnover, rentsNumber, employeesNumber, associatesNumber, idTypeBrand, idVatRegime, pastBalanceSheet, isYearly, totalMonth, idTaxSystem);
|