@silexpert/core 1.1.337 → 1.1.339
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/Revision.d.ts +5 -1
- package/dist/cjs/api/resources/Revision.d.ts.map +1 -1
- package/dist/cjs/api/resources/Revision.js +6 -0
- package/dist/cjs/api/resources/Revision.js.map +1 -1
- package/dist/cjs/types/Enum/Account.d.ts +4 -0
- package/dist/cjs/types/Enum/Account.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Account.js +4 -0
- package/dist/cjs/types/Enum/Account.js.map +1 -1
- package/dist/cjs/types/Enum/EntityType.d.ts +2 -2
- package/dist/cjs/types/Enum/EntityType.js +2 -2
- package/dist/cjs/types/Enum/EntityType.js.map +1 -1
- package/dist/cjs/types/Enum/FiscalRegime.d.ts.map +1 -1
- package/dist/cjs/types/Enum/FiscalRegime.js +10 -0
- package/dist/cjs/types/Enum/FiscalRegime.js.map +1 -1
- package/dist/cjs/types/Interface/api/revision/Create.d.ts +5 -0
- package/dist/cjs/types/Interface/api/revision/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/revision/Create.js +19 -1
- package/dist/cjs/types/Interface/api/revision/Create.js.map +1 -1
- package/dist/cjs/types/Interface/api/tax/ReadCompanyTax.d.ts +2 -0
- package/dist/cjs/types/Interface/api/tax/ReadCompanyTax.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/tax/ReadCompanyTax.js.map +1 -1
- package/dist/cjs/utils/email/templates/signature.d.ts +1 -1
- package/dist/cjs/utils/email/templates/signature.d.ts.map +1 -1
- package/dist/cjs/utils/email/templates/signature.js +1 -1
- package/dist/cjs/utils/email/templates/signature.js.map +1 -1
- package/dist/cjs/utils/vat/3517/century23.js +1 -1
- package/dist/cjs/utils/vat/3517/century23.js.map +1 -1
- package/dist/mjs/api/resources/Revision.d.ts +5 -1
- package/dist/mjs/api/resources/Revision.d.ts.map +1 -1
- package/dist/mjs/api/resources/Revision.js +6 -0
- package/dist/mjs/api/resources/Revision.js.map +1 -1
- package/dist/mjs/types/Enum/Account.d.ts +4 -0
- package/dist/mjs/types/Enum/Account.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Account.js +4 -0
- package/dist/mjs/types/Enum/Account.js.map +1 -1
- package/dist/mjs/types/Enum/EntityType.d.ts +2 -2
- package/dist/mjs/types/Enum/EntityType.js +2 -2
- package/dist/mjs/types/Enum/EntityType.js.map +1 -1
- package/dist/mjs/types/Enum/FiscalRegime.d.ts.map +1 -1
- package/dist/mjs/types/Enum/FiscalRegime.js +10 -0
- package/dist/mjs/types/Enum/FiscalRegime.js.map +1 -1
- package/dist/mjs/types/Interface/api/revision/Create.d.ts +5 -0
- package/dist/mjs/types/Interface/api/revision/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/revision/Create.js +21 -1
- package/dist/mjs/types/Interface/api/revision/Create.js.map +1 -1
- package/dist/mjs/types/Interface/api/tax/ReadCompanyTax.d.ts +2 -0
- package/dist/mjs/types/Interface/api/tax/ReadCompanyTax.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/tax/ReadCompanyTax.js.map +1 -1
- package/dist/mjs/utils/email/templates/signature.d.ts +1 -1
- package/dist/mjs/utils/email/templates/signature.d.ts.map +1 -1
- package/dist/mjs/utils/email/templates/signature.js +1 -1
- package/dist/mjs/utils/email/templates/signature.js.map +1 -1
- package/dist/mjs/utils/vat/3517/century23.js +1 -1
- package/dist/mjs/utils/vat/3517/century23.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Revision.ts +8 -0
- package/ts/types/Enum/Account.ts +4 -0
- package/ts/types/Enum/EntityType.ts +2 -2
- package/ts/types/Enum/FiscalRegime.ts +11 -1
- package/ts/types/Interface/api/revision/Create.ts +15 -2
- package/ts/types/Interface/api/tax/ReadCompanyTax.ts +2 -0
- package/ts/utils/email/templates/signature.ts +1 -1
- package/ts/utils/vat/3517/century23.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.339",
|
|
4
4
|
"description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
|
|
5
5
|
"homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
IAccountingTransaction,
|
|
10
10
|
QueryRevisionApprobation,
|
|
11
11
|
QueryRevisionAccountComment, IAccountDetail, ICycle, QueryRevisionPendingPoint, ISupervisionPendingPoint, QueryRevisionGenericPendingPoint, CreateOrUpdateState, ISupervisionPendingPointReply, CreateReply, CreatePersonalNote, ISupervisionPersonalAccountantNote, UpdatePersonalNote, GetPersonalNoteForPeriod, ISupervision, QuerySupervision, CreateSupervisionNoteFile, GetNote, IGedFile, CreateSummaryDocument, QueryRevisionAccountControlFile, QueryRevisionExport, QueryRevisionThirdPartyPaginate, ReadAccrualRevision, QueryRevisionThirdParty, QueryRevisionMergeIntoThirdParty, ReadRevisionMergeIntoThirdParty,
|
|
12
|
+
ProcessMissingAnnotation,
|
|
12
13
|
} from '../..';
|
|
13
14
|
|
|
14
15
|
export class Revision extends Resource {
|
|
@@ -169,4 +170,11 @@ export class Revision extends Resource {
|
|
|
169
170
|
export(idSociety: number, params: QueryRevisionExport): Promise<Buffer> {
|
|
170
171
|
return this.axios.$get(`revisions/societies/${idSociety}/exports`, { params, responseType: 'blob' });
|
|
171
172
|
}
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Annote en compte en attente les opérations sans account du client
|
|
176
|
+
*/
|
|
177
|
+
setMissingAccounts(payload: ProcessMissingAnnotation): Promise<number> {
|
|
178
|
+
return this.axios.$post('revisions/process-missing-annotations', payload);
|
|
179
|
+
}
|
|
172
180
|
}
|
package/ts/types/Enum/Account.ts
CHANGED
|
@@ -73,8 +73,8 @@ export const EntityTypeDetail = [
|
|
|
73
73
|
{
|
|
74
74
|
id: EntityType.AMEX,
|
|
75
75
|
name: 'SAS AMEX',
|
|
76
|
-
adress: '
|
|
77
|
-
city: 'NICE',
|
|
76
|
+
adress: '35 avenue Jean Médecin',
|
|
77
|
+
city: '06000 NICE',
|
|
78
78
|
capital: '466 800 €',
|
|
79
79
|
RCS: '882 255 094',
|
|
80
80
|
phone: '04 93 87 03 03',
|
|
@@ -22,7 +22,7 @@ export const FiscalRegimeList: { label: string; id: number; designation: string
|
|
|
22
22
|
},
|
|
23
23
|
];
|
|
24
24
|
|
|
25
|
-
export const CompanyCreationFiscalRegimeOptions: { label: string; description: string;idFiscalRegime: FiscalRegime | null }[] = [
|
|
25
|
+
export const CompanyCreationFiscalRegimeOptions: { label: string; description: string; idFiscalRegime: FiscalRegime | null }[] = [
|
|
26
26
|
{
|
|
27
27
|
label: 'BIC Réel simplifié',
|
|
28
28
|
description: 'Taxe sur les bénéfices',
|
|
@@ -43,6 +43,16 @@ export const CompanyCreationFiscalRegimeOptions: { label: string; description: s
|
|
|
43
43
|
description: 'Réduction d\'impôt dans certain cas',
|
|
44
44
|
idFiscalRegime: null,
|
|
45
45
|
},
|
|
46
|
+
{
|
|
47
|
+
label: 'Micro-BIC',
|
|
48
|
+
description: 'Pour un abattement forfaitaire des charges',
|
|
49
|
+
idFiscalRegime: null,
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
label: 'Régime dit du bénéfice réel',
|
|
53
|
+
description: 'Pour un calcul au réel des charges',
|
|
54
|
+
idFiscalRegime: null,
|
|
55
|
+
},
|
|
46
56
|
{
|
|
47
57
|
label: 'Je ne sais pas',
|
|
48
58
|
description: 'On vous aide à choisir',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IsBoolean, IsDate, IsNumber, IsOptional, IsString } from 'class-validator';
|
|
1
|
+
import { IsBoolean, IsDate, IsDateString, IsNumber, IsOptional, IsString } from 'class-validator';
|
|
2
2
|
import { ApiProperty, ApiPropertyOptional } from '../../../..';
|
|
3
3
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
4
4
|
|
|
@@ -166,7 +166,6 @@ export class CreateSupervisionNoteFile {
|
|
|
166
166
|
@IsOptional()
|
|
167
167
|
isTest?: boolean;
|
|
168
168
|
}
|
|
169
|
-
|
|
170
169
|
export class CreateSummaryDocument {
|
|
171
170
|
@ApiProperty()
|
|
172
171
|
@IsNumber()
|
|
@@ -182,3 +181,17 @@ export class CreateSummaryDocument {
|
|
|
182
181
|
@IsOptional()
|
|
183
182
|
isTest?: boolean;
|
|
184
183
|
}
|
|
184
|
+
|
|
185
|
+
export class ProcessMissingAnnotation {
|
|
186
|
+
@ApiProperty()
|
|
187
|
+
@IsNumber()
|
|
188
|
+
idSociety: number;
|
|
189
|
+
|
|
190
|
+
@ApiProperty()
|
|
191
|
+
@IsDateString()
|
|
192
|
+
startDate: string;
|
|
193
|
+
|
|
194
|
+
@ApiProperty()
|
|
195
|
+
@IsDateString()
|
|
196
|
+
endDate: string;
|
|
197
|
+
}
|
|
@@ -178,7 +178,7 @@ class="signatureClementine">
|
|
|
178
178
|
Nos horaires : <%= horaires %>
|
|
179
179
|
|
|
180
180
|
<% if(['Pourcentage ECE - AMEX', 'Pourcentage ECF'].includes(brandName)) { %>
|
|
181
|
-
<br/>Adresse :
|
|
181
|
+
<br/>Adresse : 35, avenue Jean Médecin - 06000 NICE
|
|
182
182
|
<% } %>
|
|
183
183
|
</p>
|
|
184
184
|
|
|
@@ -347,7 +347,7 @@ export function getCerfa3517Century23Payload(accountingEntries: IAccountingEntry
|
|
|
347
347
|
|
|
348
348
|
data.refund.surplus = shouldFillRefund ? data.net.surplus : 0;
|
|
349
349
|
data.refund.maximum = shouldFillRefund ? data.refund.creditRefundable + data.refund.surplus : 0;
|
|
350
|
-
data.refund.reportable = shouldFillRefund ? data.refund.maximum - data.refund.asked : 0;
|
|
350
|
+
data.refund.reportable = shouldFillRefund && (data.refund.maximum - data.refund.asked) > 0 ? data.refund.maximum - data.refund.asked : 0;
|
|
351
351
|
|
|
352
352
|
data.total = setZeroIfIsNegative(data.vat.total.tax - (data.vat.saleOfImmobilization.tax + data.vat.ownDelivery.tax + data.deductible.total1));
|
|
353
353
|
|