@silexpert/core 2.0.86 → 2.0.88

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 (28) hide show
  1. package/dist/api/resources/CommercialDocument.d.ts +2 -1
  2. package/dist/api/resources/CommercialDocument.d.ts.map +1 -1
  3. package/dist/api/resources/CommercialDocument.js +3 -0
  4. package/dist/api/resources/CommercialDocument.js.map +1 -1
  5. package/dist/types/Enum/EInvoicingReasonType.d.ts +48 -3
  6. package/dist/types/Enum/EInvoicingReasonType.d.ts.map +1 -1
  7. package/dist/types/Enum/EInvoicingReasonType.js +294 -2
  8. package/dist/types/Enum/EInvoicingReasonType.js.map +1 -1
  9. package/dist/types/Enum/Log.d.ts +14 -1
  10. package/dist/types/Enum/Log.d.ts.map +1 -1
  11. package/dist/types/Enum/Log.js +13 -0
  12. package/dist/types/Enum/Log.js.map +1 -1
  13. package/dist/types/Interface/api/commercialManagement/Read.d.ts +6 -0
  14. package/dist/types/Interface/api/commercialManagement/Read.d.ts.map +1 -1
  15. package/dist/types/Interface/api/commercialManagement/Read.js.map +1 -1
  16. package/dist/types/Interface/api/kyc/Create.d.ts.map +1 -1
  17. package/dist/types/Interface/api/kyc/Create.js.map +1 -1
  18. package/dist/types/Interface/models/IEInvoicingKycAndMandate.d.ts +3 -1
  19. package/dist/types/Interface/models/IEInvoicingKycAndMandate.d.ts.map +1 -1
  20. package/dist/types/Interface/models/IEInvoicingKycAndMandate.js +2 -0
  21. package/dist/types/Interface/models/IEInvoicingKycAndMandate.js.map +1 -1
  22. package/package.json +1 -1
  23. package/ts/api/resources/CommercialDocument.ts +5 -0
  24. package/ts/types/Enum/EInvoicingReasonType.ts +294 -2
  25. package/ts/types/Enum/Log.ts +14 -0
  26. package/ts/types/Interface/api/commercialManagement/Read.ts +7 -0
  27. package/ts/types/Interface/api/kyc/Create.ts +1 -0
  28. package/ts/types/Interface/models/IEInvoicingKycAndMandate.ts +3 -1
@@ -21,6 +21,7 @@ import {
21
21
  RejectEInvoice,
22
22
  SyncFlowStatusResult,
23
23
  UpdateCommercialDocument,
24
+ ResendEInvoice,
24
25
  } from '../../types/index.js';
25
26
 
26
27
  export class CommercialDocument extends Resource {
@@ -129,4 +130,8 @@ export class CommercialDocument extends Resource {
129
130
  eInvoicingSyncStatus(idEInvoicing: number): Promise<SyncFlowStatusResult> {
130
131
  return this.axios.$post(`/commercial-management/e-invoicing/lifecycle/sync/${idEInvoicing}`);
131
132
  }
133
+
134
+ eInvoicingResend(idEInvoicing: number): Promise<ResendEInvoice> {
135
+ return this.axios.$post(`/commercial-management/e-invoicing/resend/${idEInvoicing}`);
136
+ }
132
137
  }
@@ -45,6 +45,31 @@ export enum EInvoicingReasonType {
45
45
  IRR_EXT_DOC = 42,
46
46
  IRR_TAILLE_F = 43,
47
47
  IRR_ANTIVIRUS = 44,
48
+ // Erreurs métier Docoon supplémentaires
49
+ REJ_RG = 45,
50
+ REJ_HAB = 46,
51
+ REJ_SEM = 47,
52
+ // Erreurs techniques/applicatives Docoon
53
+ EMPTY_FLOW = 48,
54
+ OTHER_TECHNICAL_ERROR = 49,
55
+ INVALID_SCHEMA = 50,
56
+ FILE_SIZE_EXCEEDED = 51,
57
+ FLOW_TYPE_ERROR = 52,
58
+ ALREADY_EXISTING_FLOW = 53,
59
+ VIRUS_FOUND = 54,
60
+ CHECKSUM_MISMATCH = 55,
61
+ MISSING_LEGAL_ENTITY = 56,
62
+ MISSING_STRUCTURE = 57,
63
+ MISSING_PDP_MANDATE = 58,
64
+ INVALID_PARAMETER = 59,
65
+ PARAMETER_MISMATCH = 60,
66
+ UNAUTHORIZED = 61,
67
+ UNAUTHORIZED_PRODUCT = 62,
68
+ // Erreurs CDAR (cycle de vie)
69
+ UNKNOWN_INVOICE = 63,
70
+ INVALID_SENDER = 64,
71
+ //
72
+ AUTRE = 65,
48
73
  }
49
74
 
50
75
  export enum EInvoicingReasonTypeCode {
@@ -91,6 +116,30 @@ export enum EInvoicingReasonTypeCode {
91
116
  IRR_EXT_DOC = 'IRR_EXT_DOC',
92
117
  IRR_TAILLE_F = 'IRR_TAILLE_F',
93
118
  IRR_ANTIVIRUS = 'IRR_ANTIVIRUS',
119
+ AUTRE = 'AUTRE',
120
+ // Erreurs métier Docoon supplémentaires
121
+ REJ_RG = 'REJ_RG',
122
+ REJ_HAB = 'REJ_HAB',
123
+ REJ_SEM = 'REJ_SEM',
124
+ // Erreurs techniques/applicatives Docoon
125
+ EMPTY_FLOW = 'EmptyFlow',
126
+ OTHER_TECHNICAL_ERROR = 'OtherTechnicalError',
127
+ INVALID_SCHEMA = 'InvalidSchema',
128
+ FILE_SIZE_EXCEEDED = 'FileSizeExceeded',
129
+ FLOW_TYPE_ERROR = 'FlowTypeError',
130
+ ALREADY_EXISTING_FLOW = 'AlreadyExistingFlow',
131
+ VIRUS_FOUND = 'VirusFound',
132
+ CHECKSUM_MISMATCH = 'ChecksumMismatch',
133
+ MISSING_LEGAL_ENTITY = 'MissingLegalEntity',
134
+ MISSING_STRUCTURE = 'MissingStructure',
135
+ MISSING_PDP_MANDATE = 'MissingPdpMandate',
136
+ INVALID_PARAMETER = 'InvalidParameter',
137
+ PARAMETER_MISMATCH = 'ParameterMismatch',
138
+ UNAUTHORIZED = 'Unauthorized',
139
+ UNAUTHORIZED_PRODUCT = 'UnauthorizedProduct',
140
+ // Erreurs CDAR (cycle de vie)
141
+ UNKNOWN_INVOICE = 'UNKNOWN_INVOICE',
142
+ INVALID_SENDER = 'InvalidSender',
94
143
  }
95
144
 
96
145
  export enum EInvoicingReasonCategory {
@@ -98,6 +147,8 @@ export enum EInvoicingReasonCategory {
98
147
  ERREUR_CALCUL_ET_TVA = 2,
99
148
  INFORMATIONS_MANQUANTE = 3,
100
149
  FACTURE_DOUBLONS_PRESTATION_NON_RECONNUE = 4,
150
+ ERREURS_TECHNIQUES_APPLICATIVES = 5,
151
+ PROBLEME_ARTICLES_LIVRAISON = 6,
101
152
  }
102
153
 
103
154
  export type EInvoicingReason = {
@@ -442,6 +493,170 @@ export const einvoicingReasonList: EInvocingReasonListType = {
442
493
  description: 'Le flux ne respecte pas les conditions de sécurité (détection de contenu malveillant).',
443
494
  acceptedStatus: [EInvoicingStatusCode.REJECTED],
444
495
  },
496
+ // Erreurs métier Docoon supplémentaires
497
+ REJ_RG: {
498
+ id: EInvoicingReasonType.REJ_RG,
499
+ reasonCode: EInvoicingReasonTypeCode.REJ_RG,
500
+ label: 'Rejet sur règle de gestion métier',
501
+ description: 'Règle de gestion métier non respectée lors du traitement du flux.',
502
+ acceptedStatus: [EInvoicingStatusCode.REJECTED],
503
+ category: EInvoicingReasonCategory.ERREURS_TECHNIQUES_APPLICATIVES,
504
+ },
505
+ REJ_HAB: {
506
+ id: EInvoicingReasonType.REJ_HAB,
507
+ reasonCode: EInvoicingReasonTypeCode.REJ_HAB,
508
+ label: "Rejet sur erreur d'habilitation",
509
+ description: "Erreur d'habilitation lors du traitement du flux.",
510
+ acceptedStatus: [EInvoicingStatusCode.REJECTED],
511
+ category: EInvoicingReasonCategory.ERREURS_TECHNIQUES_APPLICATIVES,
512
+ },
513
+ // REJ_SEM est le code Docoon pour le rejet sémantique (distinct de REJ_SEMAN)
514
+ REJ_SEM: {
515
+ id: EInvoicingReasonType.REJ_SEM,
516
+ reasonCode: EInvoicingReasonTypeCode.REJ_SEM,
517
+ label: 'Rejet pour non-conformité aux règles métier du schéma',
518
+ description: 'Règles métier du fichier non conformes au schéma (code REJ_SEM).',
519
+ acceptedStatus: [EInvoicingStatusCode.REJECTED],
520
+ category: EInvoicingReasonCategory.ERREURS_TECHNIQUES_APPLICATIVES,
521
+ },
522
+ // Erreurs techniques/applicatives Docoon (pré-validation avant transmission)
523
+ EmptyFlow: {
524
+ id: EInvoicingReasonType.EMPTY_FLOW,
525
+ reasonCode: EInvoicingReasonTypeCode.EMPTY_FLOW,
526
+ label: 'Flux vide',
527
+ description: 'Le flux binaire transmis est vide.',
528
+ acceptedStatus: [EInvoicingStatusCode.REJECTED],
529
+ category: EInvoicingReasonCategory.ERREURS_TECHNIQUES_APPLICATIVES,
530
+ },
531
+ OtherTechnicalError: {
532
+ id: EInvoicingReasonType.OTHER_TECHNICAL_ERROR,
533
+ reasonCode: EInvoicingReasonTypeCode.OTHER_TECHNICAL_ERROR,
534
+ label: 'Autre erreur technique',
535
+ description: 'Erreur technique non catégorisée.',
536
+ acceptedStatus: [EInvoicingStatusCode.REJECTED],
537
+ category: EInvoicingReasonCategory.ERREURS_TECHNIQUES_APPLICATIVES,
538
+ },
539
+ InvalidSchema: {
540
+ id: EInvoicingReasonType.INVALID_SCHEMA,
541
+ reasonCode: EInvoicingReasonTypeCode.INVALID_SCHEMA,
542
+ label: 'Schéma XML invalide',
543
+ description: 'Le schéma XML de la facture est invalide.',
544
+ acceptedStatus: [EInvoicingStatusCode.REJECTED],
545
+ category: EInvoicingReasonCategory.ERREURS_TECHNIQUES_APPLICATIVES,
546
+ },
547
+ FileSizeExceeded: {
548
+ id: EInvoicingReasonType.FILE_SIZE_EXCEEDED,
549
+ reasonCode: EInvoicingReasonTypeCode.FILE_SIZE_EXCEEDED,
550
+ label: 'Taille limite du fichier dépassée',
551
+ description: 'La taille limite autorisée pour le fichier a été atteinte.',
552
+ acceptedStatus: [EInvoicingStatusCode.REJECTED],
553
+ category: EInvoicingReasonCategory.ERREURS_TECHNIQUES_APPLICATIVES,
554
+ },
555
+ FlowTypeError: {
556
+ id: EInvoicingReasonType.FLOW_TYPE_ERROR,
557
+ reasonCode: EInvoicingReasonTypeCode.FLOW_TYPE_ERROR,
558
+ label: 'Type ou extension de flux non conforme',
559
+ description: "Le type ou l'extension du fichier ne sont pas conformes aux règles attendues.",
560
+ acceptedStatus: [EInvoicingStatusCode.REJECTED],
561
+ category: EInvoicingReasonCategory.ERREURS_TECHNIQUES_APPLICATIVES,
562
+ },
563
+ AlreadyExistingFlow: {
564
+ id: EInvoicingReasonType.ALREADY_EXISTING_FLOW,
565
+ reasonCode: EInvoicingReasonTypeCode.ALREADY_EXISTING_FLOW,
566
+ label: 'Flux déjà reçu',
567
+ description: 'Le flux a déjà été envoyé et reçu avec succès.',
568
+ acceptedStatus: [EInvoicingStatusCode.REJECTED],
569
+ category: EInvoicingReasonCategory.ERREURS_TECHNIQUES_APPLICATIVES,
570
+ },
571
+ VirusFound: {
572
+ id: EInvoicingReasonType.VIRUS_FOUND,
573
+ reasonCode: EInvoicingReasonTypeCode.VIRUS_FOUND,
574
+ label: 'Virus détecté',
575
+ description: 'Un virus a été détecté dans le flux transmis.',
576
+ acceptedStatus: [EInvoicingStatusCode.REJECTED],
577
+ category: EInvoicingReasonCategory.ERREURS_TECHNIQUES_APPLICATIVES,
578
+ },
579
+ ChecksumMismatch: {
580
+ id: EInvoicingReasonType.CHECKSUM_MISMATCH,
581
+ reasonCode: EInvoicingReasonTypeCode.CHECKSUM_MISMATCH,
582
+ label: 'Empreinte numérique incorrecte',
583
+ description: "L'empreinte numérique fournie diffère de celle calculée par la plateforme.",
584
+ acceptedStatus: [EInvoicingStatusCode.REJECTED],
585
+ category: EInvoicingReasonCategory.ERREURS_TECHNIQUES_APPLICATIVES,
586
+ },
587
+ MissingLegalEntity: {
588
+ id: EInvoicingReasonType.MISSING_LEGAL_ENTITY,
589
+ reasonCode: EInvoicingReasonTypeCode.MISSING_LEGAL_ENTITY,
590
+ label: 'Entité légale introuvable',
591
+ description: "L'entité légale référencée n'a pas été trouvée sur le tenant.",
592
+ acceptedStatus: [EInvoicingStatusCode.REJECTED],
593
+ category: EInvoicingReasonCategory.ERREURS_TECHNIQUES_APPLICATIVES,
594
+ },
595
+ MissingStructure: {
596
+ id: EInvoicingReasonType.MISSING_STRUCTURE,
597
+ reasonCode: EInvoicingReasonTypeCode.MISSING_STRUCTURE,
598
+ label: 'Organisation non référencée',
599
+ description: "L'organisation n'est pas référencée sur le tenant.",
600
+ acceptedStatus: [EInvoicingStatusCode.REJECTED],
601
+ category: EInvoicingReasonCategory.ERREURS_TECHNIQUES_APPLICATIVES,
602
+ },
603
+ MissingPdpMandate: {
604
+ id: EInvoicingReasonType.MISSING_PDP_MANDATE,
605
+ reasonCode: EInvoicingReasonTypeCode.MISSING_PDP_MANDATE,
606
+ label: 'Mandat PDP introuvable',
607
+ description: "Aucun mandat PDP correspondant n'a été trouvé.",
608
+ acceptedStatus: [EInvoicingStatusCode.REJECTED],
609
+ category: EInvoicingReasonCategory.ERREURS_TECHNIQUES_APPLICATIVES,
610
+ },
611
+ InvalidParameter: {
612
+ id: EInvoicingReasonType.INVALID_PARAMETER,
613
+ reasonCode: EInvoicingReasonTypeCode.INVALID_PARAMETER,
614
+ label: 'Valeur de paramètre invalide',
615
+ description: 'Un paramètre fourni dans la requête a une valeur invalide.',
616
+ acceptedStatus: [EInvoicingStatusCode.REJECTED],
617
+ category: EInvoicingReasonCategory.ERREURS_TECHNIQUES_APPLICATIVES,
618
+ },
619
+ ParameterMismatch: {
620
+ id: EInvoicingReasonType.PARAMETER_MISMATCH,
621
+ reasonCode: EInvoicingReasonTypeCode.PARAMETER_MISMATCH,
622
+ label: 'Incohérence de paramètres',
623
+ description: 'Incohérence détectée entre les paramètres fournis dans la requête.',
624
+ acceptedStatus: [EInvoicingStatusCode.REJECTED],
625
+ category: EInvoicingReasonCategory.ERREURS_TECHNIQUES_APPLICATIVES,
626
+ },
627
+ Unauthorized: {
628
+ id: EInvoicingReasonType.UNAUTHORIZED,
629
+ reasonCode: EInvoicingReasonTypeCode.UNAUTHORIZED,
630
+ label: 'Non autorisé',
631
+ description: 'Clé API invalide ou contrôle IP échoué.',
632
+ acceptedStatus: [],
633
+ category: EInvoicingReasonCategory.ERREURS_TECHNIQUES_APPLICATIVES,
634
+ },
635
+ UnauthorizedProduct: {
636
+ id: EInvoicingReasonType.UNAUTHORIZED_PRODUCT,
637
+ reasonCode: EInvoicingReasonTypeCode.UNAUTHORIZED_PRODUCT,
638
+ label: 'Produit non autorisé',
639
+ description: 'Les produits utilisés ne sont pas autorisés pour ce tenant.',
640
+ acceptedStatus: [],
641
+ category: EInvoicingReasonCategory.ERREURS_TECHNIQUES_APPLICATIVES,
642
+ },
643
+ // Erreurs CDAR (cycle de vie)
644
+ UNKNOWN_INVOICE: {
645
+ id: EInvoicingReasonType.UNKNOWN_INVOICE,
646
+ reasonCode: EInvoicingReasonTypeCode.UNKNOWN_INVOICE,
647
+ label: 'Facture inconnue',
648
+ description: "Aucune facture correspondante n'a été trouvée.",
649
+ acceptedStatus: [EInvoicingStatusCode.REJECTED],
650
+ category: EInvoicingReasonCategory.ERREURS_TECHNIQUES_APPLICATIVES,
651
+ },
652
+ InvalidSender: {
653
+ id: EInvoicingReasonType.INVALID_SENDER,
654
+ reasonCode: EInvoicingReasonTypeCode.INVALID_SENDER,
655
+ label: 'Émetteur invalide',
656
+ description: "L'émetteur ne correspond pas au vendeur/acheteur déclaré.",
657
+ acceptedStatus: [EInvoicingStatusCode.REJECTED],
658
+ category: EInvoicingReasonCategory.ERREURS_TECHNIQUES_APPLICATIVES,
659
+ },
445
660
  };
446
661
 
447
662
  export const EInvoicingReasonLIst = [
@@ -449,19 +664,22 @@ export const EInvoicingReasonLIst = [
449
664
  name: 'Erreurs de destinataire',
450
665
  reasonList: [
451
666
  {
452
- label: 'Facture adressée à la mauvaise entité',
667
+ label: 'Adresse erronée à la mauvaise entité',
453
668
  id: EInvoicingReasonType.DEST_ERR,
454
669
  reasonCode: EInvoicingReasonTypeCode.DEST_ERR,
670
+ reasonStatus: EInvoicingStatusCode.REFUSED,
455
671
  },
456
672
  {
457
673
  label: 'Emetteur de la facture inconnu',
458
674
  id: EInvoicingReasonType.EMMET_INC,
459
675
  reasonCode: EInvoicingReasonTypeCode.EMMET_INC,
676
+ reasonStatus: EInvoicingStatusCode.REFUSED,
460
677
  },
461
678
  {
462
679
  label: 'Adresse de facturation électronique érronnée',
463
680
  id: EInvoicingReasonType.ADR_ERR,
464
681
  reasonCode: EInvoicingReasonTypeCode.ADR_ERR,
682
+ reasonStatus: EInvoicingStatusCode.REFUSED,
465
683
  },
466
684
  ],
467
685
  },
@@ -472,16 +690,43 @@ export const EInvoicingReasonLIst = [
472
690
  label: 'Taux de TVA incorrect',
473
691
  id: EInvoicingReasonType.TX_TVA_ERR,
474
692
  reasonCode: EInvoicingReasonTypeCode.TX_TVA_ERR,
693
+ reasonStatus: EInvoicingStatusCode.IN_DISPUTE,
475
694
  },
476
695
  {
477
696
  label: 'Montant total erroné',
478
697
  id: EInvoicingReasonType.MONTANTTOTAL_ERR,
479
698
  reasonCode: EInvoicingReasonTypeCode.MONTANTTOTAL_ERR,
699
+ reasonStatus: EInvoicingStatusCode.IN_DISPUTE,
480
700
  },
481
701
  {
482
702
  label: 'Erreur de calcul',
483
703
  id: EInvoicingReasonType.CALCUL_ERR,
484
704
  reasonCode: EInvoicingReasonTypeCode.CALCUL_ERR,
705
+ reasonStatus: EInvoicingStatusCode.IN_DISPUTE,
706
+ },
707
+ {
708
+ label: 'Coordonnées bancaires incorrectes',
709
+ id: EInvoicingReasonType.COORD_BANC_ERR,
710
+ reasonCode: EInvoicingReasonTypeCode.COORD_BANC_ERR,
711
+ reasonStatus: EInvoicingStatusCode.IN_DISPUTE,
712
+ },
713
+ {
714
+ label: 'Prix unitaires incorrects',
715
+ id: EInvoicingReasonType.PU_ERR,
716
+ reasonCode: EInvoicingReasonTypeCode.PU_ERR,
717
+ reasonStatus: EInvoicingStatusCode.IN_DISPUTE,
718
+ },
719
+ {
720
+ label: 'Remise incorrecte',
721
+ id: EInvoicingReasonType.REM_ERR,
722
+ reasonCode: EInvoicingReasonTypeCode.REM_ERR,
723
+ reasonStatus: EInvoicingStatusCode.IN_DISPUTE,
724
+ },
725
+ {
726
+ label: 'Modalité de paiement incorrecte',
727
+ id: EInvoicingReasonType.MODPAI_ERR,
728
+ reasonCode: EInvoicingReasonTypeCode.MODPAI_ERR,
729
+ reasonStatus: EInvoicingStatusCode.IN_DISPUTE,
485
730
  },
486
731
  ],
487
732
  },
@@ -492,16 +737,48 @@ export const EInvoicingReasonLIst = [
492
737
  label: 'Mention légale obligatoire manquante',
493
738
  id: EInvoicingReasonType.NON_CONFORME,
494
739
  reasonCode: EInvoicingReasonTypeCode.NON_CONFORME,
740
+ reasonStatus: EInvoicingStatusCode.IN_DISPUTE,
495
741
  },
496
742
  {
497
743
  label: 'Numéro de commande manquant ou incorrect',
498
744
  id: EInvoicingReasonType.CMD_ERR,
499
745
  reasonCode: EInvoicingReasonTypeCode.CMD_ERR,
746
+ reasonStatus: EInvoicingStatusCode.REFUSED,
500
747
  },
501
748
  {
502
- label: 'Référence contractuelle obligatoire manquante',
749
+ label: 'Référence contractuelle ou lot manquant',
503
750
  id: EInvoicingReasonType.REF_CT_ABSENT,
504
751
  reasonCode: EInvoicingReasonTypeCode.REF_CT_ABSENT,
752
+ reasonStatus: EInvoicingStatusCode.REFUSED,
753
+ },
754
+ ],
755
+ },
756
+ {
757
+ name: 'Problème sur les articles ou la livraison',
758
+ reasonList: [
759
+ {
760
+ label: 'Quantité facturée incorrecte',
761
+ id: EInvoicingReasonType.QTE_ERR,
762
+ reasonCode: EInvoicingReasonTypeCode.QTE_ERR,
763
+ reasonStatus: EInvoicingStatusCode.IN_DISPUTE,
764
+ },
765
+ {
766
+ label: 'Article facturé manquant',
767
+ id: EInvoicingReasonType.ART_ERR,
768
+ reasonCode: EInvoicingReasonTypeCode.ART_ERR,
769
+ reasonStatus: EInvoicingStatusCode.IN_DISPUTE,
770
+ },
771
+ {
772
+ label: "Qualité d'article livré incorrecte",
773
+ id: EInvoicingReasonType.QUALITE_ERR,
774
+ reasonCode: EInvoicingReasonTypeCode.QUALITE_ERR,
775
+ reasonStatus: EInvoicingStatusCode.IN_DISPUTE,
776
+ },
777
+ {
778
+ label: 'Problème de livraison',
779
+ id: EInvoicingReasonType.LIVR_INCOMP,
780
+ reasonCode: EInvoicingReasonTypeCode.LIVR_INCOMP,
781
+ reasonStatus: EInvoicingStatusCode.IN_DISPUTE,
505
782
  },
506
783
  ],
507
784
  },
@@ -512,21 +789,36 @@ export const EInvoicingReasonLIst = [
512
789
  label: 'Facture déjà reçue',
513
790
  id: EInvoicingReasonType.DOUBLON,
514
791
  reasonCode: EInvoicingReasonTypeCode.DOUBLON,
792
+ reasonStatus: EInvoicingStatusCode.REFUSED,
515
793
  },
516
794
  {
517
795
  label: 'Facture ne correspondant à aucune commande / prestation',
518
796
  id: EInvoicingReasonType.TRANSAC_INC,
519
797
  reasonCode: EInvoicingReasonTypeCode.TRANSAC_INC,
798
+ reasonStatus: EInvoicingStatusCode.REFUSED,
520
799
  },
521
800
  {
522
801
  label: 'Contrat terminé avec ce fournisseur',
523
802
  id: EInvoicingReasonType.CONTRAT_TERM,
524
803
  reasonCode: EInvoicingReasonTypeCode.CONTRAT_TERM,
804
+ reasonStatus: EInvoicingStatusCode.REFUSED,
525
805
  },
526
806
  {
527
807
  label: 'Cette prestation a déjà été facturée',
528
808
  id: EInvoicingReasonType.DOUBLE_FACT,
529
809
  reasonCode: EInvoicingReasonTypeCode.DOUBLE_FACT,
810
+ reasonStatus: EInvoicingStatusCode.REFUSED,
811
+ },
812
+ ],
813
+ },
814
+ {
815
+ name: 'Autres raisons',
816
+ reasonList: [
817
+ {
818
+ label: 'Autre',
819
+ id: EInvoicingReasonType.AUTRE,
820
+ reasonCode: EInvoicingReasonTypeCode.AUTRE,
821
+ reasonStatus: EInvoicingStatusCode.IN_DISPUTE,
530
822
  },
531
823
  ],
532
824
  },
@@ -59,6 +59,7 @@ export enum LogType {
59
59
  MANUAL_BALANCE = 47,
60
60
  MANUAL_PREVIOUS_BALANCE = 48,
61
61
  INVOICE_TRANSACTION_DELETE = 49,
62
+ EXERCICE = 50,
62
63
  }
63
64
 
64
65
  export const LogTypeDetail = {
@@ -606,4 +607,17 @@ export const LogTypeDetail = {
606
607
  },
607
608
  message: '%societyName% (Période: %startDate% - %endDate%)',
608
609
  },
610
+
611
+ EXERCICE: {
612
+ id: LogType.EXERCICE,
613
+ label: 'Exercice',
614
+ color: 'green',
615
+ icon: null,
616
+ actions: {
617
+ post: 'a ajouté',
618
+ put: 'a modifié',
619
+ delete: 'a supprimé',
620
+ },
621
+ message: 'un exercice',
622
+ },
609
623
  };
@@ -11,6 +11,7 @@ import { ISaleEmail } from '../../models/ISaleEmail.js';
11
11
  import { CountryId } from '#types/Enum/Country.js';
12
12
  import { EInvoicingFLowStatus } from '#types/Enum/EInvoicingStatusCode.js';
13
13
  import { EInvoicingReasonTypeCode } from '#types/Enum/EInvoicingReasonType.js';
14
+ import { IEInvoicing } from '../../../../index.js';
14
15
 
15
16
  export type ReadCashBasedInvoice = Partial<IAccountingFile>;
16
17
 
@@ -249,3 +250,9 @@ export type ReadEInvoice = {
249
250
  externalStructureId: string;
250
251
  documentId: string;
251
252
  };
253
+
254
+ export type ResendEInvoice = {
255
+ hasPassedValidation: boolean;
256
+ hasBeenUploaded: boolean;
257
+ eInvoicing: IEInvoicing;
258
+ };
@@ -58,6 +58,7 @@ export class FinishProcess {
58
58
  @ApiProperty()
59
59
  @IsString()
60
60
  spaceId: string;
61
+
61
62
  @ApiProperty()
62
63
  @IsString()
63
64
  eventType: string;
@@ -1,5 +1,5 @@
1
1
  import { ISociety } from './ISociety.js';
2
- import { IFile } from '../../index.js';
2
+ import { FinishProcess, IFile } from '../../index.js';
3
3
 
4
4
  export class IEInvoicingKycAndMandate {
5
5
  id?: number;
@@ -14,6 +14,8 @@ export class IEInvoicingKycAndMandate {
14
14
  onboardingStatus?: string | null; // DRAFT | IN_PROGRESS | COMPLETED | REJECTED | ACTION_NEEDED | EXPIRED | CANCELLED
15
15
  sentToDocoon: boolean;
16
16
  docoonDirectoryLineId?: string | null; // id at docoon
17
+ payloadRequest?: FinishProcess;
18
+ payloadSignature?: FinishProcess;
17
19
  idSociety: number;
18
20
  idMandateFile?: number | null;
19
21
  idKycControlReportFile?: number | null;