@silexpert/core 1.0.74 → 1.0.75

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 (65) hide show
  1. package/es/types/Enum/Country.d.ts +238 -2
  2. package/es/types/Enum/Country.d.ts.map +1 -1
  3. package/es/types/Enum/Country.js +487 -13
  4. package/es/types/Enum/Country.js.map +1 -1
  5. package/es/types/Interface/api/commercialManagement/Read.d.ts +5 -0
  6. package/es/types/Interface/api/commercialManagement/Read.d.ts.map +1 -1
  7. package/es/types/Interface/api/commercialManagement/Read.js.map +1 -1
  8. package/es/types/Interface/api/partneredAccountant/CreatePartneredAccountantSociety.d.ts +2 -2
  9. package/es/types/Interface/api/partneredAccountant/CreatePartneredAccountantSociety.d.ts.map +1 -1
  10. package/es/types/Interface/api/partneredAccountant/CreatePartneredAccountantSociety.js +2 -2
  11. package/es/types/Interface/api/partneredAccountant/CreatePartneredAccountantSociety.js.map +1 -1
  12. package/es/types/Interface/api/pdf/ReadPdfizer.d.ts +35 -0
  13. package/es/types/Interface/api/pdf/ReadPdfizer.d.ts.map +1 -0
  14. package/es/types/Interface/api/pdf/ReadPdfizer.js +2 -0
  15. package/es/types/Interface/api/pdf/ReadPdfizer.js.map +1 -0
  16. package/es/types/Interface/models/ISociety.d.ts +2 -2
  17. package/es/types/Interface/models/ISociety.d.ts.map +1 -1
  18. package/es/types/Interface/models/ISociety.js.map +1 -1
  19. package/es/types/Interface/models/IThirdParty.d.ts +1 -0
  20. package/es/types/Interface/models/IThirdParty.d.ts.map +1 -1
  21. package/es/types/Interface/models/IThirdParty.js.map +1 -1
  22. package/es/types/index.d.ts +1 -0
  23. package/es/types/index.d.ts.map +1 -1
  24. package/es/types/index.js +1 -0
  25. package/es/types/index.js.map +1 -1
  26. package/es/utils/commercialManagement/document.d.ts.map +1 -1
  27. package/es/utils/commercialManagement/document.js +3 -1
  28. package/es/utils/commercialManagement/document.js.map +1 -1
  29. package/es/utils/commercialManagement/templates/body.d.ts.map +1 -1
  30. package/es/utils/commercialManagement/templates/body.js +4 -3
  31. package/es/utils/commercialManagement/templates/body.js.map +1 -1
  32. package/es/utils/commercialManagement/templates/common.js +1 -1
  33. package/es/utils/commercialManagement/templates/common.js.map +1 -1
  34. package/es/utils/commercialManagement/thirdParty.d.ts +3 -0
  35. package/es/utils/commercialManagement/thirdParty.d.ts.map +1 -0
  36. package/es/utils/commercialManagement/thirdParty.js +7 -0
  37. package/es/utils/commercialManagement/thirdParty.js.map +1 -0
  38. package/js/types/Enum/Country.js +1210 -13
  39. package/js/types/Enum/Country.js.map +1 -1
  40. package/js/types/Interface/api/partneredAccountant/CreatePartneredAccountantSociety.js +1 -1
  41. package/js/types/Interface/api/partneredAccountant/CreatePartneredAccountantSociety.js.map +1 -1
  42. package/js/types/Interface/api/pdf/ReadPdfizer.js +6 -0
  43. package/js/types/Interface/api/pdf/ReadPdfizer.js.map +1 -0
  44. package/js/types/index.js +12 -0
  45. package/js/types/index.js.map +1 -1
  46. package/js/utils/commercialManagement/document.js +4 -0
  47. package/js/utils/commercialManagement/document.js.map +1 -1
  48. package/js/utils/commercialManagement/templates/body.js +4 -3
  49. package/js/utils/commercialManagement/templates/body.js.map +1 -1
  50. package/js/utils/commercialManagement/templates/common.js +1 -1
  51. package/js/utils/commercialManagement/templates/common.js.map +1 -1
  52. package/js/utils/commercialManagement/thirdParty.js +20 -0
  53. package/js/utils/commercialManagement/thirdParty.js.map +1 -0
  54. package/package.json +1 -1
  55. package/ts/types/Enum/Country.ts +478 -3
  56. package/ts/types/Interface/api/commercialManagement/Read.ts +6 -0
  57. package/ts/types/Interface/api/partneredAccountant/CreatePartneredAccountantSociety.ts +3 -3
  58. package/ts/types/Interface/api/pdf/ReadPdfizer.ts +10 -0
  59. package/ts/types/Interface/models/ISociety.ts +2 -2
  60. package/ts/types/Interface/models/IThirdParty.ts +1 -0
  61. package/ts/types/index.ts +1 -0
  62. package/ts/utils/commercialManagement/document.ts +4 -0
  63. package/ts/utils/commercialManagement/templates/body.ts +4 -3
  64. package/ts/utils/commercialManagement/templates/common.ts +1 -1
  65. package/ts/utils/commercialManagement/thirdParty.ts +11 -0
@@ -1,4 +1,4 @@
1
- export enum Country {
1
+ export enum CountryId {
2
2
  AFGHANISTAN = 1,
3
3
  AFRIQUE_DU_SUD = 2,
4
4
  ALBANIE = 3,
@@ -8,5 +8,480 @@ export enum Country {
8
8
  ANGOLA = 7,
9
9
  ANGUILLA = 8,
10
10
  ANTARCTIQUE = 9,
11
- FRANCE = 65,
12
- }
11
+ ANTIGUA_ET_BARBUDA = 10,
12
+ ANTILLES_NEERLANDAISES = 11,
13
+ ARABIE_SAOUDITE = 12,
14
+ ARGENTINE = 13,
15
+ ARMENIE = 14,
16
+ ARUBA = 15,
17
+ AUSTRALIE = 16,
18
+ AUTRICHE = 17,
19
+ AZERBAIDJAN = 18,
20
+ BAHAMAS = 19,
21
+ BAHREIN = 20,
22
+ BANGLADESH = 21,
23
+ BARBADE = 22,
24
+ BELARUS = 23,
25
+ BELGIQUE = 24,
26
+ BELIZE = 25,
27
+ BENIN = 26,
28
+ BERMUDES = 27,
29
+ BHOUTAN = 28,
30
+ BOLIVIE = 29,
31
+ BOSNIE_HERZEGOVINE = 30,
32
+ BOTSWANA = 31,
33
+ BRESIL = 32,
34
+ BRUNEI_DARUSSALAM = 33,
35
+ BULGARIE = 34,
36
+ BURKINA_FASO = 35,
37
+ BURUNDI = 36,
38
+ CAMBODGE = 37,
39
+ CAMEROUN = 38,
40
+ CANADA = 39,
41
+ CAP_VERT = 40,
42
+ CHILI = 41,
43
+ CHINE = 42,
44
+ CHYPRE = 43,
45
+ COLOMBIE = 44,
46
+ COMORES = 45,
47
+ COSTA_RICA = 46,
48
+ COTE_D_IVOIRE = 47,
49
+ CROATIE = 48,
50
+ CUBA = 49,
51
+ DANEMARK = 50,
52
+ DJIBOUTI = 51,
53
+ DOMINIQUE = 52,
54
+ EGYPTE = 53,
55
+ EL_SALVADOR = 54,
56
+ EMIRATS_ARABES_UNIS = 55,
57
+ EQUATEUR = 56,
58
+ ERYTHREE = 57,
59
+ ESPAGNE = 58,
60
+ ESTONIE = 59,
61
+ ETATS_FEDERES_DE_MICRONESIE = 60,
62
+ ETATS_UNIS = 61,
63
+ ETHIOPIE = 62,
64
+ FEDERATION_DE_RUSSIE = 63,
65
+ FIDJI = 64,
66
+ FINLANDE = 65,
67
+ FRANCE = 66,
68
+ GABON = 67,
69
+ GAMBIE = 68,
70
+ GEORGIE = 69,
71
+ GEORGIE_DU_SUD_ET_LES_ILES_SANDWICH_DU_SUD = 70,
72
+ GHANA = 71,
73
+ GIBRALTAR = 72,
74
+ GRECE = 73,
75
+ GRENADE = 74,
76
+ GROENLAND = 75,
77
+ GUADELOUPE = 76,
78
+ GUAM = 77,
79
+ GUATEMALA = 78,
80
+ GUINEE = 79,
81
+ GUINEE_EQUATORIALE = 80,
82
+ GUINEE_BISSAU = 81,
83
+ GUYANA = 82,
84
+ GUYANE_FRANCAISE = 83,
85
+ HAITI = 84,
86
+ HONDURAS = 85,
87
+ HONG_KONG = 86,
88
+ HONGRIE = 87,
89
+ ILE_BOUVET = 88,
90
+ ILE_CHRISTMAS = 89,
91
+ ILE_DE_MAN = 90,
92
+ ILE_NORFOLK = 91,
93
+ ILES_MALVINAS_FALKLAND = 92,
94
+ ILES_ÅLAND = 93,
95
+ ILES_CAIMANES = 94,
96
+ ILES_COCOS_KEE = 95,
97
+ ILES_COOK = 96,
98
+ ILES_FEROE = 97,
99
+ ILES_HEARD_ET_MCDONALD = 98,
100
+ ILES_MARIANNES_DU_NORD = 99,
101
+ ILES_MARSHALL = 100,
102
+ ILES_MINEURES_ELOIGNEES_DES_ETATS_UNIS = 101,
103
+ ILES_SALOMON = 102,
104
+ ILES_TURKS_ET_CAIQUES = 103,
105
+ ILES_VIERGES_BRITANNIQUES = 104,
106
+ ILES_VIERGES_DES_ETATS_UNIS = 105,
107
+ INDE = 106,
108
+ INDONESIE = 107,
109
+ IRAQ = 108,
110
+ IRLANDE = 109,
111
+ ISLANDE = 110,
112
+ ISRAËL = 111,
113
+ ITALIE = 112,
114
+ JAMAHIRIYA_ARABE_LIBY = 113,
115
+ JAMAIQUE = 114,
116
+ JAPON = 115,
117
+ JORDANIE = 116,
118
+ KAZAKHSTAN = 117,
119
+ KENYA = 118,
120
+ KIRGHIZISTAN = 119,
121
+ KIRIBATI = 120,
122
+ KOWEIT = 121,
123
+ L_EX_REPUBLIQUE_YOUGOSLAVE_DE_MACED = 122,
124
+ LESOTHO = 123,
125
+ LETTONIE = 124,
126
+ LIBAN = 125,
127
+ LIBERIA = 126,
128
+ LIECHTENSTEIN = 127,
129
+ LITUANIE = 128,
130
+ LUXEMBOURG = 129,
131
+ MACAO = 130,
132
+ MADAGASCAR = 131,
133
+ MALAISIE = 132,
134
+ MALAWI = 133,
135
+ MALDIVES = 134,
136
+ MALI = 135,
137
+ MALTE = 136,
138
+ MAROC = 137,
139
+ MARTINIQUE = 138,
140
+ MAURICE = 139,
141
+ MAURITANIE = 140,
142
+ MAYOTTE = 141,
143
+ MEXIQUE = 142,
144
+ MONACO = 143,
145
+ MONGOLIE = 144,
146
+ MONTSERRAT = 145,
147
+ MOZAMBIQUE = 146,
148
+ MYANMAR = 147,
149
+ NAMIBIE = 148,
150
+ NAURU = 149,
151
+ NEPAL = 150,
152
+ NICARAGUA = 151,
153
+ NIGER = 152,
154
+ NIGERIA = 153,
155
+ NIUE = 154,
156
+ NORVEGE = 155,
157
+ NOUVELLE_CALEDONIE = 156,
158
+ NOUVELLE_ZELANDE = 157,
159
+ OMAN = 158,
160
+ OUGANDA = 159,
161
+ OUZBEKISTAN = 160,
162
+ PAKISTAN = 161,
163
+ PALAOS = 162,
164
+ PANAMA = 163,
165
+ PAPOUASIE_NOUVELLE_GUINEE = 164,
166
+ PARAGUAY = 165,
167
+ PAYS_BAS = 166,
168
+ PEROU = 167,
169
+ PHILIPPINES = 168,
170
+ PITCAIRN = 169,
171
+ POLOGNE = 170,
172
+ POLYNESIE_FRANCAISE = 171,
173
+ PORTO_RICO = 172,
174
+ PORTUGAL = 173,
175
+ QATAR = 174,
176
+ REPUBLIQUE_ARABE_SYRIENNE = 175,
177
+ REPUBLIQUE_CENTRAFRICAINE = 176,
178
+ REPUBLIQUE_DE_COREE = 177,
179
+ REPUBLIQUE_DE_MOLDOVA = 178,
180
+ REPUBLIQUE_DEMOCRATIQUE_DU_CONGO = 179,
181
+ REPUBLIQUE_DEMOCRATIQUE_POPULAIRE_LAO = 180,
182
+ REPUBLIQUE_DOMINICAINE = 181,
183
+ REPUBLIQUE_DU_CONGO = 182,
184
+ REPUBLIQUE_ISLAMIQUE_D_IRAN = 183,
185
+ REPUBLIQUE_POPULAIRE_DEMOCRATIQUE_DE_COREE = 184,
186
+ REPUBLIQUE_TCHEQUE = 185,
187
+ REPUBLIQUE_UNIE_DE_TANZANIE = 186,
188
+ REUNION = 187,
189
+ ROUMANIE = 188,
190
+ ROYAUME_UNI = 189,
191
+ RWANDA = 190,
192
+ SAHARA_OCCIDENTAL = 191,
193
+ SAINT_KITTS_ET_NEVIS = 192,
194
+ SAINT_MARIN = 193,
195
+ SAINT_PIERRE_ET_MIQUELON = 194,
196
+ SAINT_SIEGE_ETAT_DE_LA_CITE_DU_VATICAN = 195,
197
+ SAINT_VINCENT_ET_LES_GRENADINES = 196,
198
+ SAINTE_HELENE = 197,
199
+ SAINTE_LUCIE = 198,
200
+ SAMOA = 199,
201
+ SAMOA_AMERICAINES = 200,
202
+ SAO_TOME_ET_PRINCIPE = 201,
203
+ SENEGAL = 202,
204
+ SERBIE_ET_MONTENEGRO = 203,
205
+ SEYCHELLES = 204,
206
+ SIERRA_LEONE = 205,
207
+ SINGAPOUR = 206,
208
+ SLOVAQUIE = 207,
209
+ SLOVENIE = 208,
210
+ SOMALIE = 209,
211
+ SOUDAN = 210,
212
+ SRI_LANKA = 211,
213
+ SUEDE = 212,
214
+ SUISSE = 213,
215
+ SURINAME = 214,
216
+ SVALBARD_ETILE_JAN_MAYEN = 215,
217
+ SWAZI = 216,
218
+ TADJIKISTAN = 217,
219
+ TA = 218,
220
+ TCHAD = 219,
221
+ TERRES_AUSTRALES_FRANCAISES = 220,
222
+ TERRITOIRE_BRITANNIQUE_DE_L_OCEAN_INDIEN = 221,
223
+ TERRITOIRE_PALESTINIEN_OC = 222,
224
+ THAILANDE = 223,
225
+ TIMOR_LESTE = 224,
226
+ TOGO = 225,
227
+ TOKELAU = 226,
228
+ TONGA = 227,
229
+ TRINITE_ET_TOBAGO = 228,
230
+ TUNISIE = 229,
231
+ TURKMENISTAN = 230,
232
+ TURQUIE = 231,
233
+ TUVALU = 232,
234
+ UKRAINE = 233,
235
+ URUGUAY = 234,
236
+ VANUATU = 235,
237
+ VENEZUELA = 236,
238
+ VIET_NAM = 237,
239
+ WALLIS_ET_FUTUNA = 238,
240
+ YEMEN = 239,
241
+ ZAMBIE = 240,
242
+ ZIMBABWE = 241,
243
+ }
244
+
245
+ export const CountryList: Array<{ name: string; ISO3166: string | null; id: CountryId }> = [
246
+ { name: 'Afghanistan', ISO3166: 'AF', id: CountryId.AFGHANISTAN },
247
+ { name: 'Afrique du Sud', ISO3166: 'ZA', id: CountryId.AFRIQUE_DU_SUD },
248
+ { name: 'Albanie', ISO3166: 'AL', id: CountryId.ALBANIE },
249
+ { name: 'Algérie', ISO3166: 'DZ', id: CountryId.ALGERIE },
250
+ { name: 'Allemagne', ISO3166: 'DE', id: CountryId.ALLEMAGNE },
251
+ { name: 'Andorre', ISO3166: 'AD', id: CountryId.ANDORRE },
252
+ { name: 'Angola', ISO3166: 'AO', id: CountryId.ANGOLA },
253
+ { name: 'Anguilla', ISO3166: 'AI', id: CountryId.ANGUILLA },
254
+ { name: 'Antarctique', ISO3166: 'AQ', id: CountryId.ANTARCTIQUE },
255
+ { name: 'Antigua-et-Barbuda', ISO3166: 'AG', id: CountryId.ANTIGUA_ET_BARBUDA },
256
+ { name: 'Antilles Néerlandaises', ISO3166: 'AN', id: CountryId.ANTILLES_NEERLANDAISES },
257
+ { name: 'Arabie Saoudite', ISO3166: 'SA', id: CountryId.ARABIE_SAOUDITE },
258
+ { name: 'Argentine', ISO3166: 'AR', id: CountryId.ARGENTINE },
259
+ { name: 'Arménie', ISO3166: 'AM', id: CountryId.ARMENIE },
260
+ { name: 'Aruba', ISO3166: 'AW', id: CountryId.ARUBA },
261
+ { name: 'Australie', ISO3166: 'AU', id: CountryId.AUSTRALIE },
262
+ { name: 'Autriche', ISO3166: 'AT', id: CountryId.AUTRICHE },
263
+ { name: 'Azerbaïdjan', ISO3166: 'AZ', id: CountryId.AZERBAIDJAN },
264
+ { name: 'Bahamas', ISO3166: 'BS', id: CountryId.BAHAMAS },
265
+ { name: 'Bahreïn', ISO3166: 'BH', id: CountryId.BAHREIN },
266
+ { name: 'Bangladesh', ISO3166: 'BD', id: CountryId.BANGLADESH },
267
+ { name: 'Barbade', ISO3166: 'BB', id: CountryId.BARBADE },
268
+ { name: 'Bélarus', ISO3166: 'BY', id: CountryId.BELARUS },
269
+ { name: 'Belgique', ISO3166: 'BE', id: CountryId.BELGIQUE },
270
+ { name: 'Belize', ISO3166: 'BZ', id: CountryId.BELIZE },
271
+ { name: 'Bénin', ISO3166: 'BJ', id: CountryId.BENIN },
272
+ { name: 'Bermudes', ISO3166: 'BM', id: CountryId.BERMUDES },
273
+ { name: 'Bhoutan', ISO3166: 'BT', id: CountryId.BHOUTAN },
274
+ { name: 'Bolivie', ISO3166: 'BO', id: CountryId.BOLIVIE },
275
+ { name: 'Bosnie-Herzégovine', ISO3166: 'BA', id: CountryId.BOSNIE_HERZEGOVINE },
276
+ { name: 'Botswana', ISO3166: 'BW', id: CountryId.BOTSWANA },
277
+ { name: 'Brésil', ISO3166: 'BR', id: CountryId.BRESIL },
278
+ { name: 'Brunéi Darussalam', ISO3166: 'BN', id: CountryId.BRUNEI_DARUSSALAM },
279
+ { name: 'Bulgarie', ISO3166: 'BG', id: CountryId.BULGARIE },
280
+ { name: 'Burkina Faso', ISO3166: 'BF', id: CountryId.BURKINA_FASO },
281
+ { name: 'Burundi', ISO3166: 'BI', id: CountryId.BURUNDI },
282
+ { name: 'Cambodge', ISO3166: 'KH', id: CountryId.CAMBODGE },
283
+ { name: 'Cameroun', ISO3166: 'CM', id: CountryId.CAMEROUN },
284
+ { name: 'Canada', ISO3166: 'CA', id: CountryId.CANADA },
285
+ { name: 'Cap-vert', ISO3166: 'CV', id: CountryId.CAP_VERT },
286
+ { name: 'Chili', ISO3166: 'CL', id: CountryId.CHILI },
287
+ { name: 'Chine', ISO3166: 'CN', id: CountryId.CHINE },
288
+ { name: 'Chypre', ISO3166: 'CY', id: CountryId.CHYPRE },
289
+ { name: 'Colombie', ISO3166: 'CO', id: CountryId.COLOMBIE },
290
+ { name: 'Comores', ISO3166: 'KM', id: CountryId.COMORES },
291
+ { name: 'Costa Rica', ISO3166: 'CR', id: CountryId.COSTA_RICA },
292
+ { name: 'Côte d\'Ivoire', ISO3166: 'CI', id: CountryId.COTE_D_IVOIRE },
293
+ { name: 'Croatie', ISO3166: 'HR', id: CountryId.CROATIE },
294
+ { name: 'Cuba', ISO3166: 'CU', id: CountryId.CUBA },
295
+ { name: 'Danemark', ISO3166: 'DK', id: CountryId.DANEMARK },
296
+ { name: 'Djibouti', ISO3166: 'DJ', id: CountryId.DJIBOUTI },
297
+ { name: 'Dominique', ISO3166: 'DM', id: CountryId.DOMINIQUE },
298
+ { name: 'Égypte', ISO3166: 'EG', id: CountryId.EGYPTE },
299
+ { name: 'El Salvador', ISO3166: 'SV', id: CountryId.EL_SALVADOR },
300
+ { name: 'Émirats Arabes Unis', ISO3166: 'AE', id: CountryId.EMIRATS_ARABES_UNIS },
301
+ { name: 'Équateur', ISO3166: 'EC', id: CountryId.EQUATEUR },
302
+ { name: 'Érythrée', ISO3166: 'ER', id: CountryId.ERYTHREE },
303
+ { name: 'Espagne', ISO3166: 'ES', id: CountryId.ESPAGNE },
304
+ { name: 'Estonie', ISO3166: 'EE', id: CountryId.ESTONIE },
305
+ { name: 'États Fédérés de Micronésie', ISO3166: 'FM', id: CountryId.ETATS_FEDERES_DE_MICRONESIE },
306
+ { name: 'États-Unis', ISO3166: 'US', id: CountryId.ETATS_UNIS },
307
+ { name: 'Éthiopie', ISO3166: 'ET', id: CountryId.ETHIOPIE },
308
+ { name: 'Fédération de Russie', ISO3166: 'RU', id: CountryId.FEDERATION_DE_RUSSIE },
309
+ { name: 'Fidji', ISO3166: 'FJ', id: CountryId.FIDJI },
310
+ { name: 'Finlande', ISO3166: 'FI', id: CountryId.FINLANDE },
311
+ { name: 'France', ISO3166: 'FR', id: CountryId.FRANCE },
312
+ { name: 'Gabon', ISO3166: 'GA', id: CountryId.GABON },
313
+ { name: 'Gambie', ISO3166: 'GM', id: CountryId.GAMBIE },
314
+ { name: 'Géorgie', ISO3166: 'GE', id: CountryId.GEORGIE },
315
+ { name: 'Géorgie du Sud et les Îles Sandwich du Sud', ISO3166: 'GS', id: CountryId.GEORGIE_DU_SUD_ET_LES_ILES_SANDWICH_DU_SUD },
316
+ { name: 'Ghana', ISO3166: 'GH', id: CountryId.GHANA },
317
+ { name: 'Gibraltar', ISO3166: 'GI', id: CountryId.GIBRALTAR },
318
+ { name: 'Grèce', ISO3166: 'GR', id: CountryId.GRECE },
319
+ { name: 'Grenade', ISO3166: 'GD', id: CountryId.GRENADE },
320
+ { name: 'Groenland', ISO3166: 'GL', id: CountryId.GROENLAND },
321
+ { name: 'Guadeloupe', ISO3166: 'GP', id: CountryId.GUADELOUPE },
322
+ { name: 'Guam', ISO3166: 'GU', id: CountryId.GUAM },
323
+ { name: 'Guatemala', ISO3166: 'GT', id: CountryId.GUATEMALA },
324
+ { name: 'Guinée', ISO3166: 'GN', id: CountryId.GUINEE },
325
+ { name: 'Guinée Équatoriale', ISO3166: 'GQ', id: CountryId.GUINEE_EQUATORIALE },
326
+ { name: 'Guinée-Bissau', ISO3166: 'GW', id: CountryId.GUINEE_BISSAU },
327
+ { name: 'Guyana', ISO3166: 'GY', id: CountryId.GUYANA },
328
+ { name: 'Guyane Française', ISO3166: 'GF', id: CountryId.GUYANE_FRANCAISE },
329
+ { name: 'Haïti', ISO3166: 'HT', id: CountryId.HAITI },
330
+ { name: 'Honduras', ISO3166: 'HN', id: CountryId.HONDURAS },
331
+ { name: 'Hong-Kong', ISO3166: 'HK', id: CountryId.HONG_KONG },
332
+ { name: 'Hongrie', ISO3166: 'HU', id: CountryId.HONGRIE },
333
+ { name: 'Île Bouvet', ISO3166: 'BV', id: CountryId.ILE_BOUVET },
334
+ { name: 'Île Christmas', ISO3166: 'CX', id: CountryId.ILE_CHRISTMAS },
335
+ { name: 'Île de Man', ISO3166: 'IM', id: CountryId.ILE_DE_MAN },
336
+ { name: 'Île Norfolk', ISO3166: 'NF', id: CountryId.ILE_NORFOLK },
337
+ { name: 'Îles (malvinas) Falkland', ISO3166: 'FK', id: CountryId.ILES_MALVINAS_FALKLAND },
338
+ { name: 'Îles Åland', ISO3166: 'AX', id: CountryId.ILES_ÅLAND },
339
+ { name: 'Îles Caïmanes', ISO3166: 'KY', id: CountryId.ILES_CAIMANES },
340
+ { name: 'Îles Cocos (KeelinISO3166: g)', ISO3166: null, id: CountryId.ILES_COCOS_KEE },
341
+ { name: 'Îles Cook', ISO3166: 'CK', id: CountryId.ILES_COOK },
342
+ { name: 'Îles Féroé', ISO3166: 'FO', id: CountryId.ILES_FEROE },
343
+ { name: 'Îles Heard et Mcdonald', ISO3166: 'HM', id: CountryId.ILES_HEARD_ET_MCDONALD },
344
+ { name: 'Îles Mariannes du Nord', ISO3166: 'MP', id: CountryId.ILES_MARIANNES_DU_NORD },
345
+ { name: 'Îles Marshall', ISO3166: 'MH', id: CountryId.ILES_MARSHALL },
346
+ { name: 'Îles Mineures Éloignées des États-Unis', ISO3166: 'UM', id: CountryId.ILES_MINEURES_ELOIGNEES_DES_ETATS_UNIS },
347
+ { name: 'Îles Salomon', ISO3166: 'SB', id: CountryId.ILES_SALOMON },
348
+ { name: 'Îles Turks et Caïques', ISO3166: 'TC', id: CountryId.ILES_TURKS_ET_CAIQUES },
349
+ { name: 'Îles Vierges Britanniques', ISO3166: 'VG', id: CountryId.ILES_VIERGES_BRITANNIQUES },
350
+ { name: 'Îles Vierges des États-Unis', ISO3166: 'VI', id: CountryId.ILES_VIERGES_DES_ETATS_UNIS },
351
+ { name: 'Inde', ISO3166: 'IN', id: CountryId.INDE },
352
+ { name: 'Indonésie', ISO3166: 'ID', id: CountryId.INDONESIE },
353
+ { name: 'Iraq', ISO3166: 'IQ', id: CountryId.IRAQ },
354
+ { name: 'Irlande', ISO3166: 'IE', id: CountryId.IRLANDE },
355
+ { name: 'Islande', ISO3166: 'IS', id: CountryId.ISLANDE },
356
+ { name: 'Israël', ISO3166: 'IL', id: CountryId.ISRAËL },
357
+ { name: 'Italie', ISO3166: 'IT', id: CountryId.ITALIE },
358
+ { name: 'Jamahiriya Arabe Libyenniso', ISO3166: null, id: CountryId.JAMAHIRIYA_ARABE_LIBY },
359
+ { name: 'Jamaïque', ISO3166: 'JM', id: CountryId.JAMAIQUE },
360
+ { name: 'Japon', ISO3166: 'JP', id: CountryId.JAPON },
361
+ { name: 'Jordanie', ISO3166: 'JO', id: CountryId.JORDANIE },
362
+ { name: 'Kazakhstan', ISO3166: 'KZ', id: CountryId.KAZAKHSTAN },
363
+ { name: 'Kenya', ISO3166: 'KE', id: CountryId.KENYA },
364
+ { name: 'Kirghizistan', ISO3166: 'KG', id: CountryId.KIRGHIZISTAN },
365
+ { name: 'Kiribati', ISO3166: 'KI', id: CountryId.KIRIBATI },
366
+ { name: 'Koweït', ISO3166: 'KW', id: CountryId.KOWEIT },
367
+ { name: 'L\'ex-République Yougoslave de Macédoiniso', ISO3166: null, id: CountryId.L_EX_REPUBLIQUE_YOUGOSLAVE_DE_MACED },
368
+ { name: 'Lesotho', ISO3166: 'LS', id: CountryId.LESOTHO },
369
+ { name: 'Lettonie', ISO3166: 'LV', id: CountryId.LETTONIE },
370
+ { name: 'Liban', ISO3166: 'LB', id: CountryId.LIBAN },
371
+ { name: 'Libéria', ISO3166: 'LR', id: CountryId.LIBERIA },
372
+ { name: 'Liechtenstein', ISO3166: 'LI', id: CountryId.LIECHTENSTEIN },
373
+ { name: 'Lituanie', ISO3166: 'LT', id: CountryId.LITUANIE },
374
+ { name: 'Luxembourg', ISO3166: 'LU', id: CountryId.LUXEMBOURG },
375
+ { name: 'Macao', ISO3166: 'MO', id: CountryId.MACAO },
376
+ { name: 'Madagascar', ISO3166: 'MG', id: CountryId.MADAGASCAR },
377
+ { name: 'Malaisie', ISO3166: 'MY', id: CountryId.MALAISIE },
378
+ { name: 'Malawi', ISO3166: 'MW', id: CountryId.MALAWI },
379
+ { name: 'Maldives', ISO3166: 'MV', id: CountryId.MALDIVES },
380
+ { name: 'Mali', ISO3166: 'ML', id: CountryId.MALI },
381
+ { name: 'Malte', ISO3166: 'MT', id: CountryId.MALTE },
382
+ { name: 'Maroc', ISO3166: 'MA', id: CountryId.MAROC },
383
+ { name: 'Martinique', ISO3166: 'MQ', id: CountryId.MARTINIQUE },
384
+ { name: 'Maurice', ISO3166: 'MU', id: CountryId.MAURICE },
385
+ { name: 'Mauritanie', ISO3166: 'MR', id: CountryId.MAURITANIE },
386
+ { name: 'Mayotte', ISO3166: 'YT', id: CountryId.MAYOTTE },
387
+ { name: 'Mexique', ISO3166: 'MX', id: CountryId.MEXIQUE },
388
+ { name: 'Monaco', ISO3166: 'MC', id: CountryId.MONACO },
389
+ { name: 'Mongolie', ISO3166: 'MN', id: CountryId.MONGOLIE },
390
+ { name: 'Montserrat', ISO3166: 'MS', id: CountryId.MONTSERRAT },
391
+ { name: 'Mozambique', ISO3166: 'MZ', id: CountryId.MOZAMBIQUE },
392
+ { name: 'Myanmar', ISO3166: 'MM', id: CountryId.MYANMAR },
393
+ { name: 'Namibie', ISO3166: 'NA', id: CountryId.NAMIBIE },
394
+ { name: 'Nauru', ISO3166: 'NR', id: CountryId.NAURU },
395
+ { name: 'Népal', ISO3166: 'NP', id: CountryId.NEPAL },
396
+ { name: 'Nicaragua', ISO3166: 'NI', id: CountryId.NICARAGUA },
397
+ { name: 'Niger', ISO3166: 'NE', id: CountryId.NIGER },
398
+ { name: 'Nigéria', ISO3166: 'NG', id: CountryId.NIGERIA },
399
+ { name: 'Niué', ISO3166: 'NU', id: CountryId.NIUE },
400
+ { name: 'Norvège', ISO3166: 'NO', id: CountryId.NORVEGE },
401
+ { name: 'Nouvelle-Calédonie', ISO3166: 'NC', id: CountryId.NOUVELLE_CALEDONIE },
402
+ { name: 'Nouvelle-Zélande', ISO3166: 'NZ', id: CountryId.NOUVELLE_ZELANDE },
403
+ { name: 'Oman', ISO3166: 'OM', id: CountryId.OMAN },
404
+ { name: 'Ouganda', ISO3166: 'UG', id: CountryId.OUGANDA },
405
+ { name: 'Ouzbékistan', ISO3166: 'UZ', id: CountryId.OUZBEKISTAN },
406
+ { name: 'Pakistan', ISO3166: 'PK', id: CountryId.PAKISTAN },
407
+ { name: 'Palaos', ISO3166: 'PW', id: CountryId.PALAOS },
408
+ { name: 'Panama', ISO3166: 'PA', id: CountryId.PANAMA },
409
+ { name: 'Papouasie-Nouvelle-Guinée', ISO3166: 'PG', id: CountryId.PAPOUASIE_NOUVELLE_GUINEE },
410
+ { name: 'Paraguay', ISO3166: 'PY', id: CountryId.PARAGUAY },
411
+ { name: 'Pays-Bas', ISO3166: 'NL', id: CountryId.PAYS_BAS },
412
+ { name: 'Pérou', ISO3166: 'PE', id: CountryId.PEROU },
413
+ { name: 'Philippines', ISO3166: 'PH', id: CountryId.PHILIPPINES },
414
+ { name: 'Pitcairn', ISO3166: 'PN', id: CountryId.PITCAIRN },
415
+ { name: 'Pologne', ISO3166: 'PL', id: CountryId.POLOGNE },
416
+ { name: 'Polynésie Française', ISO3166: 'PF', id: CountryId.POLYNESIE_FRANCAISE },
417
+ { name: 'Porto Rico', ISO3166: 'PR', id: CountryId.PORTO_RICO },
418
+ { name: 'Portugal', ISO3166: 'PT', id: CountryId.PORTUGAL },
419
+ { name: 'Qatar', ISO3166: 'QA', id: CountryId.QATAR },
420
+ { name: 'République Arabe Syrienne', ISO3166: 'SY', id: CountryId.REPUBLIQUE_ARABE_SYRIENNE },
421
+ { name: 'République Centrafricaine', ISO3166: 'CF', id: CountryId.REPUBLIQUE_CENTRAFRICAINE },
422
+ { name: 'République de Corée', ISO3166: 'KR', id: CountryId.REPUBLIQUE_DE_COREE },
423
+ { name: 'République de Moldova', ISO3166: 'MD', id: CountryId.REPUBLIQUE_DE_MOLDOVA },
424
+ { name: 'République Démocratique du Congo', ISO3166: 'CD', id: CountryId.REPUBLIQUE_DEMOCRATIQUE_DU_CONGO },
425
+ { name: 'République Démocratique Populaire Lao', ISO3166: 'LA', id: CountryId.REPUBLIQUE_DEMOCRATIQUE_POPULAIRE_LAO },
426
+ { name: 'République Dominicaine', ISO3166: 'DO', id: CountryId.REPUBLIQUE_DOMINICAINE },
427
+ { name: 'République du Congo', ISO3166: 'CG', id: CountryId.REPUBLIQUE_DU_CONGO },
428
+ { name: 'République Islamique d\'Iran', ISO3166: 'IR', id: CountryId.REPUBLIQUE_ISLAMIQUE_D_IRAN },
429
+ { name: 'République Populaire Démocratique de Corée', ISO3166: 'KP', id: CountryId.REPUBLIQUE_POPULAIRE_DEMOCRATIQUE_DE_COREE },
430
+ { name: 'République Tchèque', ISO3166: 'CZ', id: CountryId.REPUBLIQUE_TCHEQUE },
431
+ { name: 'République-Unie de Tanzanie', ISO3166: 'TZ', id: CountryId.REPUBLIQUE_UNIE_DE_TANZANIE },
432
+ { name: 'Réunion', ISO3166: 'RE', id: CountryId.REUNION },
433
+ { name: 'Roumanie', ISO3166: 'RO', id: CountryId.ROUMANIE },
434
+ { name: 'Royaume-Uni', ISO3166: 'GB', id: CountryId.ROYAUME_UNI },
435
+ { name: 'Rwanda', ISO3166: 'RW', id: CountryId.RWANDA },
436
+ { name: 'Sahara Occidental', ISO3166: 'EH', id: CountryId.SAHARA_OCCIDENTAL },
437
+ { name: 'Saint-Kitts-et-Nevis', ISO3166: 'KN', id: CountryId.SAINT_KITTS_ET_NEVIS },
438
+ { name: 'Saint-Marin', ISO3166: 'SM', id: CountryId.SAINT_MARIN },
439
+ { name: 'Saint-Pierre-et-Miquelon', ISO3166: 'PM', id: CountryId.SAINT_PIERRE_ET_MIQUELON },
440
+ { name: 'Saint-Siège (état de la Cité du Vatican)', ISO3166: 'VA', id: CountryId.SAINT_SIEGE_ETAT_DE_LA_CITE_DU_VATICAN },
441
+ { name: 'Saint-Vincent-et-les Grenadines', ISO3166: 'VC', id: CountryId.SAINT_VINCENT_ET_LES_GRENADINES },
442
+ { name: 'Sainte-Hélène', ISO3166: 'SH', id: CountryId.SAINTE_HELENE },
443
+ { name: 'Sainte-Lucie', ISO3166: 'LC', id: CountryId.SAINTE_LUCIE },
444
+ { name: 'Samoa', ISO3166: 'WS', id: CountryId.SAMOA },
445
+ { name: 'Samoa Américaines', ISO3166: 'AS', id: CountryId.SAMOA_AMERICAINES },
446
+ { name: 'Sao Tomé-et-Principe', ISO3166: 'ST', id: CountryId.SAO_TOME_ET_PRINCIPE },
447
+ { name: 'Sénégal', ISO3166: 'SN', id: CountryId.SENEGAL },
448
+ { name: 'Serbie-et-Monténégro', ISO3166: 'CS', id: CountryId.SERBIE_ET_MONTENEGRO },
449
+ { name: 'Seychelles', ISO3166: 'SC', id: CountryId.SEYCHELLES },
450
+ { name: 'Sierra Leone', ISO3166: 'SL', id: CountryId.SIERRA_LEONE },
451
+ { name: 'Singapour', ISO3166: 'SG', id: CountryId.SINGAPOUR },
452
+ { name: 'Slovaquie', ISO3166: 'SK', id: CountryId.SLOVAQUIE },
453
+ { name: 'Slovénie', ISO3166: 'SI', id: CountryId.SLOVENIE },
454
+ { name: 'Somalie', ISO3166: 'SO', id: CountryId.SOMALIE },
455
+ { name: 'Soudan', ISO3166: 'SD', id: CountryId.SOUDAN },
456
+ { name: 'Sri Lanka', ISO3166: 'LK', id: CountryId.SRI_LANKA },
457
+ { name: 'Suède', ISO3166: 'SE', id: CountryId.SUEDE },
458
+ { name: 'Suisse', ISO3166: 'CH', id: CountryId.SUISSE },
459
+ { name: 'Suriname', ISO3166: 'SR', id: CountryId.SURINAME },
460
+ { name: 'Svalbard etÎle Jan Mayen', ISO3166: 'SJ', id: CountryId.SVALBARD_ETILE_JAN_MAYEN },
461
+ { name: 'SwazilanISO3166: d', ISO3166: null, id: CountryId.SWAZI },
462
+ { name: 'Tadjikistan', ISO3166: 'TJ', id: CountryId.TADJIKISTAN },
463
+ { name: 'TaïwaISO3166: n', ISO3166: null, id: CountryId.TA },
464
+ { name: 'Tchad', ISO3166: 'TD', id: CountryId.TCHAD },
465
+ { name: 'Terres Australes Françaises', ISO3166: 'TF', id: CountryId.TERRES_AUSTRALES_FRANCAISES },
466
+ { name: 'Territoire Britannique de l\'Océan Indien', ISO3166: 'IO', id: CountryId.TERRITOIRE_BRITANNIQUE_DE_L_OCEAN_INDIEN },
467
+ { name: 'Territoire Palestinien OccupISO3166: é', ISO3166: null, id: CountryId.TERRITOIRE_PALESTINIEN_OC },
468
+ { name: 'Thaïlande', ISO3166: 'TH', id: CountryId.THAILANDE },
469
+ { name: 'Timor-Leste', ISO3166: 'TL', id: CountryId.TIMOR_LESTE },
470
+ { name: 'Togo', ISO3166: 'TG', id: CountryId.TOGO },
471
+ { name: 'Tokelau', ISO3166: 'TK', id: CountryId.TOKELAU },
472
+ { name: 'Tonga', ISO3166: 'TO', id: CountryId.TONGA },
473
+ { name: 'Trinité-et-Tobago', ISO3166: 'TT', id: CountryId.TRINITE_ET_TOBAGO },
474
+ { name: 'Tunisie', ISO3166: 'TN', id: CountryId.TUNISIE },
475
+ { name: 'Turkménistan', ISO3166: 'TM', id: CountryId.TURKMENISTAN },
476
+ { name: 'Turquie', ISO3166: 'TR', id: CountryId.TURQUIE },
477
+ { name: 'Tuvalu', ISO3166: 'TV', id: CountryId.TUVALU },
478
+ { name: 'Ukraine', ISO3166: 'UA', id: CountryId.UKRAINE },
479
+ { name: 'Uruguay', ISO3166: 'UY', id: CountryId.URUGUAY },
480
+ { name: 'Vanuatu', ISO3166: 'VU', id: CountryId.VANUATU },
481
+ { name: 'Venezuela', ISO3166: 'VE', id: CountryId.VENEZUELA },
482
+ { name: 'Viet Nam', ISO3166: 'VN', id: CountryId.VIET_NAM },
483
+ { name: 'Wallis et Futuna', ISO3166: 'WF', id: CountryId.WALLIS_ET_FUTUNA },
484
+ { name: 'Yémen', ISO3166: 'YE', id: CountryId.YEMEN },
485
+ { name: 'Zambie', ISO3166: 'ZM', id: CountryId.ZAMBIE },
486
+ { name: 'Zimbabwe', ISO3166: 'ZW', id: CountryId.ZIMBABWE },
487
+ ];
@@ -5,6 +5,7 @@ import { ReadFormattedAccountingTransaction } from '../accountingEntry/AnnotateA
5
5
  import { CommercialDocumentInputs } from './Create';
6
6
  import { IEstimateInvoice } from '../../models/IEstimateInvoice';
7
7
  import { EstimateStatus, FontIds, InvoiceStatus } from '../../../Enum/CommercialManagement';
8
+ import { IThirdParty } from '../../models/IThirdParty';
8
9
 
9
10
  export type ReadCashBasedInvoice = Partial<IAccountingFile>;
10
11
 
@@ -23,6 +24,11 @@ export type ReadProductEditing = IProductInvoice & {
23
24
  marginVatFormatted: string | null;
24
25
  };
25
26
 
27
+ export type ReadThirdPartyEditing = IThirdParty & {
28
+ deliveryCountry: string | null;
29
+ country: string | null;
30
+ };
31
+
26
32
  export type ReadVatEditing = {
27
33
  id: number;
28
34
  name: string;
@@ -1,5 +1,5 @@
1
1
  import {
2
- ApiProperty, VatRegime, FiscalRegime, ComptaType, ApiPropertyOptional, Country, Activity,
2
+ ApiProperty, VatRegime, FiscalRegime, ComptaType, ApiPropertyOptional, CountryId, Activity,
3
3
  } from '../../../..';
4
4
  import { AccountsSectorsEnum } from '../../../Enum/AccountsSectors';
5
5
  import { TaxSystem } from '../../../Enum/TaxSystem';
@@ -63,6 +63,6 @@ export class CreatePartneredAccountantSociety {
63
63
  @ApiPropertyOptional()
64
64
  zipCode?: string | null;
65
65
 
66
- @ApiPropertyOptional({ enum: Country })
67
- idCountry?: Country | null;
66
+ @ApiPropertyOptional({ enum: CountryId })
67
+ idCountry?: CountryId | null;
68
68
  }
@@ -0,0 +1,10 @@
1
+ export interface ReadPdfizer {
2
+ Location: string;
3
+ ETag: string;
4
+ Key: string;
5
+ Bucket: string;
6
+ }
7
+
8
+ export type PdfContent = { body: string; header?: string; footer?: string; };
9
+ export type PdfOptions = { margins?: { left?: string; top?: string; right?: string; bottom?: string; }, folder?: string; isLandscape?: boolean; hasImage?: boolean; watermark?: { content: string; class: string; } };
10
+ export type CreatePdfParam = { society?: { id: number; idBrandType?: number }, content: PdfContent, options?: PdfOptions };
@@ -48,7 +48,7 @@ import { ISms } from './ISms';
48
48
  import { IUser } from './IUser';
49
49
  import { ISocietyEvent } from './ISocietyEvent';
50
50
  import {
51
- ComptaType, Country, INafCode, IPartneredAccountantCompanyService, Sector, UnpaidDetail, IPartneredAccountantToSociety, IMail, IAccountingTransaction, IFecFile, IGedFile, IBusinessPartner, IPaymentSchedule,
51
+ ComptaType, CountryId, INafCode, IPartneredAccountantCompanyService, Sector, UnpaidDetail, IPartneredAccountantToSociety, IMail, IAccountingTransaction, IFecFile, IGedFile, IBusinessPartner, IPaymentSchedule,
52
52
  } from '../..';
53
53
  import { IBrandType } from './IBrandType';
54
54
 
@@ -112,7 +112,7 @@ export interface ISociety {
112
112
  idComptaType: ComptaType | null;
113
113
  idTypeBrand: number | null;
114
114
  idSubscriptionType: number | null;
115
- idCountry: Country | null;
115
+ idCountry: CountryId | null;
116
116
  idSector: Sector | null;
117
117
  idSocietyNotes: number | null;
118
118
  folderNote: string | null;
@@ -30,6 +30,7 @@ export interface IThirdParty {
30
30
  deliveryAddress?: string | null;
31
31
  deliveryZipCode?: string | null;
32
32
  deliveryCity?: string | null;
33
+ deliveryIdCountry?: number | null;
33
34
  createdAt?: Date;
34
35
  updatedAt?: Date;
35
36
  deletedAt?: Date | null;
package/ts/types/index.ts CHANGED
@@ -828,6 +828,7 @@ export * from './Interface/api/legalNotice/UpdateLegalNotice';
828
828
  export * from './Interface/api/wallet/QueryWallet';
829
829
  export * from './Interface/api/terminationList/QueryTerminationList';
830
830
  export * from './Interface/api/terminationList/DestroyTerminationList';
831
+ export * from './Interface/api/pdf/ReadPdfizer';
831
832
 
832
833
  // Enums types
833
834
  export * from './Interface/enum/Util';
@@ -14,14 +14,18 @@ import { bodyTemplate } from './templates/body';
14
14
  import { productToReadProductEditing } from './product';
15
15
  import { vatToReadVatEditing } from './vat';
16
16
  import { CreateInvoiceDocument, CreatePreSaleDocument } from '../../types';
17
+ import { thirdPartyToReadThirdPartyEditing } from './thirdParty';
17
18
 
18
19
  const ejs = require('ejs');
19
20
 
20
21
  export function generateCommercialDocument(idEstimateInvoiceType: EstimateInvoiceType, payload: CreateInvoiceDocument | CreatePreSaleDocument): ReadCommercialDocumentTemplate {
21
22
  const products = _orderBy(payload.products.map((product) => productToReadProductEditing(product), 'reorder'));
22
23
  const vats = _orderBy(Object.values(_groupBy(products, 'vatFormatted')).map((v) => (vatToReadVatEditing(v)), 'value')).filter((v) => v.id !== Vat.MARGE.id);
24
+ const thirdParty = thirdPartyToReadThirdPartyEditing(payload.thirdParty);
25
+
23
26
  const data: ReadDocumentEditing = {
24
27
  ...payload,
28
+ thirdParty,
25
29
  paymentLink: payload.paymentLink ?? '#',
26
30
  idEstimateInvoiceType,
27
31
  title: payload.title ?? null,
@@ -56,9 +56,10 @@ const headOfDocument = `<div class="row space-between">
56
56
  <% if(thirdParty.fullname) {%><b><%= thirdParty.fullname %></b><br/><% } %>
57
57
  <% if(thirdParty.company) {%><%= thirdParty.company %><br/><% } %>
58
58
  <% if(thirdParty.address) {%><%= thirdParty.address %><br/><% } %>
59
- <% if(thirdParty.zipCode) {%><%= thirdParty.zipCode + ' ' %><% } %><%= thirdParty.city %><br/>
60
- <% if(thirdParty.deliveryAddress && thirdParty.deliveryCity && thirdParty.deliveryZipCode) {%>Adresse de livraison : <%= thirdParty.deliveryAddress %> <%= thirdParty.deliveryZipCode %> <%= thirdParty.deliveryCity %><br/><% } %>
61
- <% if(thirdParty.nSiret) {%>SIRET : <%= thirdParty.nSiret %><% } %>
59
+ <% if(thirdParty.zipCode) {%><%= thirdParty.zipCode + ' ' %><% } %><%= thirdParty.city %> <%= thirdParty.country %><br/>
60
+ <% if(thirdParty.deliveryAddress && thirdParty.deliveryCity && thirdParty.deliveryZipCode) {%>Adresse de livraison : <%= thirdParty.deliveryAddress %> <%= thirdParty.deliveryZipCode %> <%= thirdParty.deliveryCity %> <%= thirdParty.deliveryCountry %><br/><% } %>
61
+ <% if(thirdParty.nSiret) {%>SIRET : <%= thirdParty.nSiret %><br/><% } %>
62
+ <% if(thirdParty.nTva) {%>N° TVA : <%= thirdParty.nTva %><% } %>
62
63
  </div>
63
64
  <% } %>
64
65
  </div>
@@ -129,7 +129,7 @@ export class CommercialDocumentCommonHTML {
129
129
  <% } %>
130
130
  <% if ([${EstimateInvoiceType.FACTURE}, ${EstimateInvoiceType.RESTE}, ${EstimateInvoiceType.ACOMPTE}].includes(idEstimateInvoiceType)) { %>
131
131
  <tr>
132
- <td><b>Net à payer</b></td>
132
+ <td><b><%= depositFormatted ? 'Reste à payer' : 'Net à payer' %></b></td>
133
133
  <td><%= totalTaxAndDiscountIncludedFormatted %>€</td>
134
134
  </tr>
135
135
  <% } %>
@@ -0,0 +1,11 @@
1
+ import { isDefined } from 'class-validator';
2
+ import { IThirdParty, ReadThirdPartyEditing } from '../../types';
3
+ import { CountryList } from '../../types/Enum/Country';
4
+
5
+ export function thirdPartyToReadThirdPartyEditing(payload: IThirdParty): ReadThirdPartyEditing {
6
+ return {
7
+ ...payload,
8
+ country: isDefined(payload.idCountry) ? CountryList.find((c) => c.id === payload.idCountry)?.name?.toUpperCase() ?? null : null,
9
+ deliveryCountry: isDefined(payload.deliveryIdCountry) ? CountryList.find((c) => c.id === payload.deliveryIdCountry)?.name?.toUpperCase() ?? null : null,
10
+ };
11
+ }