@silexpert/core 2.0.32 → 2.0.34

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 (55) hide show
  1. package/dist/types/Enum/CommercialManagement.d.ts +7 -1
  2. package/dist/types/Enum/CommercialManagement.d.ts.map +1 -1
  3. package/dist/types/Enum/CommercialManagement.js +32 -17
  4. package/dist/types/Enum/CommercialManagement.js.map +1 -1
  5. package/dist/types/Enum/EstimateInvoice.d.ts.map +1 -1
  6. package/dist/types/Enum/EstimateInvoice.js +2 -1
  7. package/dist/types/Enum/EstimateInvoice.js.map +1 -1
  8. package/dist/types/Enum/KilometricAllowanceScale.d.ts.map +1 -1
  9. package/dist/types/Enum/KilometricAllowanceScale.js +119 -0
  10. package/dist/types/Enum/KilometricAllowanceScale.js.map +1 -1
  11. package/dist/types/Interface/api/documentRequest/Query.d.ts +1 -0
  12. package/dist/types/Interface/api/documentRequest/Query.d.ts.map +1 -1
  13. package/dist/types/Interface/api/documentRequest/Query.js +8 -0
  14. package/dist/types/Interface/api/documentRequest/Query.js.map +1 -1
  15. package/dist/types/Interface/api/society/CreateUserToSocietyWithPermission.d.ts +2 -2
  16. package/dist/types/Interface/api/society/CreateUserToSocietyWithPermission.d.ts.map +1 -1
  17. package/dist/types/Interface/api/society/CreateUserToSocietyWithPermission.js.map +1 -1
  18. package/dist/types/Interface/api/society/ReadSocietyUsers.d.ts +2 -3
  19. package/dist/types/Interface/api/society/ReadSocietyUsers.d.ts.map +1 -1
  20. package/dist/types/Interface/api/society/ReadSocietyUsers.js.map +1 -1
  21. package/dist/types/index.d.ts +0 -1
  22. package/dist/types/index.d.ts.map +1 -1
  23. package/dist/types/index.js +0 -1
  24. package/dist/types/index.js.map +1 -1
  25. package/dist/utils/commercialManagement/internationalization/choices.d.ts.map +1 -1
  26. package/dist/utils/commercialManagement/internationalization/choices.js +40 -55
  27. package/dist/utils/commercialManagement/internationalization/choices.js.map +1 -1
  28. package/dist/utils/vat/3517/century25.d.ts +0 -1
  29. package/dist/utils/vat/3517/century25.d.ts.map +1 -1
  30. package/dist/utils/vat/3517/century25.js +1 -154
  31. package/dist/utils/vat/3517/century25.js.map +1 -1
  32. package/dist/utils/vat/3517/century26.d.ts +2 -2
  33. package/dist/utils/vat/3517/century26.d.ts.map +1 -1
  34. package/dist/utils/vat/3517/century26.js +1 -1
  35. package/dist/utils/vat/3517/century26.js.map +1 -1
  36. package/dist/utils/vat/centuries.d.ts.map +1 -1
  37. package/dist/utils/vat/centuries.js +2 -2
  38. package/dist/utils/vat/centuries.js.map +1 -1
  39. package/package.json +1 -1
  40. package/ts/types/Enum/CommercialManagement.ts +34 -18
  41. package/ts/types/Enum/EstimateInvoice.ts +2 -1
  42. package/ts/types/Enum/KilometricAllowanceScale.ts +119 -0
  43. package/ts/types/Interface/api/documentRequest/Query.ts +6 -0
  44. package/ts/types/Interface/api/society/CreateUserToSocietyWithPermission.ts +3 -2
  45. package/ts/types/Interface/api/society/ReadSocietyUsers.ts +2 -3
  46. package/ts/types/index.ts +0 -1
  47. package/ts/utils/commercialManagement/internationalization/choices.ts +48 -55
  48. package/ts/utils/vat/3517/century25.ts +1 -159
  49. package/ts/utils/vat/3517/century26.ts +3 -3
  50. package/ts/utils/vat/centuries.ts +1 -2
  51. package/dist/types/Interface/api/user/Permissions.d.ts +0 -12
  52. package/dist/types/Interface/api/user/Permissions.d.ts.map +0 -1
  53. package/dist/types/Interface/api/user/Permissions.js +0 -2
  54. package/dist/types/Interface/api/user/Permissions.js.map +0 -1
  55. package/ts/types/Interface/api/user/Permissions.ts +0 -11
@@ -263,7 +263,7 @@ export function getCerfa3517Century25Payload(
263
263
  onInvoice: isNil ? 0 : round(onInvoiceDeductible),
264
264
  onFlatRate: isNil ? 0 : round(payload.deductible?.onFlatRate ?? 0),
265
265
  total1: 0, // Calculé plus bas
266
- rate: isNil ? 0 : round(payload.deductible?.rate ?? 100, 2),
266
+ rate: isNil ? 100 : round(payload.deductible?.rate ?? 100, 2),
267
267
  onImmobilization: isNil ? 0 : round(onImmobilizationDeductible),
268
268
  previousCredit: isNil ? 0 : round(payload.deductible?.previousCredit ?? 0),
269
269
  forget: isNil ? 0 : round(payload.deductible?.forget ?? 0),
@@ -1812,164 +1812,6 @@ export function getCerfa3517Century25RegistrationField(data: Cerfa3517_2025): As
1812
1812
  ];
1813
1813
  }
1814
1814
 
1815
- export function getCerfa3517DDRCentury25egistrationField(data: Cerfa3517_2025): AsponeFormFields {
1816
- if (data.refund.asked > 0) {
1817
- return [
1818
- {
1819
- name: '3517DDR',
1820
- fields: [
1821
- {
1822
- key: 'AA',
1823
- tag: 'Valeur',
1824
- isMultiple: false,
1825
- description:
1826
- 'MOA Crédit remboursable dégagé à la clôture de lannée ou de lexercice si celui-ci est supérieur ou égal à 150 euros 100173 a',
1827
- value: data.refund.creditRefundable,
1828
- },
1829
- {
1830
- key: 'AB',
1831
- tag: 'Valeur',
1832
- isMultiple: false,
1833
- description: 'MOA Excédent de versement de TVA dégagé 100174 b',
1834
- value: data.refund.surplus,
1835
- },
1836
- {
1837
- key: 'AC',
1838
- tag: 'Valeur',
1839
- isMultiple: false,
1840
- description: 'MOA Maximum remboursable 100175 c',
1841
- value: data.refund.maximum,
1842
- },
1843
- {
1844
- key: 'AD',
1845
- tag: 'Valeur',
1846
- isMultiple: false,
1847
- description: 'MOA Remboursement demandé 100176 d',
1848
- value: data.refund.asked,
1849
- },
1850
- {
1851
- key: 'AE',
1852
- tag: 'Valeur',
1853
- isMultiple: false,
1854
- description: 'MOA Crédit reportable si le crédit dégagé est inférieur à 150 euros 100177 e',
1855
- value: data.refund.reportable,
1856
- },
1857
- {
1858
- key: 'AF',
1859
- value: null,
1860
- isMultiple: false,
1861
- tags: [
1862
- {
1863
- tag: 'Designation',
1864
- description: 'NAD Nom et prénom du demandeur 100178 ',
1865
- value: textFormatting(data.refund.name, 35),
1866
- },
1867
- {
1868
- tag: 'AdresseVille',
1869
- description: 'NAD Lieu de dépôt de la demande 100184 ',
1870
- value: data.refund.place,
1871
- },
1872
- ],
1873
- },
1874
- {
1875
- key: 'AG',
1876
- tag: 'Valeur',
1877
- isMultiple: false,
1878
- description: 'MOA Montant dont le remboursement est demandé 100180 ',
1879
- value: data.refund.asked,
1880
- },
1881
- {
1882
- key: 'AH',
1883
- tag: 'Valeur',
1884
- isMultiple: false,
1885
- description:
1886
- 'CCI Demande de remboursement à créditer au compte désigné Table TBX avec X pour sélectionné, CCI/7037 = CAV/1131 = TBX 100189 ',
1887
- value: data.refund.shouldCredit ? 'X' : null,
1888
- },
1889
- {
1890
- key: 'AJ',
1891
- tag: 'Valeur',
1892
- isMultiple: false,
1893
- description:
1894
- 'CCI Demande de remboursement à imputer sur échéance future Table TBX avec X pour sélectionné, CCI/7037 = CAV/1131 = TBX 100186 ',
1895
- value: data.refund.shouldImpute ? 'X' : null,
1896
- },
1897
- {
1898
- key: 'AK',
1899
- value: null,
1900
- isMultiple: false,
1901
- tags: [
1902
- {
1903
- tag: 'Iban',
1904
- description: 'FII IBAN IBAN: 34 caractères alphanumériques (INTERNATIONAL BANK ACCOUNT NUMBER) 902429 ',
1905
- value: 'DYNAMIC_IBAN',
1906
- },
1907
- {
1908
- tag: 'Bic',
1909
- description: 'FII BIC BIC : 8 ou 11 caractères alphanumériques (BANK IDENTIFIER CODE) 902409 ',
1910
- value: 'DYNAMIC_BIC',
1911
- },
1912
- {
1913
- tag: 'TitulaireDesignation',
1914
- description: 'FII Nom du titulaire du compte 100187 ',
1915
- value: textFormatting(data.refund.name, 35),
1916
- },
1917
- ],
1918
- },
1919
- {
1920
- key: 'AL',
1921
- value: null,
1922
- isMultiple: false,
1923
- tags: [
1924
- {
1925
- tag: 'TexteLibre1',
1926
- description: 'FTX Commentaires type 1, ligne 1 1° zone de 512 c 100447 ',
1927
- value: null,
1928
- },
1929
- {
1930
- tag: 'TexteLibre2',
1931
- description: 'FTX Commentaires type 1, ligne 2 2° zone de 512 c 100547 ',
1932
- value: null,
1933
- },
1934
- {
1935
- tag: 'TexteLibre3',
1936
- description: 'FTX Commentaires type 1, ligne 3 3° zone de 512 c 100548 ',
1937
- value: null,
1938
- },
1939
- {
1940
- tag: 'TexteLibre4',
1941
- description: 'FTX Commentaires type 1, ligne 4 4° zone de 512 c 100549 ',
1942
- value: null,
1943
- },
1944
- {
1945
- tag: 'TexteLibre5',
1946
- description: 'FTX Commentaires type 1, ligne 5 5° zone de 512 c 100550 ',
1947
- value: null,
1948
- },
1949
- ],
1950
- },
1951
- {
1952
- key: 'BA',
1953
- tag: 'Valeur',
1954
- isMultiple: false,
1955
- description:
1956
- 'DTM Cession ou cessation ou décès ou entrée dans un groupe TVA, date de lévènement Format attendu : yyyyMMdd 905929 ',
1957
- value: null,
1958
- },
1959
- {
1960
- key: 'BB',
1961
- tag: 'Valeur',
1962
- isMultiple: false,
1963
- description: 'CCI Cession ou cessation ou décès ou entrée dans un groupe TVA 905930 ',
1964
- value: null,
1965
- },
1966
- ],
1967
- },
1968
- ];
1969
- }
1970
- return [];
1971
- }
1972
-
1973
1815
  export const cerfa3517Century25Fields: CerfaPayloadForm[] = [
1974
1816
  {
1975
1817
  sectionName: 'Général',
@@ -1,7 +1,7 @@
1
1
  import dayjs from 'dayjs';
2
2
  import { isDefined } from 'class-validator';
3
3
  import { uniqBy, round } from 'lodash-es';
4
- import { Cerfa3517_2026, PayloadCerfa3517_2026 } from '../../../types/Interface/api/cerfa/3517.js';
4
+ import { Cerfa3517_2025, Cerfa3517_2026, PayloadCerfa3517_2026 } from '../../../types/Interface/api/cerfa/3517.js';
5
5
  import { IAccountingEntry } from '../../../types/Interface/models/IAccountingEntry.js';
6
6
  import { Vat } from '../../../types/Enum/Vat.js';
7
7
  import {
@@ -269,7 +269,7 @@ export function getCerfa3517Century26Payload(
269
269
  onInvoice: isNil ? 0 : round(onInvoiceDeductible),
270
270
  onFlatRate: isNil ? 0 : round(payload.deductible?.onFlatRate ?? 0),
271
271
  total1: 0, // Calculé plus bas
272
- rate: isNil ? 0 : round(payload.deductible?.rate ?? 100, 2),
272
+ rate: isNil ? 100 : round(payload.deductible?.rate ?? 100, 2),
273
273
  onImmobilization: isNil ? 0 : round(onImmobilizationDeductible),
274
274
  previousCredit: isNil ? 0 : round(payload.deductible?.previousCredit ?? 0),
275
275
  forget: isNil ? 0 : round(payload.deductible?.forget ?? 0),
@@ -1722,7 +1722,7 @@ export function getCerfa3517Century26RegistrationField(data: Cerfa3517_2026): As
1722
1722
  ];
1723
1723
  }
1724
1724
 
1725
- export function getCerfa3517DDRCentury26RegistrationField(data: Cerfa3517_2026): AsponeFormFields {
1725
+ export function getCerfa3517DDRCentury26RegistrationField(data: Cerfa3517_2025 | Cerfa3517_2026): AsponeFormFields {
1726
1726
  if (data.refund.asked > 0) {
1727
1727
  return [
1728
1728
  {
@@ -36,7 +36,6 @@ import {
36
36
  cerfa3517Century25Fields,
37
37
  getCerfa3517Century25Payload,
38
38
  getCerfa3517Century25RegistrationField,
39
- getCerfa3517DDRCentury25egistrationField,
40
39
  } from './3517/century25.js';
41
40
  import {
42
41
  cerfa3310Century25Fields,
@@ -145,7 +144,7 @@ const vatDocuments: VatDocument[] = [
145
144
  asponePayload: (data: Cerfa3517_2025) => getCerfa3517Century25RegistrationField(data),
146
145
  fields: cerfa3517Century25Fields,
147
146
  fileName: '3517-2025',
148
- annexFields: (data: Cerfa3517_2025) => getCerfa3517DDRCentury25egistrationField(data),
147
+ annexFields: (data: Cerfa3517_2025) => getCerfa3517DDRCentury26RegistrationField(data),
149
148
  },
150
149
  {
151
150
  idCerfaType: CerfaType.CERFA_3517,
@@ -1,12 +0,0 @@
1
- export interface Permissions {
2
- gescom: boolean;
3
- compta: boolean;
4
- stats: boolean;
5
- docTreso: boolean;
6
- services: boolean;
7
- social: boolean;
8
- tva: boolean;
9
- setting: boolean;
10
- purchase: boolean;
11
- }
12
- //# sourceMappingURL=Permissions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Permissions.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/user/Permissions.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC;IAChB,GAAG,EAAE,OAAO,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;CACnB"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=Permissions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Permissions.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/user/Permissions.ts"],"names":[],"mappings":"","sourcesContent":["export interface Permissions {\n gescom: boolean;\n compta: boolean;\n stats: boolean;\n docTreso: boolean;\n services: boolean;\n social: boolean;\n tva: boolean;\n setting: boolean;\n purchase: boolean;\n}\n"]}
@@ -1,11 +0,0 @@
1
- export interface Permissions {
2
- gescom: boolean;
3
- compta: boolean;
4
- stats: boolean;
5
- docTreso: boolean;
6
- services: boolean;
7
- social: boolean;
8
- tva: boolean;
9
- setting: boolean;
10
- purchase: boolean;
11
- }