@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.
Files changed (63) hide show
  1. package/dist/cjs/api/resources/Revision.d.ts +5 -1
  2. package/dist/cjs/api/resources/Revision.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/Revision.js +6 -0
  4. package/dist/cjs/api/resources/Revision.js.map +1 -1
  5. package/dist/cjs/types/Enum/Account.d.ts +4 -0
  6. package/dist/cjs/types/Enum/Account.d.ts.map +1 -1
  7. package/dist/cjs/types/Enum/Account.js +4 -0
  8. package/dist/cjs/types/Enum/Account.js.map +1 -1
  9. package/dist/cjs/types/Enum/EntityType.d.ts +2 -2
  10. package/dist/cjs/types/Enum/EntityType.js +2 -2
  11. package/dist/cjs/types/Enum/EntityType.js.map +1 -1
  12. package/dist/cjs/types/Enum/FiscalRegime.d.ts.map +1 -1
  13. package/dist/cjs/types/Enum/FiscalRegime.js +10 -0
  14. package/dist/cjs/types/Enum/FiscalRegime.js.map +1 -1
  15. package/dist/cjs/types/Interface/api/revision/Create.d.ts +5 -0
  16. package/dist/cjs/types/Interface/api/revision/Create.d.ts.map +1 -1
  17. package/dist/cjs/types/Interface/api/revision/Create.js +19 -1
  18. package/dist/cjs/types/Interface/api/revision/Create.js.map +1 -1
  19. package/dist/cjs/types/Interface/api/tax/ReadCompanyTax.d.ts +2 -0
  20. package/dist/cjs/types/Interface/api/tax/ReadCompanyTax.d.ts.map +1 -1
  21. package/dist/cjs/types/Interface/api/tax/ReadCompanyTax.js.map +1 -1
  22. package/dist/cjs/utils/email/templates/signature.d.ts +1 -1
  23. package/dist/cjs/utils/email/templates/signature.d.ts.map +1 -1
  24. package/dist/cjs/utils/email/templates/signature.js +1 -1
  25. package/dist/cjs/utils/email/templates/signature.js.map +1 -1
  26. package/dist/cjs/utils/vat/3517/century23.js +1 -1
  27. package/dist/cjs/utils/vat/3517/century23.js.map +1 -1
  28. package/dist/mjs/api/resources/Revision.d.ts +5 -1
  29. package/dist/mjs/api/resources/Revision.d.ts.map +1 -1
  30. package/dist/mjs/api/resources/Revision.js +6 -0
  31. package/dist/mjs/api/resources/Revision.js.map +1 -1
  32. package/dist/mjs/types/Enum/Account.d.ts +4 -0
  33. package/dist/mjs/types/Enum/Account.d.ts.map +1 -1
  34. package/dist/mjs/types/Enum/Account.js +4 -0
  35. package/dist/mjs/types/Enum/Account.js.map +1 -1
  36. package/dist/mjs/types/Enum/EntityType.d.ts +2 -2
  37. package/dist/mjs/types/Enum/EntityType.js +2 -2
  38. package/dist/mjs/types/Enum/EntityType.js.map +1 -1
  39. package/dist/mjs/types/Enum/FiscalRegime.d.ts.map +1 -1
  40. package/dist/mjs/types/Enum/FiscalRegime.js +10 -0
  41. package/dist/mjs/types/Enum/FiscalRegime.js.map +1 -1
  42. package/dist/mjs/types/Interface/api/revision/Create.d.ts +5 -0
  43. package/dist/mjs/types/Interface/api/revision/Create.d.ts.map +1 -1
  44. package/dist/mjs/types/Interface/api/revision/Create.js +21 -1
  45. package/dist/mjs/types/Interface/api/revision/Create.js.map +1 -1
  46. package/dist/mjs/types/Interface/api/tax/ReadCompanyTax.d.ts +2 -0
  47. package/dist/mjs/types/Interface/api/tax/ReadCompanyTax.d.ts.map +1 -1
  48. package/dist/mjs/types/Interface/api/tax/ReadCompanyTax.js.map +1 -1
  49. package/dist/mjs/utils/email/templates/signature.d.ts +1 -1
  50. package/dist/mjs/utils/email/templates/signature.d.ts.map +1 -1
  51. package/dist/mjs/utils/email/templates/signature.js +1 -1
  52. package/dist/mjs/utils/email/templates/signature.js.map +1 -1
  53. package/dist/mjs/utils/vat/3517/century23.js +1 -1
  54. package/dist/mjs/utils/vat/3517/century23.js.map +1 -1
  55. package/package.json +1 -1
  56. package/ts/api/resources/Revision.ts +8 -0
  57. package/ts/types/Enum/Account.ts +4 -0
  58. package/ts/types/Enum/EntityType.ts +2 -2
  59. package/ts/types/Enum/FiscalRegime.ts +11 -1
  60. package/ts/types/Interface/api/revision/Create.ts +15 -2
  61. package/ts/types/Interface/api/tax/ReadCompanyTax.ts +2 -0
  62. package/ts/utils/email/templates/signature.ts +1 -1
  63. 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.337",
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
  }
@@ -124,4 +124,8 @@ export const Account = {
124
124
  id: 6,
125
125
  number: 445660,
126
126
  },
127
+ WAITING_ACCOUNT: {
128
+ id: 297,
129
+ number: 472000,
130
+ },
127
131
  };
@@ -73,8 +73,8 @@ export const EntityTypeDetail = [
73
73
  {
74
74
  id: EntityType.AMEX,
75
75
  name: 'SAS AMEX',
76
- adress: '11, Boulevard Victor Hugo',
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
+ }
@@ -6,7 +6,9 @@ export interface ReadCompanyTax extends CompanyTax {
6
6
 
7
7
  export interface CompanyTax {
8
8
  reducedRateTax: number;
9
+ reducedRateTaxAccurate: number;
9
10
  normalRateTax: number;
11
+ normalRateTaxAccurate: number;
10
12
  taxTotal: number;
11
13
  taxableIncome: number;
12
14
  }
@@ -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 : 11, Boulevard Victor Hugo - Nice
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