@silexpert/core 2.0.22 → 2.0.23-0

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.
@@ -7,6 +7,8 @@ import {
7
7
  UpdateOrCreateAdjustment,
8
8
  CreateProjectExercice,
9
9
  QuerySocietyExercice,
10
+ GenerateProjectExercice,
11
+ IGedFile,
10
12
  } from '../../types/index.js';
11
13
  import { Resource } from '../Resource.js';
12
14
 
@@ -43,8 +45,8 @@ export class Exercice extends Resource {
43
45
  return this.axios.$delete(`/exercices/${id}`);
44
46
  }
45
47
 
46
- generateBalanceSheetProject(idSociety: number, idExercice: number): Promise<boolean> {
47
- return this.axios.$post(`/societies/${idSociety}/exercices/${idExercice}/project/generate`);
48
+ generateBalanceSheetProject(idSociety: number, idExercice: number, params?: GenerateProjectExercice): Promise<boolean> {
49
+ return this.axios.$post(`/societies/${idSociety}/exercices/${idExercice}/project/generate`, params);
48
50
  }
49
51
 
50
52
  sendBalanceSheetProject(idSociety: number, idExercice: number, params: CreateProjectExercice): Promise<boolean> {
@@ -71,4 +73,16 @@ export class Exercice extends Resource {
71
73
  isFeasible(idExercice: number): Promise<boolean> {
72
74
  return this.axios.$get(`exercices/${idExercice}/is-feasible`);
73
75
  }
76
+
77
+ checkProjectAcceptation(idSociety: number): Promise<IGedFile[]> {
78
+ return this.axios.$get(`/societies/${idSociety}/project-acceptation`);
79
+ }
80
+
81
+ /**
82
+ * @description This endpoint is only to send the preview project email for CADOR balanceSheet (on clementinier), the accountant will upload the document from cador directly in the GED and the project will be send to the client with the email template in brevo
83
+ * For the other clients, the preview project will be send with the endpoint generateProject
84
+ */
85
+ sendProjectAcceptationEmail(idSociety: number, idExercice: number): Promise<void> {
86
+ return this.axios.$post(`/societies/${idSociety}/exercices/${idExercice}/project/send-cador-preview-mail`);
87
+ }
74
88
  }
@@ -35,6 +35,7 @@ export enum BalanceSheetState {
35
35
  ABANDONED_FORECAST = 28,
36
36
  ESTABLISH_REFUSED = 29,
37
37
  STANDBY = 30,
38
+ PROJECT_SENT = 31,
38
39
  }
39
40
 
40
41
  export const BalanceSheetDetails = [
@@ -84,6 +85,13 @@ export const BalanceSheetDetails = [
84
85
  textColor: 'red--text red--lighten-3',
85
86
  forRoles: [['front_office', 'manager'], ['front_office_express', 'manager'], ['expert']],
86
87
  },
88
+ {
89
+ text: 'Projet envoyé',
90
+ value: BalanceSheetState.PROJECT_SENT,
91
+ color: 'green',
92
+ textColor: 'green--text',
93
+ forRoles: [['admin'], ['super_admin'], ['controle_interne']],
94
+ },
87
95
  {
88
96
  text: 'À superviser',
89
97
  value: BalanceSheetState.TO_SUPERVISE,
@@ -234,14 +242,14 @@ export const BalanceSheetDetails = [
234
242
  forRoles: [['front_office'], ['expert'], ['satisfaction']],
235
243
  },
236
244
  {
237
- text: "Accepté SIE en l'état",
245
+ text: 'Accepté SIE en l\'état',
238
246
  value: BalanceSheetState.ACCEPTED_BY_SIE_IN_STATE,
239
247
  color: 'green darken-3',
240
248
  colorText: 'green--text',
241
249
  forRoles: [['front_office'], ['expert']],
242
250
  },
243
251
  {
244
- text: "Refus d'établir",
252
+ text: 'Refus d\'établir',
245
253
  value: BalanceSheetState.ESTABLISH_REFUSED,
246
254
  color: 'orange darken-1',
247
255
  colorText: 'orange--text text--darken-1',
@@ -272,7 +280,7 @@ export const ForecastBalanceSheetDetails = [
272
280
  forRoles: [['front_office'], ['expert']],
273
281
  },
274
282
  {
275
- text: "Prévisionnel d' abandonné",
283
+ text: 'Prévisionnel d\' abandonné',
276
284
  value: BalanceSheetState.ABANDONED_FORECAST,
277
285
  color: 'green darken-3',
278
286
  colorText: 'green--text',
@@ -320,7 +328,7 @@ export type BalanceSheetList = BalanceSheetField[];
320
328
 
321
329
  export enum BalanceSheetLabel {
322
330
  CAPITAL_SOUSCRIT = 'Capital souscrit - non appelé',
323
- FRAIS_ETABLISSEMENT = "Frais d'établissement",
331
+ FRAIS_ETABLISSEMENT = 'Frais d\'établissement',
324
332
  CONCESSIONS_BREVETS = 'Concessions, brevets, licences, marques, procédés, logiciels, droits et valeurs similaires',
325
333
  FOND_COMMERCIAL = 'Fonds commercial',
326
334
  AUTRES_IMMOBILISATIONS_INCORPORELLES = 'Autres immobilisations inc.',
@@ -331,7 +339,7 @@ export enum BalanceSheetLabel {
331
339
  INSTALLATIONS_TECHNIQUES = 'Installations techniques, matériels, et outillage industriels',
332
340
  AUTRES_IMMOBILISATIONS_CORPORELLES = 'Autres immobilisations corp.',
333
341
  IMMOBILISATIONS_CORPORELLES_EN_COURS = 'Immobilisations corporelles en cours',
334
- TITRES_IMMOBILISES_DE_LACTIVITE = "Titres immobilisés de l'activité de portefeuille",
342
+ TITRES_IMMOBILISES_DE_LACTIVITE = 'Titres immobilisés de l\'activité de portefeuille',
335
343
  AVANCES_ET_ACOMPTES_CORPORELLES = 'Avances et acomptes',
336
344
  CREANCES_RATTACHEES_PARTICIPATIONS = 'Créances rattachées à des participations',
337
345
  AUTRES_TITRES_IMMOBILISES = 'Autres titres immobilisés',
@@ -350,7 +358,7 @@ export enum BalanceSheetLabel {
350
358
  VALEUR_MOBILIERE_PLACEMENT_ACTION_PROPRE = 'Actions propres',
351
359
  VALEUR_MOBILIERE_PLACEMENT = 'Valeurs mobilières de placement',
352
360
  DISPONIBILITES = 'Disponibilités',
353
- CHARGES_CONSTATEES_AVANCE = "Charges constatées d'avance",
361
+ CHARGES_CONSTATEES_AVANCE = 'Charges constatées d\'avance',
354
362
  TOTAL_2 = 'Total (II)',
355
363
  PRIMES_DE_REMBOURSEMENT_DES_EMPRUNTS = 'Primes de remboursement des emprunts (IV)',
356
364
  ECARTS_DE_CONVERSIONS = 'Ecarts de conversion Actif (V)',
@@ -724,15 +732,15 @@ export const BALANCE_SHEET_LIST_ACTIVE: BalanceSheetList = [
724
732
  export enum BalanceSheetPassiveLabel {
725
733
  CAPITAL = 'Capital (dont versé...)',
726
734
  RESERVE_LEGALE = 'Réserve légale',
727
- PRIMES_EMISSION = "Primes d'émission, de fusion, d'apport",
735
+ PRIMES_EMISSION = 'Primes d\'émission, de fusion, d\'apport',
728
736
  ECART_DE_REEVALUATION = 'Ecart de réévaluation',
729
- ECART_EQUIVALENCE = "Ecart d'équivalence",
737
+ ECART_EQUIVALENCE = 'Ecart d\'équivalence',
730
738
  RESERVES_STATUAIRES = 'Réserves statutaires ou contractuelles',
731
739
  RESERVES_REGLEMENTEES = 'Réserves réglementées',
732
740
  AUTRES_RESERVES = 'Autres',
733
741
  REPORT_A_NOUVEAU = 'Report à nouveau',
734
- RESULTAT_DE_L_EXERCICE = "Résultat de l'exercice (bénéfice ou perte)",
735
- SUBVENTIONS_INVESTISSEMENT = "Subventions d'investissement",
742
+ RESULTAT_DE_L_EXERCICE = 'Résultat de l\'exercice (bénéfice ou perte)',
743
+ SUBVENTIONS_INVESTISSEMENT = 'Subventions d\'investissement',
736
744
  PROVISIONS_REFLEMENTEES = 'Provisions réglementées',
737
745
  PROVISIONS_POUR_RISQUES = 'Provisions pour risques',
738
746
  PROVISIONS_POUR_CHARGES = 'Provisions pour charges',
@@ -745,7 +753,7 @@ export enum BalanceSheetPassiveLabel {
745
753
  DETTES_FISCALES_ET_SOCIALES = 'Dettes fiscales et sociales',
746
754
  DETTES_SUR_IMMOBILISATIONS_ET_COMPTES_RATTACHES = 'Dettes sur immobilisations et Comptes rattachés',
747
755
  AUTRES_DETTES = 'Autres dettes',
748
- PRODUITS_CONSTATES_D_AVANCE = "Produits constatés d'avance",
756
+ PRODUITS_CONSTATES_D_AVANCE = 'Produits constatés d\'avance',
749
757
  ECART_PASSIF = 'Ecarts de conversion passif (IV)',
750
758
  TOTAL_GENERAL = 'Total général (I+II+III+IV)',
751
759
  CONCOURS = '(1) Dont concours bancaires courants et soldes créditeurs de banques',
@@ -114,7 +114,7 @@ export enum TypeFile {
114
114
  AUTHORIZATION = 52,
115
115
  COMMERCIAL_LEASE_AND_RELEASE = 53,
116
116
  CLOSE_BALANCE_SHEET = 54,
117
- PLAQUETTE = 55,
117
+ PLAQUETTE = 55, // Plaquette bilan comptable
118
118
  BALANCE_SHEET_NOTE = 56,
119
119
  SUMMARY_NOTE = 57,
120
120
  STATUTES = 58,
@@ -174,6 +174,8 @@ export enum TypeFile {
174
174
  APPROVAL = 112, // Appro des comptes
175
175
  BANK_STATEMENT = 113, // Relevé bancaire
176
176
  CUSTOMER_REPORTING = 114, // reporting client (customerActivity)
177
+ ACCOUNTING_CONSISTENCY_CHECK = 115, // Contrôle de cohérence
178
+ ACCOUNTING_PREVIEW_PLAQUETTE = 116, // Preview plaquette comptable
177
179
  }
178
180
 
179
181
  /** @deprecated this is a legacy enum try to use TypeFile enum if you can or use both enum's */
@@ -991,4 +993,14 @@ Le montant de l’indemnité calculée`,
991
993
  name: 'Relevé bancaire',
992
994
  idGedFolder: GedFolder.BANK_STATEMENT,
993
995
  },
996
+ [TypeFile.ACCOUNTING_CONSISTENCY_CHECK]: {
997
+ typeFile: TypeFile.ACCOUNTING_CONSISTENCY_CHECK,
998
+ name: 'Contrôle de cohérence',
999
+ idGedFolder: GedFolder.FORMALISM,
1000
+ },
1001
+ [TypeFile.ACCOUNTING_PREVIEW_PLAQUETTE]: {
1002
+ typeFile: TypeFile.ACCOUNTING_PREVIEW_PLAQUETTE,
1003
+ name: 'Projet',
1004
+ idGedFolder: GedFolder.CLOSE_BALANCE_SHEET,
1005
+ }
994
1006
  };
@@ -129,3 +129,18 @@ export class CreateProjectExercice {
129
129
  @IsOptional()
130
130
  files?: TFile[];
131
131
  }
132
+
133
+ export class GenerateProjectExercice {
134
+ @ApiPropertyOptional()
135
+ @IsOptional()
136
+ @IsBoolean()
137
+ @ToBoolean()
138
+ isPreview?: boolean;
139
+
140
+
141
+ @ApiPropertyOptional()
142
+ @IsOptional()
143
+ @IsBoolean()
144
+ @ToBoolean()
145
+ withReporting?: boolean;
146
+ }
@@ -171,14 +171,18 @@ class="signatureClementine">
171
171
  </table>
172
172
  <p style="margin:16px 0; color:#6E6E71; border-top: 2px solid #6E6E71; width: 100px; opacity: 0.2"><!-- --></p>
173
173
  <p style="margin:0px 0; padding:0 0 4px; color:#6E6E71;">
174
- Standard : <%- standardPhoneSignature %><br/>
174
+ <% if (standardPhoneSignature) { %>
175
+ Standard : <%- standardPhoneSignature %><br/>
176
+ <% } %>
175
177
  <% if(phoneSignature && phoneSignature !== standardPhoneSignature) { %>
176
178
  Ligne directe : <%- phoneSignature %><br/>
177
179
  <% } %>
178
- Nos horaires : <%- horaires %>
180
+ <% if (brandName !== 'Teamsystem Facture') { %>
181
+ Nos horaires : <%- horaires %>
179
182
 
180
- <% if(['Pourcentage ECE - AMEX', 'Pourcentage ECF'].includes(brandName)) { %>
181
- <br/>Adresse : 35, avenue Jean Médecin - 06000 NICE
183
+ <% if(['Pourcentage ECE - AMEX', 'Pourcentage ECF'].includes(brandName)) { %>
184
+ <br/>Adresse : 35, avenue Jean Médecin - 06000 NICE
185
+ <% } %>
182
186
  <% } %>
183
187
  </p>
184
188