@silexpert/core 1.2.93 → 1.2.94
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/Shine.d.ts +1 -2
- package/dist/cjs/api/resources/Shine.d.ts.map +1 -1
- package/dist/cjs/api/resources/Shine.js +0 -3
- package/dist/cjs/api/resources/Shine.js.map +1 -1
- package/dist/cjs/types/Enum/CommercialManagement.js +5 -5
- package/dist/cjs/types/Enum/CommercialManagement.js.map +1 -1
- package/dist/cjs/types/Enum/ReasonNotSubscribed.js +2 -2
- package/dist/cjs/types/Enum/ReasonNotSubscribed.js.map +1 -1
- package/dist/cjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.d.ts +1 -0
- package/dist/cjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.js +6 -0
- package/dist/cjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.js.map +1 -1
- package/dist/cjs/types/Interface/api/commercial/Query.d.ts +16 -0
- package/dist/cjs/types/Interface/api/commercial/Query.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/commercial/Query.js +93 -1
- package/dist/cjs/types/Interface/api/commercial/Query.js.map +1 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Create.d.ts +2 -0
- package/dist/cjs/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Create.js +11 -0
- package/dist/cjs/types/Interface/api/commercialManagement/Create.js.map +1 -1
- package/dist/cjs/types/Interface/api/config/ConfigType.d.ts +1 -0
- package/dist/cjs/types/Interface/api/config/ConfigType.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/config/ConfigType.js.map +1 -1
- package/dist/cjs/types/Interface/api/shine/ConnectResponse.d.ts +0 -1
- package/dist/cjs/types/Interface/api/shine/ConnectResponse.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/shine/ConnectResponse.js.map +1 -1
- package/dist/cjs/types/Interface/api/shine/CreateShine.d.ts +62 -50
- package/dist/cjs/types/Interface/api/shine/CreateShine.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/shine/CreateShine.js +25 -0
- package/dist/cjs/types/Interface/api/shine/CreateShine.js.map +1 -1
- package/dist/cjs/utils/commercialManagement/document.d.ts.map +1 -1
- package/dist/cjs/utils/commercialManagement/document.js +3 -1
- package/dist/cjs/utils/commercialManagement/document.js.map +1 -1
- package/dist/cjs/utils/commercialManagement/internationalization/choices.d.ts +1 -1
- package/dist/cjs/utils/commercialManagement/internationalization/choices.d.ts.map +1 -1
- package/dist/cjs/utils/commercialManagement/internationalization/choices.js +22 -0
- package/dist/cjs/utils/commercialManagement/internationalization/choices.js.map +1 -1
- package/dist/cjs/utils/commercialManagement/saleEmail.d.ts.map +1 -1
- package/dist/cjs/utils/commercialManagement/saleEmail.js +2 -0
- package/dist/cjs/utils/commercialManagement/saleEmail.js.map +1 -1
- package/dist/cjs/utils/commercialManagement/templates/body.js +1 -1
- package/dist/cjs/utils/commercialManagement/templates/body.js.map +1 -1
- package/dist/mjs/api/resources/Shine.d.ts +1 -2
- package/dist/mjs/api/resources/Shine.d.ts.map +1 -1
- package/dist/mjs/api/resources/Shine.js +0 -3
- package/dist/mjs/api/resources/Shine.js.map +1 -1
- package/dist/mjs/types/Enum/CommercialManagement.js +5 -5
- package/dist/mjs/types/Enum/CommercialManagement.js.map +1 -1
- package/dist/mjs/types/Enum/ReasonNotSubscribed.js +2 -2
- package/dist/mjs/types/Enum/ReasonNotSubscribed.js.map +1 -1
- package/dist/mjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.d.ts +1 -0
- package/dist/mjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.js +7 -0
- package/dist/mjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.js.map +1 -1
- package/dist/mjs/types/Interface/api/commercial/Query.d.ts +16 -0
- package/dist/mjs/types/Interface/api/commercial/Query.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/commercial/Query.js +106 -1
- package/dist/mjs/types/Interface/api/commercial/Query.js.map +1 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Create.d.ts +2 -0
- package/dist/mjs/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Create.js +13 -0
- package/dist/mjs/types/Interface/api/commercialManagement/Create.js.map +1 -1
- package/dist/mjs/types/Interface/api/config/ConfigType.d.ts +1 -0
- package/dist/mjs/types/Interface/api/config/ConfigType.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/config/ConfigType.js.map +1 -1
- package/dist/mjs/types/Interface/api/shine/ConnectResponse.d.ts +0 -1
- package/dist/mjs/types/Interface/api/shine/ConnectResponse.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/shine/ConnectResponse.js.map +1 -1
- package/dist/mjs/types/Interface/api/shine/CreateShine.d.ts +62 -50
- package/dist/mjs/types/Interface/api/shine/CreateShine.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/shine/CreateShine.js +24 -1
- package/dist/mjs/types/Interface/api/shine/CreateShine.js.map +1 -1
- package/dist/mjs/utils/commercialManagement/document.d.ts.map +1 -1
- package/dist/mjs/utils/commercialManagement/document.js +2 -0
- package/dist/mjs/utils/commercialManagement/document.js.map +1 -1
- package/dist/mjs/utils/commercialManagement/internationalization/choices.d.ts +1 -1
- package/dist/mjs/utils/commercialManagement/internationalization/choices.d.ts.map +1 -1
- package/dist/mjs/utils/commercialManagement/internationalization/choices.js +22 -0
- package/dist/mjs/utils/commercialManagement/internationalization/choices.js.map +1 -1
- package/dist/mjs/utils/commercialManagement/saleEmail.d.ts.map +1 -1
- package/dist/mjs/utils/commercialManagement/saleEmail.js +2 -0
- package/dist/mjs/utils/commercialManagement/saleEmail.js.map +1 -1
- package/dist/mjs/utils/commercialManagement/templates/body.js +1 -1
- package/dist/mjs/utils/commercialManagement/templates/body.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Shine.ts +1 -11
- package/ts/types/Enum/CommercialManagement.ts +5 -5
- package/ts/types/Enum/ReasonNotSubscribed.ts +2 -2
- package/ts/types/Interface/api/balanceSheet/UpdateBalanceSheet.ts +5 -0
- package/ts/types/Interface/api/commercial/Query.ts +78 -1
- package/ts/types/Interface/api/commercialManagement/Create.ts +9 -0
- package/ts/types/Interface/api/config/ConfigType.ts +1 -0
- package/ts/types/Interface/api/shine/ConnectResponse.ts +0 -1
- package/ts/types/Interface/api/shine/CreateShine.ts +63 -50
- package/ts/utils/commercialManagement/document.ts +2 -0
- package/ts/utils/commercialManagement/internationalization/choices.ts +24 -1
- package/ts/utils/commercialManagement/saleEmail.ts +2 -0
- package/ts/utils/commercialManagement/templates/body.ts +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { IsDate, IsOptional } from 'class-validator';
|
|
1
|
+
import { IsBoolean, IsDate, IsInt, IsOptional, IsString } from 'class-validator';
|
|
2
2
|
import { ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
3
4
|
|
|
4
5
|
export class QueryGetLeadByUser {
|
|
5
6
|
@ApiPropertyOptional()
|
|
@@ -12,3 +13,79 @@ export class QueryGetLeadByUser {
|
|
|
12
13
|
@IsDate()
|
|
13
14
|
endDate?: Date;
|
|
14
15
|
}
|
|
16
|
+
|
|
17
|
+
export class QueryGetListSocietiesFilteredBetweenDate {
|
|
18
|
+
@ApiPropertyOptional()
|
|
19
|
+
@IsOptional()
|
|
20
|
+
@IsString()
|
|
21
|
+
search?: string;
|
|
22
|
+
|
|
23
|
+
@ApiPropertyOptional()
|
|
24
|
+
@IsOptional()
|
|
25
|
+
@IsBoolean()
|
|
26
|
+
@ToBoolean()
|
|
27
|
+
isInCA?: boolean;
|
|
28
|
+
|
|
29
|
+
@ApiPropertyOptional()
|
|
30
|
+
@IsOptional()
|
|
31
|
+
@IsBoolean()
|
|
32
|
+
@ToBoolean()
|
|
33
|
+
isAdditionalSales?: boolean;
|
|
34
|
+
|
|
35
|
+
@ApiPropertyOptional()
|
|
36
|
+
@IsOptional()
|
|
37
|
+
@IsDate()
|
|
38
|
+
startDate?: Date;
|
|
39
|
+
|
|
40
|
+
@ApiPropertyOptional()
|
|
41
|
+
@IsOptional()
|
|
42
|
+
@IsDate()
|
|
43
|
+
endDate?: Date;
|
|
44
|
+
|
|
45
|
+
@ApiPropertyOptional()
|
|
46
|
+
@IsOptional()
|
|
47
|
+
@IsInt()
|
|
48
|
+
idUser?: number;
|
|
49
|
+
|
|
50
|
+
@ApiPropertyOptional()
|
|
51
|
+
@IsOptional()
|
|
52
|
+
@IsInt()
|
|
53
|
+
idSource?: number;
|
|
54
|
+
|
|
55
|
+
@ApiPropertyOptional()
|
|
56
|
+
@IsOptional()
|
|
57
|
+
@IsInt({ each: true })
|
|
58
|
+
idPrestationList?: number[];
|
|
59
|
+
|
|
60
|
+
@ApiPropertyOptional()
|
|
61
|
+
@IsOptional()
|
|
62
|
+
@IsInt({ each: true })
|
|
63
|
+
idOfferList?: number[];
|
|
64
|
+
|
|
65
|
+
@ApiPropertyOptional()
|
|
66
|
+
@IsOptional()
|
|
67
|
+
@IsInt({ each: true })
|
|
68
|
+
idState?: number[];
|
|
69
|
+
|
|
70
|
+
@ApiPropertyOptional()
|
|
71
|
+
@IsOptional()
|
|
72
|
+
@IsInt({ each: true })
|
|
73
|
+
idConstitutionState?: number[];
|
|
74
|
+
|
|
75
|
+
@ApiPropertyOptional()
|
|
76
|
+
@IsOptional()
|
|
77
|
+
@IsBoolean()
|
|
78
|
+
@ToBoolean()
|
|
79
|
+
goToFacturation?: boolean;
|
|
80
|
+
|
|
81
|
+
@ApiPropertyOptional()
|
|
82
|
+
@IsOptional()
|
|
83
|
+
@IsBoolean()
|
|
84
|
+
@ToBoolean()
|
|
85
|
+
goToOnboarding?: boolean;
|
|
86
|
+
|
|
87
|
+
@ApiPropertyOptional()
|
|
88
|
+
@IsOptional()
|
|
89
|
+
@IsInt()
|
|
90
|
+
idTypeBrand?: number;
|
|
91
|
+
}
|
|
@@ -389,6 +389,12 @@ export class CreateCommercialMail {
|
|
|
389
389
|
@IsBoolean()
|
|
390
390
|
@ToBoolean()
|
|
391
391
|
shouldSaveToCustomTemplate?: boolean;
|
|
392
|
+
|
|
393
|
+
@ApiPropertyOptional()
|
|
394
|
+
@IsOptional()
|
|
395
|
+
@IsBoolean()
|
|
396
|
+
@ToBoolean()
|
|
397
|
+
isTest?: boolean;
|
|
392
398
|
}
|
|
393
399
|
|
|
394
400
|
export class CreateCommercialMailWithMultipleFiles extends CreateCommercialMail {
|
|
@@ -511,6 +517,9 @@ export class CommercialDocumentInputs {
|
|
|
511
517
|
@ToBoolean()
|
|
512
518
|
shouldPayTaxAfterDebit?: boolean;
|
|
513
519
|
|
|
520
|
+
@ApiProperty()
|
|
521
|
+
idSaleDocumentTemplate?: number;
|
|
522
|
+
|
|
514
523
|
@ApiPropertyOptional({ description: 'Moyen de paiement' })
|
|
515
524
|
paymentType?: string | null;
|
|
516
525
|
}
|
|
@@ -21,94 +21,107 @@ export type ShineTokenInformations = {
|
|
|
21
21
|
exp: number;
|
|
22
22
|
};
|
|
23
23
|
|
|
24
|
+
export enum ShineTransactionCategory {
|
|
25
|
+
DEFAULT = 'DEFAULT',
|
|
26
|
+
BANKING = 'BANKING',
|
|
27
|
+
CASH = 'CASH',
|
|
28
|
+
CONTRIBUTIONS = 'CONTRIBUTIONS',
|
|
29
|
+
EQUIPMENT = 'EQUIPMENT',
|
|
30
|
+
FOOD = 'FOOD',
|
|
31
|
+
HOTEL = 'HOTEL',
|
|
32
|
+
LEGAL = 'LEGAL',
|
|
33
|
+
LOAN = 'LOAN',
|
|
34
|
+
MAINTENANCE = 'MAINTENANCE',
|
|
35
|
+
MISC = 'MISC',
|
|
36
|
+
PERSONAL = 'PERSONAL',
|
|
37
|
+
RENT = 'RENT',
|
|
38
|
+
SERVICES = 'SERVICES',
|
|
39
|
+
TAX = 'TAX',
|
|
40
|
+
TELECOM = 'TELECOM',
|
|
41
|
+
ALCOOL_TOBACCO = 'ALCOOL_TOBACCO',
|
|
42
|
+
TRANSPORTATION = 'TRANSPORTATION',
|
|
43
|
+
UTILITIES = 'UTILITIES',
|
|
44
|
+
VEHICLE = 'VEHICLE',
|
|
45
|
+
BETTING = 'BETTING',
|
|
46
|
+
}
|
|
47
|
+
|
|
24
48
|
export type ShineBankAccount = {
|
|
25
49
|
bankAccountId: string;
|
|
50
|
+
bic: string;
|
|
51
|
+
companyProfileId: string;
|
|
52
|
+
createdAt: number;
|
|
53
|
+
currency: string;
|
|
26
54
|
currentBalance: number;
|
|
27
55
|
currentBalanceFloat: number;
|
|
28
|
-
nextBalance: number;
|
|
29
|
-
nextBalanceFloat: number;
|
|
30
|
-
currency: string;
|
|
31
56
|
iban: string;
|
|
32
|
-
|
|
57
|
+
isHidden: boolean;
|
|
33
58
|
name: string;
|
|
59
|
+
nextBalance: number;
|
|
60
|
+
nextBalanceFloat: number;
|
|
34
61
|
ownerName: string;
|
|
35
|
-
trzWalletId: string;
|
|
36
|
-
type: string;
|
|
37
|
-
createdAt: number;
|
|
38
62
|
status: string;
|
|
39
|
-
|
|
40
|
-
companyProfileId: string;
|
|
63
|
+
type: string;
|
|
41
64
|
updatedAt: number;
|
|
42
|
-
closedAt: number | null;
|
|
43
|
-
lockedCustomMessage: string | null;
|
|
44
|
-
lockedReason: string | null;
|
|
45
|
-
isHidden: boolean;
|
|
46
|
-
illustrationName: string | null;
|
|
47
|
-
balanceFromProviderUpdatedAt: string;
|
|
48
65
|
};
|
|
49
66
|
|
|
50
67
|
export type ShineBankTransaction = {
|
|
51
|
-
|
|
68
|
+
authorizationReleasedAt: null;
|
|
69
|
+
bankAccountId: string;
|
|
70
|
+
bankTransferId: string;
|
|
71
|
+
bankTransferStatus: string | null;
|
|
72
|
+
cardPaymentStatus: string | null;
|
|
73
|
+
category: ShineTransactionCategory;
|
|
74
|
+
companyUserId: string | null;
|
|
52
75
|
createdAt: number;
|
|
53
76
|
currency: string;
|
|
77
|
+
description: string;
|
|
78
|
+
directDebitMandateId: string;
|
|
79
|
+
executedAt: null;
|
|
80
|
+
fee: number;
|
|
81
|
+
feeType: string;
|
|
82
|
+
hasReceipts: boolean;
|
|
83
|
+
initiatorName: null;
|
|
84
|
+
is3DS: boolean;
|
|
85
|
+
isHidden: boolean;
|
|
86
|
+
isOnAgentWallet: boolean;
|
|
87
|
+
isRefund: boolean;
|
|
88
|
+
note: string;
|
|
89
|
+
payinVirtualStatus: null;
|
|
54
90
|
paymentMethod: string;
|
|
55
|
-
|
|
56
|
-
|
|
91
|
+
refundTransactionId: null;
|
|
92
|
+
sentToSepaNetworkAt: null;
|
|
57
93
|
status: string;
|
|
58
94
|
title: string;
|
|
59
95
|
titleLatinised: string;
|
|
96
|
+
transactionAt: number;
|
|
97
|
+
transactionId: string;
|
|
98
|
+
transactionSettledAt: number;
|
|
99
|
+
transferPayinSenderName: string;
|
|
60
100
|
type: 'payout' | 'payin';
|
|
61
|
-
uid: string;
|
|
101
|
+
uid: string | null;
|
|
62
102
|
updatedAt: number;
|
|
63
103
|
value: number;
|
|
64
|
-
bankTransferId: string;
|
|
65
|
-
transactionAt: number;
|
|
66
|
-
fee: number;
|
|
67
|
-
transferPayinSenderName: string;
|
|
68
|
-
feeType: string;
|
|
69
|
-
description: string;
|
|
70
|
-
category: string;
|
|
71
|
-
isRefund: boolean;
|
|
72
|
-
directDebitMandateId: string;
|
|
73
|
-
bankAccountId: string;
|
|
74
|
-
transactionSettledAt: number;
|
|
75
|
-
providerCardPaymentId: null;
|
|
76
|
-
providerCardTransactionId: null;
|
|
77
|
-
cardPaymentStatus: null;
|
|
78
104
|
isPersonal: boolean;
|
|
79
|
-
hasReceipts: boolean;
|
|
80
|
-
note: string;
|
|
81
|
-
isHidden: boolean;
|
|
82
|
-
authorizationReleasedAt: null;
|
|
83
|
-
refundTransactionId: null;
|
|
84
|
-
executedAt: null;
|
|
85
|
-
companyUserId: null;
|
|
86
|
-
initiatorName: null;
|
|
87
|
-
remainingAuthorized: null;
|
|
88
|
-
expectedReleaseDate: null;
|
|
89
|
-
cardPaymentMethod: null;
|
|
90
|
-
paymentCurrency: string;
|
|
91
|
-
is3DS: boolean;
|
|
92
105
|
};
|
|
93
106
|
|
|
94
107
|
export type ShineTransactionReceipt = {
|
|
95
|
-
receiptId: string;
|
|
96
108
|
bucketName: string;
|
|
97
109
|
bucketPath: string;
|
|
110
|
+
category: string;
|
|
111
|
+
receiptId: string;
|
|
98
112
|
companyProfileId: string;
|
|
99
113
|
companyUserId: string;
|
|
100
114
|
createdByCompanyUserId: string | null;
|
|
101
|
-
createdAt: number;
|
|
102
|
-
category: string;
|
|
103
115
|
currency: string;
|
|
116
|
+
createdAt: number;
|
|
104
117
|
deleted: boolean;
|
|
105
118
|
fileRef: string;
|
|
106
119
|
processing: boolean;
|
|
107
120
|
sellerName: string;
|
|
108
121
|
sellerNameLatinised: string;
|
|
109
122
|
subtotal: number;
|
|
110
|
-
thumbUrl: string;
|
|
111
123
|
total: number;
|
|
124
|
+
thumbUrl: string;
|
|
112
125
|
transactionAt: number;
|
|
113
126
|
transactionId: string | null;
|
|
114
127
|
udpatedAt: number;
|
|
@@ -153,6 +153,8 @@ export function generateCommercialDocument(
|
|
|
153
153
|
products: data.products.map((p) => ({
|
|
154
154
|
...p,
|
|
155
155
|
comment: p.comment && typeof p.comment === 'string' ? p.comment?.replace(/\n/g, '<br/>') : null,
|
|
156
|
+
// @ts-expect-error
|
|
157
|
+
unitFormatted: internationalizationConsistency(locale, p.unitFormatted, 'unit'),
|
|
156
158
|
})),
|
|
157
159
|
vats: forcedVats ?? vats,
|
|
158
160
|
}),
|
|
@@ -8,7 +8,8 @@ type InternationalizationConsistencyKey =
|
|
|
8
8
|
| 'recoveryCost'
|
|
9
9
|
| 'paymentType'
|
|
10
10
|
| 'termsOfPayment'
|
|
11
|
-
| 'accountingCategory'
|
|
11
|
+
| 'accountingCategory'
|
|
12
|
+
| 'unit';
|
|
12
13
|
|
|
13
14
|
export const internationalizationChoices: InternationalizationChoicesType = {
|
|
14
15
|
fr: {
|
|
@@ -508,6 +509,28 @@ const internationalizationMatching: { [key: string]: { fr: string; en: string }[
|
|
|
508
509
|
en: 'Services provision and supply of goods',
|
|
509
510
|
},
|
|
510
511
|
],
|
|
512
|
+
unit: [
|
|
513
|
+
{ fr: 'art', en: 'art' },
|
|
514
|
+
{ fr: 'h', en: 'h' },
|
|
515
|
+
{ fr: 'j', en: 'd' },
|
|
516
|
+
{ fr: 'Kg', en: 'kg' },
|
|
517
|
+
{ fr: 'l', en: 'l' },
|
|
518
|
+
{ fr: 'km', en: 'km' },
|
|
519
|
+
{ fr: 'demi j', en: 'half d' },
|
|
520
|
+
{ fr: 'an', en: 'year' },
|
|
521
|
+
{ fr: 'sem', en: 'week' },
|
|
522
|
+
{ fr: 'mois', en: 'month' },
|
|
523
|
+
{ fr: 'trim', en: 'quart' },
|
|
524
|
+
{ fr: 'p', en: 'p' },
|
|
525
|
+
{ fr: 'f', en: 'f' },
|
|
526
|
+
{ fr: 'm2', en: 'm2' },
|
|
527
|
+
{ fr: 'm3', en: 'm3' },
|
|
528
|
+
{ fr: 'Mètre', en: 'meter' },
|
|
529
|
+
{ fr: 'abo', en: 'sub' },
|
|
530
|
+
{ fr: 'nuit', en: 'night' },
|
|
531
|
+
{ fr: 't', en: 't' },
|
|
532
|
+
{ fr: 'ha', en: 'ha' },
|
|
533
|
+
],
|
|
511
534
|
};
|
|
512
535
|
|
|
513
536
|
export const internationalizationConsistency = (
|
|
@@ -47,6 +47,8 @@ export function transformModelWithCharcodeToString(datas: InfoToUseType, templat
|
|
|
47
47
|
} else {
|
|
48
48
|
newString = splitString.replace(`[${char.name}]`, `${dataToInfer}`) + endOfString;
|
|
49
49
|
}
|
|
50
|
+
// then we remove the color of variable (tag) from the front
|
|
51
|
+
newString = newString.replace('style="color: rgb(131, 131, 132);"', '');
|
|
50
52
|
});
|
|
51
53
|
return newString;
|
|
52
54
|
}
|
|
@@ -115,7 +115,7 @@ export const bodyTemplate = `<html class="pdf-content">
|
|
|
115
115
|
<br/><%= languageTemplate.template.common.options.approval %> : <br/><br/><br/><br/>
|
|
116
116
|
<% } %>
|
|
117
117
|
|
|
118
|
-
<% if (cgv && (
|
|
118
|
+
<% if (cgv && (settings && settings.invoiceCgv) && (idEstimateInvoiceType === ${EstimateInvoiceType.FACTURE} || idEstimateInvoiceType === ${EstimateInvoiceType.ACOMPTE} || idEstimateInvoiceType === ${EstimateInvoiceType.AVOIR} || idEstimateInvoiceType === ${EstimateInvoiceType.RESTE} ) { %>
|
|
119
119
|
<br><div style="page-break-after:always;"></div>
|
|
120
120
|
<div id="WYSIWYG"><%- cgv %></div>
|
|
121
121
|
<% } %>
|