@silexpert/core 1.1.153 → 1.1.155

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 (45) hide show
  1. package/dist/cjs/api/resources/KilometricAllowance.js +1 -1
  2. package/dist/cjs/api/resources/KilometricAllowance.js.map +1 -1
  3. package/dist/cjs/types/Enum/BrandClementine.d.ts +19 -2
  4. package/dist/cjs/types/Enum/BrandClementine.d.ts.map +1 -1
  5. package/dist/cjs/types/Enum/BrandClementine.js +18 -0
  6. package/dist/cjs/types/Enum/BrandClementine.js.map +1 -1
  7. package/dist/cjs/types/Enum/BrandPourcentage.d.ts +23 -3
  8. package/dist/cjs/types/Enum/BrandPourcentage.d.ts.map +1 -1
  9. package/dist/cjs/types/Enum/BrandPourcentage.js +24 -5
  10. package/dist/cjs/types/Enum/BrandPourcentage.js.map +1 -1
  11. package/dist/cjs/types/Enum/Log.d.ts +8 -1
  12. package/dist/cjs/types/Enum/Log.d.ts.map +1 -1
  13. package/dist/cjs/types/Enum/Log.js +7 -0
  14. package/dist/cjs/types/Enum/Log.js.map +1 -1
  15. package/dist/cjs/types/Interface/models/IAccountDetail.d.ts +2 -0
  16. package/dist/cjs/types/Interface/models/IAccountDetail.d.ts.map +1 -1
  17. package/dist/cjs/types/Interface/models/IAccountDetail.js.map +1 -1
  18. package/dist/cjs/utils/vat/3310/century23.js +58 -58
  19. package/dist/cjs/utils/vat/3310/century23.js.map +1 -1
  20. package/dist/mjs/api/resources/KilometricAllowance.js +1 -1
  21. package/dist/mjs/api/resources/KilometricAllowance.js.map +1 -1
  22. package/dist/mjs/types/Enum/BrandClementine.d.ts +19 -2
  23. package/dist/mjs/types/Enum/BrandClementine.d.ts.map +1 -1
  24. package/dist/mjs/types/Enum/BrandClementine.js +18 -0
  25. package/dist/mjs/types/Enum/BrandClementine.js.map +1 -1
  26. package/dist/mjs/types/Enum/BrandPourcentage.d.ts +23 -3
  27. package/dist/mjs/types/Enum/BrandPourcentage.d.ts.map +1 -1
  28. package/dist/mjs/types/Enum/BrandPourcentage.js +24 -5
  29. package/dist/mjs/types/Enum/BrandPourcentage.js.map +1 -1
  30. package/dist/mjs/types/Enum/Log.d.ts +8 -1
  31. package/dist/mjs/types/Enum/Log.d.ts.map +1 -1
  32. package/dist/mjs/types/Enum/Log.js +7 -0
  33. package/dist/mjs/types/Enum/Log.js.map +1 -1
  34. package/dist/mjs/types/Interface/models/IAccountDetail.d.ts +2 -0
  35. package/dist/mjs/types/Interface/models/IAccountDetail.d.ts.map +1 -1
  36. package/dist/mjs/types/Interface/models/IAccountDetail.js.map +1 -1
  37. package/dist/mjs/utils/vat/3310/century23.js +5 -5
  38. package/dist/mjs/utils/vat/3310/century23.js.map +1 -1
  39. package/package.json +1 -1
  40. package/ts/api/resources/KilometricAllowance.ts +1 -1
  41. package/ts/types/Enum/BrandClementine.ts +18 -0
  42. package/ts/types/Enum/BrandPourcentage.ts +24 -5
  43. package/ts/types/Enum/Log.ts +7 -0
  44. package/ts/types/Interface/models/IAccountDetail.ts +2 -0
  45. package/ts/utils/vat/3310/century23.ts +5 -5
@@ -48,6 +48,7 @@ export const BrandClementine = [
48
48
  nomRaisonSociale: 'EXPERTISE CHOIX B',
49
49
  ECName: 'M. Jean-Louis BOICHÉ',
50
50
  ECOrderCity: 'Nancy',
51
+ ECDepartment: 'Lorraine',
51
52
  ECPosition: 'Président',
52
53
  phone: '03 83 93 14 14',
53
54
  postalAddress: '9, avenue du Rhin',
@@ -322,6 +323,7 @@ export const BrandClementine = [
322
323
  nomRaisonSociale: 'EXPERTISE CHOIX B',
323
324
  ECName: 'M. Jean-Louis BOICHÉ',
324
325
  ECOrderCity: 'Nancy',
326
+ ECPosition: 'Président',
325
327
  phone: '03 83 93 14 14',
326
328
  postalAddress: '9, avenue du Rhin',
327
329
  rcs: '752 566 687',
@@ -432,6 +434,22 @@ export const BrandClementine = [
432
434
  urlApi1: 'https://api.compta-clementine.fr',
433
435
  urlApi2: 'https://api-next.compta-clementine.fr',
434
436
  urlClient: 'https://www.klems.fr',
437
+ companyInformation: {
438
+ ape: '6920Z',
439
+ bp: 'BP 31029',
440
+ city: 'Laxou',
441
+ montantCapital: '500 000',
442
+ nomRaisonSociale: 'EXPERTISE CHOIX B',
443
+ ECName: 'M. Jean-Louis BOICHÉ',
444
+ ECOrderCity: 'Nancy',
445
+ ECDepartment: 'Lorraine',
446
+ ECPosition: 'Président',
447
+ phone: '03 83 93 14 14',
448
+ postalAddress: '9, avenue du Rhin',
449
+ rcs: '752 566 687',
450
+ statut: 'SAS',
451
+ zipCode: '54 520',
452
+ },
435
453
  bank: {
436
454
  IBAN: 'FR7616106840138646838239863',
437
455
  BIC: 'AGRIFRPP861',
@@ -42,12 +42,14 @@ export const BrandPourcentage = [
42
42
  },
43
43
  companyInformation: {
44
44
  ape: '6920Z',
45
- bp: '',
45
+ bp: 'BP 31029',
46
46
  city: 'Laxou',
47
47
  montantCapital: '150 000',
48
- nomRaisonSociale: 'POURCENTAGE',
48
+ nomRaisonSociale: 'EXPERTISE CHOIX C',
49
49
  ECName: 'M. Jean-Louis BOICHÉ',
50
50
  ECOrderCity: 'Nancy',
51
+ ECDepartment: 'Lorraine',
52
+ ECPosition: 'Président',
51
53
  phone: '01 86 90 82 15',
52
54
  postalAddress: '9, avenue du Rhin',
53
55
  rcs: '891 501 181',
@@ -69,6 +71,10 @@ export const BrandPourcentage = [
69
71
  BIC: 'AGRIFRPP861',
70
72
  Name: 'POURCENTAGE',
71
73
  Id: 'FR57ZZZ878E61',
74
+ codeEtablissement: '16106',
75
+ codeGuichet: '01001',
76
+ numeroCompte: '96018269527',
77
+ cleRib: '65',
72
78
  },
73
79
  internalInvoicing: {
74
80
  statut: 'SASU',
@@ -345,6 +351,10 @@ export const BrandPourcentage = [
345
351
  BIC: 'AGRIFRPP861',
346
352
  Name: 'SOFRAGECO',
347
353
  Id: 'FR08ZZZ892C4F',
354
+ codeEtablissement: '16106',
355
+ codeGuichet: '01001',
356
+ numeroCompte: '96017036111',
357
+ cleRib: '54',
348
358
  },
349
359
  internalInvoicing: {
350
360
  statut: 'SAS',
@@ -412,6 +422,7 @@ export const BrandPourcentage = [
412
422
  nomRaisonSociale: 'AEC 54',
413
423
  ECName: 'M. Jean-Louis BOICHÉ',
414
424
  ECOrderCity: 'Nancy',
425
+ ECPosition: 'Président',
415
426
  phone: '03 83 25 82 20',
416
427
  postalAddress: '9, avenue du Rhin',
417
428
  rcs: '315 519 587 R.C.S. Nancy',
@@ -500,6 +511,7 @@ export const BrandPourcentage = [
500
511
  nomRaisonSociale: 'POURCENTAGE',
501
512
  ECName: 'M. Jean-Louis BOICHÉ',
502
513
  ECOrderCity: 'Nancy',
514
+ ECPosition: 'Président',
503
515
  phone: '01 86 90 82 15',
504
516
  postalAddress: '9, avenue du Rhin',
505
517
  rcs: '891 501 181',
@@ -587,11 +599,13 @@ export const BrandPourcentage = [
587
599
  montantCapital: '466 800',
588
600
  nomRaisonSociale: 'AMEX',
589
601
  ECName: 'M. Jean-Louis BOICHÉ',
590
- ECOrderCity: 'Nancy',
602
+ ECOrderCity: 'Nice',
603
+ ECDepartment: 'PACA',
604
+ ECPosition: 'Président',
591
605
  phone: '04 93 87 03 03',
592
606
  postalAddress: '11, Boulevard Victor Hugo',
593
607
  rcs: 'Nice B 882 255 094',
594
- statut: 'SARL',
608
+ statut: 'SAS',
595
609
  zipCode: '06 000',
596
610
  },
597
611
  idPrestationsListAuthorized: [197, 205, 12, 207, 208, 189],
@@ -609,9 +623,13 @@ export const BrandPourcentage = [
609
623
  BIC: 'AGRIFRPP861',
610
624
  Name: 'AMEX',
611
625
  Id: 'FR57ZZZ86ECE0',
626
+ codeEtablissement: '16106',
627
+ codeGuichet: '01001',
628
+ numeroCompte: '96026934238',
629
+ cleRib: '89',
612
630
  },
613
631
  internalInvoicing: {
614
- statut: 'SARL',
632
+ statut: 'SAS',
615
633
  name: 'AMEX',
616
634
  address: '11, Boulevard Victor Hugo',
617
635
  zipCode: '06 000',
@@ -837,6 +855,7 @@ export const BrandPourcentage = [
837
855
  nomRaisonSociale: 'POURCENTAGE',
838
856
  ECName: 'M. Jean-Louis BOICHÉ',
839
857
  ECOrderCity: 'Nancy',
858
+ ECPosition: 'Président',
840
859
  phone: '01 86 90 82 15',
841
860
  postalAddress: '9, avenue du Rhin',
842
861
  rcs: '891 501 181',
@@ -43,6 +43,7 @@ export enum LogType {
43
43
  CONSTITUTION = 31,
44
44
  APPROBATION = 32,
45
45
  ACCEPTATION = 33,
46
+ IP = 34,
46
47
  }
47
48
 
48
49
  export const LogTypeDetail = {
@@ -244,4 +245,10 @@ export const LogTypeDetail = {
244
245
  color: 'blue-grey darken-1',
245
246
  icon: null,
246
247
  },
248
+ IP: {
249
+ id: LogType.IP,
250
+ label: 'IP',
251
+ color: 'blue-grey darken-2',
252
+ icon: null,
253
+ },
247
254
  };
@@ -7,6 +7,7 @@ export interface IAccountDetail {
7
7
  id?: number;
8
8
  comment?: string | null;
9
9
  dateComment: Date | null;
10
+ userCommentId: number | null;
10
11
  isPending: boolean;
11
12
  checkByIdAccountant: number | null;
12
13
  dateCheckAccountant: Date | null;
@@ -23,4 +24,5 @@ export interface IAccountDetail {
23
24
  account?: IAccount;
24
25
  accountDetailByAccountant?: IUser;
25
26
  accountDetailBySupervisor?: IUser;
27
+ accountDetailByCommentUser?: IUser;
26
28
  }
@@ -72,24 +72,24 @@ export function getCerfa3310Century23Payload(accountingEntries: IAccountingEntry
72
72
  const untaxedIntracommunityDelivery = setZeroIfIsNegative(getAmountByAccountNumber(vatEntries.filter((ae) => withoutTaxVat.includes(ae.idVat) && intracomVat.includes(ae.idVat)), ['701', '707'], 0, true));
73
73
  // TVA brute
74
74
  const normalRate = setZeroIfIsNegative(getAmountByAccountNumber(taxedServicesEntries.filter((e) => vats.filter((v) => v.value === 20).map((v) => v.id).includes(e.idVat)), servicesAccounts, 0, true)
75
- + getAmountByAccountNumber(intracommunityServiceEntries.filter((e) => vats.filter((v) => v.value === 20).map((v) => v.id).includes(e.idVat)), ['6'], 0, true)) + (payload?.vatControl?.france?.base20 ?? 0);
75
+ + getAmountByAccountNumber(intracommunityServiceEntries.filter((e) => vats.filter((v) => v.value === 20).map((v) => v.id).includes(e.idVat)), ['6'], 0, true)) + (payload?.vatControl?.france?.base20 ?? 0) + (payload?.vatControl?.other?.base20 ?? 0);
76
76
 
77
77
  const normalRateTax = _round(normalRate * 0.2);
78
78
 
79
79
  const reducedRate5Dot5 = setZeroIfIsNegative(getAmountByAccountNumber(taxedServicesEntries.filter((e) => vats.filter((v) => v.value === 5.5).map((v) => v.id).includes(e.idVat)), servicesAccounts, 0, true)
80
- + getAmountByAccountNumber(intracommunityServiceEntries.filter((e) => vats.filter((v) => v.value === 5.5).map((v) => v.id).includes(e.idVat)), ['6'], 0, true)) + (payload?.vatControl?.france?.base5Dot5 ?? 0);
80
+ + getAmountByAccountNumber(intracommunityServiceEntries.filter((e) => vats.filter((v) => v.value === 5.5).map((v) => v.id).includes(e.idVat)), ['6'], 0, true)) + (payload?.vatControl?.france?.base5Dot5 ?? 0) + (payload?.vatControl?.other?.base5Dot5 ?? 0);
81
81
  const reducedRate5Dot5Tax = _round(reducedRate5Dot5 * 0.055);
82
82
 
83
83
  const reducedRate10 = setZeroIfIsNegative(getAmountByAccountNumber(taxedServicesEntries.filter((e) => vats.filter((v) => v.value === 10).map((v) => v.id).includes(e.idVat)), servicesAccounts, 0, true)
84
- + getAmountByAccountNumber(intracommunityServiceEntries.filter((e) => vats.filter((v) => v.value === 10).map((v) => v.id).includes(e.idVat)), ['6'], 0, true)) + (payload?.vatControl?.france?.base10 ?? 0);
84
+ + getAmountByAccountNumber(intracommunityServiceEntries.filter((e) => vats.filter((v) => v.value === 10).map((v) => v.id).includes(e.idVat)), ['6'], 0, true)) + (payload?.vatControl?.france?.base10 ?? 0) + (payload?.vatControl?.other?.base10 ?? 0);
85
85
  const reducedRate10Tax = _round(reducedRate10 * 0.1);
86
86
 
87
87
  const reducedRate8Dot5 = setZeroIfIsNegative(getAmountByAccountNumber(taxedServicesEntries.filter((e) => vats.filter((v) => v.value === 8.5).map((v) => v.id).includes(e.idVat)), servicesAccounts, 0, true)
88
- + getAmountByAccountNumber(intracommunityServiceEntries.filter((e) => vats.filter((v) => v.value === 8.5).map((v) => v.id).includes(e.idVat)), ['6'], 0, true)) + (payload?.vatControl?.france?.base8Dot5 ?? 0);
88
+ + getAmountByAccountNumber(intracommunityServiceEntries.filter((e) => vats.filter((v) => v.value === 8.5).map((v) => v.id).includes(e.idVat)), ['6'], 0, true)) + (payload?.vatControl?.france?.base8Dot5 ?? 0) + (payload?.vatControl?.other?.base5Dot5 ?? 0);
89
89
  const reducedRate8Dot5Tax = _round(reducedRate8Dot5 * 0.085);
90
90
 
91
91
  const reducedRate2Dot1 = setZeroIfIsNegative(getAmountByAccountNumber(taxedServicesEntries.filter((e) => vats.filter((v) => v.value === 2.1).map((v) => v.id).includes(e.idVat)), servicesAccounts, 0, true)
92
- + getAmountByAccountNumber(intracommunityServiceEntries.filter((e) => vats.filter((v) => v.value === 2.1).map((v) => v.id).includes(e.idVat)), ['6'], 0, true)) + (payload?.vatControl?.france?.base2Dot1 ?? 0);
92
+ + getAmountByAccountNumber(intracommunityServiceEntries.filter((e) => vats.filter((v) => v.value === 2.1).map((v) => v.id).includes(e.idVat)), ['6'], 0, true)) + (payload?.vatControl?.france?.base2Dot1 ?? 0) + (payload?.vatControl?.other?.base2Dot1 ?? 0);
93
93
  const reducedRate2Dot1Tax = _round(reducedRate2Dot1 * 0.021);
94
94
 
95
95
  const importNormalRate = setZeroIfIsNegative(getAmountByAccountNumber(taxedImportEntries.filter((e) => vats.filter((v) => v.value === 20).map((v) => v.id).includes(e.idVat)), taxedImportAccounts, 0, true)) + (payload?.vatControl?.importations?.base20 ?? 0);