@silexpert/core 1.1.53 → 1.1.55

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 (136) hide show
  1. package/es/api/resources/Fusion.d.ts +5 -0
  2. package/es/api/resources/Fusion.d.ts.map +1 -0
  3. package/es/api/resources/Fusion.js +18 -0
  4. package/es/api/resources/Fusion.js.map +1 -0
  5. package/es/api/resources/TextMessage.d.ts +2 -1
  6. package/es/api/resources/TextMessage.d.ts.map +1 -1
  7. package/es/api/resources/TextMessage.js +3 -0
  8. package/es/api/resources/TextMessage.js.map +1 -1
  9. package/es/api/resources/VisualizedInformation.d.ts +8 -0
  10. package/es/api/resources/VisualizedInformation.d.ts.map +1 -0
  11. package/es/api/resources/VisualizedInformation.js +13 -0
  12. package/es/api/resources/VisualizedInformation.js.map +1 -0
  13. package/es/api/resources/prestation.d.ts +2 -1
  14. package/es/api/resources/prestation.d.ts.map +1 -1
  15. package/es/api/resources/prestation.js +3 -0
  16. package/es/api/resources/prestation.js.map +1 -1
  17. package/es/api/resources.d.ts +4 -0
  18. package/es/api/resources.d.ts.map +1 -1
  19. package/es/api/resources.js +4 -0
  20. package/es/api/resources.js.map +1 -1
  21. package/es/types/Enum/FiscalRegime.d.ts +5 -0
  22. package/es/types/Enum/FiscalRegime.d.ts.map +1 -1
  23. package/es/types/Enum/FiscalRegime.js +17 -0
  24. package/es/types/Enum/FiscalRegime.js.map +1 -1
  25. package/es/types/Enum/ProfitsType.d.ts +5 -0
  26. package/es/types/Enum/ProfitsType.d.ts.map +1 -1
  27. package/es/types/Enum/ProfitsType.js +12 -0
  28. package/es/types/Enum/ProfitsType.js.map +1 -1
  29. package/es/types/Enum/TaxSystem.d.ts +5 -2
  30. package/es/types/Enum/TaxSystem.d.ts.map +1 -1
  31. package/es/types/Enum/TaxSystem.js +3 -0
  32. package/es/types/Enum/TaxSystem.js.map +1 -1
  33. package/es/types/Enum/VisualizedInformation.d.ts +5 -0
  34. package/es/types/Enum/VisualizedInformation.d.ts.map +1 -0
  35. package/es/types/Enum/VisualizedInformation.js +6 -0
  36. package/es/types/Enum/VisualizedInformation.js.map +1 -0
  37. package/es/types/Interface/api/cerfa/3517.d.ts +7 -0
  38. package/es/types/Interface/api/cerfa/3517.d.ts.map +1 -1
  39. package/es/types/Interface/api/cerfa/3517.js.map +1 -1
  40. package/es/types/Interface/api/fusion/FusionSocieties.d.ts +5 -0
  41. package/es/types/Interface/api/fusion/FusionSocieties.d.ts.map +1 -0
  42. package/es/types/Interface/api/fusion/FusionSocieties.js +24 -0
  43. package/es/types/Interface/api/fusion/FusionSocieties.js.map +1 -0
  44. package/es/types/Interface/api/prestation/QueryGetPaginatedSocietiesFromPrestation.d.ts +9 -0
  45. package/es/types/Interface/api/prestation/QueryGetPaginatedSocietiesFromPrestation.d.ts.map +1 -0
  46. package/es/types/Interface/api/prestation/QueryGetPaginatedSocietiesFromPrestation.js +57 -0
  47. package/es/types/Interface/api/prestation/QueryGetPaginatedSocietiesFromPrestation.js.map +1 -0
  48. package/es/types/Interface/api/statutsGeneration/CreateBusinessPartnersAndUsersParams.d.ts +1 -0
  49. package/es/types/Interface/api/statutsGeneration/CreateBusinessPartnersAndUsersParams.d.ts.map +1 -1
  50. package/es/types/Interface/api/statutsGeneration/CreateBusinessPartnersAndUsersParams.js +6 -0
  51. package/es/types/Interface/api/statutsGeneration/CreateBusinessPartnersAndUsersParams.js.map +1 -1
  52. package/es/types/Interface/api/textMessage/Create.d.ts +5 -0
  53. package/es/types/Interface/api/textMessage/Create.d.ts.map +1 -1
  54. package/es/types/Interface/api/textMessage/Create.js +17 -0
  55. package/es/types/Interface/api/textMessage/Create.js.map +1 -1
  56. package/es/types/Interface/api/visualizedInformation/Query.d.ts +6 -0
  57. package/es/types/Interface/api/visualizedInformation/Query.d.ts.map +1 -0
  58. package/es/types/Interface/api/visualizedInformation/Query.js +26 -0
  59. package/es/types/Interface/api/visualizedInformation/Query.js.map +1 -0
  60. package/es/types/Interface/api/visualizedInformation/Update.d.ts +6 -0
  61. package/es/types/Interface/api/visualizedInformation/Update.d.ts.map +1 -0
  62. package/es/types/Interface/api/visualizedInformation/Update.js +25 -0
  63. package/es/types/Interface/api/visualizedInformation/Update.js.map +1 -0
  64. package/es/types/Interface/models/ISociety.d.ts +1 -0
  65. package/es/types/Interface/models/ISociety.d.ts.map +1 -1
  66. package/es/types/Interface/models/ISociety.js.map +1 -1
  67. package/es/types/Interface/models/IVisualizedInformation.d.ts +12 -0
  68. package/es/types/Interface/models/IVisualizedInformation.d.ts.map +1 -0
  69. package/es/types/Interface/models/IVisualizedInformation.js +2 -0
  70. package/es/types/Interface/models/IVisualizedInformation.js.map +1 -0
  71. package/es/types/index.d.ts +6 -0
  72. package/es/types/index.d.ts.map +1 -1
  73. package/es/types/index.js +6 -0
  74. package/es/types/index.js.map +1 -1
  75. package/es/utils/vat/3517/century23.d.ts.map +1 -1
  76. package/es/utils/vat/3517/century23.js +103 -94
  77. package/es/utils/vat/3517/century23.js.map +1 -1
  78. package/js/api/resources/Fusion.js +46 -0
  79. package/js/api/resources/Fusion.js.map +1 -0
  80. package/js/api/resources/TextMessage.js +3 -0
  81. package/js/api/resources/TextMessage.js.map +1 -1
  82. package/js/api/resources/VisualizedInformation.js +22 -0
  83. package/js/api/resources/VisualizedInformation.js.map +1 -0
  84. package/js/api/resources/prestation.js +5 -0
  85. package/js/api/resources/prestation.js.map +1 -1
  86. package/js/api/resources.js +5 -1
  87. package/js/api/resources.js.map +1 -1
  88. package/js/types/Enum/FiscalRegime.js +13 -0
  89. package/js/types/Enum/FiscalRegime.js.map +1 -1
  90. package/js/types/Enum/ProfitsType.js +9 -0
  91. package/js/types/Enum/ProfitsType.js.map +1 -1
  92. package/js/types/Enum/TaxSystem.js +6 -3
  93. package/js/types/Enum/TaxSystem.js.map +1 -1
  94. package/js/types/Enum/VisualizedInformation.js +11 -0
  95. package/js/types/Enum/VisualizedInformation.js.map +1 -0
  96. package/js/types/Interface/api/cerfa/3517.js.map +1 -1
  97. package/js/types/Interface/api/fusion/FusionSocieties.js +23 -0
  98. package/js/types/Interface/api/fusion/FusionSocieties.js.map +1 -0
  99. package/js/types/Interface/api/prestation/QueryGetPaginatedSocietiesFromPrestation.js +41 -0
  100. package/js/types/Interface/api/prestation/QueryGetPaginatedSocietiesFromPrestation.js.map +1 -0
  101. package/js/types/Interface/api/statutsGeneration/CreateBusinessPartnersAndUsersParams.js +1 -0
  102. package/js/types/Interface/api/statutsGeneration/CreateBusinessPartnersAndUsersParams.js.map +1 -1
  103. package/js/types/Interface/api/textMessage/Create.js +6 -1
  104. package/js/types/Interface/api/textMessage/Create.js.map +1 -1
  105. package/js/types/Interface/api/visualizedInformation/Query.js +24 -0
  106. package/js/types/Interface/api/visualizedInformation/Query.js.map +1 -0
  107. package/js/types/Interface/api/visualizedInformation/Update.js +24 -0
  108. package/js/types/Interface/api/visualizedInformation/Update.js.map +1 -0
  109. package/js/types/Interface/models/ISociety.js.map +1 -1
  110. package/js/types/Interface/models/IVisualizedInformation.js +6 -0
  111. package/js/types/Interface/models/IVisualizedInformation.js.map +1 -0
  112. package/js/types/index.js +63 -3
  113. package/js/types/index.js.map +1 -1
  114. package/js/utils/vat/3517/century23.js +115 -95
  115. package/js/utils/vat/3517/century23.js.map +1 -1
  116. package/package.json +1 -1
  117. package/ts/api/resources/Fusion.ts +7 -0
  118. package/ts/api/resources/TextMessage.ts +5 -0
  119. package/ts/api/resources/VisualizedInformation.ts +16 -0
  120. package/ts/api/resources/prestation.ts +6 -1
  121. package/ts/api/resources.ts +4 -0
  122. package/ts/types/Enum/FiscalRegime.ts +19 -1
  123. package/ts/types/Enum/ProfitsType.ts +14 -1
  124. package/ts/types/Enum/TaxSystem.ts +5 -4
  125. package/ts/types/Enum/VisualizedInformation.ts +4 -0
  126. package/ts/types/Interface/api/cerfa/3517.ts +7 -0
  127. package/ts/types/Interface/api/fusion/FusionSocieties.ts +12 -0
  128. package/ts/types/Interface/api/prestation/QueryGetPaginatedSocietiesFromPrestation.ts +40 -0
  129. package/ts/types/Interface/api/statutsGeneration/CreateBusinessPartnersAndUsersParams.ts +5 -0
  130. package/ts/types/Interface/api/textMessage/Create.ts +14 -0
  131. package/ts/types/Interface/api/visualizedInformation/Query.ts +14 -0
  132. package/ts/types/Interface/api/visualizedInformation/Update.ts +13 -0
  133. package/ts/types/Interface/models/ISociety.ts +1 -0
  134. package/ts/types/Interface/models/IVisualizedInformation.ts +14 -0
  135. package/ts/types/index.ts +7 -0
  136. package/ts/utils/vat/3517/century23.ts +17 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "1.1.53",
3
+ "version": "1.1.55",
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": "js/index.js",
@@ -0,0 +1,7 @@
1
+ import { Resource } from '../Resource';
2
+
3
+ export class Fusion extends Resource {
4
+ async fusion(idSocietySource: number, idSocietyTarget: number) {
5
+ return this.axios.$post('/fusion', { idSocietySource, idSocietyTarget });
6
+ }
7
+ }
@@ -7,6 +7,7 @@ import {
7
7
  QueryTextMessageGrouped,
8
8
  SendTextMessage,
9
9
  UpdateTextMessage,
10
+ SendAnnouncementTextMessage,
10
11
  } from '../../types';
11
12
  import { ReadPaginatedTextMessage, ReadPaginatedTextMessageGrouped } from '../../types/Interface/api/textMessage/Read';
12
13
 
@@ -27,6 +28,10 @@ export class TextMessage extends Resource {
27
28
  return this.axios.$post('/text-messages', payload);
28
29
  }
29
30
 
31
+ sendAnnouncement(payload: SendAnnouncementTextMessage): Promise<true> {
32
+ return this.axios.$post('/text-messages/announcements', payload);
33
+ }
34
+
30
35
  update(id: number, payload: UpdateTextMessage): Promise<{ data: ISms }> {
31
36
  return this.axios.patch(`/text-messages/${id}`, payload);
32
37
  }
@@ -0,0 +1,16 @@
1
+ import { IVisualizedInformation, QuerySocietyVisualizedInformation, UpdateOrCreateVisualizedInformation } from '../../types';
2
+ import { Resource } from '../Resource';
3
+
4
+ export class VisualizedInformation extends Resource {
5
+ get(idSociety: number, params: QuerySocietyVisualizedInformation): Promise<IVisualizedInformation> {
6
+ return this.axios.$get(`societies/${idSociety}/visualized-informations`, { params });
7
+ }
8
+
9
+ getAll(idSociety: number): Promise<IVisualizedInformation[]> {
10
+ return this.axios.$get(`societies/${idSociety}/all-visualized-informations`);
11
+ }
12
+
13
+ updateOrCreate(idSociety: number, payload: UpdateOrCreateVisualizedInformation): Promise<IVisualizedInformation> {
14
+ return this.axios.$post(`societies/${idSociety}/visualized-informations`, payload);
15
+ }
16
+ }
@@ -1,7 +1,8 @@
1
1
  import { CancelToken } from 'axios';
2
2
  import { Resource } from '../Resource';
3
3
  import {
4
- IPrestation, PrestationType, QueryPrestation,
4
+ BasePaginate,
5
+ IPrestation, ISociety, PrestationType, QueryGetPaginatedSocietiesFromPrestation, QueryPrestation,
5
6
  } from '../../types';
6
7
 
7
8
  export class Prestation extends Resource {
@@ -14,6 +15,10 @@ export class Prestation extends Resource {
14
15
  return this.axios.$get(`/prestation/society/${id}/juridicals`);
15
16
  }
16
17
 
18
+ public getPaginatedSocietiesFromPrestation(params: QueryGetPaginatedSocietiesFromPrestation): Promise<BasePaginate<ISociety>> {
19
+ return this.axios.$get('/prestation/societies', { params });
20
+ }
21
+
17
22
  public getAllFromSociety(id: number, params?: QueryPrestation, cancelToken?: CancelToken): Promise<IPrestation[]> {
18
23
  return this.axios.$get(`/societies/${id}/prestations`, { ...(cancelToken ? { cancelToken } : {}), params });
19
24
  }
@@ -128,6 +128,8 @@ import { CashAndExpense } from './resources/CashAndExpense';
128
128
  import { Archive } from './resources/Archive';
129
129
  import { AccountsSector } from './resources/AccountsSectors';
130
130
  import { BusinessSector } from './resources/BusinessSector';
131
+ import { VisualizedInformation } from './resources/VisualizedInformation';
132
+ import { Fusion } from './resources/Fusion';
131
133
 
132
134
  export const resources = {
133
135
  simulation: Simulation,
@@ -260,4 +262,6 @@ export const resources = {
260
262
  archive: Archive,
261
263
  accountsSector: AccountsSector,
262
264
  businessSector: BusinessSector,
265
+ visualizedInformation: VisualizedInformation,
266
+ fusion: Fusion,
263
267
  };
@@ -2,4 +2,22 @@ export enum FiscalRegime {
2
2
  RS = 1,
3
3
  RN = 2,
4
4
  NA = 3,
5
- }
5
+ }
6
+
7
+ export const FiscalRegimeList: { label: string; id: number; designation: string }[] = [
8
+ {
9
+ id: FiscalRegime.RS,
10
+ label: 'RS',
11
+ designation: 'RS - Régime simplifié',
12
+ },
13
+ {
14
+ id: FiscalRegime.RN,
15
+ label: 'RN',
16
+ designation: 'RN - Régime normal',
17
+ },
18
+ {
19
+ id: FiscalRegime.NA,
20
+ label: 'N/A',
21
+ designation: 'N/A - Aucun',
22
+ },
23
+ ];
@@ -1,4 +1,17 @@
1
1
  export enum ProfitsType {
2
2
  BIC = 1,
3
3
  BNC = 2,
4
- }
4
+ }
5
+
6
+ export const ProfitsTypeList: { label: string; id: number; designation: string }[] = [
7
+ {
8
+ id: ProfitsType.BIC,
9
+ label: 'BIC',
10
+ designation: 'BIC - Bénéfices industriels et commerciaux',
11
+ },
12
+ {
13
+ id: ProfitsType.BNC,
14
+ label: 'BNC',
15
+ designation: 'BNC - Bénéfices non commerciaux',
16
+ },
17
+ ];
@@ -1,22 +1,23 @@
1
- import { List } from '../Interface/enum/Util';
2
-
3
1
  export enum TaxSystem {
4
2
  IS = 1,
5
3
  IR = 2,
6
4
  NA = 3,
7
5
  }
8
6
 
9
- export const TaxSystemList: List = [
7
+ export const TaxSystemList: { label: string; id: number; designation: string }[] = [
10
8
  {
11
9
  id: TaxSystem.IS,
12
10
  label: 'IS',
11
+ designation: 'IS - Impôt sur les sociétés',
13
12
  },
14
13
  {
15
14
  id: TaxSystem.IR,
16
15
  label: 'IR',
16
+ designation: 'IR - Impôt sur le Revenu',
17
17
  },
18
18
  {
19
19
  id: TaxSystem.NA,
20
20
  label: 'N/A',
21
+ designation: 'N/A - Aucun',
21
22
  },
22
- ];
23
+ ];
@@ -0,0 +1,4 @@
1
+ export enum VisualizedInformationState {
2
+ CANCELED = 0,
3
+ APPROVED = 1,
4
+ }
@@ -65,6 +65,7 @@ export interface Cerfa3517_2023 {
65
65
  untaxedOperation: {
66
66
  buy: number;
67
67
  exported: number;
68
+ distance?: number;
68
69
  other: number;
69
70
  petrol: number;
70
71
  intracomunauty: number;
@@ -264,6 +265,12 @@ export type PayloadCerfa3517_2023 = {
264
265
  sumToImpute: number | null;
265
266
  vatDeductible: number | null;
266
267
  };
268
+ untaxedOperation?: {
269
+ distance?: number | null;
270
+ petrol?: number | null;
271
+ salesGoodsOrServices?: number | null;
272
+ delivery?: number | null;
273
+ };
267
274
  advance1: { toPay: number; };
268
275
  advance2: { toPay: number; };
269
276
  tax: {
@@ -0,0 +1,12 @@
1
+ import { IsNumber } from 'class-validator';
2
+ import { ApiProperty } from '../../../../utils';
3
+
4
+ export class FusionSocieties {
5
+ @ApiProperty()
6
+ @IsNumber()
7
+ idSocietySource: number;
8
+
9
+ @ApiProperty()
10
+ @IsNumber()
11
+ idSocietyTarget: number;
12
+ }
@@ -0,0 +1,40 @@
1
+ import {
2
+ IsArray, IsBoolean, IsNumber, IsOptional, IsString,
3
+ } from 'class-validator';
4
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
5
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
6
+
7
+ export class QueryGetPaginatedSocietiesFromPrestation {
8
+ @ApiProperty({
9
+ required: true,
10
+ type: [Number],
11
+ })
12
+ @IsArray()
13
+ prestationListIds: number[];
14
+
15
+ @ApiPropertyOptional()
16
+ @IsOptional()
17
+ @IsString()
18
+ search?: string;
19
+
20
+ @ApiPropertyOptional()
21
+ @IsOptional()
22
+ @IsArray()
23
+ juridicIds?: number[];
24
+
25
+ @ApiPropertyOptional({ default: false })
26
+ @IsOptional()
27
+ @IsBoolean()
28
+ @ToBoolean()
29
+ withArchived? = false;
30
+
31
+ @ApiPropertyOptional({ default: 25 })
32
+ @IsOptional()
33
+ @IsNumber()
34
+ limit?: number;
35
+
36
+ @ApiPropertyOptional({ default: 1 })
37
+ @IsOptional()
38
+ @IsNumber()
39
+ page?: number;
40
+ }
@@ -6,6 +6,11 @@ import { CountryId } from '../../../Enum/Country';
6
6
  import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
7
7
 
8
8
  export class CreateBusinessPartnersAndUsersParamsUser {
9
+ @ApiPropertyOptional()
10
+ @IsOptional()
11
+ @IsString()
12
+ idUser?: number;
13
+
9
14
  @ApiPropertyOptional()
10
15
  @IsOptional()
11
16
  @IsString()
@@ -22,4 +22,18 @@ export class SendTextMessage {
22
22
  @ApiProperty()
23
23
  @IsEnum(TextMessageType)
24
24
  idTextMessageType: TextMessageType;
25
+ }
26
+
27
+ export class SendAnnouncementTextMessage {
28
+ @ApiProperty()
29
+ @IsNumber()
30
+ idCollaborater: number;
31
+
32
+ @ApiProperty()
33
+ @IsNumber()
34
+ idSociety: number;
35
+
36
+ @ApiProperty()
37
+ @IsString()
38
+ content: string;
25
39
  }
@@ -0,0 +1,14 @@
1
+ import { IsNumber, IsOptional, IsString } from 'class-validator';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
+ import { VisualizedInformationState } from '../../../Enum/VisualizedInformation';
4
+
5
+ export class QuerySocietyVisualizedInformation {
6
+ @ApiProperty()
7
+ @IsString()
8
+ key: string;
9
+
10
+ @ApiPropertyOptional()
11
+ @IsNumber()
12
+ @IsOptional()
13
+ state: VisualizedInformationState;
14
+ }
@@ -0,0 +1,13 @@
1
+ import { IsNumber, IsString } from 'class-validator';
2
+ import { ApiProperty } from '../../../../utils';
3
+ import { VisualizedInformationState } from '../../../Enum/VisualizedInformation';
4
+
5
+ export class UpdateOrCreateVisualizedInformation {
6
+ @ApiProperty()
7
+ @IsString()
8
+ key: string;
9
+
10
+ @ApiProperty()
11
+ @IsNumber()
12
+ state: VisualizedInformationState;
13
+ }
@@ -209,6 +209,7 @@ export interface ISociety {
209
209
  sms?: ISms[];
210
210
  users?: IUser[];
211
211
  userPermission?: IUserSocietyPermission;
212
+ usersPermissions?: IUserSocietyPermission[];
212
213
  regulates?: IRegulate[];
213
214
  brandType?: IBrandType;
214
215
  partneredAccountantCompaniesServices: IPartneredAccountantCompanyService[];
@@ -0,0 +1,14 @@
1
+ import { VisualizedInformationState } from '../../Enum/VisualizedInformation';
2
+ import { ISociety } from './ISociety';
3
+
4
+ export interface IVisualizedInformation {
5
+ id?: number;
6
+ key: string;
7
+ state: VisualizedInformationState;
8
+ idSociety: number;
9
+ createdAt?: Date | null;
10
+ updatedAt?: Date | null;
11
+
12
+ // Associations
13
+ society?: ISociety;
14
+ }
package/ts/types/index.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  // Interfaces
2
+ export * from './Interface/models/IVisualizedInformation';
2
3
  export * from './Interface/models/IApiError';
3
4
  export * from './Interface/models/ISms';
4
5
  export * from './Interface/models/IAccessToken';
@@ -315,6 +316,7 @@ export * from './Form/FormAuthenticate';
315
316
  export * from './Form/FormConnector';
316
317
 
317
318
  // Enums
319
+ export * from './Enum/VisualizedInformation';
318
320
  export * from './Enum/NafCode';
319
321
  export * from './Enum/Acceptance';
320
322
  export * from './Enum/FolderFile';
@@ -889,6 +891,7 @@ export * from './Interface/api/wallet/UpdateAttribution';
889
891
  export * from './Interface/api/prestation/CreatePrestation';
890
892
  export * from './Interface/api/prestation/QueryPrestation';
891
893
  export * from './Interface/api/prestation/QueryCreatePrestationSocieties';
894
+ export * from './Interface/api/prestation/QueryGetPaginatedSocietiesFromPrestation';
892
895
  export * from './Interface/api/paymentExpectation/QueryPaymentExpectation';
893
896
  export * from './Interface/api/legalNotice/UpdateLegalNotice';
894
897
  export * from './Interface/api/wallet/QueryWallet';
@@ -917,10 +920,14 @@ export * from './Interface/api/commercialImport/Query';
917
920
  export * from './Interface/api/commercialImport/Create';
918
921
  export * from './Interface/api/cashAndExpense/Create';
919
922
  export * from './Interface/api/accountsSectors/Create';
923
+ export * from './Interface/api/fusion/FusionSocieties';
924
+
920
925
  export * from './Interface/api/businessSector/Create';
921
926
  export * from './Interface/api/businessSector/Query';
922
927
  export * from './Interface/api/businessSector/Delete';
923
928
  export * from './Interface/api/accountsSectors/Query';
929
+ export * from './Interface/api/visualizedInformation/Query';
930
+ export * from './Interface/api/visualizedInformation/Update';
924
931
  // Enums types
925
932
  export * from './Interface/enum/Util';
926
933
  export * from './Interface/enum/Date';
@@ -25,6 +25,11 @@ export function getCerfa3517Century23Payload(accountingEntries: IAccountingEntry
25
25
  const frenchVat = vats.filter((v) => !v.isVatImportation && !v.isVatIntracom).map((v) => v.id);
26
26
  const importationVat = vats.filter((v) => v.isVatImportation && !v.isVatIntracom).map((v) => v.id);
27
27
 
28
+ const untaxedOperationBuy = 0; // FIXME: "TOTAL COMPTE" sur CDC
29
+ const untaxedOperationExported = setZeroIfIsNegative(getAmountByAccountNumber(vatEntries.filter((ae) => withoutTaxVat.includes(ae.idVat) && importationVat.includes(ae.idVat)), ['701', '702', '703', '704', '705', '706', '707', '708'], 0, true));
30
+ const untaxedOperationOther = setZeroIfIsNegative(getAmountByAccountNumber(vatEntries.filter((ae) => withoutTaxVat.includes(ae.idVat) && !importationVat.includes(ae.idVat) && !intracomVat.includes(ae.idVat)), ['7'], 0, true));
31
+ const untaxedOperationIntracomunauty = setZeroIfIsNegative(getAmountByAccountNumber(vatEntries.filter((ae) => withoutTaxVat.includes(ae.idVat) && intracomVat.includes(ae.idVat)), ['701', '702', '703', '704', '705', '706', '707'], 0, true));
32
+
28
33
  const taxedOperationsAccounts = ['701', '702', '703', '704', '705', '706', '707', '708', '472'];
29
34
 
30
35
  const vatNormalRate20 = setZeroIfIsNegative(getAmountByAccountNumber(vatEntries.filter((ae) => ae.idVat === Vat.TX_20.id), taxedOperationsAccounts, 0, true));
@@ -97,13 +102,14 @@ export function getCerfa3517Century23Payload(accountingEntries: IAccountingEntry
97
102
  isPayment: true,
98
103
  },
99
104
  untaxedOperation: {
100
- buy: 0, //
101
- exported: 0, //
102
- other: 0, //
103
- petrol: 0, //
104
- intracomunauty: 0, //
105
- salesGoodsOrServices: 0, //
106
- delivery: 0, //
105
+ buy: untaxedOperationBuy,
106
+ exported: untaxedOperationExported,
107
+ other: untaxedOperationOther,
108
+ distance: _round(payload?.untaxedOperation?.distance ?? 0),
109
+ petrol: _round(payload?.untaxedOperation?.petrol ?? 0),
110
+ intracomunauty: untaxedOperationIntracomunauty,
111
+ salesGoodsOrServices: _round(payload?.untaxedOperation?.salesGoodsOrServices ?? 0),
112
+ delivery: _round(payload?.untaxedOperation?.delivery ?? 0),
107
113
  },
108
114
  vat: {
109
115
  normalRate20: {
@@ -1669,6 +1675,10 @@ export const cerfa3517Century23Fields: CerfaPayloadForm[] = [{
1669
1675
  {
1670
1676
  sectionName: 'TVA brute',
1671
1677
  childrens: [
1678
+ { label: '3A - Ventes à distance taxables dans un autre État membre au profit de personnes non assujetties', key: 'untaxedOperation.distance', type: 'number' },
1679
+ { label: '3B - Mises à la consommation de produits pétroliers', key: 'untaxedOperation.petrol', type: 'number' },
1680
+ { label: '4B - Ventes de biens ou prestations de services réalisées par un assujetti non établi en France (article 283-1 du code général des impôts)', key: 'untaxedOperation.salesGoodsOrServices', type: 'number' },
1681
+ { label: '4D - Livraisons d’électricité, de gaz naturel, de chaleur ou de froid non imposables en France', key: 'untaxedOperation.delivery', type: 'number' },
1672
1682
  { label: '5B - Taux normal 20 % sur les produits pétroliers', key: 'vat.normalRate20OnPetrol', type: 'number' },
1673
1683
  { label: '09 - Taux particulier, base', key: 'vat.particularRate.base', type: 'number' },
1674
1684
  { label: '09 - Taux particulier, taxe', key: 'vat.particularRate.tax', type: 'number' },