@silexpert/core 1.2.69 → 1.2.71
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 +7 -1
- package/dist/cjs/api/resources/ExercicePrestation.d.ts.map +1 -1
- package/dist/cjs/api/resources/ExercicePrestation.js +8 -0
- package/dist/cjs/api/resources/ExercicePrestation.js.map +1 -1
- package/dist/cjs/types/Enum/CommercialManagement.d.ts +1 -0
- package/dist/cjs/types/Enum/CommercialManagement.d.ts.map +1 -1
- package/dist/cjs/types/Enum/CommercialManagement.js +5 -0
- package/dist/cjs/types/Enum/CommercialManagement.js.map +1 -1
- package/dist/cjs/types/Interface/api/balanceSheet/Query.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/balanceSheet/Query.js +2 -0
- package/dist/cjs/types/Interface/api/balanceSheet/Query.js.map +1 -1
- package/dist/cjs/types/Interface/api/exercicePrestation/Query.d.ts +6 -0
- package/dist/cjs/types/Interface/api/exercicePrestation/Query.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/exercicePrestation/Query.js +28 -1
- package/dist/cjs/types/Interface/api/exercicePrestation/Query.js.map +1 -1
- package/dist/cjs/types/Interface/api/toDoExpress/Query.d.ts +13 -6
- package/dist/cjs/types/Interface/api/toDoExpress/Query.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/toDoExpress/Query.js +59 -12
- package/dist/cjs/types/Interface/api/toDoExpress/Query.js.map +1 -1
- package/dist/cjs/utils/commercialManagement/templates/common.js +1 -1
- package/dist/cjs/utils/commercialManagement/templates/common.js.map +1 -1
- package/dist/cjs/utils/vat/centuries.js +1 -1
- package/dist/cjs/utils/vat/centuries.js.map +1 -1
- package/dist/mjs/api/resources/ExercicePrestation.d.ts +7 -1
- package/dist/mjs/api/resources/ExercicePrestation.d.ts.map +1 -1
- package/dist/mjs/api/resources/ExercicePrestation.js +8 -0
- package/dist/mjs/api/resources/ExercicePrestation.js.map +1 -1
- package/dist/mjs/types/Enum/CommercialManagement.d.ts +1 -0
- package/dist/mjs/types/Enum/CommercialManagement.d.ts.map +1 -1
- package/dist/mjs/types/Enum/CommercialManagement.js +5 -0
- package/dist/mjs/types/Enum/CommercialManagement.js.map +1 -1
- package/dist/mjs/types/Interface/api/balanceSheet/Query.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/balanceSheet/Query.js +2 -0
- package/dist/mjs/types/Interface/api/balanceSheet/Query.js.map +1 -1
- package/dist/mjs/types/Interface/api/exercicePrestation/Query.d.ts +6 -0
- package/dist/mjs/types/Interface/api/exercicePrestation/Query.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/exercicePrestation/Query.js +31 -1
- package/dist/mjs/types/Interface/api/exercicePrestation/Query.js.map +1 -1
- package/dist/mjs/types/Interface/api/toDoExpress/Query.d.ts +13 -6
- package/dist/mjs/types/Interface/api/toDoExpress/Query.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/toDoExpress/Query.js +66 -12
- package/dist/mjs/types/Interface/api/toDoExpress/Query.js.map +1 -1
- package/dist/mjs/utils/commercialManagement/templates/common.js +1 -1
- package/dist/mjs/utils/commercialManagement/templates/common.js.map +1 -1
- package/dist/mjs/utils/vat/centuries.js +1 -1
- package/dist/mjs/utils/vat/centuries.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/ExercicePrestation.ts +10 -1
- package/ts/types/Enum/CommercialManagement.ts +6 -1
- package/ts/types/Interface/api/balanceSheet/Query.ts +2 -0
- package/ts/types/Interface/api/exercicePrestation/Query.ts +23 -1
- package/ts/types/Interface/api/toDoExpress/Query.ts +52 -12
- package/ts/utils/commercialManagement/templates/common.ts +1 -1
- package/ts/utils/vat/centuries.ts +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IsArray, IsObject } from 'class-validator';
|
|
1
|
+
import { IsArray, IsInt, IsObject, IsOptional } from 'class-validator';
|
|
2
2
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
3
|
import { ICommercialOffer } from '../../models/ICommercialOffer';
|
|
4
4
|
import { IExercicePrestation } from '../../models/IExercicePrestation';
|
|
@@ -12,3 +12,25 @@ export class QueryCreateExercicePrestation {
|
|
|
12
12
|
@IsArray()
|
|
13
13
|
commercialOffers: ICommercialOffer[];
|
|
14
14
|
}
|
|
15
|
+
|
|
16
|
+
export class QueryGetExercicePrestation {
|
|
17
|
+
@ApiPropertyOptional()
|
|
18
|
+
@IsOptional()
|
|
19
|
+
@IsInt()
|
|
20
|
+
id?: number;
|
|
21
|
+
|
|
22
|
+
@ApiPropertyOptional()
|
|
23
|
+
@IsOptional()
|
|
24
|
+
@IsInt()
|
|
25
|
+
idBalanceSheet?: number;
|
|
26
|
+
|
|
27
|
+
@ApiPropertyOptional()
|
|
28
|
+
@IsOptional()
|
|
29
|
+
@IsInt()
|
|
30
|
+
idExercice?: number;
|
|
31
|
+
|
|
32
|
+
@ApiPropertyOptional()
|
|
33
|
+
@IsOptional()
|
|
34
|
+
@IsInt()
|
|
35
|
+
idPrestation?: number;
|
|
36
|
+
}
|
|
@@ -61,13 +61,19 @@ export class QueryToDoBalanceSheetPaginated extends RequiredQueryPaginate {
|
|
|
61
61
|
|
|
62
62
|
@ApiPropertyOptional()
|
|
63
63
|
@IsOptional()
|
|
64
|
-
@IsInt()
|
|
65
|
-
balanceSheetState?: number;
|
|
64
|
+
@IsInt({ each: true })
|
|
65
|
+
balanceSheetState?: number[];
|
|
66
66
|
|
|
67
67
|
@ApiPropertyOptional()
|
|
68
68
|
@IsOptional()
|
|
69
|
-
@IsInt()
|
|
70
|
-
supervisionState?: number;
|
|
69
|
+
@IsInt({ each: true })
|
|
70
|
+
supervisionState?: number[];
|
|
71
|
+
|
|
72
|
+
@ApiPropertyOptional()
|
|
73
|
+
@IsOptional()
|
|
74
|
+
@IsBoolean()
|
|
75
|
+
@ToBoolean()
|
|
76
|
+
attributionState?: boolean;
|
|
71
77
|
|
|
72
78
|
@ApiPropertyOptional()
|
|
73
79
|
@IsOptional()
|
|
@@ -80,6 +86,17 @@ export class QueryToDoBalanceSheetPaginated extends RequiredQueryPaginate {
|
|
|
80
86
|
@IsBoolean()
|
|
81
87
|
@ToBoolean()
|
|
82
88
|
balance?: boolean;
|
|
89
|
+
|
|
90
|
+
@ApiPropertyOptional()
|
|
91
|
+
@IsOptional()
|
|
92
|
+
@IsInt({ each: true })
|
|
93
|
+
idComptaType?: number[];
|
|
94
|
+
|
|
95
|
+
@ApiPropertyOptional()
|
|
96
|
+
@IsOptional()
|
|
97
|
+
@IsBoolean()
|
|
98
|
+
@ToBoolean()
|
|
99
|
+
balanceSheetLate?: boolean;
|
|
83
100
|
}
|
|
84
101
|
|
|
85
102
|
export class QueryToDoBalanceSheetStats {
|
|
@@ -136,13 +153,19 @@ export class QueryToDoBalanceSheetStats {
|
|
|
136
153
|
|
|
137
154
|
@ApiPropertyOptional()
|
|
138
155
|
@IsOptional()
|
|
139
|
-
@IsInt()
|
|
140
|
-
balanceSheetState?: number;
|
|
156
|
+
@IsInt({ each: true })
|
|
157
|
+
balanceSheetState?: number[];
|
|
141
158
|
|
|
142
159
|
@ApiPropertyOptional()
|
|
143
160
|
@IsOptional()
|
|
144
|
-
@IsInt()
|
|
145
|
-
supervisionState?: number;
|
|
161
|
+
@IsInt({ each: true })
|
|
162
|
+
supervisionState?: number[];
|
|
163
|
+
|
|
164
|
+
@ApiPropertyOptional()
|
|
165
|
+
@IsOptional()
|
|
166
|
+
@IsBoolean()
|
|
167
|
+
@ToBoolean()
|
|
168
|
+
attributionState?: boolean;
|
|
146
169
|
|
|
147
170
|
@ApiPropertyOptional()
|
|
148
171
|
@IsOptional()
|
|
@@ -155,6 +178,17 @@ export class QueryToDoBalanceSheetStats {
|
|
|
155
178
|
@IsBoolean()
|
|
156
179
|
@ToBoolean()
|
|
157
180
|
balance?: boolean;
|
|
181
|
+
|
|
182
|
+
@ApiPropertyOptional()
|
|
183
|
+
@IsOptional()
|
|
184
|
+
@IsInt({ each: true })
|
|
185
|
+
idComptaType?: number[];
|
|
186
|
+
|
|
187
|
+
@ApiPropertyOptional()
|
|
188
|
+
@IsOptional()
|
|
189
|
+
@IsBoolean()
|
|
190
|
+
@ToBoolean()
|
|
191
|
+
balanceSheetLate?: boolean;
|
|
158
192
|
}
|
|
159
193
|
|
|
160
194
|
export class QueryToDoBalanceSheetGetExercicesSociety {
|
|
@@ -180,13 +214,19 @@ export class QueryToDoBalanceSheetGetExercicesSociety {
|
|
|
180
214
|
|
|
181
215
|
@ApiPropertyOptional()
|
|
182
216
|
@IsOptional()
|
|
183
|
-
@IsInt()
|
|
184
|
-
balanceSheetState?: number;
|
|
217
|
+
@IsInt({ each: true })
|
|
218
|
+
balanceSheetState?: number[];
|
|
185
219
|
|
|
186
220
|
@ApiPropertyOptional()
|
|
187
221
|
@IsOptional()
|
|
188
|
-
@IsInt()
|
|
189
|
-
supervisionState?: number;
|
|
222
|
+
@IsInt({ each: true })
|
|
223
|
+
supervisionState?: number[];
|
|
224
|
+
|
|
225
|
+
@ApiPropertyOptional()
|
|
226
|
+
@IsOptional()
|
|
227
|
+
@IsBoolean()
|
|
228
|
+
@ToBoolean()
|
|
229
|
+
attributionState?: boolean;
|
|
190
230
|
|
|
191
231
|
@ApiPropertyOptional()
|
|
192
232
|
@IsOptional()
|
|
@@ -9,7 +9,7 @@ export class CommercialDocumentCommonHTML {
|
|
|
9
9
|
<% } %>`;
|
|
10
10
|
|
|
11
11
|
footer = `<div style="font-size: 8px !important; color: #838384; text-align: center; padding: 0 40px; display: block; width: 100%;">
|
|
12
|
-
<% if (freeText) { %><%- freeText %><br/><br/><% } %><% if (accountingCategoryFormatted) {%><%= accountingCategoryFormatted %> | <%}%><% if(marginVats.length > 0) { %><%= languageTemplate.template.common.footer.marginVat %> - <% marginVats.forEach(function(v, index) { %><%= v %> - <% }) %><%= languageTemplate.template.common.footer.legalVatMention %> | <% } %><% if(penalties || compensation || discount) { %><%= penalties ? languageTemplate.template.common.footer.penalties + ' : ' + penalties : ''%><%= penalties && compensation ? ' | ' : ''%><%= compensation ? languageTemplate.template.common.footer.recoveryCosts + ' : ' + compensation + ' ' : '' %><%= (compensation || penalties) && discount ? ' | ' : '' %><%= discount ? discount + ' ' : '' %><%= shouldPayTaxAfterDebit ? "| " + languageTemplate.template.common.footer.shouldPayTaxAfterDebit : '' %><% if(name || legalForm || capital || siren || rcs) {%><br/><br/><% } %><% } %><%= name %><%= name && (legalForm || capital || siren || rcs) ? ', ' : ''%><%= legalForm %><%= capital ? ' ' + languageTemplate.template.common.footer.capital + ' ' + capitalFormatted + ' €' : '' %><%= siren ? ' ' + languageTemplate.template.common.footer.siren + ' ' + siren : ''%><%= rcs ? '| RCS ' + rcs : ''%><% if (vatCode || nafCode) {%><br/><% } %><%= vatCode ? languageTemplate.template.common.footer.vatCode + ' ' +vatCode : ''%><% if(vatCode && nafCode){%>|<%}%><%= nafCode ? 'APE '+nafCode : '' %>
|
|
12
|
+
<% if (freeText) { %><%- freeText %><br/><br/><% } %><% if (accountingCategoryFormatted) {%><%= accountingCategoryFormatted %> | <%}%><% if(marginVats.length > 0) { %><%= languageTemplate.template.common.footer.marginVat %> - <% marginVats.forEach(function(v, index) { %><%= v %> - <% }) %><%= languageTemplate.template.common.footer.legalVatMention %> | <% } %><% if(penalties || compensation || discount) { %><%= penalties ? languageTemplate.template.common.footer.penalties + ' : ' + penalties : ''%><%= penalties && compensation ? ' | ' : ''%><%= compensation ? languageTemplate.template.common.footer.recoveryCosts + ' : ' + compensation + ' ' : '' %><%= (compensation || penalties) && discount ? ' | ' : '' %><%= discount ? languageTemplate.template.common.footer.discount + ' : ' + discount : '' %><%= shouldPayTaxAfterDebit ? "| " + languageTemplate.template.common.footer.shouldPayTaxAfterDebit : '' %><% if(name || legalForm || capital || siren || rcs) {%><br/><br/><% } %><% } %><%= name %><%= name && (legalForm || capital || siren || rcs) ? ', ' : ''%><%= legalForm %><%= capital ? ' ' + languageTemplate.template.common.footer.capital + ' ' + capitalFormatted + ' €' : '' %><%= siren ? ' ' + languageTemplate.template.common.footer.siren + ' ' + siren : ''%><%= rcs ? '| RCS ' + rcs : ''%><% if (vatCode || nafCode) {%><br/><% } %><%= vatCode ? languageTemplate.template.common.footer.vatCode + ' ' +vatCode : ''%><% if(vatCode && nafCode){%>|<%}%><%= nafCode ? 'APE '+nafCode : '' %>
|
|
13
13
|
<% if (["Clementine", "Pourcentage", "Comptalib"].includes(brandName) && !shouldHideBrandName) { %>
|
|
14
14
|
<div style="display: grid; place-items: center;"><div style="background-color: <%= brandColors.primary50 %>; color: <%= brandColors.primary500 %>; display: flex; gap: 3px; max-width: fit-content; border-radius: 4px; padding: 4px 8px; margin-top: 8px; align-items: center; font-size: 9px; line-height: 140%; font-family: 'circular std', sans serif; font-weight: 450;">
|
|
15
15
|
<%= languageTemplate.template.common.footer.generate %>
|
|
@@ -75,7 +75,7 @@ const vatDocuments: VatDocument[] = [
|
|
|
75
75
|
fileName: '3310-2024',
|
|
76
76
|
annex: {
|
|
77
77
|
name: '3519',
|
|
78
|
-
century: '
|
|
78
|
+
century: dayjs().month() === 0 ? dayjs().subtract(1, 'month').format('YY') : dayjs().format('YY'),
|
|
79
79
|
shouldInclude: (data: Cerfa3310_2023) => Boolean(data.credit?.refundAsked && data.credit.refundAsked > 0),
|
|
80
80
|
payload: (amount: number, payload: PayloadCerfa3519_2017) => getCerfa3519Century17Payload(amount, payload),
|
|
81
81
|
asponePayload: (data: Cerfa3519_2017) => getCerfa3519Century23RegistrationFields(data),
|