@silexpert/core 1.1.225 → 1.1.227
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/PaymentExpectationCustomer.d.ts +2 -1
- package/dist/cjs/api/resources/PaymentExpectationCustomer.d.ts.map +1 -1
- package/dist/cjs/api/resources/PaymentExpectationCustomer.js +3 -0
- package/dist/cjs/api/resources/PaymentExpectationCustomer.js.map +1 -1
- package/dist/cjs/api/resources/Revision.d.ts +2 -1
- package/dist/cjs/api/resources/Revision.d.ts.map +1 -1
- package/dist/cjs/api/resources/Revision.js +3 -0
- package/dist/cjs/api/resources/Revision.js.map +1 -1
- package/dist/cjs/types/Enum/JobTitle.d.ts +2 -1
- package/dist/cjs/types/Enum/JobTitle.d.ts.map +1 -1
- package/dist/cjs/types/Enum/JobTitle.js +6 -0
- package/dist/cjs/types/Enum/JobTitle.js.map +1 -1
- package/dist/cjs/types/Interface/api/OnBoarding.d.ts +1 -0
- package/dist/cjs/types/Interface/api/OnBoarding.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/OnBoarding.js +6 -0
- package/dist/cjs/types/Interface/api/OnBoarding.js.map +1 -1
- package/dist/cjs/types/Interface/api/paymentExpectationCustomer/CreatePaymentExpectationCustomer.d.ts +7 -0
- package/dist/cjs/types/Interface/api/paymentExpectationCustomer/CreatePaymentExpectationCustomer.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/paymentExpectationCustomer/CreatePaymentExpectationCustomer.js +42 -1
- package/dist/cjs/types/Interface/api/paymentExpectationCustomer/CreatePaymentExpectationCustomer.js.map +1 -1
- package/dist/cjs/types/Interface/api/revision/Query.d.ts +6 -0
- package/dist/cjs/types/Interface/api/revision/Query.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/revision/Query.js +26 -1
- package/dist/cjs/types/Interface/api/revision/Query.js.map +1 -1
- package/dist/cjs/types/Interface/models/ISocietyDetail.d.ts +4 -0
- package/dist/cjs/types/Interface/models/ISocietyDetail.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ISocietyDetail.js.map +1 -1
- package/dist/cjs/utils/checkup.d.ts +12 -0
- package/dist/cjs/utils/checkup.d.ts.map +1 -1
- package/dist/cjs/utils/checkup.js +41 -0
- package/dist/cjs/utils/checkup.js.map +1 -1
- package/dist/cjs/utils/email/templates/signature.d.ts.map +1 -1
- package/dist/cjs/utils/email/templates/signature.js +91 -59
- 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 +7 -2
- package/dist/cjs/utils/prestation.js.map +1 -1
- package/dist/mjs/api/resources/PaymentExpectationCustomer.d.ts +2 -1
- package/dist/mjs/api/resources/PaymentExpectationCustomer.d.ts.map +1 -1
- package/dist/mjs/api/resources/PaymentExpectationCustomer.js +3 -0
- package/dist/mjs/api/resources/PaymentExpectationCustomer.js.map +1 -1
- package/dist/mjs/api/resources/Revision.d.ts +2 -1
- package/dist/mjs/api/resources/Revision.d.ts.map +1 -1
- package/dist/mjs/api/resources/Revision.js +3 -0
- package/dist/mjs/api/resources/Revision.js.map +1 -1
- package/dist/mjs/types/Enum/JobTitle.d.ts +2 -1
- package/dist/mjs/types/Enum/JobTitle.d.ts.map +1 -1
- package/dist/mjs/types/Enum/JobTitle.js +6 -0
- package/dist/mjs/types/Enum/JobTitle.js.map +1 -1
- package/dist/mjs/types/Interface/api/OnBoarding.d.ts +1 -0
- package/dist/mjs/types/Interface/api/OnBoarding.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/OnBoarding.js +7 -0
- package/dist/mjs/types/Interface/api/OnBoarding.js.map +1 -1
- package/dist/mjs/types/Interface/api/paymentExpectationCustomer/CreatePaymentExpectationCustomer.d.ts +7 -0
- package/dist/mjs/types/Interface/api/paymentExpectationCustomer/CreatePaymentExpectationCustomer.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/paymentExpectationCustomer/CreatePaymentExpectationCustomer.js +45 -0
- package/dist/mjs/types/Interface/api/paymentExpectationCustomer/CreatePaymentExpectationCustomer.js.map +1 -1
- package/dist/mjs/types/Interface/api/revision/Query.d.ts +6 -0
- package/dist/mjs/types/Interface/api/revision/Query.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/revision/Query.js +28 -0
- package/dist/mjs/types/Interface/api/revision/Query.js.map +1 -1
- package/dist/mjs/types/Interface/models/ISocietyDetail.d.ts +4 -0
- package/dist/mjs/types/Interface/models/ISocietyDetail.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ISocietyDetail.js.map +1 -1
- package/dist/mjs/utils/checkup.d.ts +12 -0
- package/dist/mjs/utils/checkup.d.ts.map +1 -1
- package/dist/mjs/utils/checkup.js +41 -0
- package/dist/mjs/utils/checkup.js.map +1 -1
- package/dist/mjs/utils/email/templates/signature.d.ts.map +1 -1
- package/dist/mjs/utils/email/templates/signature.js +91 -59
- 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 +7 -2
- package/dist/mjs/utils/prestation.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/PaymentExpectationCustomer.ts +5 -0
- package/ts/api/resources/Revision.ts +5 -1
- package/ts/types/Enum/JobTitle.ts +6 -0
- package/ts/types/Interface/api/OnBoarding.ts +5 -0
- package/ts/types/Interface/api/paymentExpectationCustomer/CreatePaymentExpectationCustomer.ts +26 -0
- package/ts/types/Interface/api/revision/Query.ts +20 -0
- package/ts/types/Interface/models/ISocietyDetail.ts +4 -0
- package/ts/utils/checkup.ts +41 -0
- package/ts/utils/email/templates/signature.ts +91 -59
- package/ts/utils/prestation.ts +5 -1
package/ts/types/Interface/api/paymentExpectationCustomer/CreatePaymentExpectationCustomer.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { IsEmail, IsOptional, IsString } from 'class-validator';
|
|
2
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
1
3
|
import { IPaymentExpectationCustomer } from '../../models/IPaymentExpectationCustomer';
|
|
2
4
|
|
|
3
5
|
export class CreateSocietyPaymentExpectationCustomer implements Partial<Omit<IPaymentExpectationCustomer, 'paymentExpectationEstimateInvoice' | 'thirdParty'>> {
|
|
@@ -14,4 +16,28 @@ export class CreateSocietyPaymentExpectationCustomer implements Partial<Omit<IPa
|
|
|
14
16
|
idEstimateInvoice?: number | null | undefined;
|
|
15
17
|
|
|
16
18
|
idSociety: number;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export class SendPaymentExpectationCustomer {
|
|
22
|
+
@ApiProperty()
|
|
23
|
+
@IsEmail()
|
|
24
|
+
to: string;
|
|
25
|
+
|
|
26
|
+
@ApiPropertyOptional()
|
|
27
|
+
@IsEmail()
|
|
28
|
+
@IsOptional()
|
|
29
|
+
copy?: string;
|
|
30
|
+
|
|
31
|
+
@ApiPropertyOptional()
|
|
32
|
+
@IsEmail()
|
|
33
|
+
@IsOptional()
|
|
34
|
+
replyTo?: string;
|
|
35
|
+
|
|
36
|
+
@ApiProperty()
|
|
37
|
+
@IsString()
|
|
38
|
+
object: string;
|
|
39
|
+
|
|
40
|
+
@ApiProperty()
|
|
41
|
+
@IsString()
|
|
42
|
+
content: string;
|
|
17
43
|
}
|
|
@@ -357,4 +357,24 @@ export class GetNote {
|
|
|
357
357
|
gedFileType: number;
|
|
358
358
|
}
|
|
359
359
|
|
|
360
|
+
export class QueryRevisionExport {
|
|
361
|
+
@ApiProperty()
|
|
362
|
+
@IsString()
|
|
363
|
+
dateStart: string;
|
|
364
|
+
|
|
365
|
+
@ApiProperty()
|
|
366
|
+
@IsString()
|
|
367
|
+
dateEnd: string;
|
|
368
|
+
|
|
369
|
+
@ApiProperty()
|
|
370
|
+
@IsBoolean()
|
|
371
|
+
@ToBoolean()
|
|
372
|
+
ik: boolean;
|
|
373
|
+
|
|
374
|
+
@ApiProperty()
|
|
375
|
+
@IsBoolean()
|
|
376
|
+
@ToBoolean()
|
|
377
|
+
sales: boolean;
|
|
378
|
+
}
|
|
379
|
+
|
|
360
380
|
|
|
@@ -124,6 +124,10 @@ export interface ISocietyDetail {
|
|
|
124
124
|
CCASetup?: boolean | null;
|
|
125
125
|
usingExpenseReports?: boolean | null;
|
|
126
126
|
usingIK?: boolean | null;
|
|
127
|
+
unemploymentInsurance?: boolean | null;
|
|
128
|
+
hasMutualInsurance?: boolean | null;
|
|
129
|
+
hasProfessionalLiabilityInsurance?: boolean | null;
|
|
130
|
+
insuranceContractAudit?: boolean | null;
|
|
127
131
|
createdAt?: Date | null;
|
|
128
132
|
updatedAt?: Date | null;
|
|
129
133
|
|
package/ts/utils/checkup.ts
CHANGED
|
@@ -740,6 +740,47 @@ export const getCheckupDetailForm = (
|
|
|
740
740
|
// }
|
|
741
741
|
],
|
|
742
742
|
},
|
|
743
|
+
{
|
|
744
|
+
name: 'Assurance',
|
|
745
|
+
questions: [
|
|
746
|
+
{
|
|
747
|
+
component: 'FormInputSwitch', //'FormInputRadio',
|
|
748
|
+
text: 'Êtes-vous indemnisé par l’assurance chômage ?',
|
|
749
|
+
value: 'unemploymentInsurance',
|
|
750
|
+
meta: {
|
|
751
|
+
hideDetails: true,
|
|
752
|
+
},
|
|
753
|
+
lg: 6,
|
|
754
|
+
},
|
|
755
|
+
{
|
|
756
|
+
component: 'FormInputSwitch', //'FormInputRadio',
|
|
757
|
+
text: 'Avez-vous une couverture mutuelle ?',
|
|
758
|
+
value: 'hasMutualInsurance',
|
|
759
|
+
meta: {
|
|
760
|
+
hideDetails: true,
|
|
761
|
+
},
|
|
762
|
+
lg: 6,
|
|
763
|
+
},
|
|
764
|
+
{
|
|
765
|
+
component: 'FormInputSwitch', //'FormInputRadio',
|
|
766
|
+
text: 'Avez-vous une responsabilité civile professionnelle (RC Pro) ?',
|
|
767
|
+
value: 'hasProfessionalLiabilityInsurance',
|
|
768
|
+
meta: {
|
|
769
|
+
hideDetails: true,
|
|
770
|
+
},
|
|
771
|
+
lg: 6,
|
|
772
|
+
},
|
|
773
|
+
{
|
|
774
|
+
component: 'FormInputSwitch', //'FormInputRadio',
|
|
775
|
+
text: 'Souhaitez-vous faire un audit de vos contracts d’assurances ?',
|
|
776
|
+
value: 'insuranceContractAudit',
|
|
777
|
+
meta: {
|
|
778
|
+
hideDetails: true,
|
|
779
|
+
},
|
|
780
|
+
lg: 6,
|
|
781
|
+
},
|
|
782
|
+
],
|
|
783
|
+
},
|
|
743
784
|
{
|
|
744
785
|
name: 'Conclusion',
|
|
745
786
|
questions: [
|
|
@@ -14,7 +14,7 @@ const logoClementine = `<% if (commercialName === 'Clementine') { %><tr>
|
|
|
14
14
|
colspan="3"
|
|
15
15
|
class="logo"
|
|
16
16
|
style=""
|
|
17
|
-
width="
|
|
17
|
+
width="950">
|
|
18
18
|
<img
|
|
19
19
|
src="https://clementine-website.s3.eu-west-3.amazonaws.com/logo_2022.png"
|
|
20
20
|
alt="Logo"
|
|
@@ -51,9 +51,19 @@ const avatar = `<% if (!forceRole && user?.avatar?.token) { %>
|
|
|
51
51
|
const footer = `<% if(commercialName === 'Clementine') { %>
|
|
52
52
|
<tr>
|
|
53
53
|
<td
|
|
54
|
-
style="clear:both; padding-top:
|
|
54
|
+
style="clear:both; padding-top: 15px; font-size:17px; line-height:14px; color:#ADADAD; text-align: justify; font-family: Arial;"
|
|
55
55
|
colspan="4">
|
|
56
56
|
<table style="width: 100%" width="100%">
|
|
57
|
+
<tr>
|
|
58
|
+
<td colspan="7" style="padding-bottom: 12px">
|
|
59
|
+
<span style="text-align: left; text-decoration: none; color: #A0A1A6; white-space: nowrap; float: left;">
|
|
60
|
+
Une question ? Découvrez votre <a href="https://www.clementine.fr/aide/" style="color: #FF7E3C">centre d'aide</a>
|
|
61
|
+
</span>
|
|
62
|
+
<span style="text-align: right; text-decoration: none; color: #A0A1A6; white-space: nowrap; float: right;">
|
|
63
|
+
Jusqu’à 500€ avec notre <a href="https://www.clementine.fr/parrainage/?utm_source=signature&utm_medium=email&utm_campaign=signature&utm_content=cta" style="color: #FF7E3C">programme de parrainage</a>
|
|
64
|
+
</span>
|
|
65
|
+
</td>
|
|
66
|
+
</tr>
|
|
57
67
|
<tr>
|
|
58
68
|
<td style="padding:0 10px 0 0" width="120">
|
|
59
69
|
<a href="https://app.clementine.fr/" target="_blank" style="text-decoration: none; color: #6E6E71; white-space: nowrap;">
|
|
@@ -65,13 +75,24 @@ const footer = `<% if(commercialName === 'Clementine') { %>
|
|
|
65
75
|
</a>
|
|
66
76
|
</td>
|
|
67
77
|
<td style="padding:0 10px 0 0" width="170">
|
|
68
|
-
<a href="mailto:<%= supportMail %>" target="_blank" style="text-decoration: none; color: #6E6E71; white-space: nowrap;">
|
|
78
|
+
<!-- <a href="mailto:<%= supportMail %>" target="_blank" style="text-decoration: none; color: #6E6E71; white-space: nowrap;">
|
|
69
79
|
<img
|
|
70
80
|
src="https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_support2.png"
|
|
71
81
|
style="vertical-align: text-top;"
|
|
72
82
|
width="17"
|
|
73
83
|
alt="Support technique"> Support technique
|
|
74
|
-
</a
|
|
84
|
+
</a>-->
|
|
85
|
+
</td>
|
|
86
|
+
<td style="text-align: right; vertical-align: middle; color: #6E6E71" width="430">
|
|
87
|
+
<!--<span>Télécharger l'app</span>
|
|
88
|
+
<a href="https://apps.apple.com/fr/app/clementine/id1119493780" target="_blank" style="vertical-align: middle; margin-left: 10px"><img
|
|
89
|
+
src="https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_appstore.png"
|
|
90
|
+
alt="App Store"
|
|
91
|
+
style="width: 20px"></a>
|
|
92
|
+
<a href="https://play.google.com/store/apps/details?id=com.clementine.myclementine&hl=fr" target="_blank" style="vertical-align: middle; margin-left: 10px"><img
|
|
93
|
+
src="https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_playstore.png"
|
|
94
|
+
alt="Play Store"
|
|
95
|
+
style="width: 20px"></a>-->
|
|
75
96
|
</td>
|
|
76
97
|
<td style="padding:0 5px 0 0" width="24">
|
|
77
98
|
<a href="https://www.youtube.com/channel/UCVnCpcLdRwuYBLvAphHsvig/" target="_blank" style="vertical-align: middle;"><img
|
|
@@ -91,27 +112,6 @@ const footer = `<% if(commercialName === 'Clementine') { %>
|
|
|
91
112
|
alt="Instagram"
|
|
92
113
|
style="width: 20px"></a>
|
|
93
114
|
</td>
|
|
94
|
-
<td style="text-align: right; vertical-align: middle; color: #6E6E71" width="430">
|
|
95
|
-
<span>Télécharger l'app</span>
|
|
96
|
-
<a href="https://apps.apple.com/fr/app/clementine/id1119493780" target="_blank" style="vertical-align: middle; margin-left: 10px"><img
|
|
97
|
-
src="https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_appstore.png"
|
|
98
|
-
alt="App Store"
|
|
99
|
-
style="width: 20px"></a>
|
|
100
|
-
<a href="https://play.google.com/store/apps/details?id=com.clementine.myclementine&hl=fr" target="_blank" style="vertical-align: middle; margin-left: 10px"><img
|
|
101
|
-
src="https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_playstore.png"
|
|
102
|
-
alt="Play Store"
|
|
103
|
-
style="width: 20px"></a>
|
|
104
|
-
</td>
|
|
105
|
-
</tr>
|
|
106
|
-
<tr>
|
|
107
|
-
<td colspan="7" style="padding-top: 12px">
|
|
108
|
-
<span style="text-align: left; text-decoration: none; color: #A0A1A6; white-space: nowrap; float: left;">
|
|
109
|
-
Une question ? Découvrez votre <a href="https://www.clementine.fr/aide/" style="color: #FF7E3C">centre d'aide</a>
|
|
110
|
-
</span>
|
|
111
|
-
<span style="text-align: right; text-decoration: none; color: #A0A1A6; white-space: nowrap; float: right;">
|
|
112
|
-
Jusqu’à 500€ avec notre <a href="https://www.clementine.fr/parrainage/?utm_source=signature&utm_medium=email&utm_campaign=signature&utm_content=cta" style="color: #FF7E3C">programme de parrainage</a>
|
|
113
|
-
</span>
|
|
114
|
-
</td>
|
|
115
115
|
</tr>
|
|
116
116
|
</table>
|
|
117
117
|
</td>
|
|
@@ -119,7 +119,7 @@ const footer = `<% if(commercialName === 'Clementine') { %>
|
|
|
119
119
|
<% } else if(commercialName === 'Pourcentage') { %>
|
|
120
120
|
<tr>
|
|
121
121
|
<td
|
|
122
|
-
style="clear:both; padding-top:
|
|
122
|
+
style="clear:both; padding-top: 15px; font-size:17px; line-height:14px; color:#ADADAD; text-align: justify; font-family: Arial;"
|
|
123
123
|
colspan="4">
|
|
124
124
|
<table style="width: 100%" width="100%">
|
|
125
125
|
<tr>
|
|
@@ -133,7 +133,7 @@ const footer = `<% if(commercialName === 'Clementine') { %>
|
|
|
133
133
|
</a>
|
|
134
134
|
</td>
|
|
135
135
|
<td style="text-align: right; vertical-align: middle; color: #6E6E71" width="430">
|
|
136
|
-
<span>Télécharger l'app</span>
|
|
136
|
+
<!-- <span>Télécharger l'app</span>
|
|
137
137
|
<a href="https://apps.apple.com/fr/app/pourcentage-fr/id1631156043" target="_blank" style="vertical-align: middle; margin-left: 10px"><img
|
|
138
138
|
src="https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_appstore.png"
|
|
139
139
|
alt="App Store"
|
|
@@ -141,7 +141,7 @@ const footer = `<% if(commercialName === 'Clementine') { %>
|
|
|
141
141
|
<a href="https://play.google.com/store/apps/details?id=com.clementine.pourcentage" target="_blank" style="vertical-align: middle; margin-left: 10px"><img
|
|
142
142
|
src="https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_playstore.png"
|
|
143
143
|
alt="Play Store"
|
|
144
|
-
style="width: 20px"></a>
|
|
144
|
+
style="width: 20px"></a> -->
|
|
145
145
|
</td>
|
|
146
146
|
</tr>
|
|
147
147
|
</table>
|
|
@@ -154,7 +154,7 @@ export const signatureTemplate = `${newIban}<table
|
|
|
154
154
|
border="0"
|
|
155
155
|
cellpadding="0"
|
|
156
156
|
cellspacing="0"
|
|
157
|
-
width="
|
|
157
|
+
width="950"
|
|
158
158
|
class="signatureClementine">
|
|
159
159
|
|
|
160
160
|
${logoClementine}
|
|
@@ -164,59 +164,91 @@ ${logoClementine}
|
|
|
164
164
|
<td
|
|
165
165
|
class="infos"
|
|
166
166
|
style=" padding: 20px 0 20px 30px;font-size: 17px; font-family: Arial; color:#000"
|
|
167
|
-
width="
|
|
167
|
+
width="390"
|
|
168
168
|
colspan="2">
|
|
169
169
|
<table
|
|
170
170
|
border="0"
|
|
171
171
|
cellpadding="0"
|
|
172
172
|
cellspacing="0"
|
|
173
|
-
width="
|
|
173
|
+
width="390">
|
|
174
174
|
<tr>
|
|
175
|
-
<td width="
|
|
175
|
+
<td width="390">
|
|
176
176
|
<p style="font-size: 17px; margin:0px 0; padding:0">
|
|
177
177
|
<strong><span style="color:<%= primaryColor %>; font-weight: bold;"><%= user?.firstname ?? '' %> <%= user?.lastname ?? '' %></span></strong>
|
|
178
178
|
</p>
|
|
179
179
|
|
|
180
180
|
<% if(roleSignature) { %>
|
|
181
181
|
<p style="font-size: 17px; margin:0px 0; padding:0">
|
|
182
|
-
<span style="color: #6E6E71; font-weight: bold;"><%= roleSignature %></span
|
|
182
|
+
<span style="color: #6E6E71; font-weight: bold;"><%= roleSignature %></span>
|
|
183
183
|
</p>
|
|
184
184
|
<% } %>
|
|
185
185
|
</td>
|
|
186
186
|
</tr>
|
|
187
187
|
</table>
|
|
188
|
-
|
|
189
|
-
<p style="margin:
|
|
188
|
+
<p style="margin:16px 0; color:#6E6E71; border-top: 2px solid #6E6E71; width: 100px; opacity: 0.2"><!-- --></p>
|
|
189
|
+
<p style="margin:0px 0; padding:0 0 4px; color:#6E6E71;">
|
|
190
|
+
Standard : <%= standardPhoneSignature %><br/>
|
|
191
|
+
<% if(phoneSignature && phoneSignature !== standardPhoneSignature) { %>
|
|
192
|
+
Ligne directe : <%- phoneSignature %><br/>
|
|
193
|
+
<% } %>
|
|
194
|
+
Nos horaires : <%= horaires %>
|
|
195
|
+
</p>
|
|
190
196
|
</td>
|
|
191
197
|
|
|
192
198
|
<td class="infos" style="padding: 20px 20px 20px 0px; font-size: 17px; font-family: Arial; color:#000; <%= !user.calendlyUrl ? 'vertical-align: top;' : '' %>"
|
|
193
199
|
width="370">
|
|
194
|
-
|
|
195
|
-
<
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
200
|
+
<% if(['Clementine', 'Pourcentage', 'Comptalib'].includes(commercialName)) { %>
|
|
201
|
+
<table
|
|
202
|
+
border="0"
|
|
203
|
+
cellpadding="0"
|
|
204
|
+
cellspacing="0"
|
|
205
|
+
width="350">
|
|
206
|
+
<tr>
|
|
207
|
+
<td width="230">
|
|
208
|
+
<!-- image Télécharger l'app mobile -->
|
|
209
|
+
<img
|
|
210
|
+
src="https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_download_app<%= commercialName === 'Pourcentage' ? '_pourcentage' : '' %><%= commercialName === 'Comptalib' ? '_comptalib' : '' %>.png"
|
|
211
|
+
alt="Télécharger l'application mobile"
|
|
212
|
+
style="width: 152px; float:right">
|
|
213
|
+
|
|
214
|
+
<p style="float:right; margin-right: 45px">
|
|
215
|
+
<span style="margin:0; padding:0 0 4px; color:#6E6E71;">Disponible sur<br/></span>
|
|
216
|
+
<a href="https://apps.apple.com/fr/app/clementine/id1119493780" target="_blank" style="vertical-align: middle;"><img
|
|
217
|
+
src="https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_appstore.png"
|
|
218
|
+
alt="App Store"
|
|
219
|
+
style="width: 20px"></a>
|
|
220
|
+
<a href="https://play.google.com/store/apps/details?id=com.clementine.myclementine&hl=fr" target="_blank" style="vertical-align: middle; margin-left: 10px"><img
|
|
221
|
+
src="https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_playstore.png"
|
|
222
|
+
alt="Play Store"
|
|
223
|
+
style="width: 20px"></a>
|
|
224
|
+
</p>
|
|
225
|
+
</td>
|
|
226
|
+
<td width="120">
|
|
227
|
+
<!-- QR Code -->
|
|
228
|
+
<img
|
|
229
|
+
src="https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_qrcode<%= commercialName === 'Pourcentage' ? '_pourcentage' : '' %><%= commercialName === 'Comptalib' ? '_comptalib' : '' %>.png"
|
|
230
|
+
style="width:128px"
|
|
205
231
|
alt="Prenez rendez-vous ici !">
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
232
|
+
</td>
|
|
233
|
+
</tr>
|
|
234
|
+
<tr>
|
|
235
|
+
<td colspan="2">
|
|
236
|
+
<p style="margin:0; padding:0px 0 4px; color:#6E6E71; text-align: right">
|
|
237
|
+
<a href="https://www.smileyourpla.net/" style="display: inline-block; color:#6E6E71;" target="_blank"><img
|
|
238
|
+
src="https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_smileYourPlanet.png"
|
|
239
|
+
alt="Initiative Smile your planet" height="36"></a>
|
|
240
|
+
<% if(user.calendlyUrl) { %>
|
|
241
|
+
<a href="<%= user.calendlyUrl %>" style="display: inline-block; color:#6E6E71;" target="_blank">
|
|
242
|
+
<img
|
|
243
|
+
src="https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_rdv_tel<%= commercialName === 'Pourcentage' ? '_pourcentage' : '' %>.png"
|
|
244
|
+
alt="Demande de rdv téléphonique">
|
|
245
|
+
</a>
|
|
246
|
+
<% } %>
|
|
247
|
+
</p>
|
|
248
|
+
</td>
|
|
249
|
+
</tr>
|
|
250
|
+
</table>
|
|
218
251
|
<% } %>
|
|
219
|
-
</p>
|
|
220
252
|
</td>
|
|
221
253
|
</tr>
|
|
222
254
|
|
package/ts/utils/prestation.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IExercice, IPrestation, IPrestationList } from '../types';
|
|
2
2
|
import { intersection } from './noLodash';
|
|
3
3
|
import { PrestationDetail, PrestationType } from '../types/Enum/PrestationType';
|
|
4
|
+
import { LegalFormTypeEnum } from '../types/Enum/LegalForm';
|
|
4
5
|
import { PrestationOptionType, PrestationOption } from '../types/Enum/PrestationOption';
|
|
5
6
|
import { PriceGridClementine } from '../types/Enum/PriceGridClementine';
|
|
6
7
|
import { PriceGridPourcentage } from '../types/Enum/PriceGridPourcentage';
|
|
@@ -364,7 +365,10 @@ const calculatePrestationPrice = (
|
|
|
364
365
|
}
|
|
365
366
|
totalPrestation += (OptionTotalPrice ? OptionTotalPrice : 0);
|
|
366
367
|
|
|
367
|
-
if (isWithApplicationFees)
|
|
368
|
+
if (isWithApplicationFees) {
|
|
369
|
+
if (idLegalForm === LegalFormTypeEnum.SCI) totalPrestation += 150;
|
|
370
|
+
else totalPrestation += 50;
|
|
371
|
+
}
|
|
368
372
|
|
|
369
373
|
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€' : ''}`;
|
|
370
374
|
|