@silexpert/core 2.0.63 → 2.0.65

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 (96) hide show
  1. package/dist/api/resources/Docoon.d.ts +2 -1
  2. package/dist/api/resources/Docoon.d.ts.map +1 -1
  3. package/dist/api/resources/Docoon.js +3 -0
  4. package/dist/api/resources/Docoon.js.map +1 -1
  5. package/dist/api/resources/Transaction.d.ts +2 -2
  6. package/dist/api/resources/Transaction.d.ts.map +1 -1
  7. package/dist/api/resources/Transaction.js.map +1 -1
  8. package/dist/types/Enum/CommercialManagement.d.ts +2 -0
  9. package/dist/types/Enum/CommercialManagement.d.ts.map +1 -1
  10. package/dist/types/Enum/CommercialManagement.js +19 -6
  11. package/dist/types/Enum/CommercialManagement.js.map +1 -1
  12. package/dist/types/Enum/{AccountingTransactionTracking.d.ts → ConnectorTracking.d.ts} +2 -2
  13. package/dist/types/Enum/ConnectorTracking.d.ts.map +1 -0
  14. package/dist/types/Enum/ConnectorTracking.js +10 -0
  15. package/dist/types/Enum/ConnectorTracking.js.map +1 -0
  16. package/dist/types/Enum/EInvoicingReasonType.d.ts +104 -29
  17. package/dist/types/Enum/EInvoicingReasonType.d.ts.map +1 -1
  18. package/dist/types/Enum/EInvoicingReasonType.js +482 -108
  19. package/dist/types/Enum/EInvoicingReasonType.js.map +1 -1
  20. package/dist/types/Enum/EInvoicingStatusCode.d.ts +16 -13
  21. package/dist/types/Enum/EInvoicingStatusCode.d.ts.map +1 -1
  22. package/dist/types/Enum/EInvoicingStatusCode.js +46 -16
  23. package/dist/types/Enum/EInvoicingStatusCode.js.map +1 -1
  24. package/dist/types/Enum/Unit.js +1 -1
  25. package/dist/types/Enum/Unit.js.map +1 -1
  26. package/dist/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts +1 -0
  27. package/dist/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts.map +1 -1
  28. package/dist/types/Interface/api/accountingFiles/queryAccountingFiles.js +8 -0
  29. package/dist/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -1
  30. package/dist/types/Interface/api/accountingTransaction/Create.d.ts +2 -2
  31. package/dist/types/Interface/api/accountingTransaction/Create.d.ts.map +1 -1
  32. package/dist/types/Interface/api/accountingTransaction/Create.js +2 -2
  33. package/dist/types/Interface/api/accountingTransaction/Create.js.map +1 -1
  34. package/dist/types/Interface/api/commercialManagement/Create.d.ts +1 -0
  35. package/dist/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
  36. package/dist/types/Interface/api/commercialManagement/Create.js +2 -1
  37. package/dist/types/Interface/api/commercialManagement/Create.js.map +1 -1
  38. package/dist/types/Interface/api/docoon/Create.d.ts +2 -2
  39. package/dist/types/Interface/api/docoon/Create.d.ts.map +1 -1
  40. package/dist/types/Interface/api/docoon/Create.js.map +1 -1
  41. package/dist/types/Interface/api/docoon/Read.d.ts +43 -27
  42. package/dist/types/Interface/api/docoon/Read.d.ts.map +1 -1
  43. package/dist/types/Interface/api/docoon/Read.js.map +1 -1
  44. package/dist/types/Interface/api/humanResourceLibrary/CreateHumanResourceLibrary.d.ts +1 -1
  45. package/dist/types/Interface/api/humanResourceLibrary/CreateHumanResourceLibrary.d.ts.map +1 -1
  46. package/dist/types/Interface/api/humanResourceLibrary/CreateHumanResourceLibrary.js +18 -4
  47. package/dist/types/Interface/api/humanResourceLibrary/CreateHumanResourceLibrary.js.map +1 -1
  48. package/dist/types/Interface/api/registration/DeclareRegistration.d.ts +1 -0
  49. package/dist/types/Interface/api/registration/DeclareRegistration.d.ts.map +1 -1
  50. package/dist/types/Interface/api/registration/DeclareRegistration.js +8 -0
  51. package/dist/types/Interface/api/registration/DeclareRegistration.js.map +1 -1
  52. package/dist/types/Interface/models/IAccountingTransaction.d.ts +2 -2
  53. package/dist/types/Interface/models/IAccountingTransaction.d.ts.map +1 -1
  54. package/dist/types/Interface/models/IAccountingTransaction.js.map +1 -1
  55. package/dist/types/Interface/models/{IAccountingTransactionTracking.d.ts → IConnectorTracking.d.ts} +2 -2
  56. package/dist/types/Interface/models/IConnectorTracking.d.ts.map +1 -0
  57. package/dist/types/Interface/models/IConnectorTracking.js +2 -0
  58. package/dist/types/Interface/models/IConnectorTracking.js.map +1 -0
  59. package/dist/types/Interface/models/IEInvoicing.d.ts +1 -1
  60. package/dist/types/Interface/models/IEInvoicing.d.ts.map +1 -1
  61. package/dist/types/Interface/models/IEInvoicing.js +1 -12
  62. package/dist/types/Interface/models/IEInvoicing.js.map +1 -1
  63. package/dist/types/index.d.ts +2 -2
  64. package/dist/types/index.d.ts.map +1 -1
  65. package/dist/types/index.js +2 -2
  66. package/dist/types/index.js.map +1 -1
  67. package/dist/utils/index.d.ts +1 -0
  68. package/dist/utils/index.d.ts.map +1 -1
  69. package/dist/utils/index.js +1 -0
  70. package/dist/utils/index.js.map +1 -1
  71. package/package.json +1 -1
  72. package/ts/api/resources/Docoon.ts +5 -0
  73. package/ts/api/resources/Transaction.ts +2 -5
  74. package/ts/types/Enum/CommercialManagement.ts +25 -7
  75. package/ts/types/Enum/{AccountingTransactionTracking.ts → ConnectorTracking.ts} +1 -1
  76. package/ts/types/Enum/EInvoicingReasonType.ts +487 -110
  77. package/ts/types/Enum/EInvoicingStatusCode.ts +48 -16
  78. package/ts/types/Enum/Unit.ts +1 -1
  79. package/ts/types/Interface/api/accountingFiles/queryAccountingFiles.ts +6 -0
  80. package/ts/types/Interface/api/accountingTransaction/Create.ts +3 -3
  81. package/ts/types/Interface/api/commercialManagement/Create.ts +2 -1
  82. package/ts/types/Interface/api/docoon/Create.ts +2 -2
  83. package/ts/types/Interface/api/docoon/Read.ts +46 -27
  84. package/ts/types/Interface/api/humanResourceLibrary/CreateHumanResourceLibrary.ts +18 -4
  85. package/ts/types/Interface/api/registration/DeclareRegistration.ts +6 -0
  86. package/ts/types/Interface/models/IAccountingTransaction.ts +2 -2
  87. package/ts/types/Interface/models/{IAccountingTransactionTracking.ts → IConnectorTracking.ts} +1 -1
  88. package/ts/types/Interface/models/IEInvoicing.ts +1 -1
  89. package/ts/types/index.ts +2 -2
  90. package/ts/utils/index.ts +1 -0
  91. package/dist/types/Enum/AccountingTransactionTracking.d.ts.map +0 -1
  92. package/dist/types/Enum/AccountingTransactionTracking.js +0 -10
  93. package/dist/types/Enum/AccountingTransactionTracking.js.map +0 -1
  94. package/dist/types/Interface/models/IAccountingTransactionTracking.d.ts.map +0 -1
  95. package/dist/types/Interface/models/IAccountingTransactionTracking.js +0 -2
  96. package/dist/types/Interface/models/IAccountingTransactionTracking.js.map +0 -1
@@ -1,35 +1,103 @@
1
- import { EInvoicingDirection } from './EInvoicingDirection.js';
1
+ import { EInvoicingStatusCode } from './EInvoicingStatusCode.js';
2
2
 
3
3
  export enum EInvoicingReasonType {
4
- INCORRECT_AMOUNT = 1,
5
- CALCULATION_ERROR = 2,
6
- E_ADDRESS_ERROR = 3,
7
- SEMANTIC_ERROR = 4,
8
- CONSISTENCY_CHECK_ERROR = 5,
9
- E_ADDRESS_CONTROL_ERROR = 6,
10
- B2G_CONTROL_ERROR = 7,
11
- ATTACHMENT_REFERENCE_ERROR = 8,
12
- ATTACHMENT_ASSOCIATION_ERROR = 9,
13
- RECIPIENT_ERROR = 10,
14
- ROUTING_ERROR = 11,
15
- UNITY_ERROR = 12,
16
- DUPLICATE_INVOICE = 13,
4
+ JUSTIF_ABS = 1,
5
+ ROUTAGE_ERR = 2,
6
+ COORD_BANC_ERR = 3,
7
+ TX_TVA_ERR = 4,
8
+ MONTANTTOTAL_ERR = 5,
9
+ CALCUL_ERR = 6,
10
+ NON_CONFORME = 7,
11
+ DOUBLON = 8,
12
+ DEST_INC = 9,
13
+ DEST_ERR = 10,
14
+ TRANSAC_INC = 11,
15
+ EMMET_INC = 12,
16
+ CONTRAT_TERM = 13,
17
+ DOUBLE_FACT = 14,
18
+ CMD_ERR = 15,
19
+ ADR_ERR = 16,
20
+ SIRET_ERR = 17,
21
+ CODE_ROUTAGE_ERR = 18,
22
+ REF_CT_ABSENT = 19,
23
+ REF_ERR = 20,
24
+ PU_ERR = 21,
25
+ REM_ERR = 22,
26
+ QTE_ERR = 23,
27
+ ART_ERR = 24,
28
+ MODPAI_ERR = 25,
29
+ QUALITE_ERR = 26,
30
+ LIVR_INCOMP = 27,
31
+ REJ_SEMAN = 28,
32
+ REJ_UNI = 29,
33
+ REJ_COH = 30,
34
+ REJ_ADR = 31,
35
+ REJ_CADR = 32,
36
+ REJ_CONT_B2G = 33,
37
+ REJ_REF_PJ = 34,
38
+ REJ_ASS_PJ = 35,
39
+ IRR_VIDE_F = 36,
40
+ IRR_TYPE_F = 37,
41
+ IRR_SYNTAX = 38,
42
+ IRR_TAILLE_PJ = 39,
43
+ IRR_NOM_PJ = 40,
44
+ IRR_VID_PJ = 41,
45
+ IRR_EXT_DOC = 42,
46
+ IRR_TAILLE_F = 43,
47
+ IRR_ANTIVIRUS = 44,
17
48
  }
18
49
 
19
50
  export enum EInvoicingReasonTypeCode {
20
- INCORRECT_AMOUNT = 'MONTANTTOTAL_ERR',
21
- CALCULATION_ERROR = 'CALCUL_ERR',
22
- E_ADDRESS_ERROR = 'ADR_ERR',
23
- SEMANTIC_ERROR = 'REJ_SEMAN',
24
- CONSISTENCY_CHECK_ERROR = 'REJ_COH',
25
- E_ADDRESS_CONTROL_ERROR = 'REJ_ADR',
26
- B2G_CONTROL_ERROR = 'REJ_CONT_B2G',
27
- ATTACHMENT_REFERENCE_ERROR = 'REJ_REF_PJ',
28
- ATTACHMENT_ASSOCIATION_ERROR = 'REJ_ASS_PJ',
29
- RECIPIENT_ERROR = 'DEST_INC',
30
- ROUTING_ERROR = 'ROUTAGE_ERR',
31
- UNITY_ERROR = 'REJ_UNI',
32
- DUPLICATE_INVOICE = 'DOUBLON',
51
+ JUSTIF_ABS = 'JUSTIF_ABS',
52
+ ROUTAGE_ERR = 'ROUTAGE_ERR',
53
+ COORD_BANC_ERR = 'COORD_BANC_ERR',
54
+ TX_TVA_ERR = 'TX_TVA_ERR',
55
+ MONTANTTOTAL_ERR = 'MONTANTTOTAL_ERR',
56
+ CALCUL_ERR = 'CALCUL_ERR',
57
+ NON_CONFORME = 'NON_CONFORME',
58
+ DOUBLON = 'DOUBLON',
59
+ DEST_INC = 'DEST_INC',
60
+ DEST_ERR = 'DEST_ERR',
61
+ TRANSAC_INC = 'TRANSAC_INC',
62
+ EMMET_INC = 'EMMET_INC',
63
+ CONTRAT_TERM = 'CONTRAT_TERM',
64
+ DOUBLE_FACT = 'DOUBLE_FACT',
65
+ CMD_ERR = 'CMD_ERR',
66
+ ADR_ERR = 'ADR_ERR',
67
+ SIRET_ERR = 'SIRET_ERR',
68
+ CODE_ROUTAGE_ERR = 'CODE_ROUTAGE_ERR',
69
+ REF_CT_ABSENT = 'REF_CT_ABSENT',
70
+ REF_ERR = 'REF_ERR',
71
+ PU_ERR = 'PU_ERR',
72
+ REM_ERR = 'REM_ERR',
73
+ QTE_ERR = 'QTE_ERR',
74
+ ART_ERR = 'ART_ERR',
75
+ MODPAI_ERR = 'MODPAI_ERR',
76
+ QUALITE_ERR = 'QUALITE_ERR',
77
+ LIVR_INCOMP = 'LIVR_INCOMP',
78
+ REJ_SEMAN = 'REJ_SEMAN',
79
+ REJ_UNI = 'REJ_UNI',
80
+ REJ_COH = 'REJ_COH',
81
+ REJ_ADR = 'REJ_ADR',
82
+ REJ_CONT_B2G = 'REJ_CONT_B2G',
83
+ REJ_REF_PJ = 'REJ_REF_PJ',
84
+ REJ_ASS_PJ = 'REJ_ASS_PJ',
85
+ IRR_VIDE_F = 'IRR_VIDE_F',
86
+ IRR_TYPE_F = 'IRR_TYPE_F',
87
+ IRR_SYNTAX = 'IRR_SYNTAX',
88
+ IRR_TAILLE_PJ = 'IRR_TAILLE_PJ',
89
+ IRR_NOM_PJ = 'IRR_NOM_PJ',
90
+ IRR_VID_PJ = 'IRR_VID_PJ',
91
+ IRR_EXT_DOC = 'IRR_EXT_DOC',
92
+ IRR_TAILLE_F = 'IRR_TAILLE_F',
93
+ IRR_ANTIVIRUS = 'IRR_ANTIVIRUS',
94
+ }
95
+
96
+ export enum EInvoicingReasonCategory {
97
+ ERREUR_DESTINATAIRES = 1,
98
+ ERREUR_CALCUL_ET_TVA = 2,
99
+ INFORMATIONS_MANQUANTE = 3,
100
+ FACTURE_DOUBLONS_PRESTATION_NON_RECONNUE = 4,
33
101
  }
34
102
 
35
103
  export type EInvoicingReason = {
@@ -37,8 +105,8 @@ export type EInvoicingReason = {
37
105
  reasonCode: EInvoicingReasonTypeCode;
38
106
  label: string;
39
107
  description: string;
40
- type: EInvoicingDirection[];
41
- isVisibleByClient: boolean;
108
+ acceptedStatus: EInvoicingStatusCode[];
109
+ category?: EInvoicingReasonCategory;
42
110
  };
43
111
 
44
112
  export type EInvocingReasonListType = {
@@ -46,111 +114,420 @@ export type EInvocingReasonListType = {
46
114
  };
47
115
 
48
116
  export const einvoicingReasonList: EInvocingReasonListType = {
49
- INCORRECT_AMOUNT: {
50
- id: EInvoicingReasonType.INCORRECT_AMOUNT,
51
- reasonCode: EInvoicingReasonTypeCode.INCORRECT_AMOUNT,
117
+ JUSTIF_ABS: {
118
+ id: EInvoicingReasonType.JUSTIF_ABS,
119
+ reasonCode: EInvoicingReasonTypeCode.JUSTIF_ABS,
120
+ label: 'Jusitficatif avsent ou insuffisant',
121
+ description:
122
+ 'Ce motif doit être utilisé s\'il manque des pièces jointes pour le traitement de la facture (status "suspendu")',
123
+ acceptedStatus: [EInvoicingStatusCode.SUSPENDED], // 208
124
+ },
125
+ ROUTAGE_ERR: {
126
+ id: EInvoicingReasonType.ROUTAGE_ERR,
127
+ reasonCode: EInvoicingReasonTypeCode.ROUTAGE_ERR,
128
+ label: 'Erreur de routage',
129
+ description: `Ce motif doit être utilisé dans le cas où les informations servant au routage de la facture sont devenues obsolètes. Ceci peut se produire par exmple:
130
+ - en case de décalage de mise à jour de l'annuaire
131
+ - une erreur de la PDP émettrice
132
+ Post correction de l'annuaire par le destinataire de la facture, la facture peut être transmise à nouveau (sans aucun changement sur les données de la facture)`,
133
+ acceptedStatus: [], // normalement 221 ERREUR DE ROUTAGE mais pas de routage
134
+ },
135
+ COORD_BANC_ERR: {
136
+ id: EInvoicingReasonType.COORD_BANC_ERR,
137
+ reasonCode: EInvoicingReasonTypeCode.COORD_BANC_ERR,
138
+ label: 'Erreur de coordonnées bancaires',
139
+ description:
140
+ 'Les références bancaires sur la facture ne correspondent pas à ce qui est paramétré chez le Payeur / Acheteur.',
141
+ acceptedStatus: [EInvoicingStatusCode.IN_DISPUTE, EInvoicingStatusCode.REFUSED],
142
+ },
143
+ TX_TVA_ERR: {
144
+ id: EInvoicingReasonType.TX_TVA_ERR,
145
+ reasonCode: EInvoicingReasonTypeCode.TX_TVA_ERR,
146
+ label: 'Taux de TVA erroné',
147
+ description: "Un taux de TVA utilisé n'est pas celui qui aurait dû être appliqué.",
148
+ acceptedStatus: [EInvoicingStatusCode.IN_DISPUTE, EInvoicingStatusCode.REFUSED],
149
+ },
150
+ MONTANTTOTAL_ERR: {
151
+ id: EInvoicingReasonType.MONTANTTOTAL_ERR,
152
+ reasonCode: EInvoicingReasonTypeCode.MONTANTTOTAL_ERR,
52
153
  label: 'Montant total erroné',
53
154
  description: 'Un des montants totaux de la facutre est erronée, par exemple Net à payer',
54
- type: [EInvoicingDirection.EMISSION, EInvoicingDirection.RECEPTION],
55
- isVisibleByClient: true,
155
+ acceptedStatus: [EInvoicingStatusCode.IN_DISPUTE, EInvoicingStatusCode.REFUSED, EInvoicingStatusCode.REJECTED],
56
156
  },
57
- CALCULATION_ERROR: {
58
- id: EInvoicingReasonType.CALCULATION_ERROR,
59
- reasonCode: EInvoicingReasonTypeCode.CALCULATION_ERROR,
157
+ CALCUL_ERR: {
158
+ id: EInvoicingReasonType.CALCUL_ERR,
159
+ reasonCode: EInvoicingReasonTypeCode.CALCUL_ERR,
60
160
  label: 'Erreur de calcul de la facture',
61
161
  description: 'Soit détecté au schematron, soit après (pour les lignes, ou arrondi non accepté)',
62
- type: [EInvoicingDirection.EMISSION, EInvoicingDirection.RECEPTION],
63
- isVisibleByClient: true,
162
+ acceptedStatus: [EInvoicingStatusCode.IN_DISPUTE, EInvoicingStatusCode.REFUSED, EInvoicingStatusCode.REJECTED],
163
+ },
164
+ NON_CONFORME: {
165
+ id: EInvoicingReasonType.NON_CONFORME,
166
+ reasonCode: EInvoicingReasonTypeCode.NON_CONFORME,
167
+ label: 'Mention légale manquante',
168
+ description: 'Toute mention légale non contrôlée par le schéma',
169
+ acceptedStatus: [EInvoicingStatusCode.IN_DISPUTE, EInvoicingStatusCode.REFUSED],
170
+ },
171
+ DOUBLON: {
172
+ id: EInvoicingReasonType.DOUBLON,
173
+ reasonCode: EInvoicingReasonTypeCode.DOUBLON,
174
+ label: 'Facture en doublon (déjà émise / reçue)',
175
+ description: 'Facture en doublon : même numéro, même fournisseur et même année de date de facture.',
176
+ acceptedStatus: [EInvoicingStatusCode.IN_DISPUTE, EInvoicingStatusCode.REFUSED, EInvoicingStatusCode.REJECTED],
64
177
  },
65
- E_ADDRESS_ERROR: {
66
- id: EInvoicingReasonType.E_ADDRESS_ERROR,
67
- reasonCode: EInvoicingReasonTypeCode.E_ADDRESS_ERROR,
178
+ DEST_INC: {
179
+ id: EInvoicingReasonType.DEST_INC,
180
+ reasonCode: EInvoicingReasonTypeCode.DEST_INC,
181
+ label: 'Destinataire inconnu',
182
+ description: "À l'émission, le destinataire est inconnu — il n'existe pas dans l'annuaire.",
183
+ acceptedStatus: [EInvoicingStatusCode.REJECTED],
184
+ },
185
+ DEST_ERR: {
186
+ id: EInvoicingReasonType.DEST_ERR,
187
+ reasonCode: EInvoicingReasonTypeCode.DEST_ERR,
188
+ label: 'Erreur de destinataire',
189
+ description: "L'entité juridique destinataire de la facture n'est pas la bonne (n° SIREN du Destinataire).",
190
+ acceptedStatus: [EInvoicingStatusCode.IN_DISPUTE, EInvoicingStatusCode.REFUSED],
191
+ },
192
+ TRANSAC_INC: {
193
+ id: EInvoicingReasonType.TRANSAC_INC,
194
+ reasonCode: EInvoicingReasonTypeCode.TRANSAC_INC,
195
+ label: 'Transaction inconnue',
196
+ description: 'La facture ne correspond pas à une livraison effectuée ou une prestation de service livrée.',
197
+ acceptedStatus: [EInvoicingStatusCode.IN_DISPUTE, EInvoicingStatusCode.REFUSED],
198
+ },
199
+ EMMET_INC: {
200
+ id: EInvoicingReasonType.EMMET_INC,
201
+ reasonCode: EInvoicingReasonTypeCode.EMMET_INC,
202
+ label: 'Emetteur inconnu',
203
+ description: "L'émetteur de la facture est inconnu du Destinataire (filtre anti-spam).",
204
+ acceptedStatus: [EInvoicingStatusCode.IN_DISPUTE, EInvoicingStatusCode.REFUSED],
205
+ },
206
+ CONTRAT_TERM: {
207
+ id: EInvoicingReasonType.CONTRAT_TERM,
208
+ reasonCode: EInvoicingReasonTypeCode.CONTRAT_TERM,
209
+ label: 'Contrat terminé',
210
+ description: 'Contrat terminé — plus de facturation possible.',
211
+ acceptedStatus: [EInvoicingStatusCode.IN_DISPUTE, EInvoicingStatusCode.REFUSED],
212
+ },
213
+ DOUBLE_FACT: {
214
+ id: EInvoicingReasonType.DOUBLE_FACT,
215
+ reasonCode: EInvoicingReasonTypeCode.DOUBLE_FACT,
216
+ label: 'Double facturation',
217
+ description: 'Prestation ou livraison déjà facturée sur une autre facture.',
218
+ acceptedStatus: [EInvoicingStatusCode.IN_DISPUTE, EInvoicingStatusCode.REFUSED],
219
+ },
220
+ CMD_ERR: {
221
+ id: EInvoicingReasonType.CMD_ERR,
222
+ reasonCode: EInvoicingReasonTypeCode.CMD_ERR,
223
+ label: 'N° de commande incorrect ou manquant',
224
+ description: 'N° de commande erroné, inexistant ou déjà facturé.',
225
+ acceptedStatus: [
226
+ EInvoicingStatusCode.PARTIALLY_APPROVED,
227
+ EInvoicingStatusCode.IN_DISPUTE,
228
+ EInvoicingStatusCode.SUSPENDED,
229
+ EInvoicingStatusCode.REFUSED,
230
+ ],
231
+ },
232
+ ADR_ERR: {
233
+ id: EInvoicingReasonType.ADR_ERR,
234
+ reasonCode: EInvoicingReasonTypeCode.ADR_ERR,
68
235
  label: 'Adresse de facturation électronique erronée',
69
236
  description: "L'adresse de facturation électronique du destinataire(BT-49 ou BT-34) est absente ou erronée",
70
- type: [EInvoicingDirection.EMISSION],
71
- isVisibleByClient: false,
237
+ acceptedStatus: [EInvoicingStatusCode.IN_DISPUTE, EInvoicingStatusCode.REFUSED, EInvoicingStatusCode.REJECTED],
238
+ },
239
+ SIRET_ERR: {
240
+ id: EInvoicingReasonType.SIRET_ERR,
241
+ reasonCode: EInvoicingReasonTypeCode.SIRET_ERR,
242
+ label: 'SIRET erroné ou absent',
243
+ description: 'Le SIRET du destinataire est erroné ou absent si exigé.',
244
+ acceptedStatus: [
245
+ EInvoicingStatusCode.PARTIALLY_APPROVED,
246
+ EInvoicingStatusCode.IN_DISPUTE,
247
+ EInvoicingStatusCode.REFUSED,
248
+ ],
249
+ },
250
+ CODE_ROUTAGE_ERR: {
251
+ id: EInvoicingReasonType.CODE_ROUTAGE_ERR,
252
+ reasonCode: EInvoicingReasonTypeCode.CODE_ROUTAGE_ERR,
253
+ label: 'Code de routage absent ou erroné',
254
+ description: 'Le CODE_ROUTAGE du destinataire est erroné ou absent si exigé.',
255
+ acceptedStatus: [
256
+ EInvoicingStatusCode.PARTIALLY_APPROVED,
257
+ EInvoicingStatusCode.IN_DISPUTE,
258
+ EInvoicingStatusCode.REFUSED,
259
+ ],
260
+ },
261
+ REF_CT_ABSENT: {
262
+ id: EInvoicingReasonType.REF_CT_ABSENT,
263
+ reasonCode: EInvoicingReasonTypeCode.REF_CT_ABSENT,
264
+ label: 'Référence contractuelle nécessaire pour le traitement de la facture manquante',
265
+ description: 'Référence exigée contractuellement absente.',
266
+ acceptedStatus: [
267
+ EInvoicingStatusCode.PARTIALLY_APPROVED,
268
+ EInvoicingStatusCode.IN_DISPUTE,
269
+ EInvoicingStatusCode.SUSPENDED,
270
+ EInvoicingStatusCode.REFUSED,
271
+ ],
272
+ },
273
+ REF_ERR: {
274
+ id: EInvoicingReasonType.REF_ERR,
275
+ reasonCode: EInvoicingReasonTypeCode.REF_ERR,
276
+ label: 'Référence incorrecte',
277
+ description: "À préciser dans les autres données du CDV de quelle référence il s'agit.",
278
+ acceptedStatus: [
279
+ EInvoicingStatusCode.PARTIALLY_APPROVED,
280
+ EInvoicingStatusCode.IN_DISPUTE,
281
+ EInvoicingStatusCode.REFUSED,
282
+ ],
283
+ },
284
+ PU_ERR: {
285
+ id: EInvoicingReasonType.PU_ERR,
286
+ reasonCode: EInvoicingReasonTypeCode.PU_ERR,
287
+ label: 'Prix unitaires incorrects',
288
+ description: "Un prix unitaire n'est pas celui attendu.",
289
+ acceptedStatus: [EInvoicingStatusCode.IN_DISPUTE, EInvoicingStatusCode.REFUSED],
72
290
  },
73
- SEMANTIC_ERROR: {
74
- id: EInvoicingReasonType.SEMANTIC_ERROR,
75
- reasonCode: EInvoicingReasonTypeCode.SEMANTIC_ERROR,
291
+ REM_ERR: {
292
+ id: EInvoicingReasonType.REM_ERR,
293
+ reasonCode: EInvoicingReasonTypeCode.REM_ERR,
294
+ label: 'Remise erronée',
295
+ description: "Une remise est absente ou n'est pas celle attendue.",
296
+ acceptedStatus: [EInvoicingStatusCode.IN_DISPUTE, EInvoicingStatusCode.REFUSED],
297
+ },
298
+ QTE_ERR: {
299
+ id: EInvoicingReasonType.QTE_ERR,
300
+ reasonCode: EInvoicingReasonTypeCode.QTE_ERR,
301
+ label: 'Quantité facturée incorrecte',
302
+ description: "Une quantité facturée n'est pas celle attendue.",
303
+ acceptedStatus: [EInvoicingStatusCode.IN_DISPUTE, EInvoicingStatusCode.REFUSED],
304
+ },
305
+ ART_ERR: {
306
+ id: EInvoicingReasonType.ART_ERR,
307
+ reasonCode: EInvoicingReasonTypeCode.ART_ERR,
308
+ label: 'Article facturé incorrect',
309
+ description: "Un article facturé n'est pas le bon ou est erroné.",
310
+ acceptedStatus: [EInvoicingStatusCode.IN_DISPUTE, EInvoicingStatusCode.REFUSED],
311
+ },
312
+ MODPAI_ERR: {
313
+ id: EInvoicingReasonType.MODPAI_ERR,
314
+ reasonCode: EInvoicingReasonTypeCode.MODPAI_ERR,
315
+ label: 'Modalités de paiement incorrectes',
316
+ description: 'Les modalités de paiement ne sont pas celles escomptées.',
317
+ acceptedStatus: [EInvoicingStatusCode.IN_DISPUTE, EInvoicingStatusCode.REFUSED],
318
+ },
319
+ QUALITE_ERR: {
320
+ id: EInvoicingReasonType.QUALITE_ERR,
321
+ reasonCode: EInvoicingReasonTypeCode.QUALITE_ERR,
322
+ label: "Qualité d'article livré incorrecte",
323
+ description: 'Un des articles livrés est défectueux.',
324
+ acceptedStatus: [EInvoicingStatusCode.IN_DISPUTE, EInvoicingStatusCode.REFUSED],
325
+ },
326
+ LIVR_INCOMP: {
327
+ id: EInvoicingReasonType.LIVR_INCOMP,
328
+ reasonCode: EInvoicingReasonTypeCode.LIVR_INCOMP,
329
+ label: 'Problème de livraison',
330
+ description: 'Livraison incomplète ou non conforme.',
331
+ acceptedStatus: [EInvoicingStatusCode.IN_DISPUTE, EInvoicingStatusCode.REFUSED],
332
+ },
333
+ REJ_SEMAN: {
334
+ id: EInvoicingReasonType.REJ_SEMAN,
335
+ reasonCode: EInvoicingReasonTypeCode.REJ_SEMAN,
76
336
  label: 'Rejet pour erreur sémantique',
77
- description: 'Analyse du format sémantique',
78
- type: [EInvoicingDirection.EMISSION, EInvoicingDirection.RECEPTION],
79
- isVisibleByClient: true,
337
+ description: 'Analyse du format sémantique du fichier de flux.',
338
+ acceptedStatus: [EInvoicingStatusCode.REJECTED],
80
339
  },
81
- CONSISTENCY_CHECK_ERROR: {
82
- id: EInvoicingReasonType.CONSISTENCY_CHECK_ERROR,
83
- reasonCode: EInvoicingReasonTypeCode.CONSISTENCY_CHECK_ERROR,
340
+ REJ_UNI: {
341
+ id: EInvoicingReasonType.REJ_UNI,
342
+ reasonCode: EInvoicingReasonTypeCode.REJ_UNI,
343
+ label: 'Rejet sur contrôle unicité',
344
+ description: "Contôle d'unicit de la facture",
345
+ acceptedStatus: [EInvoicingStatusCode.REJECTED],
346
+ },
347
+ REJ_COH: {
348
+ id: EInvoicingReasonType.REJ_COH,
349
+ reasonCode: EInvoicingReasonTypeCode.REJ_COH,
84
350
  label: 'Rejet sur contrôle Cohérence de données',
85
351
  description: 'Contrôle de cohérence des données (les balises et les référentiels)',
86
- type: [EInvoicingDirection.EMISSION, EInvoicingDirection.RECEPTION],
87
- isVisibleByClient: false,
352
+ acceptedStatus: [EInvoicingStatusCode.REJECTED],
88
353
  },
89
- E_ADDRESS_CONTROL_ERROR: {
90
- id: EInvoicingReasonType.E_ADDRESS_CONTROL_ERROR,
91
- reasonCode: EInvoicingReasonTypeCode.E_ADDRESS_CONTROL_ERROR,
354
+ REJ_ADR: {
355
+ id: EInvoicingReasonType.REJ_ADR,
356
+ reasonCode: EInvoicingReasonTypeCode.REJ_ADR,
92
357
  label: "Rejet sur Contrôle d'adressage",
93
- description: "Contrôle d'adressage",
94
- type: [EInvoicingDirection.EMISSION],
95
- isVisibleByClient: false,
358
+ description: "Contrôle d'adressage de la facture.",
359
+ acceptedStatus: [EInvoicingStatusCode.REJECTED],
96
360
  },
97
- B2G_CONTROL_ERROR: {
98
- id: EInvoicingReasonType.B2G_CONTROL_ERROR,
99
- reasonCode: EInvoicingReasonTypeCode.B2G_CONTROL_ERROR,
361
+ REJ_CONT_B2G: {
362
+ id: EInvoicingReasonType.REJ_CONT_B2G,
363
+ reasonCode: EInvoicingReasonTypeCode.REJ_CONT_B2G,
100
364
  label: 'Rejet sur Contrôle métier B2G',
101
365
  description: "Contrôle B2G (vérification du n° d'engagement)",
102
- type: [EInvoicingDirection.EMISSION],
103
- isVisibleByClient: false,
366
+ acceptedStatus: [EInvoicingStatusCode.REJECTED],
104
367
  },
105
- ATTACHMENT_REFERENCE_ERROR: {
106
- id: EInvoicingReasonType.ATTACHMENT_REFERENCE_ERROR,
107
- reasonCode: EInvoicingReasonTypeCode.ATTACHMENT_REFERENCE_ERROR,
368
+ REJ_REF_PJ: {
369
+ id: EInvoicingReasonType.REJ_REF_PJ,
370
+ reasonCode: EInvoicingReasonTypeCode.REJ_REF_PJ,
108
371
  label: 'Rejet sur Référence de la PJ',
109
- description: 'Référence de la PJ',
110
- type: [EInvoicingDirection.EMISSION],
111
- isVisibleByClient: false,
372
+ description: 'Contrôle de la référence de la PJ',
373
+ acceptedStatus: [EInvoicingStatusCode.REJECTED],
112
374
  },
113
- ATTACHMENT_ASSOCIATION_ERROR: {
114
- id: EInvoicingReasonType.ATTACHMENT_ASSOCIATION_ERROR,
115
- reasonCode: EInvoicingReasonTypeCode.ATTACHMENT_ASSOCIATION_ERROR,
375
+ REJ_ASS_PJ: {
376
+ id: EInvoicingReasonType.REJ_ASS_PJ,
377
+ reasonCode: EInvoicingReasonTypeCode.REJ_ASS_PJ,
116
378
  label: "Rejet sur erreur d'association de la PJ",
117
- description: "Erreur d'associartion de la PJ",
118
- type: [EInvoicingDirection.EMISSION],
119
- isVisibleByClient: false,
379
+ description: "Erreur lors de l'association d'une pièce jointe à la facture",
380
+ acceptedStatus: [EInvoicingStatusCode.REJECTED],
120
381
  },
121
- RECIPIENT_ERROR: {
122
- id: EInvoicingReasonType.RECIPIENT_ERROR,
123
- reasonCode: EInvoicingReasonTypeCode.RECIPIENT_ERROR,
124
- label: 'Destinataire inconnu',
125
- description: "À l'émission, le destinataire est inconnu. Il n'existe pas dans l'annuaire",
126
- type: [EInvoicingDirection.EMISSION],
127
- isVisibleByClient: false,
382
+ IRR_VIDE_F: {
383
+ id: EInvoicingReasonType.REJ_ASS_PJ,
384
+ reasonCode: EInvoicingReasonTypeCode.REJ_ASS_PJ,
385
+ label: 'Contrôle de non vide sur les fichiers du flux',
386
+ description: 'Vérifie que les fichiers transmis dans le flux ne sont pas vides.',
387
+ acceptedStatus: [EInvoicingStatusCode.REJECTED],
128
388
  },
129
- ROUTING_ERROR: {
130
- id: EInvoicingReasonType.ROUTING_ERROR,
131
- reasonCode: EInvoicingReasonTypeCode.ROUTING_ERROR,
132
- label: 'Erreur de routage',
133
- description: `Ce motif doit être utilisé dans le cas les informations servant au routage de la facture sont devenues obsolètes. Ceci peut se produire par exmple:
134
- - en case de décalage de mise à jour de l'annuaire
135
- - une erreur de la PDP émettrice
136
- Post correction de l'annuaire par le destinataire de la facture, la facture peut être transmise à nouveau (sans aucun changement sur les données de la facture)`,
137
- type: [EInvoicingDirection.EMISSION],
138
- isVisibleByClient: false,
389
+ IRR_TYPE_F: {
390
+ id: EInvoicingReasonType.IRR_TYPE_F,
391
+ reasonCode: EInvoicingReasonTypeCode.IRR_TYPE_F,
392
+ label: 'Contrôle de type et extension des fichiers du flux',
393
+ description: "Vérifie le type MIME et l'extension des fichiers du flux.",
394
+ acceptedStatus: [EInvoicingStatusCode.REJECTED],
139
395
  },
140
- UNITY_ERROR: {
141
- id: EInvoicingReasonType.UNITY_ERROR,
142
- reasonCode: EInvoicingReasonTypeCode.UNITY_ERROR,
143
- label: 'Rejet sur contrôle unicité',
144
- description: "Contôle d'unicité",
145
- type: [EInvoicingDirection.EMISSION, EInvoicingDirection.RECEPTION],
146
- isVisibleByClient: true,
147
- },
148
- DUPLICATE_INVOICE: {
149
- id: EInvoicingReasonType.DUPLICATE_INVOICE,
150
- reasonCode: EInvoicingReasonTypeCode.DUPLICATE_INVOICE,
151
- label: 'Facture en doublon',
152
- description: 'Facture en doublon (même numéro, même fournisseur et même année de la date de la facture)',
153
- type: [EInvoicingDirection.EMISSION, EInvoicingDirection.RECEPTION],
154
- isVisibleByClient: true,
396
+ IRR_SYNTAX: {
397
+ id: EInvoicingReasonType.IRR_SYNTAX,
398
+ reasonCode: EInvoicingReasonTypeCode.IRR_SYNTAX,
399
+ label: 'Contrôle syntaxique des fichiers du flux',
400
+ description: 'Vérifie la syntaxe (bien-formé XML, structure JSON, etc.) des fichiers du flux.',
401
+ acceptedStatus: [EInvoicingStatusCode.REJECTED],
402
+ },
403
+ IRR_TAILLE_PJ: {
404
+ id: EInvoicingReasonType.IRR_TAILLE_PJ,
405
+ reasonCode: EInvoicingReasonTypeCode.IRR_TAILLE_PJ,
406
+ label: 'Contrôle de taille des PJ de chaque fichier du flux',
407
+ description: 'Vérifie que la taille de chaque pièce jointe est dans les limites autorisées.',
408
+ acceptedStatus: [EInvoicingStatusCode.REJECTED],
409
+ },
410
+ IRR_NOM_PJ: {
411
+ id: EInvoicingReasonType.IRR_NOM_PJ,
412
+ reasonCode: EInvoicingReasonTypeCode.IRR_NOM_PJ,
413
+ label: 'Contrôle du nom des PJ (absence de caractères interdits)',
414
+ description: 'Vérifie que le nom des pièces jointes ne contient pas de caractères interdits.',
415
+ acceptedStatus: [EInvoicingStatusCode.REJECTED],
416
+ },
417
+ IRR_VID_PJ: {
418
+ id: EInvoicingReasonType.IRR_VID_PJ,
419
+ reasonCode: EInvoicingReasonTypeCode.IRR_VID_PJ,
420
+ label: 'Contrôle de PJ non vide de chaque fichier du flux',
421
+ description: 'Vérifie que les pièces jointes transmises ne sont pas vides.',
422
+ acceptedStatus: [EInvoicingStatusCode.REJECTED],
423
+ },
424
+ IRR_EXT_DOC: {
425
+ id: EInvoicingReasonType.IRR_EXT_DOC,
426
+ reasonCode: EInvoicingReasonTypeCode.IRR_EXT_DOC,
427
+ label: "Contrôle de l'extension des PJ de chaque fichier du flux",
428
+ description: "Vérifie que l'extension des pièces jointes est dans la liste des formats autorisés.",
429
+ acceptedStatus: [EInvoicingStatusCode.REJECTED],
430
+ },
431
+ IRR_TAILLE_F: {
432
+ id: EInvoicingReasonType.IRR_TAILLE_F,
433
+ reasonCode: EInvoicingReasonTypeCode.IRR_TAILLE_F,
434
+ label: 'Contrôle de taille max des fichiers contenus dans le flux',
435
+ description: "Vérifie que la taille maximale des fichiers du flux n'est pas dépassée.",
436
+ acceptedStatus: [EInvoicingStatusCode.REJECTED],
437
+ },
438
+ IRR_ANTIVIRUS: {
439
+ id: EInvoicingReasonType.IRR_ANTIVIRUS,
440
+ reasonCode: EInvoicingReasonTypeCode.IRR_ANTIVIRUS,
441
+ label: 'Contrôle anti-virus',
442
+ description: 'Le flux ne respecte pas les conditions de sécurité (détection de contenu malveillant).',
443
+ acceptedStatus: [EInvoicingStatusCode.REJECTED],
155
444
  },
156
445
  };
446
+
447
+ export const EInvoicingReasonLIst = [
448
+ {
449
+ name: 'Erreurs de destinataire',
450
+ reasonList: [
451
+ {
452
+ label: 'Facture adressée à la mauvaise entité',
453
+ id: EInvoicingReasonType.DEST_ERR,
454
+ reasonCode: EInvoicingReasonTypeCode.DEST_ERR,
455
+ },
456
+ {
457
+ label: 'Emetteur de la facture inconnu',
458
+ id: EInvoicingReasonType.EMMET_INC,
459
+ reasonCode: EInvoicingReasonTypeCode.EMMET_INC,
460
+ },
461
+ {
462
+ label: 'Adresse de facturation électronique érronnée',
463
+ id: EInvoicingReasonType.ADR_ERR,
464
+ reasonCode: EInvoicingReasonTypeCode.ADR_ERR,
465
+ },
466
+ ],
467
+ },
468
+ {
469
+ name: 'Erreurs de calcul et de TVA',
470
+ reasonList: [
471
+ {
472
+ label: 'Taux de TVA incorrect',
473
+ id: EInvoicingReasonType.TX_TVA_ERR,
474
+ reasonCode: EInvoicingReasonTypeCode.TX_TVA_ERR,
475
+ },
476
+ {
477
+ label: 'Montant total erroné',
478
+ id: EInvoicingReasonType.MONTANTTOTAL_ERR,
479
+ reasonCode: EInvoicingReasonTypeCode.MONTANTTOTAL_ERR,
480
+ },
481
+ {
482
+ label: 'Erreur de calcul',
483
+ id: EInvoicingReasonType.CALCUL_ERR,
484
+ reasonCode: EInvoicingReasonTypeCode.CALCUL_ERR,
485
+ },
486
+ ],
487
+ },
488
+ {
489
+ name: 'Informations manquantes ou incorrectes',
490
+ reasonList: [
491
+ {
492
+ label: 'Mention légale obligatoire manquante',
493
+ id: EInvoicingReasonType.NON_CONFORME,
494
+ reasonCode: EInvoicingReasonTypeCode.NON_CONFORME,
495
+ },
496
+ {
497
+ label: 'Numéro de commande manquant ou incorrect',
498
+ id: EInvoicingReasonType.CMD_ERR,
499
+ reasonCode: EInvoicingReasonTypeCode.CMD_ERR,
500
+ },
501
+ {
502
+ label: 'Référence contractuelle obligatoire manquante',
503
+ id: EInvoicingReasonType.REF_CT_ABSENT,
504
+ reasonCode: EInvoicingReasonTypeCode.REF_CT_ABSENT,
505
+ },
506
+ ],
507
+ },
508
+ {
509
+ name: 'Facture en doublon ou prestation non reconnue',
510
+ reasonList: [
511
+ {
512
+ label: 'Facture déjà reçue',
513
+ id: EInvoicingReasonType.DOUBLON,
514
+ reasonCode: EInvoicingReasonTypeCode.DOUBLON,
515
+ },
516
+ {
517
+ label: 'Facture ne correspondant à aucune commande / prestation',
518
+ id: EInvoicingReasonType.TRANSAC_INC,
519
+ reasonCode: EInvoicingReasonTypeCode.TRANSAC_INC,
520
+ },
521
+ {
522
+ label: 'Contrat terminé avec ce fournisseur',
523
+ id: EInvoicingReasonType.CONTRAT_TERM,
524
+ reasonCode: EInvoicingReasonTypeCode.CONTRAT_TERM,
525
+ },
526
+ {
527
+ label: 'Cette prestation a déjà été facturée',
528
+ id: EInvoicingReasonType.DOUBLE_FACT,
529
+ reasonCode: EInvoicingReasonTypeCode.DOUBLE_FACT,
530
+ },
531
+ ],
532
+ },
533
+ ];