@bookipi/htmlgenerator 1.1.16 → 1.1.17-alpha10

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.
package/dist/index.js CHANGED
@@ -63,1543 +63,1543 @@ function _createForOfIteratorHelperLoose(o, allowArrayLike) {
63
63
  }
64
64
 
65
65
  var currencies = {
66
- "AED": {
67
- "symbol": "AED",
68
- "name": "United Arab Emirates Dirham",
69
- "symbol_native": "د.إ.‏",
70
- "decimal_digits": 2,
71
- "rounding": 0,
72
- "code": "AED",
73
- "name_plural": "UAE dirhams",
74
- "rtl": true
75
- },
76
- "AFN": {
77
- "symbol": "Af",
78
- "name": "Afghan Afghani",
79
- "symbol_native": "Af",
80
- "decimal_digits": 0,
81
- "rounding": 0,
82
- "code": "AFN",
83
- "name_plural": "Afghan Afghanis",
84
- "rtl": true
85
- },
86
- "ALL": {
87
- "symbol": "ALL",
88
- "name": "Albanian Lek",
89
- "symbol_native": "Lek",
90
- "decimal_digits": 0,
91
- "rounding": 0,
92
- "code": "ALL",
93
- "name_plural": "Albanian lekë"
94
- },
95
- "AOA": {
96
- "symbol": "Kz",
97
- "name": "Angolan kwanza",
98
- "symbol_native": "Kz",
99
- "decimal_digits": 2,
100
- "rounding": 0,
101
- "code": "AOA",
102
- "name_plural": "Angolan kwanza"
103
- },
104
- "AMD": {
105
- "symbol": "AMD",
106
- "name": "Armenian Dram",
107
- "symbol_native": "դր.",
108
- "decimal_digits": 0,
109
- "rounding": 0,
110
- "code": "AMD",
111
- "name_plural": "Armenian drams"
112
- },
113
- "ANG": {
114
- "symbol": "ANG",
115
- "name": "Dutch Guilder",
116
- "symbol_native": "ƒ",
117
- "decimal_digits": 2,
118
- "rounding": 0,
119
- "code": "ANG",
120
- "name_plural": "Dutch Guilders"
121
- },
122
- "ARS": {
123
- "symbol": "AR$",
124
- "name": "Argentine Peso",
125
- "symbol_native": "$",
126
- "decimal_digits": 2,
127
- "rounding": 0,
128
- "code": "ARS",
129
- "name_plural": "Argentine pesos"
130
- },
131
- "AUD": {
132
- "symbol": "AU$",
133
- "name": "Australian Dollar",
134
- "symbol_native": "$",
135
- "decimal_digits": 2,
136
- "rounding": 0,
137
- "code": "AUD",
138
- "name_plural": "Australian dollars"
139
- },
140
- "AZN": {
141
- "symbol": "man.",
142
- "name": "Azerbaijani Manat",
143
- "symbol_native": "ман.",
144
- "decimal_digits": 2,
145
- "rounding": 0,
146
- "code": "AZN",
147
- "name_plural": "Azerbaijani manats"
148
- },
149
- "BAM": {
150
- "symbol": "KM",
151
- "name": "Bosnia-Herzegovina Convertible Mark",
152
- "symbol_native": "KM",
153
- "decimal_digits": 2,
154
- "rounding": 0,
155
- "code": "BAM",
156
- "name_plural": "Bosnia-Herzegovina convertible marks"
157
- },
158
- "BBD": {
159
- "symbol": "Bds$",
160
- "name": "Barbadian Dollar",
161
- "symbol_native": "Bds$",
162
- "decimal_digits": 2,
163
- "rounding": 0,
164
- "code": "BBD",
165
- "name_plural": "Barbadian Dollars"
166
- },
167
- "BDT": {
168
- "symbol": "Tk",
169
- "name": "Bangladeshi Taka",
170
- "symbol_native": "Tk",
171
- "decimal_digits": 2,
172
- "rounding": 0,
173
- "code": "BDT",
174
- "name_plural": "Bangladeshi takas"
175
- },
176
- "BGN": {
177
- "symbol": "BGN",
178
- "name": "Bulgarian Lev",
179
- "symbol_native": "лв.",
180
- "decimal_digits": 2,
181
- "rounding": 0,
182
- "code": "BGN",
183
- "name_plural": "Bulgarian leva"
184
- },
185
- "BHD": {
186
- "symbol": "BD",
187
- "name": "Bahraini Dinar",
188
- "symbol_native": "د.ب.‏",
189
- "decimal_digits": 3,
190
- "rounding": 0,
191
- "code": "BHD",
192
- "name_plural": "Bahraini dinars",
193
- "rtl": true
194
- },
195
- "BIF": {
196
- "symbol": "FBu",
197
- "name": "Burundian Franc",
198
- "symbol_native": "FBu",
199
- "decimal_digits": 0,
200
- "rounding": 0,
201
- "code": "BIF",
202
- "name_plural": "Burundian francs"
203
- },
204
- "BND": {
205
- "symbol": "BN$",
206
- "name": "Brunei Dollar",
207
- "symbol_native": "$",
208
- "decimal_digits": 2,
209
- "rounding": 0,
210
- "code": "BND",
211
- "name_plural": "Brunei dollars"
212
- },
213
- "BOB": {
214
- "symbol": "Bs",
215
- "name": "Bolivian Boliviano",
216
- "symbol_native": "Bs",
217
- "decimal_digits": 2,
218
- "rounding": 0,
219
- "code": "BOB",
220
- "name_plural": "Bolivian bolivianos"
221
- },
222
- "BRL": {
223
- "symbol": "R$",
224
- "name": "Brazilian Real",
225
- "symbol_native": "R$",
226
- "decimal_digits": 2,
227
- "rounding": 0,
228
- "code": "BRL",
229
- "name_plural": "Brazilian reals"
230
- },
231
- "BWP": {
232
- "symbol": "BWP",
233
- "name": "Botswanan Pula",
234
- "symbol_native": "P",
235
- "decimal_digits": 2,
236
- "rounding": 0,
237
- "code": "BWP",
238
- "name_plural": "Botswanan pulas"
239
- },
240
- "BYR": {
241
- "symbol": "BYR",
242
- "name": "Belarusian Ruble",
243
- "symbol_native": "BYR",
244
- "decimal_digits": 0,
245
- "rounding": 0,
246
- "code": "BYR",
247
- "name_plural": "Belarusian rubles"
248
- },
249
- "BZD": {
250
- "symbol": "BZ$",
251
- "name": "Belize Dollar",
252
- "symbol_native": "$",
253
- "decimal_digits": 2,
254
- "rounding": 0,
255
- "code": "BZD",
256
- "name_plural": "Belize dollars"
257
- },
258
- "CAD": {
259
- "symbol": "CA$",
260
- "name": "Canadian Dollar",
261
- "symbol_native": "$",
262
- "decimal_digits": 2,
263
- "rounding": 0,
264
- "code": "CAD",
265
- "name_plural": "Canadian dollars"
266
- },
267
- "CDF": {
268
- "symbol": "CDF",
269
- "name": "Congolese Franc",
270
- "symbol_native": "FrCD",
271
- "decimal_digits": 2,
272
- "rounding": 0,
273
- "code": "CDF",
274
- "name_plural": "Congolese francs"
275
- },
276
- "CHF": {
277
- "symbol": "CHF",
278
- "name": "Swiss Franc",
279
- "symbol_native": "CHF",
280
- "decimal_digits": 2,
281
- "rounding": 0.05,
282
- "code": "CHF",
283
- "name_plural": "Swiss francs"
284
- },
285
- "CLP": {
286
- "symbol": "CL$",
287
- "name": "Chilean Peso",
288
- "symbol_native": "$",
289
- "decimal_digits": 0,
290
- "rounding": 0,
291
- "code": "CLP",
292
- "name_plural": "Chilean pesos"
293
- },
294
- "CNY": {
295
- "symbol": "¥",
296
- "name": "Chinese Yuan",
297
- "symbol_native": "¥",
298
- "decimal_digits": 2,
299
- "rounding": 0,
300
- "code": "CNY",
301
- "name_plural": "Chinese yuan"
302
- },
303
- "COP": {
304
- "symbol": "CO$",
305
- "name": "Colombian Peso",
306
- "symbol_native": "$",
307
- "decimal_digits": 0,
308
- "rounding": 0,
309
- "code": "COP",
310
- "name_plural": "Colombian pesos"
311
- },
312
- "CRC": {
313
- "symbol": "₡",
314
- "name": "Costa Rican Colón",
315
- "symbol_native": "₡",
316
- "decimal_digits": 0,
317
- "rounding": 0,
318
- "code": "CRC",
319
- "name_plural": "Costa Rican colóns"
320
- },
321
- "CVE": {
322
- "symbol": "CV$",
323
- "name": "Cape Verdean Escudo",
324
- "symbol_native": "CV$",
325
- "decimal_digits": 2,
326
- "rounding": 0,
327
- "code": "CVE",
328
- "name_plural": "Cape Verdean escudos"
329
- },
330
- "CZK": {
331
- "symbol": "Kč",
332
- "name": "Czech Republic Koruna",
333
- "symbol_native": "Kč",
334
- "decimal_digits": 2,
335
- "rounding": 0,
336
- "code": "CZK",
337
- "name_plural": "Czech Republic korunas"
338
- },
339
- "DJF": {
340
- "symbol": "Fdj",
341
- "name": "Djiboutian Franc",
342
- "symbol_native": "Fdj",
343
- "decimal_digits": 0,
344
- "rounding": 0,
345
- "code": "DJF",
346
- "name_plural": "Djiboutian francs"
347
- },
348
- "DKK": {
349
- "symbol": "Dkr",
350
- "name": "Danish Krone",
351
- "symbol_native": "kr",
352
- "decimal_digits": 2,
353
- "rounding": 0,
354
- "code": "DKK",
355
- "name_plural": "Danish kroner"
356
- },
357
- "DOP": {
358
- "symbol": "RD$",
359
- "name": "Dominican Peso",
360
- "symbol_native": "RD$",
361
- "decimal_digits": 2,
362
- "rounding": 0,
363
- "code": "DOP",
364
- "name_plural": "Dominican pesos"
365
- },
366
- "DZD": {
367
- "symbol": "DA",
368
- "name": "Algerian Dinar",
369
- "symbol_native": "د.ج.‏",
370
- "decimal_digits": 2,
371
- "rounding": 0,
372
- "code": "DZD",
373
- "name_plural": "Algerian dinars",
374
- "rtl": true
375
- },
376
- "EEK": {
377
- "symbol": "Ekr",
378
- "name": "Estonian Kroon",
379
- "symbol_native": "kr",
380
- "decimal_digits": 2,
381
- "rounding": 0,
382
- "code": "EEK",
383
- "name_plural": "Estonian kroons"
384
- },
385
- "EGP": {
386
- "symbol": "EGP",
387
- "name": "Egyptian Pound",
388
- "symbol_native": "ج.م.‏",
389
- "decimal_digits": 2,
390
- "rounding": 0,
391
- "code": "EGP",
392
- "name_plural": "Egyptian pounds",
393
- "rtl": true
394
- },
395
- "ERN": {
396
- "symbol": "Nfk",
397
- "name": "Eritrean Nakfa",
398
- "symbol_native": "Nfk",
399
- "decimal_digits": 2,
400
- "rounding": 0,
401
- "code": "ERN",
402
- "name_plural": "Eritrean nakfas"
403
- },
404
- "ETB": {
405
- "symbol": "Br",
406
- "name": "Ethiopian Birr",
407
- "symbol_native": "Br",
408
- "decimal_digits": 2,
409
- "rounding": 0,
410
- "code": "ETB",
411
- "name_plural": "Ethiopian birrs"
412
- },
413
- "EUR": {
414
- "symbol": "€",
415
- "name": "Euro",
416
- "symbol_native": "€",
417
- "decimal_digits": 2,
418
- "rounding": 0,
419
- "code": "EUR",
420
- "name_plural": "euros"
421
- },
422
- "GBP": {
423
- "symbol": "£",
424
- "name": "British Pound Sterling",
425
- "symbol_native": "£",
426
- "decimal_digits": 2,
427
- "rounding": 0,
428
- "code": "GBP",
429
- "name_plural": "British pounds sterling"
430
- },
431
- "GEL": {
432
- "symbol": "GEL",
433
- "name": "Georgian Lari",
434
- "symbol_native": "GEL",
435
- "decimal_digits": 2,
436
- "rounding": 0,
437
- "code": "GEL",
438
- "name_plural": "Georgian laris"
439
- },
440
- "GHS": {
441
- "symbol": "GH₵",
442
- "name": "Ghanaian Cedi",
443
- "symbol_native": "GH₵",
444
- "decimal_digits": 2,
445
- "rounding": 0,
446
- "code": "GHS",
447
- "name_plural": "Ghanaian cedis"
448
- },
449
- "GNF": {
450
- "symbol": "FG",
451
- "name": "Guinean Franc",
452
- "symbol_native": "FG",
453
- "decimal_digits": 0,
454
- "rounding": 0,
455
- "code": "GNF",
456
- "name_plural": "Guinean francs"
457
- },
458
- "GTQ": {
459
- "symbol": "GTQ",
460
- "name": "Guatemalan Quetzal",
461
- "symbol_native": "Q",
462
- "decimal_digits": 2,
463
- "rounding": 0,
464
- "code": "GTQ",
465
- "name_plural": "Guatemalan quetzals"
466
- },
467
- "HKD": {
468
- "symbol": "HK$",
469
- "name": "Hong Kong Dollar",
470
- "symbol_native": "HKD",
471
- "decimal_digits": 2,
472
- "rounding": 0,
473
- "code": "HKD",
474
- "name_plural": "Hong Kong dollars"
475
- },
476
- "HNL": {
477
- "symbol": "HNL",
478
- "name": "Honduran Lempira",
479
- "symbol_native": "L",
480
- "decimal_digits": 2,
481
- "rounding": 0,
482
- "code": "HNL",
483
- "name_plural": "Honduran lempiras"
484
- },
485
- "HRK": {
486
- "symbol": "kn",
487
- "name": "Croatian Kuna",
488
- "symbol_native": "kn",
489
- "decimal_digits": 2,
490
- "rounding": 0,
491
- "code": "HRK",
492
- "name_plural": "Croatian kunas"
493
- },
494
- "HTG": {
495
- "symbol": "HTG",
496
- "name": "Haitian gourde",
497
- "symbol_native": "G",
498
- "decimal_digits": 2,
499
- "rounding": 0,
500
- "code": "HTG",
501
- "name_plural": "Haitian gourde"
502
- },
503
- "HUF": {
504
- "symbol": "Ft",
505
- "name": "Hungarian Forint",
506
- "symbol_native": "Ft",
507
- "decimal_digits": 0,
508
- "rounding": 0,
509
- "code": "HUF",
510
- "name_plural": "Hungarian forints"
511
- },
512
- "IDR": {
513
- "symbol": "Rp",
514
- "name": "Indonesian Rupiah",
515
- "symbol_native": "Rp",
516
- "decimal_digits": 0,
517
- "rounding": 0,
518
- "code": "IDR",
519
- "name_plural": "Indonesian rupiahs"
520
- },
521
- "ILS": {
522
- "symbol": "₪",
523
- "name": "Israeli New Sheqel",
524
- "symbol_native": "₪",
525
- "decimal_digits": 2,
526
- "rounding": 0,
527
- "code": "ILS",
528
- "name_plural": "Israeli new sheqels"
529
- },
530
- "INR": {
531
- "symbol": "Rs",
532
- "name": "Indian Rupee",
533
- "symbol_native": "₹",
534
- "decimal_digits": 2,
535
- "rounding": 0,
536
- "code": "INR",
537
- "name_plural": "Indian rupees"
538
- },
539
- "IQD": {
540
- "symbol": "IQD",
541
- "name": "Iraqi Dinar",
542
- "symbol_native": "د.ع.‏",
543
- "decimal_digits": 0,
544
- "rounding": 0,
545
- "code": "IQD",
546
- "name_plural": "Iraqi dinars",
547
- "rtl": true
548
- },
549
- "IRR": {
550
- "symbol": "IRR",
551
- "name": "Iranian Rial",
552
- "symbol_native": "﷼",
553
- "decimal_digits": 0,
554
- "rounding": 0,
555
- "code": "IRR",
556
- "name_plural": "Iranian rials",
557
- "rtl": true
558
- },
559
- "ISK": {
560
- "symbol": "Ikr",
561
- "name": "Icelandic Króna",
562
- "symbol_native": "kr",
563
- "decimal_digits": 0,
564
- "rounding": 0,
565
- "code": "ISK",
566
- "name_plural": "Icelandic krónur"
567
- },
568
- "JMD": {
569
- "symbol": "J$",
570
- "name": "Jamaican Dollar",
571
- "symbol_native": "$",
572
- "decimal_digits": 2,
573
- "rounding": 0,
574
- "code": "JMD",
575
- "name_plural": "Jamaican dollars"
576
- },
577
- "JOD": {
578
- "symbol": "JD",
579
- "name": "Jordanian Dinar",
580
- "symbol_native": "د.أ.‏",
581
- "decimal_digits": 3,
582
- "rounding": 0,
583
- "code": "JOD",
584
- "name_plural": "Jordanian dinars",
585
- "rtl": true
586
- },
587
- "JPY": {
588
- "symbol": "¥",
589
- "name": "Japanese Yen",
590
- "symbol_native": "¥",
591
- "decimal_digits": 0,
592
- "rounding": 0,
593
- "code": "JPY",
594
- "name_plural": "Japanese yen"
595
- },
596
- "KES": {
597
- "symbol": "Ksh",
598
- "name": "Kenyan Shilling",
599
- "symbol_native": "Ksh",
600
- "decimal_digits": 2,
601
- "rounding": 0,
602
- "code": "KES",
603
- "name_plural": "Kenyan shillings"
604
- },
605
- "KHR": {
606
- "symbol": "KHR",
607
- "name": "Cambodian Riel",
608
- "symbol_native": "KHR",
609
- "decimal_digits": 2,
610
- "rounding": 0,
611
- "code": "KHR",
612
- "name_plural": "Cambodian riels"
613
- },
614
- "KMF": {
615
- "symbol": "CF",
616
- "name": "Comorian Franc",
617
- "symbol_native": "FC",
618
- "decimal_digits": 0,
619
- "rounding": 0,
620
- "code": "KMF",
621
- "name_plural": "Comorian francs"
622
- },
623
- "KRW": {
624
- "symbol": "₩",
625
- "name": "Korean Won(₩)",
626
- "symbol_native": "₩",
627
- "decimal_digits": 0,
628
- "rounding": 0,
629
- "code": "KRW",
630
- "name_plural": "Korean won"
631
- },
632
- "KRW2": {
633
- "symbol": "원",
634
- "name": "Korean Won(원)",
635
- "symbol_native": "원",
636
- "decimal_digits": 0,
637
- "rounding": 0,
638
- "code": "KRW2",
639
- "name_plural": "Korean won"
640
- },
641
- "KWD": {
642
- "symbol": "KD",
643
- "name": "Kuwaiti Dinar",
644
- "symbol_native": "د.ك.‏",
645
- "decimal_digits": 3,
646
- "rounding": 0,
647
- "code": "KWD",
648
- "name_plural": "Kuwaiti dinars",
649
- "rtl": true
650
- },
651
- "KZT": {
652
- "symbol": "KZT",
653
- "name": "Kazakhstani Tenge",
654
- "symbol_native": "тңг.",
655
- "decimal_digits": 2,
656
- "rounding": 0,
657
- "code": "KZT",
658
- "name_plural": "Kazakhstani tenges"
659
- },
660
- "LBP": {
661
- "symbol": "LB£",
662
- "name": "Lebanese Pound",
663
- "symbol_native": "ل.ل.‏",
664
- "decimal_digits": 0,
665
- "rounding": 0,
666
- "code": "LBP",
667
- "name_plural": "Lebanese pounds",
668
- "rtl": true
669
- },
670
- "LKR": {
671
- "symbol": "SLRs",
672
- "name": "Sri Lankan Rupee",
673
- "symbol_native": "LKR Rs",
674
- "decimal_digits": 2,
675
- "rounding": 0,
676
- "code": "LKR",
677
- "name_plural": "Sri Lankan rupees"
678
- },
679
- "LTL": {
680
- "symbol": "Lt",
681
- "name": "Lithuanian Litas",
682
- "symbol_native": "Lt",
683
- "decimal_digits": 2,
684
- "rounding": 0,
685
- "code": "LTL",
686
- "name_plural": "Lithuanian litai"
687
- },
688
- "LVL": {
689
- "symbol": "Ls",
690
- "name": "Latvian Lats",
691
- "symbol_native": "Ls",
692
- "decimal_digits": 2,
693
- "rounding": 0,
694
- "code": "LVL",
695
- "name_plural": "Latvian lati"
696
- },
697
- "LYD": {
698
- "symbol": "LD",
699
- "name": "Libyan Dinar",
700
- "symbol_native": "د.ل.‏",
701
- "decimal_digits": 3,
702
- "rounding": 0,
703
- "code": "LYD",
704
- "name_plural": "Libyan dinars",
705
- "rtl": true
706
- },
707
- "MAD": {
708
- "symbol": "MAD",
709
- "name": "Moroccan Dirham",
710
- "symbol_native": "د.م.‏",
711
- "decimal_digits": 2,
712
- "rounding": 0,
713
- "code": "MAD",
714
- "name_plural": "Moroccan dirhams",
715
- "rtl": true
716
- },
717
- "MDL": {
718
- "symbol": "MDL",
719
- "name": "Moldovan Leu",
720
- "symbol_native": "MDL",
721
- "decimal_digits": 2,
722
- "rounding": 0,
723
- "code": "MDL",
724
- "name_plural": "Moldovan lei"
725
- },
726
- "MGA": {
727
- "symbol": "MGA",
728
- "name": "Malagasy Ariary",
729
- "symbol_native": "MGA",
730
- "decimal_digits": 0,
731
- "rounding": 0,
732
- "code": "MGA",
733
- "name_plural": "Malagasy Ariaries"
734
- },
735
- "MKD": {
736
- "symbol": "MKD",
737
- "name": "Macedonian Denar",
738
- "symbol_native": "MKD",
739
- "decimal_digits": 2,
740
- "rounding": 0,
741
- "code": "MKD",
742
- "name_plural": "Macedonian denari"
743
- },
744
- "MMK": {
745
- "symbol": "MMK",
746
- "name": "Myanma Kyat",
747
- "symbol_native": "K",
748
- "decimal_digits": 0,
749
- "rounding": 0,
750
- "code": "MMK",
751
- "name_plural": "Myanma kyats"
752
- },
753
- "MOP": {
754
- "symbol": "MOP$",
755
- "name": "Macanese Pataca",
756
- "symbol_native": "MOP$",
757
- "decimal_digits": 2,
758
- "rounding": 0,
759
- "code": "MOP",
760
- "name_plural": "Macanese patacas"
761
- },
762
- "MUR": {
763
- "symbol": "MURs",
764
- "name": "Mauritian Rupee",
765
- "symbol_native": "MURs",
766
- "decimal_digits": 0,
767
- "rounding": 0,
768
- "code": "MUR",
769
- "name_plural": "Mauritian rupees"
770
- },
771
- "MXN": {
772
- "symbol": "MX$",
773
- "name": "Mexican Peso",
774
- "symbol_native": "$",
775
- "decimal_digits": 2,
776
- "rounding": 0,
777
- "code": "MXN",
778
- "name_plural": "Mexican pesos"
779
- },
780
- "MVR": {
781
- "symbol": "MVR",
782
- "name": "Maldivian rufiyaa",
783
- "symbol_native": "MVR",
784
- "decimal_digits": 2,
785
- "rounding": 0,
786
- "code": "MVR",
787
- "name_plural": "Maldivian rufiyaas"
788
- },
789
- "MYR": {
790
- "symbol": "RM",
791
- "name": "Malaysian Ringgit",
792
- "symbol_native": "RM",
793
- "decimal_digits": 2,
794
- "rounding": 0,
795
- "code": "MYR",
796
- "name_plural": "Malaysian ringgits"
797
- },
798
- "MZN": {
799
- "symbol": "MTn",
800
- "name": "Mozambican Metical",
801
- "symbol_native": "MTn",
802
- "decimal_digits": 2,
803
- "rounding": 0,
804
- "code": "MZN",
805
- "name_plural": "Mozambican meticals"
806
- },
807
- "NAD": {
808
- "symbol": "N$",
809
- "name": "Namibian Dollar",
810
- "symbol_native": "N$",
811
- "decimal_digits": 2,
812
- "rounding": 0,
813
- "code": "NAD",
814
- "name_plural": "Namibian dollars"
815
- },
816
- "NGN": {
817
- "symbol": "₦",
818
- "name": "Nigerian Naira",
819
- "symbol_native": "₦",
820
- "decimal_digits": 2,
821
- "rounding": 0,
822
- "code": "NGN",
823
- "name_plural": "Nigerian nairas"
824
- },
825
- "NIO": {
826
- "symbol": "C$",
827
- "name": "Nicaraguan Córdoba",
828
- "symbol_native": "C$",
829
- "decimal_digits": 2,
830
- "rounding": 0,
831
- "code": "NIO",
832
- "name_plural": "Nicaraguan córdobas"
833
- },
834
- "NOK": {
835
- "symbol": "Nkr",
836
- "name": "Norwegian Krone",
837
- "symbol_native": "kr",
838
- "decimal_digits": 2,
839
- "rounding": 0,
840
- "code": "NOK",
841
- "name_plural": "Norwegian kroner"
842
- },
843
- "NPR": {
844
- "symbol": "NPRs",
845
- "name": "Nepalese Rupee",
846
- "symbol_native": "NPRs",
847
- "decimal_digits": 2,
848
- "rounding": 0,
849
- "code": "NPR",
850
- "name_plural": "Nepalese rupees"
851
- },
852
- "NZD": {
853
- "symbol": "NZ$",
854
- "name": "New Zealand Dollar",
855
- "symbol_native": "$",
856
- "decimal_digits": 2,
857
- "rounding": 0,
858
- "code": "NZD",
859
- "name_plural": "New Zealand dollars"
860
- },
861
- "OMR": {
862
- "symbol": "OMR",
863
- "name": "Omani Rial",
864
- "symbol_native": "OMR",
865
- "decimal_digits": 3,
866
- "rounding": 0,
867
- "code": "OMR",
868
- "name_plural": "Omani rials"
869
- },
870
- "PAB": {
871
- "symbol": "B/.",
872
- "name": "Panamanian Balboa",
873
- "symbol_native": "B/.",
874
- "decimal_digits": 2,
875
- "rounding": 0,
876
- "code": "PAB",
877
- "name_plural": "Panamanian balboas"
878
- },
879
- "PEN": {
880
- "symbol": "S/.",
881
- "name": "Peruvian Nuevo Sol",
882
- "symbol_native": "S/.",
883
- "decimal_digits": 2,
884
- "rounding": 0,
885
- "code": "PEN",
886
- "name_plural": "Peruvian nuevos soles"
887
- },
888
- "PGK": {
889
- "symbol": "K",
890
- "name": "Papua New Guinea Kina",
891
- "symbol_native": "K",
892
- "decimal_digits": 2,
893
- "rounding": 0,
894
- "code": "PGK",
895
- "name_plural": "Papua New Guinea Kina"
896
- },
897
- "PHP": {
898
- "symbol": "₱",
899
- "name": "Philippine Peso",
900
- "symbol_native": "₱",
901
- "decimal_digits": 2,
902
- "rounding": 0,
903
- "code": "PHP",
904
- "name_plural": "Philippine pesos"
905
- },
906
- "PKR": {
907
- "symbol": "PKRs",
908
- "name": "Pakistani Rupee",
909
- "symbol_native": "₨",
910
- "decimal_digits": 0,
911
- "rounding": 0,
912
- "code": "PKR",
913
- "name_plural": "Pakistani rupees"
914
- },
915
- "PLN": {
916
- "symbol": "zł",
917
- "name": "Polish Zloty",
918
- "symbol_native": "zł",
919
- "decimal_digits": 2,
920
- "rounding": 0,
921
- "code": "PLN",
922
- "name_plural": "Polish zlotys"
923
- },
924
- "PYG": {
925
- "symbol": "₲",
926
- "name": "Paraguayan Guarani",
927
- "symbol_native": "₲",
928
- "decimal_digits": 0,
929
- "rounding": 0,
930
- "code": "PYG",
931
- "name_plural": "Paraguayan guaranis"
932
- },
933
- "QAR": {
934
- "symbol": "QR",
935
- "name": "Qatari Rial",
936
- "symbol_native": "ر.ق.‏",
937
- "decimal_digits": 2,
938
- "rounding": 0,
939
- "code": "QAR",
940
- "name_plural": "Qatari rials",
941
- "rtl": true
942
- },
943
- "RON": {
944
- "symbol": "lei",
945
- "name": "Romanian Leu",
946
- "symbol_native": "lei",
947
- "decimal_digits": 2,
948
- "rounding": 0,
949
- "code": "RON",
950
- "name_plural": "Romanian lei"
951
- },
952
- "RSD": {
953
- "symbol": "din.",
954
- "name": "Serbian Dinar",
955
- "symbol_native": "дин.",
956
- "decimal_digits": 2,
957
- "rounding": 0,
958
- "code": "RSD",
959
- "name_plural": "Serbian dinars"
960
- },
961
- "RUB": {
962
- "symbol": "RUB",
963
- "name": "Russian Ruble",
964
- "symbol_native": "руб.",
965
- "decimal_digits": 2,
966
- "rounding": 0,
967
- "code": "RUB",
968
- "name_plural": "Russian rubles"
969
- },
970
- "RWF": {
971
- "symbol": "RWF",
972
- "name": "Rwandan Franc",
973
- "symbol_native": "FR",
974
- "decimal_digits": 0,
975
- "rounding": 0,
976
- "code": "RWF",
977
- "name_plural": "Rwandan francs"
978
- },
979
- "SAR": {
980
- "symbol": "SR",
981
- "name": "Saudi Riyal",
982
- "symbol_native": "ر.س.‏",
983
- "decimal_digits": 2,
984
- "rounding": 0,
985
- "code": "SAR",
986
- "name_plural": "Saudi riyals",
987
- "rtl": true
988
- },
989
- "SDG": {
990
- "symbol": "SDG",
991
- "name": "Sudanese Pound",
992
- "symbol_native": "SDG",
993
- "decimal_digits": 2,
994
- "rounding": 0,
995
- "code": "SDG",
996
- "name_plural": "Sudanese pounds"
997
- },
998
- "SEK": {
999
- "symbol": "Skr",
1000
- "name": "Swedish Krona",
1001
- "symbol_native": "kr",
1002
- "decimal_digits": 2,
1003
- "rounding": 0,
1004
- "code": "SEK",
1005
- "name_plural": "Swedish kronor"
1006
- },
1007
- "SGD": {
1008
- "symbol": "S$",
1009
- "name": "Singapore Dollar",
1010
- "symbol_native": "$",
1011
- "decimal_digits": 2,
1012
- "rounding": 0,
1013
- "code": "SGD",
1014
- "name_plural": "Singapore dollars"
1015
- },
1016
- "SLL": {
1017
- "symbol": "SLL",
1018
- "name": "Sierra Leonean Leone",
1019
- "symbol_native": "SLL",
1020
- "decimal_digits": 2,
1021
- "rounding": 0,
1022
- "code": "SLL",
1023
- "name_plural": "Sierra Leonean Leones"
1024
- },
1025
- "SOS": {
1026
- "symbol": "Ssh",
1027
- "name": "Somali Shilling",
1028
- "symbol_native": "Ssh",
1029
- "decimal_digits": 0,
1030
- "rounding": 0,
1031
- "code": "SOS",
1032
- "name_plural": "Somali shillings"
1033
- },
1034
- "SRD": {
1035
- "symbol": "SRD",
1036
- "name": "Surinamese dollar",
1037
- "symbol_native": "SRD",
1038
- "decimal_digits": 0,
1039
- "rounding": 0,
1040
- "code": "SRD",
1041
- "name_plural": "Surinamese dollars"
1042
- },
1043
- "SYP": {
1044
- "symbol": "SY£",
1045
- "name": "Syrian Pound",
1046
- "symbol_native": "ل.س.‏",
1047
- "decimal_digits": 0,
1048
- "rounding": 0,
1049
- "code": "SYP",
1050
- "name_plural": "Syrian pounds",
1051
- "rtl": true
1052
- },
1053
- "THB": {
1054
- "symbol": "฿",
1055
- "name": "Thai Baht",
1056
- "symbol_native": "฿",
1057
- "decimal_digits": 2,
1058
- "rounding": 0,
1059
- "code": "THB",
1060
- "name_plural": "Thai baht"
1061
- },
1062
- "TND": {
1063
- "symbol": "DT",
1064
- "name": "Tunisian Dinar",
1065
- "symbol_native1": "د.ت.‏",
1066
- "symbol_native": "TND",
1067
- "decimal_digits": 3,
1068
- "rounding": 0,
1069
- "code": "TND",
1070
- "name_plural": "Tunisian dinars"
1071
- },
1072
- "TOP": {
1073
- "symbol": "T$",
1074
- "name": "Tongan Paʻanga",
1075
- "symbol_native": "T$",
1076
- "decimal_digits": 2,
1077
- "rounding": 0,
1078
- "code": "TOP",
1079
- "name_plural": "Tongan paʻanga"
1080
- },
1081
- "TRY": {
1082
- "symbol": "TL",
1083
- "name": "Turkish Lira",
1084
- "symbol_native": "TL",
1085
- "decimal_digits": 2,
1086
- "rounding": 0,
1087
- "code": "TRY",
1088
- "name_plural": "Turkish Lira"
1089
- },
1090
- "TTD": {
1091
- "symbol": "TT$",
1092
- "name": "Trinidad and Tobago Dollar",
1093
- "symbol_native": "$",
1094
- "decimal_digits": 2,
1095
- "rounding": 0,
1096
- "code": "TTD",
1097
- "name_plural": "Trinidad and Tobago dollars"
1098
- },
1099
- "TWD": {
1100
- "symbol": "NT$",
1101
- "name": "New Taiwan Dollar",
1102
- "symbol_native": "NT$",
1103
- "decimal_digits": 2,
1104
- "rounding": 0,
1105
- "code": "TWD",
1106
- "name_plural": "New Taiwan dollars"
1107
- },
1108
- "TZS": {
1109
- "symbol": "TSh",
1110
- "name": "Tanzanian Shilling",
1111
- "symbol_native": "TSh",
1112
- "decimal_digits": 0,
1113
- "rounding": 0,
1114
- "code": "TZS",
1115
- "name_plural": "Tanzanian shillings"
1116
- },
1117
- "UAH": {
1118
- "symbol": "₴",
1119
- "name": "Ukrainian Hryvnia",
1120
- "symbol_native": "₴",
1121
- "decimal_digits": 2,
1122
- "rounding": 0,
1123
- "code": "UAH",
1124
- "name_plural": "Ukrainian hryvnias"
1125
- },
1126
- "UGX": {
1127
- "symbol": "USh",
1128
- "name": "Ugandan Shilling",
1129
- "symbol_native": "USh",
1130
- "decimal_digits": 0,
1131
- "rounding": 0,
1132
- "code": "UGX",
1133
- "name_plural": "Ugandan shillings"
1134
- },
1135
- "USD": {
1136
- "symbol": "US$",
1137
- "name": "US Dollar",
1138
- "symbol_native": "$",
1139
- "decimal_digits": 2,
1140
- "rounding": 0,
1141
- "code": "USD",
1142
- "name_plural": "US dollars"
1143
- },
1144
- "UYU": {
1145
- "symbol": "$U",
1146
- "name": "Uruguayan Peso",
1147
- "symbol_native": "$",
1148
- "decimal_digits": 2,
1149
- "rounding": 0,
1150
- "code": "UYU",
1151
- "name_plural": "Uruguayan pesos"
1152
- },
1153
- "UZS": {
1154
- "symbol": "UZS",
1155
- "name": "Uzbekistan Som",
1156
- "symbol_native": "UZS",
1157
- "decimal_digits": 0,
1158
- "rounding": 0,
1159
- "code": "UZS",
1160
- "name_plural": "Uzbekistan som"
1161
- },
1162
- "VEF": {
1163
- "symbol": "Bs.F.",
1164
- "name": "Venezuelan Bolívar",
1165
- "symbol_native": "Bs.F.",
1166
- "decimal_digits": 2,
1167
- "rounding": 0,
1168
- "code": "VEF",
1169
- "name_plural": "Venezuelan bolívars"
1170
- },
1171
- "VES": {
1172
- "symbol": "VES",
1173
- "name": "Bolívar Soberano",
1174
- "symbol_native": "Bs.S ",
1175
- "decimal_digits": 2,
1176
- "rounding": 0,
1177
- "code": "VES",
1178
- "name_plural": "Bolívares Soberanos"
1179
- },
1180
- "VND": {
1181
- "symbol": "Dong",
1182
- "name": "Vietnamese Dong",
1183
- "symbol_native": "Dong",
1184
- "decimal_digits": 0,
1185
- "rounding": 0,
1186
- "code": "VND",
1187
- "name_plural": "Vietnamese dong"
1188
- },
1189
- "XAF": {
1190
- "symbol": "FCFA",
1191
- "name": "CFA Franc BEAC",
1192
- "symbol_native": "FCFA",
1193
- "decimal_digits": 0,
1194
- "rounding": 0,
1195
- "code": "XAF",
1196
- "name_plural": "CFA francs BEAC"
1197
- },
1198
- "XCD": {
1199
- "symbol": "XCD$",
1200
- "name": "East Caribbean Dollar",
1201
- "symbol_native": "$",
1202
- "decimal_digits": 2,
1203
- "rounding": 0,
1204
- "code": "XCD",
1205
- "name_plural": "East Caribbean Dollars"
1206
- },
1207
- "XOF": {
1208
- "symbol": "CFA",
1209
- "name": "CFA Franc BCEAO",
1210
- "symbol_native": "CFA",
1211
- "decimal_digits": 0,
1212
- "rounding": 0,
1213
- "code": "XOF",
1214
- "name_plural": "CFA francs BCEAO"
1215
- },
1216
- "XPF": {
1217
- "symbol": "XPF",
1218
- "name": "Central Pacific Franc",
1219
- "symbol_native": "F",
1220
- "decimal_digits": 2,
1221
- "rounding": 0,
1222
- "code": "XPF",
1223
- "name_plural": "Central Pacific Franc"
1224
- },
1225
- "YER": {
1226
- "symbol": "YR",
1227
- "name": "Yemeni Rial",
1228
- "symbol_native": "ر.ي.‏",
1229
- "decimal_digits": 0,
1230
- "rounding": 0,
1231
- "code": "YER",
1232
- "name_plural": "Yemeni rials",
1233
- "rtl": true
1234
- },
1235
- "ZAR": {
1236
- "symbol": "R",
1237
- "name": "South African Rand",
1238
- "symbol_native": "R",
1239
- "decimal_digits": 2,
1240
- "rounding": 0,
1241
- "code": "ZAR",
1242
- "name_plural": "South African rand"
1243
- },
1244
- "ZMK": {
1245
- "symbol": "ZK",
1246
- "name": "Zambian Kwacha",
1247
- "symbol_native": "ZK",
1248
- "decimal_digits": 0,
1249
- "rounding": 0,
1250
- "code": "ZMK",
1251
- "name_plural": "Zambian kwachas"
66
+ AED: {
67
+ symbol: "AED",
68
+ name: "United Arab Emirates Dirham",
69
+ symbol_native: "د.إ.‏",
70
+ decimal_digits: 2,
71
+ rounding: 0,
72
+ code: "AED",
73
+ name_plural: "UAE dirhams",
74
+ rtl: true
75
+ },
76
+ AFN: {
77
+ symbol: "Af",
78
+ name: "Afghan Afghani",
79
+ symbol_native: "Af",
80
+ decimal_digits: 0,
81
+ rounding: 0,
82
+ code: "AFN",
83
+ name_plural: "Afghan Afghanis",
84
+ rtl: true
85
+ },
86
+ ALL: {
87
+ symbol: "ALL",
88
+ name: "Albanian Lek",
89
+ symbol_native: "Lek",
90
+ decimal_digits: 0,
91
+ rounding: 0,
92
+ code: "ALL",
93
+ name_plural: "Albanian lekë"
94
+ },
95
+ AOA: {
96
+ symbol: "Kz",
97
+ name: "Angolan kwanza",
98
+ symbol_native: "Kz",
99
+ decimal_digits: 2,
100
+ rounding: 0,
101
+ code: "AOA",
102
+ name_plural: "Angolan kwanza"
103
+ },
104
+ AMD: {
105
+ symbol: "AMD",
106
+ name: "Armenian Dram",
107
+ symbol_native: "դր.",
108
+ decimal_digits: 0,
109
+ rounding: 0,
110
+ code: "AMD",
111
+ name_plural: "Armenian drams"
112
+ },
113
+ ANG: {
114
+ symbol: "ANG",
115
+ name: "Dutch Guilder",
116
+ symbol_native: "ƒ",
117
+ decimal_digits: 2,
118
+ rounding: 0,
119
+ code: "ANG",
120
+ name_plural: "Dutch Guilders"
121
+ },
122
+ ARS: {
123
+ symbol: "AR$",
124
+ name: "Argentine Peso",
125
+ symbol_native: "$",
126
+ decimal_digits: 2,
127
+ rounding: 0,
128
+ code: "ARS",
129
+ name_plural: "Argentine pesos"
130
+ },
131
+ AUD: {
132
+ symbol: "AU$",
133
+ name: "Australian Dollar",
134
+ symbol_native: "$",
135
+ decimal_digits: 2,
136
+ rounding: 0,
137
+ code: "AUD",
138
+ name_plural: "Australian dollars"
139
+ },
140
+ AZN: {
141
+ symbol: "man.",
142
+ name: "Azerbaijani Manat",
143
+ symbol_native: "ман.",
144
+ decimal_digits: 2,
145
+ rounding: 0,
146
+ code: "AZN",
147
+ name_plural: "Azerbaijani manats"
148
+ },
149
+ BAM: {
150
+ symbol: "KM",
151
+ name: "Bosnia-Herzegovina Convertible Mark",
152
+ symbol_native: "KM",
153
+ decimal_digits: 2,
154
+ rounding: 0,
155
+ code: "BAM",
156
+ name_plural: "Bosnia-Herzegovina convertible marks"
157
+ },
158
+ BBD: {
159
+ symbol: "Bds$",
160
+ name: "Barbadian Dollar",
161
+ symbol_native: "Bds$",
162
+ decimal_digits: 2,
163
+ rounding: 0,
164
+ code: "BBD",
165
+ name_plural: "Barbadian Dollars"
166
+ },
167
+ BDT: {
168
+ symbol: "Tk",
169
+ name: "Bangladeshi Taka",
170
+ symbol_native: "Tk",
171
+ decimal_digits: 2,
172
+ rounding: 0,
173
+ code: "BDT",
174
+ name_plural: "Bangladeshi takas"
175
+ },
176
+ BGN: {
177
+ symbol: "BGN",
178
+ name: "Bulgarian Lev",
179
+ symbol_native: "лв.",
180
+ decimal_digits: 2,
181
+ rounding: 0,
182
+ code: "BGN",
183
+ name_plural: "Bulgarian leva"
184
+ },
185
+ BHD: {
186
+ symbol: "BD",
187
+ name: "Bahraini Dinar",
188
+ symbol_native: "د.ب.‏",
189
+ decimal_digits: 3,
190
+ rounding: 0,
191
+ code: "BHD",
192
+ name_plural: "Bahraini dinars",
193
+ rtl: true
194
+ },
195
+ BIF: {
196
+ symbol: "FBu",
197
+ name: "Burundian Franc",
198
+ symbol_native: "FBu",
199
+ decimal_digits: 0,
200
+ rounding: 0,
201
+ code: "BIF",
202
+ name_plural: "Burundian francs"
203
+ },
204
+ BND: {
205
+ symbol: "BN$",
206
+ name: "Brunei Dollar",
207
+ symbol_native: "$",
208
+ decimal_digits: 2,
209
+ rounding: 0,
210
+ code: "BND",
211
+ name_plural: "Brunei dollars"
212
+ },
213
+ BOB: {
214
+ symbol: "Bs",
215
+ name: "Bolivian Boliviano",
216
+ symbol_native: "Bs",
217
+ decimal_digits: 2,
218
+ rounding: 0,
219
+ code: "BOB",
220
+ name_plural: "Bolivian bolivianos"
221
+ },
222
+ BRL: {
223
+ symbol: "R$",
224
+ name: "Brazilian Real",
225
+ symbol_native: "R$",
226
+ decimal_digits: 2,
227
+ rounding: 0,
228
+ code: "BRL",
229
+ name_plural: "Brazilian reals"
230
+ },
231
+ BWP: {
232
+ symbol: "BWP",
233
+ name: "Botswanan Pula",
234
+ symbol_native: "P",
235
+ decimal_digits: 2,
236
+ rounding: 0,
237
+ code: "BWP",
238
+ name_plural: "Botswanan pulas"
239
+ },
240
+ BYR: {
241
+ symbol: "BYR",
242
+ name: "Belarusian Ruble",
243
+ symbol_native: "BYR",
244
+ decimal_digits: 0,
245
+ rounding: 0,
246
+ code: "BYR",
247
+ name_plural: "Belarusian rubles"
248
+ },
249
+ BZD: {
250
+ symbol: "BZ$",
251
+ name: "Belize Dollar",
252
+ symbol_native: "$",
253
+ decimal_digits: 2,
254
+ rounding: 0,
255
+ code: "BZD",
256
+ name_plural: "Belize dollars"
257
+ },
258
+ CAD: {
259
+ symbol: "CA$",
260
+ name: "Canadian Dollar",
261
+ symbol_native: "$",
262
+ decimal_digits: 2,
263
+ rounding: 0,
264
+ code: "CAD",
265
+ name_plural: "Canadian dollars"
266
+ },
267
+ CDF: {
268
+ symbol: "CDF",
269
+ name: "Congolese Franc",
270
+ symbol_native: "FrCD",
271
+ decimal_digits: 2,
272
+ rounding: 0,
273
+ code: "CDF",
274
+ name_plural: "Congolese francs"
275
+ },
276
+ CHF: {
277
+ symbol: "CHF",
278
+ name: "Swiss Franc",
279
+ symbol_native: "CHF",
280
+ decimal_digits: 2,
281
+ rounding: 0.05,
282
+ code: "CHF",
283
+ name_plural: "Swiss francs"
284
+ },
285
+ CLP: {
286
+ symbol: "CL$",
287
+ name: "Chilean Peso",
288
+ symbol_native: "$",
289
+ decimal_digits: 0,
290
+ rounding: 0,
291
+ code: "CLP",
292
+ name_plural: "Chilean pesos"
293
+ },
294
+ CNY: {
295
+ symbol: "¥",
296
+ name: "Chinese Yuan",
297
+ symbol_native: "¥",
298
+ decimal_digits: 2,
299
+ rounding: 0,
300
+ code: "CNY",
301
+ name_plural: "Chinese yuan"
302
+ },
303
+ COP: {
304
+ symbol: "CO$",
305
+ name: "Colombian Peso",
306
+ symbol_native: "$",
307
+ decimal_digits: 0,
308
+ rounding: 0,
309
+ code: "COP",
310
+ name_plural: "Colombian pesos"
311
+ },
312
+ CRC: {
313
+ symbol: "₡",
314
+ name: "Costa Rican Colón",
315
+ symbol_native: "₡",
316
+ decimal_digits: 0,
317
+ rounding: 0,
318
+ code: "CRC",
319
+ name_plural: "Costa Rican colóns"
320
+ },
321
+ CVE: {
322
+ symbol: "CV$",
323
+ name: "Cape Verdean Escudo",
324
+ symbol_native: "CV$",
325
+ decimal_digits: 2,
326
+ rounding: 0,
327
+ code: "CVE",
328
+ name_plural: "Cape Verdean escudos"
329
+ },
330
+ CZK: {
331
+ symbol: "Kč",
332
+ name: "Czech Republic Koruna",
333
+ symbol_native: "Kč",
334
+ decimal_digits: 2,
335
+ rounding: 0,
336
+ code: "CZK",
337
+ name_plural: "Czech Republic korunas"
338
+ },
339
+ DJF: {
340
+ symbol: "Fdj",
341
+ name: "Djiboutian Franc",
342
+ symbol_native: "Fdj",
343
+ decimal_digits: 0,
344
+ rounding: 0,
345
+ code: "DJF",
346
+ name_plural: "Djiboutian francs"
347
+ },
348
+ DKK: {
349
+ symbol: "Dkr",
350
+ name: "Danish Krone",
351
+ symbol_native: "kr",
352
+ decimal_digits: 2,
353
+ rounding: 0,
354
+ code: "DKK",
355
+ name_plural: "Danish kroner"
356
+ },
357
+ DOP: {
358
+ symbol: "RD$",
359
+ name: "Dominican Peso",
360
+ symbol_native: "RD$",
361
+ decimal_digits: 2,
362
+ rounding: 0,
363
+ code: "DOP",
364
+ name_plural: "Dominican pesos"
365
+ },
366
+ DZD: {
367
+ symbol: "DA",
368
+ name: "Algerian Dinar",
369
+ symbol_native: "د.ج.‏",
370
+ decimal_digits: 2,
371
+ rounding: 0,
372
+ code: "DZD",
373
+ name_plural: "Algerian dinars",
374
+ rtl: true
375
+ },
376
+ EEK: {
377
+ symbol: "Ekr",
378
+ name: "Estonian Kroon",
379
+ symbol_native: "kr",
380
+ decimal_digits: 2,
381
+ rounding: 0,
382
+ code: "EEK",
383
+ name_plural: "Estonian kroons"
384
+ },
385
+ EGP: {
386
+ symbol: "EGP",
387
+ name: "Egyptian Pound",
388
+ symbol_native: "ج.م.‏",
389
+ decimal_digits: 2,
390
+ rounding: 0,
391
+ code: "EGP",
392
+ name_plural: "Egyptian pounds",
393
+ rtl: true
394
+ },
395
+ ERN: {
396
+ symbol: "Nfk",
397
+ name: "Eritrean Nakfa",
398
+ symbol_native: "Nfk",
399
+ decimal_digits: 2,
400
+ rounding: 0,
401
+ code: "ERN",
402
+ name_plural: "Eritrean nakfas"
403
+ },
404
+ ETB: {
405
+ symbol: "Br",
406
+ name: "Ethiopian Birr",
407
+ symbol_native: "Br",
408
+ decimal_digits: 2,
409
+ rounding: 0,
410
+ code: "ETB",
411
+ name_plural: "Ethiopian birrs"
412
+ },
413
+ EUR: {
414
+ symbol: "€",
415
+ name: "Euro",
416
+ symbol_native: "€",
417
+ decimal_digits: 2,
418
+ rounding: 0,
419
+ code: "EUR",
420
+ name_plural: "euros"
421
+ },
422
+ GBP: {
423
+ symbol: "£",
424
+ name: "British Pound Sterling",
425
+ symbol_native: "£",
426
+ decimal_digits: 2,
427
+ rounding: 0,
428
+ code: "GBP",
429
+ name_plural: "British pounds sterling"
430
+ },
431
+ GEL: {
432
+ symbol: "GEL",
433
+ name: "Georgian Lari",
434
+ symbol_native: "GEL",
435
+ decimal_digits: 2,
436
+ rounding: 0,
437
+ code: "GEL",
438
+ name_plural: "Georgian laris"
439
+ },
440
+ GHS: {
441
+ symbol: "GH₵",
442
+ name: "Ghanaian Cedi",
443
+ symbol_native: "GH₵",
444
+ decimal_digits: 2,
445
+ rounding: 0,
446
+ code: "GHS",
447
+ name_plural: "Ghanaian cedis"
448
+ },
449
+ GNF: {
450
+ symbol: "FG",
451
+ name: "Guinean Franc",
452
+ symbol_native: "FG",
453
+ decimal_digits: 0,
454
+ rounding: 0,
455
+ code: "GNF",
456
+ name_plural: "Guinean francs"
457
+ },
458
+ GTQ: {
459
+ symbol: "GTQ",
460
+ name: "Guatemalan Quetzal",
461
+ symbol_native: "Q",
462
+ decimal_digits: 2,
463
+ rounding: 0,
464
+ code: "GTQ",
465
+ name_plural: "Guatemalan quetzals"
466
+ },
467
+ HKD: {
468
+ symbol: "HK$",
469
+ name: "Hong Kong Dollar",
470
+ symbol_native: "HKD",
471
+ decimal_digits: 2,
472
+ rounding: 0,
473
+ code: "HKD",
474
+ name_plural: "Hong Kong dollars"
475
+ },
476
+ HNL: {
477
+ symbol: "HNL",
478
+ name: "Honduran Lempira",
479
+ symbol_native: "L",
480
+ decimal_digits: 2,
481
+ rounding: 0,
482
+ code: "HNL",
483
+ name_plural: "Honduran lempiras"
484
+ },
485
+ HRK: {
486
+ symbol: "kn",
487
+ name: "Croatian Kuna",
488
+ symbol_native: "kn",
489
+ decimal_digits: 2,
490
+ rounding: 0,
491
+ code: "HRK",
492
+ name_plural: "Croatian kunas"
493
+ },
494
+ HTG: {
495
+ symbol: "HTG",
496
+ name: "Haitian gourde",
497
+ symbol_native: "G",
498
+ decimal_digits: 2,
499
+ rounding: 0,
500
+ code: "HTG",
501
+ name_plural: "Haitian gourde"
502
+ },
503
+ HUF: {
504
+ symbol: "Ft",
505
+ name: "Hungarian Forint",
506
+ symbol_native: "Ft",
507
+ decimal_digits: 0,
508
+ rounding: 0,
509
+ code: "HUF",
510
+ name_plural: "Hungarian forints"
511
+ },
512
+ IDR: {
513
+ symbol: "Rp",
514
+ name: "Indonesian Rupiah",
515
+ symbol_native: "Rp",
516
+ decimal_digits: 0,
517
+ rounding: 0,
518
+ code: "IDR",
519
+ name_plural: "Indonesian rupiahs"
520
+ },
521
+ ILS: {
522
+ symbol: "₪",
523
+ name: "Israeli New Sheqel",
524
+ symbol_native: "₪",
525
+ decimal_digits: 2,
526
+ rounding: 0,
527
+ code: "ILS",
528
+ name_plural: "Israeli new sheqels"
529
+ },
530
+ INR: {
531
+ symbol: "Rs",
532
+ name: "Indian Rupee",
533
+ symbol_native: "₹",
534
+ decimal_digits: 2,
535
+ rounding: 0,
536
+ code: "INR",
537
+ name_plural: "Indian rupees"
538
+ },
539
+ IQD: {
540
+ symbol: "IQD",
541
+ name: "Iraqi Dinar",
542
+ symbol_native: "د.ع.‏",
543
+ decimal_digits: 0,
544
+ rounding: 0,
545
+ code: "IQD",
546
+ name_plural: "Iraqi dinars",
547
+ rtl: true
548
+ },
549
+ IRR: {
550
+ symbol: "IRR",
551
+ name: "Iranian Rial",
552
+ symbol_native: "﷼",
553
+ decimal_digits: 0,
554
+ rounding: 0,
555
+ code: "IRR",
556
+ name_plural: "Iranian rials",
557
+ rtl: true
558
+ },
559
+ ISK: {
560
+ symbol: "Ikr",
561
+ name: "Icelandic Króna",
562
+ symbol_native: "kr",
563
+ decimal_digits: 0,
564
+ rounding: 0,
565
+ code: "ISK",
566
+ name_plural: "Icelandic krónur"
567
+ },
568
+ JMD: {
569
+ symbol: "J$",
570
+ name: "Jamaican Dollar",
571
+ symbol_native: "$",
572
+ decimal_digits: 2,
573
+ rounding: 0,
574
+ code: "JMD",
575
+ name_plural: "Jamaican dollars"
576
+ },
577
+ JOD: {
578
+ symbol: "JD",
579
+ name: "Jordanian Dinar",
580
+ symbol_native: "د.أ.‏",
581
+ decimal_digits: 3,
582
+ rounding: 0,
583
+ code: "JOD",
584
+ name_plural: "Jordanian dinars",
585
+ rtl: true
586
+ },
587
+ JPY: {
588
+ symbol: "¥",
589
+ name: "Japanese Yen",
590
+ symbol_native: "¥",
591
+ decimal_digits: 0,
592
+ rounding: 0,
593
+ code: "JPY",
594
+ name_plural: "Japanese yen"
595
+ },
596
+ KES: {
597
+ symbol: "Ksh",
598
+ name: "Kenyan Shilling",
599
+ symbol_native: "Ksh",
600
+ decimal_digits: 2,
601
+ rounding: 0,
602
+ code: "KES",
603
+ name_plural: "Kenyan shillings"
604
+ },
605
+ KHR: {
606
+ symbol: "KHR",
607
+ name: "Cambodian Riel",
608
+ symbol_native: "KHR",
609
+ decimal_digits: 2,
610
+ rounding: 0,
611
+ code: "KHR",
612
+ name_plural: "Cambodian riels"
613
+ },
614
+ KMF: {
615
+ symbol: "CF",
616
+ name: "Comorian Franc",
617
+ symbol_native: "FC",
618
+ decimal_digits: 0,
619
+ rounding: 0,
620
+ code: "KMF",
621
+ name_plural: "Comorian francs"
622
+ },
623
+ KRW: {
624
+ symbol: "₩",
625
+ name: "Korean Won(₩)",
626
+ symbol_native: "₩",
627
+ decimal_digits: 0,
628
+ rounding: 0,
629
+ code: "KRW",
630
+ name_plural: "Korean won"
631
+ },
632
+ KRW2: {
633
+ symbol: "원",
634
+ name: "Korean Won(원)",
635
+ symbol_native: "원",
636
+ decimal_digits: 0,
637
+ rounding: 0,
638
+ code: "KRW2",
639
+ name_plural: "Korean won"
640
+ },
641
+ KWD: {
642
+ symbol: "KD",
643
+ name: "Kuwaiti Dinar",
644
+ symbol_native: "د.ك.‏",
645
+ decimal_digits: 3,
646
+ rounding: 0,
647
+ code: "KWD",
648
+ name_plural: "Kuwaiti dinars",
649
+ rtl: true
650
+ },
651
+ KZT: {
652
+ symbol: "KZT",
653
+ name: "Kazakhstani Tenge",
654
+ symbol_native: "тңг.",
655
+ decimal_digits: 2,
656
+ rounding: 0,
657
+ code: "KZT",
658
+ name_plural: "Kazakhstani tenges"
659
+ },
660
+ LBP: {
661
+ symbol: "LB£",
662
+ name: "Lebanese Pound",
663
+ symbol_native: "ل.ل.‏",
664
+ decimal_digits: 0,
665
+ rounding: 0,
666
+ code: "LBP",
667
+ name_plural: "Lebanese pounds",
668
+ rtl: true
669
+ },
670
+ LKR: {
671
+ symbol: "SLRs",
672
+ name: "Sri Lankan Rupee",
673
+ symbol_native: "LKR Rs",
674
+ decimal_digits: 2,
675
+ rounding: 0,
676
+ code: "LKR",
677
+ name_plural: "Sri Lankan rupees"
678
+ },
679
+ LTL: {
680
+ symbol: "Lt",
681
+ name: "Lithuanian Litas",
682
+ symbol_native: "Lt",
683
+ decimal_digits: 2,
684
+ rounding: 0,
685
+ code: "LTL",
686
+ name_plural: "Lithuanian litai"
687
+ },
688
+ LVL: {
689
+ symbol: "Ls",
690
+ name: "Latvian Lats",
691
+ symbol_native: "Ls",
692
+ decimal_digits: 2,
693
+ rounding: 0,
694
+ code: "LVL",
695
+ name_plural: "Latvian lati"
696
+ },
697
+ LYD: {
698
+ symbol: "LD",
699
+ name: "Libyan Dinar",
700
+ symbol_native: "د.ل.‏",
701
+ decimal_digits: 3,
702
+ rounding: 0,
703
+ code: "LYD",
704
+ name_plural: "Libyan dinars",
705
+ rtl: true
706
+ },
707
+ MAD: {
708
+ symbol: "MAD",
709
+ name: "Moroccan Dirham",
710
+ symbol_native: "د.م.‏",
711
+ decimal_digits: 2,
712
+ rounding: 0,
713
+ code: "MAD",
714
+ name_plural: "Moroccan dirhams",
715
+ rtl: true
716
+ },
717
+ MDL: {
718
+ symbol: "MDL",
719
+ name: "Moldovan Leu",
720
+ symbol_native: "MDL",
721
+ decimal_digits: 2,
722
+ rounding: 0,
723
+ code: "MDL",
724
+ name_plural: "Moldovan lei"
725
+ },
726
+ MGA: {
727
+ symbol: "MGA",
728
+ name: "Malagasy Ariary",
729
+ symbol_native: "MGA",
730
+ decimal_digits: 0,
731
+ rounding: 0,
732
+ code: "MGA",
733
+ name_plural: "Malagasy Ariaries"
734
+ },
735
+ MKD: {
736
+ symbol: "MKD",
737
+ name: "Macedonian Denar",
738
+ symbol_native: "MKD",
739
+ decimal_digits: 2,
740
+ rounding: 0,
741
+ code: "MKD",
742
+ name_plural: "Macedonian denari"
743
+ },
744
+ MMK: {
745
+ symbol: "MMK",
746
+ name: "Myanma Kyat",
747
+ symbol_native: "K",
748
+ decimal_digits: 0,
749
+ rounding: 0,
750
+ code: "MMK",
751
+ name_plural: "Myanma kyats"
752
+ },
753
+ MOP: {
754
+ symbol: "MOP$",
755
+ name: "Macanese Pataca",
756
+ symbol_native: "MOP$",
757
+ decimal_digits: 2,
758
+ rounding: 0,
759
+ code: "MOP",
760
+ name_plural: "Macanese patacas"
761
+ },
762
+ MUR: {
763
+ symbol: "MURs",
764
+ name: "Mauritian Rupee",
765
+ symbol_native: "MURs",
766
+ decimal_digits: 0,
767
+ rounding: 0,
768
+ code: "MUR",
769
+ name_plural: "Mauritian rupees"
770
+ },
771
+ MXN: {
772
+ symbol: "MX$",
773
+ name: "Mexican Peso",
774
+ symbol_native: "$",
775
+ decimal_digits: 2,
776
+ rounding: 0,
777
+ code: "MXN",
778
+ name_plural: "Mexican pesos"
779
+ },
780
+ MVR: {
781
+ symbol: "MVR",
782
+ name: "Maldivian rufiyaa",
783
+ symbol_native: "MVR",
784
+ decimal_digits: 2,
785
+ rounding: 0,
786
+ code: "MVR",
787
+ name_plural: "Maldivian rufiyaas"
788
+ },
789
+ MYR: {
790
+ symbol: "RM",
791
+ name: "Malaysian Ringgit",
792
+ symbol_native: "RM",
793
+ decimal_digits: 2,
794
+ rounding: 0,
795
+ code: "MYR",
796
+ name_plural: "Malaysian ringgits"
797
+ },
798
+ MZN: {
799
+ symbol: "MTn",
800
+ name: "Mozambican Metical",
801
+ symbol_native: "MTn",
802
+ decimal_digits: 2,
803
+ rounding: 0,
804
+ code: "MZN",
805
+ name_plural: "Mozambican meticals"
806
+ },
807
+ NAD: {
808
+ symbol: "N$",
809
+ name: "Namibian Dollar",
810
+ symbol_native: "N$",
811
+ decimal_digits: 2,
812
+ rounding: 0,
813
+ code: "NAD",
814
+ name_plural: "Namibian dollars"
815
+ },
816
+ NGN: {
817
+ symbol: "₦",
818
+ name: "Nigerian Naira",
819
+ symbol_native: "₦",
820
+ decimal_digits: 2,
821
+ rounding: 0,
822
+ code: "NGN",
823
+ name_plural: "Nigerian nairas"
824
+ },
825
+ NIO: {
826
+ symbol: "C$",
827
+ name: "Nicaraguan Córdoba",
828
+ symbol_native: "C$",
829
+ decimal_digits: 2,
830
+ rounding: 0,
831
+ code: "NIO",
832
+ name_plural: "Nicaraguan córdobas"
833
+ },
834
+ NOK: {
835
+ symbol: "Nkr",
836
+ name: "Norwegian Krone",
837
+ symbol_native: "kr",
838
+ decimal_digits: 2,
839
+ rounding: 0,
840
+ code: "NOK",
841
+ name_plural: "Norwegian kroner"
842
+ },
843
+ NPR: {
844
+ symbol: "NPRs",
845
+ name: "Nepalese Rupee",
846
+ symbol_native: "NPRs",
847
+ decimal_digits: 2,
848
+ rounding: 0,
849
+ code: "NPR",
850
+ name_plural: "Nepalese rupees"
851
+ },
852
+ NZD: {
853
+ symbol: "NZ$",
854
+ name: "New Zealand Dollar",
855
+ symbol_native: "$",
856
+ decimal_digits: 2,
857
+ rounding: 0,
858
+ code: "NZD",
859
+ name_plural: "New Zealand dollars"
860
+ },
861
+ OMR: {
862
+ symbol: "OMR",
863
+ name: "Omani Rial",
864
+ symbol_native: "OMR",
865
+ decimal_digits: 3,
866
+ rounding: 0,
867
+ code: "OMR",
868
+ name_plural: "Omani rials"
869
+ },
870
+ PAB: {
871
+ symbol: "B/.",
872
+ name: "Panamanian Balboa",
873
+ symbol_native: "B/.",
874
+ decimal_digits: 2,
875
+ rounding: 0,
876
+ code: "PAB",
877
+ name_plural: "Panamanian balboas"
878
+ },
879
+ PEN: {
880
+ symbol: "S/.",
881
+ name: "Peruvian Nuevo Sol",
882
+ symbol_native: "S/.",
883
+ decimal_digits: 2,
884
+ rounding: 0,
885
+ code: "PEN",
886
+ name_plural: "Peruvian nuevos soles"
887
+ },
888
+ PGK: {
889
+ symbol: "K",
890
+ name: "Papua New Guinea Kina",
891
+ symbol_native: "K",
892
+ decimal_digits: 2,
893
+ rounding: 0,
894
+ code: "PGK",
895
+ name_plural: "Papua New Guinea Kina"
896
+ },
897
+ PHP: {
898
+ symbol: "₱",
899
+ name: "Philippine Peso",
900
+ symbol_native: "₱",
901
+ decimal_digits: 2,
902
+ rounding: 0,
903
+ code: "PHP",
904
+ name_plural: "Philippine pesos"
905
+ },
906
+ PKR: {
907
+ symbol: "PKRs",
908
+ name: "Pakistani Rupee",
909
+ symbol_native: "₨",
910
+ decimal_digits: 0,
911
+ rounding: 0,
912
+ code: "PKR",
913
+ name_plural: "Pakistani rupees"
914
+ },
915
+ PLN: {
916
+ symbol: "zł",
917
+ name: "Polish Zloty",
918
+ symbol_native: "zł",
919
+ decimal_digits: 2,
920
+ rounding: 0,
921
+ code: "PLN",
922
+ name_plural: "Polish zlotys"
923
+ },
924
+ PYG: {
925
+ symbol: "₲",
926
+ name: "Paraguayan Guarani",
927
+ symbol_native: "₲",
928
+ decimal_digits: 0,
929
+ rounding: 0,
930
+ code: "PYG",
931
+ name_plural: "Paraguayan guaranis"
932
+ },
933
+ QAR: {
934
+ symbol: "QR",
935
+ name: "Qatari Rial",
936
+ symbol_native: "ر.ق.‏",
937
+ decimal_digits: 2,
938
+ rounding: 0,
939
+ code: "QAR",
940
+ name_plural: "Qatari rials",
941
+ rtl: true
942
+ },
943
+ RON: {
944
+ symbol: "lei",
945
+ name: "Romanian Leu",
946
+ symbol_native: "lei",
947
+ decimal_digits: 2,
948
+ rounding: 0,
949
+ code: "RON",
950
+ name_plural: "Romanian lei"
951
+ },
952
+ RSD: {
953
+ symbol: "din.",
954
+ name: "Serbian Dinar",
955
+ symbol_native: "дин.",
956
+ decimal_digits: 2,
957
+ rounding: 0,
958
+ code: "RSD",
959
+ name_plural: "Serbian dinars"
960
+ },
961
+ RUB: {
962
+ symbol: "RUB",
963
+ name: "Russian Ruble",
964
+ symbol_native: "руб.",
965
+ decimal_digits: 2,
966
+ rounding: 0,
967
+ code: "RUB",
968
+ name_plural: "Russian rubles"
969
+ },
970
+ RWF: {
971
+ symbol: "RWF",
972
+ name: "Rwandan Franc",
973
+ symbol_native: "FR",
974
+ decimal_digits: 0,
975
+ rounding: 0,
976
+ code: "RWF",
977
+ name_plural: "Rwandan francs"
978
+ },
979
+ SAR: {
980
+ symbol: "SR",
981
+ name: "Saudi Riyal",
982
+ symbol_native: "ر.س.‏",
983
+ decimal_digits: 2,
984
+ rounding: 0,
985
+ code: "SAR",
986
+ name_plural: "Saudi riyals",
987
+ rtl: true
988
+ },
989
+ SDG: {
990
+ symbol: "SDG",
991
+ name: "Sudanese Pound",
992
+ symbol_native: "SDG",
993
+ decimal_digits: 2,
994
+ rounding: 0,
995
+ code: "SDG",
996
+ name_plural: "Sudanese pounds"
997
+ },
998
+ SEK: {
999
+ symbol: "Skr",
1000
+ name: "Swedish Krona",
1001
+ symbol_native: "kr",
1002
+ decimal_digits: 2,
1003
+ rounding: 0,
1004
+ code: "SEK",
1005
+ name_plural: "Swedish kronor"
1006
+ },
1007
+ SGD: {
1008
+ symbol: "S$",
1009
+ name: "Singapore Dollar",
1010
+ symbol_native: "$",
1011
+ decimal_digits: 2,
1012
+ rounding: 0,
1013
+ code: "SGD",
1014
+ name_plural: "Singapore dollars"
1015
+ },
1016
+ SLL: {
1017
+ symbol: "SLL",
1018
+ name: "Sierra Leonean Leone",
1019
+ symbol_native: "SLL",
1020
+ decimal_digits: 2,
1021
+ rounding: 0,
1022
+ code: "SLL",
1023
+ name_plural: "Sierra Leonean Leones"
1024
+ },
1025
+ SOS: {
1026
+ symbol: "Ssh",
1027
+ name: "Somali Shilling",
1028
+ symbol_native: "Ssh",
1029
+ decimal_digits: 0,
1030
+ rounding: 0,
1031
+ code: "SOS",
1032
+ name_plural: "Somali shillings"
1033
+ },
1034
+ SRD: {
1035
+ symbol: "SRD",
1036
+ name: "Surinamese dollar",
1037
+ symbol_native: "SRD",
1038
+ decimal_digits: 0,
1039
+ rounding: 0,
1040
+ code: "SRD",
1041
+ name_plural: "Surinamese dollars"
1042
+ },
1043
+ SYP: {
1044
+ symbol: "SY£",
1045
+ name: "Syrian Pound",
1046
+ symbol_native: "ل.س.‏",
1047
+ decimal_digits: 0,
1048
+ rounding: 0,
1049
+ code: "SYP",
1050
+ name_plural: "Syrian pounds",
1051
+ rtl: true
1052
+ },
1053
+ THB: {
1054
+ symbol: "฿",
1055
+ name: "Thai Baht",
1056
+ symbol_native: "฿",
1057
+ decimal_digits: 2,
1058
+ rounding: 0,
1059
+ code: "THB",
1060
+ name_plural: "Thai baht"
1061
+ },
1062
+ TND: {
1063
+ symbol: "DT",
1064
+ name: "Tunisian Dinar",
1065
+ symbol_native1: "د.ت.‏",
1066
+ symbol_native: "TND",
1067
+ decimal_digits: 3,
1068
+ rounding: 0,
1069
+ code: "TND",
1070
+ name_plural: "Tunisian dinars"
1071
+ },
1072
+ TOP: {
1073
+ symbol: "T$",
1074
+ name: "Tongan Paʻanga",
1075
+ symbol_native: "T$",
1076
+ decimal_digits: 2,
1077
+ rounding: 0,
1078
+ code: "TOP",
1079
+ name_plural: "Tongan paʻanga"
1080
+ },
1081
+ TRY: {
1082
+ symbol: "TL",
1083
+ name: "Turkish Lira",
1084
+ symbol_native: "TL",
1085
+ decimal_digits: 2,
1086
+ rounding: 0,
1087
+ code: "TRY",
1088
+ name_plural: "Turkish Lira"
1089
+ },
1090
+ TTD: {
1091
+ symbol: "TT$",
1092
+ name: "Trinidad and Tobago Dollar",
1093
+ symbol_native: "$",
1094
+ decimal_digits: 2,
1095
+ rounding: 0,
1096
+ code: "TTD",
1097
+ name_plural: "Trinidad and Tobago dollars"
1098
+ },
1099
+ TWD: {
1100
+ symbol: "NT$",
1101
+ name: "New Taiwan Dollar",
1102
+ symbol_native: "NT$",
1103
+ decimal_digits: 2,
1104
+ rounding: 0,
1105
+ code: "TWD",
1106
+ name_plural: "New Taiwan dollars"
1107
+ },
1108
+ TZS: {
1109
+ symbol: "TSh",
1110
+ name: "Tanzanian Shilling",
1111
+ symbol_native: "TSh",
1112
+ decimal_digits: 0,
1113
+ rounding: 0,
1114
+ code: "TZS",
1115
+ name_plural: "Tanzanian shillings"
1116
+ },
1117
+ UAH: {
1118
+ symbol: "₴",
1119
+ name: "Ukrainian Hryvnia",
1120
+ symbol_native: "₴",
1121
+ decimal_digits: 2,
1122
+ rounding: 0,
1123
+ code: "UAH",
1124
+ name_plural: "Ukrainian hryvnias"
1125
+ },
1126
+ UGX: {
1127
+ symbol: "USh",
1128
+ name: "Ugandan Shilling",
1129
+ symbol_native: "USh",
1130
+ decimal_digits: 0,
1131
+ rounding: 0,
1132
+ code: "UGX",
1133
+ name_plural: "Ugandan shillings"
1134
+ },
1135
+ USD: {
1136
+ symbol: "US$",
1137
+ name: "US Dollar",
1138
+ symbol_native: "$",
1139
+ decimal_digits: 2,
1140
+ rounding: 0,
1141
+ code: "USD",
1142
+ name_plural: "US dollars"
1143
+ },
1144
+ UYU: {
1145
+ symbol: "$U",
1146
+ name: "Uruguayan Peso",
1147
+ symbol_native: "$",
1148
+ decimal_digits: 2,
1149
+ rounding: 0,
1150
+ code: "UYU",
1151
+ name_plural: "Uruguayan pesos"
1152
+ },
1153
+ UZS: {
1154
+ symbol: "UZS",
1155
+ name: "Uzbekistan Som",
1156
+ symbol_native: "UZS",
1157
+ decimal_digits: 0,
1158
+ rounding: 0,
1159
+ code: "UZS",
1160
+ name_plural: "Uzbekistan som"
1161
+ },
1162
+ VEF: {
1163
+ symbol: "Bs.F.",
1164
+ name: "Venezuelan Bolívar",
1165
+ symbol_native: "Bs.F.",
1166
+ decimal_digits: 2,
1167
+ rounding: 0,
1168
+ code: "VEF",
1169
+ name_plural: "Venezuelan bolívars"
1170
+ },
1171
+ VES: {
1172
+ symbol: "VES",
1173
+ name: "Bolívar Soberano",
1174
+ symbol_native: "Bs.S ",
1175
+ decimal_digits: 2,
1176
+ rounding: 0,
1177
+ code: "VES",
1178
+ name_plural: "Bolívares Soberanos"
1179
+ },
1180
+ VND: {
1181
+ symbol: "Dong",
1182
+ name: "Vietnamese Dong",
1183
+ symbol_native: "Dong",
1184
+ decimal_digits: 0,
1185
+ rounding: 0,
1186
+ code: "VND",
1187
+ name_plural: "Vietnamese dong"
1188
+ },
1189
+ XAF: {
1190
+ symbol: "FCFA",
1191
+ name: "CFA Franc BEAC",
1192
+ symbol_native: "FCFA",
1193
+ decimal_digits: 0,
1194
+ rounding: 0,
1195
+ code: "XAF",
1196
+ name_plural: "CFA francs BEAC"
1197
+ },
1198
+ XCD: {
1199
+ symbol: "XCD$",
1200
+ name: "East Caribbean Dollar",
1201
+ symbol_native: "$",
1202
+ decimal_digits: 2,
1203
+ rounding: 0,
1204
+ code: "XCD",
1205
+ name_plural: "East Caribbean Dollars"
1206
+ },
1207
+ XOF: {
1208
+ symbol: "CFA",
1209
+ name: "CFA Franc BCEAO",
1210
+ symbol_native: "CFA",
1211
+ decimal_digits: 0,
1212
+ rounding: 0,
1213
+ code: "XOF",
1214
+ name_plural: "CFA francs BCEAO"
1215
+ },
1216
+ XPF: {
1217
+ symbol: "XPF",
1218
+ name: "Central Pacific Franc",
1219
+ symbol_native: "F",
1220
+ decimal_digits: 2,
1221
+ rounding: 0,
1222
+ code: "XPF",
1223
+ name_plural: "Central Pacific Franc"
1224
+ },
1225
+ YER: {
1226
+ symbol: "YR",
1227
+ name: "Yemeni Rial",
1228
+ symbol_native: "ر.ي.‏",
1229
+ decimal_digits: 0,
1230
+ rounding: 0,
1231
+ code: "YER",
1232
+ name_plural: "Yemeni rials",
1233
+ rtl: true
1234
+ },
1235
+ ZAR: {
1236
+ symbol: "R",
1237
+ name: "South African Rand",
1238
+ symbol_native: "R",
1239
+ decimal_digits: 2,
1240
+ rounding: 0,
1241
+ code: "ZAR",
1242
+ name_plural: "South African rand"
1243
+ },
1244
+ ZMK: {
1245
+ symbol: "ZK",
1246
+ name: "Zambian Kwacha",
1247
+ symbol_native: "ZK",
1248
+ decimal_digits: 0,
1249
+ rounding: 0,
1250
+ code: "ZMK",
1251
+ name_plural: "Zambian kwachas"
1252
1252
  }
1253
1253
  };
1254
1254
 
1255
1255
  var numberFormat = {
1256
- "am": {
1257
- "decimal": ".",
1258
- "group": ",",
1259
- "format": "$$###",
1260
- "currency": "AMD"
1261
- },
1262
- "ar": {
1263
- "decimal": ".",
1264
- "group": ",",
1265
- "format": "$$ ###",
1266
- "currency": "ARS"
1267
- },
1268
- "bg": {
1269
- "decimal": ",",
1270
- "group": " ",
1271
- "format": "### $$",
1272
- "currency": "BGN"
1273
- },
1274
- "bn": {
1275
- "decimal": ".",
1276
- "group": ",",
1277
- "format": "###$$",
1278
- "currency": "BND"
1279
- },
1280
- "ca": {
1281
- "decimal": ",",
1282
- "group": ".",
1283
- "format": "### $$",
1284
- "currency": "CAD"
1285
- },
1286
- "cs": {
1287
- "decimal": ",",
1288
- "group": " ",
1289
- "format": "### $$",
1290
- "currency": "EUR"
1291
- },
1292
- "da": {
1293
- "decimal": ",",
1294
- "group": ".",
1295
- "format": "### $$",
1296
- "currency": "DKK"
1297
- },
1298
- "de": {
1299
- "decimal": ",",
1300
- "group": ".",
1301
- "format": "### $$",
1302
- "currency": ""
1303
- },
1304
- "el": {
1305
- "decimal": ",",
1306
- "group": ".",
1307
- "format": "### $$",
1308
- "currency": ""
1309
- },
1310
- "en": {
1311
- "decimal": ".",
1312
- "group": ",",
1313
- "format": "$$###",
1314
- "currency": ""
1256
+ am: {
1257
+ decimal: ".",
1258
+ group: ",",
1259
+ format: "$$###",
1260
+ currency: "AMD"
1261
+ },
1262
+ ar: {
1263
+ decimal: ".",
1264
+ group: ",",
1265
+ format: "$$ ###",
1266
+ currency: "ARS"
1267
+ },
1268
+ bg: {
1269
+ decimal: ",",
1270
+ group: " ",
1271
+ format: "### $$",
1272
+ currency: "BGN"
1273
+ },
1274
+ bn: {
1275
+ decimal: ".",
1276
+ group: ",",
1277
+ format: "###$$",
1278
+ currency: "BND"
1279
+ },
1280
+ ca: {
1281
+ decimal: ",",
1282
+ group: ".",
1283
+ format: "### $$",
1284
+ currency: "CAD"
1285
+ },
1286
+ cs: {
1287
+ decimal: ",",
1288
+ group: " ",
1289
+ format: "### $$",
1290
+ currency: "EUR"
1291
+ },
1292
+ da: {
1293
+ decimal: ",",
1294
+ group: ".",
1295
+ format: "### $$",
1296
+ currency: "DKK"
1297
+ },
1298
+ de: {
1299
+ decimal: ",",
1300
+ group: ".",
1301
+ format: "### $$",
1302
+ currency: ""
1303
+ },
1304
+ el: {
1305
+ decimal: ",",
1306
+ group: ".",
1307
+ format: "### $$",
1308
+ currency: ""
1309
+ },
1310
+ en: {
1311
+ decimal: ".",
1312
+ group: ",",
1313
+ format: "$$###",
1314
+ currency: ""
1315
1315
  },
1316
1316
  "en-GB": {
1317
- "decimal": ".",
1318
- "group": ",",
1319
- "format": "$$###",
1320
- "currency": ""
1317
+ decimal: ".",
1318
+ group: ",",
1319
+ format: "$$###",
1320
+ currency: ""
1321
1321
  },
1322
- "es": {
1323
- "decimal": ",",
1324
- "group": ".",
1325
- "format": "### $$",
1326
- "currency": ""
1322
+ es: {
1323
+ decimal: ",",
1324
+ group: ".",
1325
+ format: "### $$",
1326
+ currency: ""
1327
1327
  },
1328
1328
  "es-419": {
1329
- "decimal": ".",
1330
- "group": ",",
1331
- "format": "$$###",
1332
- "currency": ""
1333
- },
1334
- "et": {
1335
- "decimal": ",",
1336
- "group": " ",
1337
- "format": "### $$",
1338
- "currency": ""
1339
- },
1340
- "fa": {
1341
- "decimal": ".",
1342
- "group": ",",
1343
- "format": "‎$$ ###",
1344
- "currency": ""
1345
- },
1346
- "fi": {
1347
- "decimal": ",",
1348
- "group": " ",
1349
- "format": "### $$",
1350
- "currency": ""
1351
- },
1352
- "fil": {
1353
- "decimal": ".",
1354
- "group": ",",
1355
- "format": "$$###",
1356
- "currency": ""
1357
- },
1358
- "fr": {
1359
- "decimal": ",",
1360
- "group": " ",
1361
- "format": "### $$",
1362
- "currency": ""
1363
- },
1364
- "he": {
1365
- "decimal": ".",
1366
- "group": ",",
1367
- "format": "### $$",
1368
- "currency": ""
1369
- },
1370
- "hi": {
1371
- "decimal": ".",
1372
- "group": ",",
1373
- "format": "$$###",
1374
- "currency": ""
1375
- },
1376
- "hr": {
1377
- "decimal": ",",
1378
- "group": ".",
1379
- "format": "### $$",
1380
- "currency": ""
1381
- },
1382
- "gu": {
1383
- "decimal": ".",
1384
- "group": ",",
1385
- "format": "$$###",
1386
- "currency": ""
1387
- },
1388
- "hu": {
1389
- "decimal": ",",
1390
- "group": " ",
1391
- "format": "### $$",
1392
- "currency": ""
1393
- },
1394
- "id": {
1395
- "decimal": ",",
1396
- "group": ".",
1397
- "format": "$$###",
1398
- "currency": ""
1399
- },
1400
- "it": {
1401
- "decimal": ",",
1402
- "group": ".",
1403
- "format": "### $$",
1404
- "currency": ""
1405
- },
1406
- "ja": {
1407
- "decimal": ".",
1408
- "group": ",",
1409
- "format": "$$###",
1410
- "currency": ""
1411
- },
1412
- "kn": {
1413
- "decimal": ".",
1414
- "group": ",",
1415
- "format": "$$###",
1416
- "currency": ""
1417
- },
1418
- "ko": {
1419
- "decimal": ".",
1420
- "group": ",",
1421
- "format": "$$###",
1422
- "currency": ""
1423
- },
1424
- "lv": {
1425
- "decimal": ",",
1426
- "group": " ",
1427
- "format": "### $$",
1428
- "currency": ""
1429
- },
1430
- "lt": {
1431
- "decimal": ",",
1432
- "group": " ",
1433
- "format": "### $$",
1434
- "currency": ""
1435
- },
1436
- "ml": {
1437
- "decimal": ".",
1438
- "group": ",",
1439
- "format": "$$###",
1440
- "currency": ""
1441
- },
1442
- "mr": {
1443
- "decimal": ".",
1444
- "group": ",",
1445
- "format": "$$###",
1446
- "currency": ""
1447
- },
1448
- "ms": {
1449
- "decimal": ".",
1450
- "group": ",",
1451
- "format": "$$###",
1452
- "currency": ""
1453
- },
1454
- "nb": {
1455
- "decimal": ",",
1456
- "group": " ",
1457
- "format": "$$ ###",
1458
- "currency": ""
1459
- },
1460
- "nl": {
1461
- "decimal": ",",
1462
- "group": ".",
1463
- "format": "$$ ###",
1464
- "currency": ""
1465
- },
1466
- "pt": {
1467
- "decimal": ",",
1468
- "group": ".",
1469
- "format": "$$ ###",
1470
- "currency": ""
1471
- },
1472
- "pl": {
1473
- "decimal": ",",
1474
- "group": " ",
1475
- "format": "### $$",
1476
- "currency": ""
1329
+ decimal: ".",
1330
+ group: ",",
1331
+ format: "$$###",
1332
+ currency: ""
1333
+ },
1334
+ et: {
1335
+ decimal: ",",
1336
+ group: " ",
1337
+ format: "### $$",
1338
+ currency: ""
1339
+ },
1340
+ fa: {
1341
+ decimal: ".",
1342
+ group: ",",
1343
+ format: "‎$$ ###",
1344
+ currency: ""
1345
+ },
1346
+ fi: {
1347
+ decimal: ",",
1348
+ group: " ",
1349
+ format: "### $$",
1350
+ currency: ""
1351
+ },
1352
+ fil: {
1353
+ decimal: ".",
1354
+ group: ",",
1355
+ format: "$$###",
1356
+ currency: ""
1357
+ },
1358
+ fr: {
1359
+ decimal: ",",
1360
+ group: " ",
1361
+ format: "### $$",
1362
+ currency: ""
1363
+ },
1364
+ he: {
1365
+ decimal: ".",
1366
+ group: ",",
1367
+ format: "### $$",
1368
+ currency: ""
1369
+ },
1370
+ hi: {
1371
+ decimal: ".",
1372
+ group: ",",
1373
+ format: "$$###",
1374
+ currency: ""
1375
+ },
1376
+ hr: {
1377
+ decimal: ",",
1378
+ group: ".",
1379
+ format: "### $$",
1380
+ currency: ""
1381
+ },
1382
+ gu: {
1383
+ decimal: ".",
1384
+ group: ",",
1385
+ format: "$$###",
1386
+ currency: ""
1387
+ },
1388
+ hu: {
1389
+ decimal: ",",
1390
+ group: " ",
1391
+ format: "### $$",
1392
+ currency: ""
1393
+ },
1394
+ id: {
1395
+ decimal: ",",
1396
+ group: ".",
1397
+ format: "$$###",
1398
+ currency: ""
1399
+ },
1400
+ it: {
1401
+ decimal: ",",
1402
+ group: ".",
1403
+ format: "### $$",
1404
+ currency: ""
1405
+ },
1406
+ ja: {
1407
+ decimal: ".",
1408
+ group: ",",
1409
+ format: "$$###",
1410
+ currency: ""
1411
+ },
1412
+ kn: {
1413
+ decimal: ".",
1414
+ group: ",",
1415
+ format: "$$###",
1416
+ currency: ""
1417
+ },
1418
+ ko: {
1419
+ decimal: ".",
1420
+ group: ",",
1421
+ format: "$$###",
1422
+ currency: ""
1423
+ },
1424
+ lv: {
1425
+ decimal: ",",
1426
+ group: " ",
1427
+ format: "### $$",
1428
+ currency: ""
1429
+ },
1430
+ lt: {
1431
+ decimal: ",",
1432
+ group: " ",
1433
+ format: "### $$",
1434
+ currency: ""
1435
+ },
1436
+ ml: {
1437
+ decimal: ".",
1438
+ group: ",",
1439
+ format: "$$###",
1440
+ currency: ""
1441
+ },
1442
+ mr: {
1443
+ decimal: ".",
1444
+ group: ",",
1445
+ format: "$$###",
1446
+ currency: ""
1447
+ },
1448
+ ms: {
1449
+ decimal: ".",
1450
+ group: ",",
1451
+ format: "$$###",
1452
+ currency: ""
1453
+ },
1454
+ nb: {
1455
+ decimal: ",",
1456
+ group: " ",
1457
+ format: "$$ ###",
1458
+ currency: ""
1459
+ },
1460
+ nl: {
1461
+ decimal: ",",
1462
+ group: ".",
1463
+ format: "$$ ###",
1464
+ currency: ""
1465
+ },
1466
+ pt: {
1467
+ decimal: ",",
1468
+ group: ".",
1469
+ format: "$$ ###",
1470
+ currency: ""
1471
+ },
1472
+ pl: {
1473
+ decimal: ",",
1474
+ group: " ",
1475
+ format: "### $$",
1476
+ currency: ""
1477
1477
  },
1478
1478
  "pt-PT": {
1479
- "decimal": ",",
1480
- "group": " ",
1481
- "format": "### $$",
1482
- "currency": ""
1483
- },
1484
- "ro": {
1485
- "decimal": ",",
1486
- "group": ".",
1487
- "format": "### $$",
1488
- "currency": ""
1489
- },
1490
- "ru": {
1491
- "decimal": ",",
1492
- "group": " ",
1493
- "format": "### $$",
1494
- "currency": ""
1495
- },
1496
- "sk": {
1497
- "decimal": ",",
1498
- "group": " ",
1499
- "format": "### $$",
1500
- "currency": ""
1501
- },
1502
- "sl": {
1503
- "decimal": ",",
1504
- "group": ".",
1505
- "format": "### $$",
1506
- "currency": ""
1507
- },
1508
- "sr": {
1509
- "decimal": ",",
1510
- "group": ".",
1511
- "format": "### $$",
1512
- "currency": ""
1513
- },
1514
- "sv": {
1515
- "decimal": ",",
1516
- "group": " ",
1517
- "format": "### $$",
1518
- "currency": ""
1519
- },
1520
- "sw": {
1521
- "decimal": ".",
1522
- "group": ",",
1523
- "format": "$$###",
1524
- "currency": ""
1525
- },
1526
- "ta": {
1527
- "decimal": ".",
1528
- "group": ",",
1529
- "format": "$$ ###",
1530
- "currency": ""
1531
- },
1532
- "te": {
1533
- "decimal": ".",
1534
- "group": ",",
1535
- "format": "$$###",
1536
- "currency": ""
1537
- },
1538
- "th": {
1539
- "decimal": ".",
1540
- "group": ",",
1541
- "format": "$$###",
1542
- "currency": ""
1543
- },
1544
- "tr": {
1545
- "decimal": ",",
1546
- "group": ".",
1547
- "format": "$$###",
1548
- "currency": ""
1549
- },
1550
- "uk": {
1551
- "decimal": ",",
1552
- "group": " ",
1553
- "format": "### $$",
1554
- "currency": ""
1555
- },
1556
- "vi": {
1557
- "decimal": ",",
1558
- "group": ".",
1559
- "format": "### $$",
1560
- "currency": ""
1479
+ decimal: ",",
1480
+ group: " ",
1481
+ format: "### $$",
1482
+ currency: ""
1483
+ },
1484
+ ro: {
1485
+ decimal: ",",
1486
+ group: ".",
1487
+ format: "### $$",
1488
+ currency: ""
1489
+ },
1490
+ ru: {
1491
+ decimal: ",",
1492
+ group: " ",
1493
+ format: "### $$",
1494
+ currency: ""
1495
+ },
1496
+ sk: {
1497
+ decimal: ",",
1498
+ group: " ",
1499
+ format: "### $$",
1500
+ currency: ""
1501
+ },
1502
+ sl: {
1503
+ decimal: ",",
1504
+ group: ".",
1505
+ format: "### $$",
1506
+ currency: ""
1507
+ },
1508
+ sr: {
1509
+ decimal: ",",
1510
+ group: ".",
1511
+ format: "### $$",
1512
+ currency: ""
1513
+ },
1514
+ sv: {
1515
+ decimal: ",",
1516
+ group: " ",
1517
+ format: "### $$",
1518
+ currency: ""
1519
+ },
1520
+ sw: {
1521
+ decimal: ".",
1522
+ group: ",",
1523
+ format: "$$###",
1524
+ currency: ""
1525
+ },
1526
+ ta: {
1527
+ decimal: ".",
1528
+ group: ",",
1529
+ format: "$$ ###",
1530
+ currency: ""
1531
+ },
1532
+ te: {
1533
+ decimal: ".",
1534
+ group: ",",
1535
+ format: "$$###",
1536
+ currency: ""
1537
+ },
1538
+ th: {
1539
+ decimal: ".",
1540
+ group: ",",
1541
+ format: "$$###",
1542
+ currency: ""
1543
+ },
1544
+ tr: {
1545
+ decimal: ",",
1546
+ group: ".",
1547
+ format: "$$###",
1548
+ currency: ""
1549
+ },
1550
+ uk: {
1551
+ decimal: ",",
1552
+ group: " ",
1553
+ format: "### $$",
1554
+ currency: ""
1555
+ },
1556
+ vi: {
1557
+ decimal: ",",
1558
+ group: ".",
1559
+ format: "### $$",
1560
+ currency: ""
1561
1561
  },
1562
1562
  "zh-Hans": {
1563
- "decimal": ".",
1564
- "group": ",",
1565
- "format": "$$###",
1566
- "currency": ""
1563
+ decimal: ".",
1564
+ group: ",",
1565
+ format: "$$###",
1566
+ currency: ""
1567
1567
  },
1568
- "zh": {
1569
- "decimal": ".",
1570
- "group": ",",
1571
- "format": "$$###",
1572
- "currency": ""
1568
+ zh: {
1569
+ decimal: ".",
1570
+ group: ",",
1571
+ format: "$$###",
1572
+ currency: ""
1573
1573
  },
1574
1574
  "zh-Hant": {
1575
- "decimal": ".",
1576
- "group": ",",
1577
- "format": "$$###",
1578
- "currency": ""
1579
- },
1580
- "c_1": {
1581
- "decimal": ".",
1582
- "group": ",",
1583
- "format": "$$###",
1584
- "currency": ""
1585
- },
1586
- "c_2": {
1587
- "decimal": ".",
1588
- "group": ",",
1589
- "format": "$$ ###",
1590
- "currency": ""
1591
- },
1592
- "c_3": {
1593
- "decimal": ",",
1594
- "group": ".",
1595
- "format": "### $$",
1596
- "currency": ""
1597
- },
1598
- "c_4": {
1599
- "decimal": ",",
1600
- "group": " ",
1601
- "format": "### $$",
1602
- "currency": ""
1575
+ decimal: ".",
1576
+ group: ",",
1577
+ format: "$$###",
1578
+ currency: ""
1579
+ },
1580
+ c_1: {
1581
+ decimal: ".",
1582
+ group: ",",
1583
+ format: "$$###",
1584
+ currency: ""
1585
+ },
1586
+ c_2: {
1587
+ decimal: ".",
1588
+ group: ",",
1589
+ format: "$$ ###",
1590
+ currency: ""
1591
+ },
1592
+ c_3: {
1593
+ decimal: ",",
1594
+ group: ".",
1595
+ format: "### $$",
1596
+ currency: ""
1597
+ },
1598
+ c_4: {
1599
+ decimal: ",",
1600
+ group: " ",
1601
+ format: "### $$",
1602
+ currency: ""
1603
1603
  }
1604
1604
  };
1605
1605
 
@@ -2043,11 +2043,13 @@ var defaultLang = {
2043
2043
  };
2044
2044
 
2045
2045
  var invoiceHtmlWithDetails = (function (_ref) {
2046
+ var _customer$address, _customer$address2, _customer$address3, _customer$shippingAdd, _customer$shippingAdd2, _customer$shippingAdd3;
2047
+
2046
2048
  var invoice = _ref.invoice,
2047
2049
  _ref$lang = _ref.lang,
2048
2050
  lang = _ref$lang === void 0 ? defaultLang : _ref$lang,
2049
2051
  _ref$companyLogoBase = _ref.companyLogoBase,
2050
- companyLogoBase = _ref$companyLogoBase === void 0 ? 'https://s3.amazonaws.com/bookipi/' : _ref$companyLogoBase,
2052
+ companyLogoBase = _ref$companyLogoBase === void 0 ? "https://s3.amazonaws.com/bookipi/" : _ref$companyLogoBase,
2051
2053
  _ref$isDeposit = _ref.isDeposit,
2052
2054
  isDeposit = _ref$isDeposit === void 0 ? false : _ref$isDeposit,
2053
2055
  _ref$isOffline = _ref.isOffline,
@@ -2056,8 +2058,8 @@ var invoiceHtmlWithDetails = (function (_ref) {
2056
2058
  isFromReactnative = _ref$isFromReactnativ === void 0 ? false : _ref$isFromReactnativ,
2057
2059
  _ref$removeHtmlStanda = _ref.removeHtmlStandardDom,
2058
2060
  removeHtmlStandardDom = _ref$removeHtmlStanda === void 0 ? false : _ref$removeHtmlStanda;
2059
- var company = invoice.company;
2060
- var document = invoice.document;
2061
+ var company = invoice.company || {};
2062
+ var document = invoice.document || {};
2061
2063
  var logoBase64 = invoice.logoBase64;
2062
2064
  var attachments = invoice.attachments || [];
2063
2065
  var customerSignBase64 = invoice.customerSignBase64;
@@ -2069,18 +2071,18 @@ var invoiceHtmlWithDetails = (function (_ref) {
2069
2071
  documentName = company.doc[document.ty].n;
2070
2072
  } else {
2071
2073
  if (document.ty === 1) {
2072
- documentName = company.r_inv ? company.r_inv : lang['document'];
2074
+ documentName = company.r_inv ? company.r_inv : lang["document"];
2073
2075
  } else if (document.ty === 2) {
2074
- documentName = company.r_crd ? company.r_crd : lang['creditnote'];
2076
+ documentName = company.r_crd ? company.r_crd : lang["creditnote"];
2075
2077
  } else {
2076
- documentName = company.r_est ? company.r_est : lang['Estimate'];
2078
+ documentName = company.r_est ? company.r_est : lang["Estimate"];
2077
2079
  }
2078
2080
  }
2079
2081
 
2080
2082
  var logoContainer = null;
2081
2083
 
2082
2084
  if (logoPath || logoBase64) {
2083
- logoContainer = "<img src=\"" + (logoPath || logoBase64) + "\" \n id=\"invoice-logo\" \n class=\"img-fluid\" \n style=\"padding-top: 10px;\n width: " + (company.ls ? company.ls * 1.8 + 'px' : '250px') + ";\n height:auto;\">";
2085
+ logoContainer = "<img src=\"" + (logoPath || logoBase64) + "\" \n id=\"invoice-logo\" \n class=\"img-fluid\" \n style=\"padding-top: 10px;\n width:" + (company.ls * 2 || 200) + "px;\n height:auto;\">";
2084
2086
  } else {
2085
2087
  logoContainer = " <h1>" + company.c + " </h1>";
2086
2088
  }
@@ -2094,7 +2096,7 @@ var invoiceHtmlWithDetails = (function (_ref) {
2094
2096
  d = d.tz(timeZone);
2095
2097
  }
2096
2098
 
2097
- return d.format(company.df === 0 ? 'D MMM YYYY' : company.df === 1 ? 'DD/MM/YYYY' : company.df === 3 ? 'MM/D/YYYY' : company.df === 4 ? 'YYYY/MM/DD' : 'MMM D, YYYY');
2099
+ return d.format(company.df === 0 ? "D MMM YYYY" : company.df === 1 ? "DD/MM/YYYY" : company.df === 3 ? "MM/D/YYYY" : company.df === 4 ? "YYYY/MM/DD" : "MMM D, YYYY");
2098
2100
  };
2099
2101
 
2100
2102
  var companyAddress = {
@@ -2107,8 +2109,16 @@ var invoiceHtmlWithDetails = (function (_ref) {
2107
2109
  country: company && company.address && company.address.country || null
2108
2110
  };
2109
2111
  var customer = document.cu;
2110
- var customerAddress = customer.address || {};
2111
- var customerShippingAddress = customer.shippingAddress || {};
2112
+ var customerAddress = customer ? _extends({}, customer.address, {
2113
+ address1: ((_customer$address = customer.address) === null || _customer$address === void 0 ? void 0 : _customer$address.address1) || customer.a1,
2114
+ address2: ((_customer$address2 = customer.address) === null || _customer$address2 === void 0 ? void 0 : _customer$address2.address2) || customer.a2,
2115
+ address3: ((_customer$address3 = customer.address) === null || _customer$address3 === void 0 ? void 0 : _customer$address3.address3) || customer.a3
2116
+ }) : {};
2117
+ var customerShippingAddress = customer ? _extends({}, customer.shippingAddress, {
2118
+ address1: ((_customer$shippingAdd = customer.shippingAddress) === null || _customer$shippingAdd === void 0 ? void 0 : _customer$shippingAdd.address1) || customer.sa1,
2119
+ address2: ((_customer$shippingAdd2 = customer.shippingAddress) === null || _customer$shippingAdd2 === void 0 ? void 0 : _customer$shippingAdd2.address2) || customer.sa2,
2120
+ address3: ((_customer$shippingAdd3 = customer.shippingAddress) === null || _customer$shippingAdd3 === void 0 ? void 0 : _customer$shippingAdd3.address3) || customer.sa3
2121
+ }) : {};
2112
2122
  var shippingAddressExists = customerShippingAddress.address1 || customerShippingAddress.address2 || customerShippingAddress.address3 || customerShippingAddress.city || customerShippingAddress.state || customerShippingAddress.zip || document.asi;
2113
2123
  var taxPercent1 = document.tp ? parseFloat(document.tp) : 0;
2114
2124
  var taxPercent2 = document.tp2 ? parseFloat(document.tp2) : 0;
@@ -2150,12 +2160,12 @@ var invoiceHtmlWithDetails = (function (_ref) {
2150
2160
  }
2151
2161
  }
2152
2162
 
2153
- var itemsContainer = '';
2163
+ var itemsContainer = "";
2154
2164
 
2155
2165
  if (document.it) {
2156
2166
  for (var _iterator2 = _createForOfIteratorHelperLoose(document.it), _step2; !(_step2 = _iterator2()).done;) {
2157
2167
  var _item = _step2.value;
2158
- itemsContainer = itemsContainer + ("<tr>\n <td>\n <span class=\"text-inverse\"><strong>" + (_item.n || "") + "</strong></span>\n <div>" + (nl2br(_item.dsc) || "") + "</div>\n <div class=\"d-block d-sm-none mt-1\">\n " + ((_item.p || _item.p == 0) && (_item.q || _item.q == 0) ? FormatCurrency(_item.p, company.cr, company.la, company.cf) + " \u2715 " + _item.q : '') + "\n " + (discountOnItem && (_item.p || _item.p == 0) && _item.dc ? (_item.dc > 0 ? " - " : " + ") + FormatCurrency(Math.abs(_item.dc), company.cr, company.la, company.cf) : "") + "\n </div>\n </td>\n <td class=\"text-center\">" + ((_item.p || _item.p == 0) && (_item.q || _item.q == 0) ? _item.q : "") + "</td>\n <td class=\"text-right\">\n " + (_item.p || _item.p == 0 ? FormatCurrency(_item.p, company.cr, company.la, company.cf) : "") + "\n </td>\n" + (discountOnItem ? "<td class=\"text-right\">" + ((_item.p || _item.p == 0) && _item.dc ? FormatCurrency(_item.dc, company.cr, company.la, company.cf) : "") + "</td>" : '') + "\n<td class=\"text-right\">" + (_item.p || _item.p == 0 ? FormatCurrency(_item.t, company.cr, company.la, company.cf) : "") + "</td>\n</tr>");
2168
+ itemsContainer = itemsContainer + ("<tr>\n <td>\n <span class=\"text-inverse\"><strong>" + (_item.n || "") + "</strong></span>\n <div>" + (nl2br(_item.dsc) || "") + "</div>\n </td>\n <td class=\"text-center\">" + ((_item.p || _item.p == 0) && (_item.q || _item.q == 0) ? _item.q : "") + "</td>\n <td class=\"text-right\">\n " + (_item.p || _item.p == 0 ? FormatCurrency(_item.p, company.cr, company.la, company.cf) : "") + "\n </td>\n" + (discountOnItem ? "<td class=\"text-right\">" + ((_item.p || _item.p == 0) && _item.dc ? FormatCurrency(_item.dc, company.cr, company.la, company.cf) : "") + "</td>" : "") + "\n<td class=\"text-right\">" + (_item.p || _item.p == 0 ? FormatCurrency(_item.t, company.cr, company.la, company.cf) : "") + "</td>\n</tr>");
2159
2169
  }
2160
2170
  }
2161
2171
 
@@ -2165,48 +2175,48 @@ var invoiceHtmlWithDetails = (function (_ref) {
2165
2175
  var taxIncluded2;
2166
2176
 
2167
2177
  if (document.tx != 0) {
2168
- taxName1 = document.tn ? document.tn : 'Tax';
2169
- taxIncluded1 = document.ti ? ' ' + (company.r_ic ? company.r_ic : lang["included"]) : ' ';
2178
+ taxName1 = document.tn ? document.tn : "Tax";
2179
+ taxIncluded1 = document.ti ? " " + (company.r_ic ? company.r_ic : lang["included"]) : " ";
2170
2180
  }
2171
2181
 
2172
2182
  if (document.ttx && document.tx2 != 0) {
2173
- taxName2 = document.tn2 ? document.tn2 : 'Tax 2';
2174
- taxIncluded2 = document.ti ? ' ' + (company.r_ic ? company.r_ic : lang["included"]) : ' ';
2183
+ taxName2 = document.tn2 ? document.tn2 : "Tax 2";
2184
+ taxIncluded2 = document.ti ? " " + (company.r_ic ? company.r_ic : lang["included"]) : " ";
2175
2185
  }
2176
2186
 
2177
2187
  function payment_on(date, brand, endNumber) {
2178
2188
  if (brand && endNumber) {
2179
- return 'Paid on ' + date + ' using ' + brand + ' ending in ' + endNumber;
2189
+ return "Paid on " + date + " using " + brand + " ending in " + endNumber;
2180
2190
  } else if (brand && !endNumber) {
2181
- return 'Paid on ' + date + ' using ' + brand;
2191
+ return "Paid on " + date + " using " + brand;
2182
2192
  } else {
2183
- return 'Paid on ' + date;
2193
+ return "Paid on " + date;
2184
2194
  }
2185
2195
  }
2186
2196
 
2187
- var paymentContainer = '';
2197
+ var paymentContainer = "";
2188
2198
 
2189
2199
  if (document.pm) {
2190
2200
  for (var _iterator3 = _createForOfIteratorHelperLoose(document.pm), _step3; !(_step3 = _iterator3()).done;) {
2191
2201
  var payment = _step3.value;
2192
- paymentContainer = paymentContainer + ("<tr>\n <td class=\"d-sm-table-cell\"></td>\n <td class=\"text-right\" width=\"25%\">" + (lang.payment_on ? lang.payment_on(formatDate(payment.d), payment.b) : payment_on(formatDate(payment.d), payment.b)) + "</td>\n <td class=\"text-right\" width=\"25%\">" + FormatCurrency(payment.a, company.cr, company.la, company.cf) + "</td>\n </tr>");
2202
+ paymentContainer = paymentContainer + ("<tr>\n <td></td>\n <td class=\"text-right\" width=\"25%\">" + (lang.payment_on ? lang.payment_on(formatDate(payment.d), payment.b) : payment_on(formatDate(payment.d), payment.b)) + "</td>\n <td class=\"text-right\" width=\"25%\">" + FormatCurrency(payment.a, company.cr, company.la, company.cf) + "</td>\n </tr>");
2193
2203
  }
2194
2204
  }
2195
2205
 
2196
2206
  var paymentOn = company.pi && document.ty === 1 && (company.p1 || company.p2 || company.p3);
2197
- var attachmentContainer = '';
2207
+ var attachmentContainer = "";
2198
2208
 
2199
2209
  if (attachments) {
2200
2210
  for (var i = 0; i < attachments.length; i++) {
2201
- attachmentContainer = attachmentContainer + ("<div class=\"mt-5\">\n <img src=\"" + (attachments[i].imageBase64 || attachments[i].imageUrl) + "\" style=\"max-width:100%\"/>\n <div><strong>" + (attachments[i].text || attachments[i].t || '') + "</strong></div>\n <div>" + (attachments[i].description || attachments[i].d || '') + "</div>\n </div>");
2211
+ attachmentContainer = attachmentContainer + ("<div class=\"mt-5\">\n <img src=\"" + (attachments[i].imageBase64 || attachments[i].imageUrl) + "\" style=\"max-width:100%\"/>\n <div><strong>" + (attachments[i].text || attachments[i].t || "") + "</strong></div>\n <div>" + (attachments[i].description || attachments[i].d || "") + "</div>\n </div>");
2202
2212
  }
2203
2213
  }
2204
2214
 
2205
- var signatureContainer = document.sd && "\n <div class=\"col-6\" style=\"text-align: center\">\n <strong>" + (document.cs || customerSignBase64 ? company.c : "") + "</strong>\n <div style=\"height:100px;border-bottom:2px solid #dee2e6; margin-right:40px; margin-left:40px\">\n " + (signatureBase64 && "<img src=\"" + signatureBase64 + "\" style=\"width:220px;margin-top:20px;\" />" || "") + "\n </div>\n <div style=\"font-size:16px\">" + (document.sd ? formatDate(document.sd) : "") + "</div>\n </div>" || "";
2206
- var clientSignature = (document.cs || customerSignBase64) && "\n <div class=\"col-6\" style=\"text-align: center\">\n <strong>" + document.cu.c + "</strong>\n <div style=\"height:100px;border-bottom:2px solid #dee2e6; margin-right:40px; margin-left:40px\">\n " + (customerSignBase64 && "<img src=\"" + customerSignBase64 + "\" style=\"width:220px;margin-top:20px;\" />" || "") + "\n </div>\n <div style=\"font-size:16px\">" + (customerSignBase64 ? formatDate(new Date()) : "( &nbsp;&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp/ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp)") + "</div>\n </div>" || "";
2215
+ var signatureContainer = document.sd ? "\n <div class=\"col-6\" style=\"text-align: center\">\n <strong>" + (document.cs || customerSignBase64 ? company.c : "") + "</strong>\n <div style=\"height:100px;border-bottom:2px solid #dee2e6; margin-right:40px; margin-left:40px\">\n " + (signatureBase64 ? "<img src=\"" + signatureBase64 + "\" style=\"width:220px;margin-top:20px;\" />" : "") + "\n </div>\n <div style=\"font-size:16px\">" + (document.sd ? formatDate(document.sd) : "") + "</div>\n </div>" : "";
2216
+ var clientSignature = document.cs || customerSignBase64 ? "\n <div class=\"col-6\" style=\"text-align: center\">\n <strong>" + (customer ? customer.c : '') + "</strong>\n <div style=\"height:100px;border-bottom:2px solid #dee2e6; margin-right:40px; margin-left:40px\">\n " + (customerSignBase64 ? "<img src=\"" + customerSignBase64 + "\" style=\"width:220px;margin-top:20px;\" />" : "") + "\n </div>\n <div style=\"font-size:16px\">" + (customerSignBase64 ? formatDate(new Date()) : "( &nbsp;&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp/ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp)") + "</div>\n </div>" : "";
2207
2217
  var numOfRowsPaymentInstruction = (1 + (document.dc ? 1 : 0) + (document.sp && !document.sntx ? 1 : 0) + (document.tx != 0 ? 1 : 0) + (document.ttx && document.tx2 != 0 ? 1 : 0) + (document.sp && document.sntx ? 1 : 0) + (document.ti ? 1 : 0) + (document.ty == 1 || document.ty !== 1 && (document.t1d || document.ttx && document.tx2 > 0 && document.t2d) ? 1 : 0) + (document.sca ? 1 : 0)).toString();
2208
- var paymentInstructionDetails = "\n " + (paymentOn ? "<h2 style=\"margin-top: 0; font-size: 18px; font-weight: 700;\">" + (company.r_pi ? company.r_pi : lang['payment_instruction']) + "</h2>" : "") + "\n " + (paymentOn && company.p1 ? company.p1 + "<br>" : "") + "\n " + (paymentOn && company.p2 ? company.p2 + "<br>" : "") + "\n " + (paymentOn && company.p3 ? company.p3 + "<br>" : "") + "\n ";
2209
- var html = (!removeHtmlStandardDom ? "<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"utf-8\">\n <title>Invoice</title>" : '') + "\n " + (isOffline ? "<style>" + bootstrapCss + "</style><style>" + fontawesomeCss + "</style>" : " <link rel=\"stylesheet\" href=\"https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css\" integrity=\"sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh\" crossorigin=\"anonymous\">\n <link href=\"https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css\" rel=\"stylesheet\">") + "\n " + (!removeHtmlStandardDom ? "</head>" : "") + "\n <style>\n body {\n font-size: 18px;removeHtmlStandardDom\n -webkit-hyphens: auto;\n -ms-hyphens: auto;\n hyphens: auto;\n word-break: break-all;\n }\n .invoice-body {\n background: #fff;\n padding: 25px 50px;\n }\n\n .invoice-company {\n font-size: 20px\n }\n\n .invoice-header {\n /* margin: 0 -50px; */\n background: #f0f3f4;\n padding: 25px 50px;\n }\n .invoice-content {\n padding: 20px 38px 10px;\n }\n .invoice-date,\n .invoice-from,\n .invoice-to {\n /* display: table-cell; */\n /* width: 1% */\n }\n\n .table td, .table th {\n padding: .50rem .75rem;\n }\n\n .invoice-from,\n .invoice-to {\n padding-right: 20px\n }\n\n .invoice-date .date,\n .invoice-from strong,\n .invoice-to strong {\n font-size: 18px;\n font-weight: 600\n }\n\n .invoice-date {\n /* text-align: right; */\n padding-left: 20px\n }\n\n .invoice-price {\n /* background: #f0f3f4; */\n display: table;\n width: 100%\n }\n\n .invoice-price .invoice-price-left,\n .invoice-price .invoice-price-right {\n display: table-cell;\n padding: 28px 12px 16px;\n font-size: 20px;\n font-weight: 600;\n width: 70%;\n position: relative;\n vertical-align: middle\n }\n\n .invoice-price .invoice-price-left .sub-price {\n display: table-cell;\n vertical-align: middle;\n padding: 0 20px\n }\n\n .invoice-price small {\n font-size: 18px;\n font-weight: 400;\n display: block\n }\n\n .invoice-price .invoice-price-row {\n display: table;\n float: left\n }\n\n .invoice-price .invoice-price-right {\n width: 30%;\n background: #2d353c;\n color: #fff;\n font-size: 28px;\n text-align: right;\n vertical-align: bottom;\n font-weight: 300;\n right: 38px;\n }\n\n .invoice-price .invoice-price-right small {\n display: block;\n opacity: .7;\n position: absolute;\n top: 10px;\n left: 12px;\n font-size: 18px\n }\n\n .invoice-footer {\n border-top: 1px solid #ddd;\n padding-top: 10px;\n font-size: 18px\n }\n\n .invoice-note {\n color: #999;\n margin-top: 80px;\n font-size: 85%\n }\n\n .invoice-body > div:not(.invoice-footer) {\n margin-bottom: 20px\n }\n\n .btn.btn-white, .btn.btn-white.disabled, .btn.btn-white.disabled:focus, .btn.btn-white.disabled:hover, .btn.btn-white[disabled], .btn.btn-white[disabled]:focus, .btn.btn-white[disabled]:hover {\n color: #2d353c;\n background: #fff;\n border-color: #d9dfe3;\n }\n .table-inline-block{\n display: inline-block;\n }\n\n @media print {\n @page {\n size: A4;\n margin: 0;\n }\n body, page, html {\n /*width: 21cm; */\n /*margin: 0; */\n width: 100%;\n box-shadow: 0;\n background-color: #fff;\n }\n .print {\n max-width: " + 28 / (isFromReactnative ? 1 : 0.7) + "cm;\n margin: 0 auto 0 auto;\n }\n /* .invoice-body {\n padding:10;\n } */\n #invoice {\n " + (isFromReactnative ? 'zoom: 0.7' : '') + ";\n }\n\n .invoice-price .invoice-price-right {\n background: #f0f3f4;\n color: black;\n border: 2px solid #f0f3f4;\n }\n \n .col-sm {\n -ms-flex-preferred-size: 0;\n flex-basis: 0;\n -ms-flex-positive: 1;\n flex-grow: 1;\n max-width: 100%;\n }\n \n .col-sm-6 {\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%;\n }\n }\n \n .text-left{\n text-align: left;\n }\n .text-center{\n text-align: center;\n } \n .text-right{\n text-align: right;\n }\n\n @media only screen {\n #invoice {\n margin-top:10px;\n max-width:28cm;\n zoom: 0.8;\n box-shadow: 0 0 0.5cm rgba(0,0,0,0.2);\n margin-right:auto;margin-left:auto;\n background: white;\n }\n }\n\n @media (min-width: 767.99px) {\n .invoice-detail-right {\n max-width: 200px;\n }\n }\n @media (max-width: 767.98px) {\n .invoice-body {\n padding: 30px\n }\n .invoice-header {\n padding: 20px 30px;\n }\n .invoice-content {\n padding: 18px;\n }\n .invoice-price .invoice-price-right {\n right: 18px;\n }\n #invoice-logo {\n padding-top:0;\n max-width: 250px;\n text-align: center;\n margin-right:auto;\n /*margin-left:auto;*/\n display: block;\n }\n .invoice-date {\n margin-top:10px;\n border-top: 1px solid #dee2e6;\n }\n }\n\n .table-small td{\n padding: 8px 12px\n }\n .table-invoice-header{\n background: #f0f3f4\n }\n h1,h2,h3,h4 {margin-top:15px}\n h1 {font-size:27px}\n h2 {font-size:22px}\n </style>\n " + (!removeHtmlStandardDom ? '<body>' : '') + "\n <div id=\"invoice\" class=\"print\">\n <div class=\"invoice-body\">\n <!-- begin invoice-company -->\n <div class=\"row\">\n <div class=\"col-sm mb-3 mb-md-0\">\n " + logoContainer + "\n </div>\n <div class=\"col-sm text-right\">\n <h1>" + documentName + "</h1>\n <div class=\"text-inverse mb-1\" style=\"font-size: 20px;\">\n <strong>" + company.c + "</strong>\n </div>\n <address class=\"m-t-5 m-b-5\">\n <div class=\"mb-2\">\n " + (companyAddress.address1 ? "<div>" + companyAddress.address1 + "</div>" : "") + "\n " + (companyAddress.address2 ? "<div>" + companyAddress.address2 + "</div>" : "") + "\n " + (companyAddress.address3 ? "<div>" + companyAddress.address3 + "</div>" : "") + "\n " + (companyAddress.city || companyAddress.state || companyAddress.zip ? "<div>" + ((companyAddress.city ? companyAddress.city + " " : "") + (companyAddress.state ? companyAddress.state + " " : "") + (companyAddress.zip ? companyAddress.zip + " " : "")) + "</div>" : "") + "\n " + (companyAddress.country ? "<div>" + companyAddress.country + "</div>" : "") + "\n </div>\n " + (company.ai ? "<div>" + company.ai + "</div>" : "") + "\n " + (company.ph ? "<div>" + company.ph + "</div>" : "") + "\n " + (company.de ? "<div>" + company.de + "</div>" : "") + "\n " + (company.tfn ? "<div>" + ((company.bn ? company.bn : "Tax no.") + " : " + company.tfn) + "</div>" : "") + "\n </address>\n </div>\n </div>\n </div>\n <!-- end invoice-company -->\n <!-- begin invoice-header -->\n <div class=\"invoice-header\">\n <div class=\"row\">\n <div class=\"invoice-to col-sm-6 col-md-6\">\n <strong>" + (company.r_bt ? company.r_bt : lang["bill_to"]) + "</strong>\n <div class=\"text-inverse mb-1\">\n <small style=\"font-size: 18px;\">" + document.cu.c + "</small>\n </div>\n <address class=\"m-t-5 m-b-5\">\n " + (customerAddress.address1 ? "<div>" + customerAddress.address1 + "</div>" : "") + "\n " + (customerAddress.address2 ? "<div>" + customerAddress.address2 + "</div>" : "") + "\n " + (customerAddress.address3 ? "<div>" + customerAddress.address3 + "</div>" : "") + "\n " + (customerAddress.city || customerAddress.state || customerAddress.zip ? "<div>" + ((customerAddress.city ? customerAddress.city + " " : "") + (customerAddress.state ? customerAddress.state + " " : "") + (customerAddress.zip ? customerAddress.zip + " " : "")) + "</div>" : "") + "\n " + (customerAddress.country ? "<div>" + customerAddress.country + "</div>" : "") + "\n " + (document.cu.tfn ? "<div>" + (document.cu.tfn ? (company.bn || "Tax no.") + " : " + document.cu.tfn : "") + "</div>" : "") + "\n " + (document.cu.ph ? "<div>" + document.cu.ph + "</div>" : "") + "\n </address>\n\n " + (shippingAddressExists ? "<strong stryle=\"margin-top:10px\">" + (company.r_st ? company.r_st : lang.ship_to) + "</strong>" : "") + "\n " + (shippingAddressExists ? "\n <address class=\"m-t-5 m-b-5\">\n " + (customerShippingAddress.address1 ? "<div>" + customerShippingAddress.address1 + "</div>" : "") + "\n " + (customerShippingAddress.address2 ? "<div>" + customerShippingAddress.address2 + "</div>" : "") + "\n " + (customerShippingAddress.address3 ? "<div>" + customerShippingAddress.address3 + "</div>" : "") + "\n " + (customerShippingAddress.city || customerShippingAddress.state || customerShippingAddress.zip ? "<div>" + ((customerShippingAddress.city ? customerShippingAddress.city + " " : "") + (customerShippingAddress.state ? customerShippingAddress.state + " " : "") + (customerShippingAddress.zip ? customerShippingAddress.zip + " " : "")) + "</div>" : "") + "\n " + (customerShippingAddress.country ? "<div>" + customerShippingAddress.country + "</div>" : "") + "\n " + (document.asi ? "<div>" + document.asi + "</div>" : "") + "\n </address>\n " : "") + "\n </div>\n\n <div class=\"invoice-date col-sm-6 col-md-6\">\n <div class=\"row text-right\">\n <div class=\"col\">\n <strong>" + documentName + " #</strong>\n </div>\n <div class=\"col invoice-detail-right\">" + (document.no ? document.no : "") + "</div>\n </div>\n <div class=\"row text-right\">\n <div class=\"col\">\n <strong>" + (company.r_d ? company.r_d : lang["date"]) + "</strong>\n </div>\n <div class=\"col invoice-detail-right\">" + formatDate(document.d) + "</div>\n </div>\n " + (document.ty == 1 && !document.rd ? "<div class=\"row text-right\">\n <div class=\"col\">\n <strong>" + (company.r_dd ? company.r_dd : lang["due_date"]) + "</strong>\n </div>\n <div class=\"col invoice-detail-right\">\n " + (document.dd ? formatDate(document.dd) : formatDate(new Date(document.d).setDate(new Date(document.d).getDate() + parseInt(document.di)))) + "\n </div>\n </div>" : '') + "\n " + (document.pon ? "<div class=\"row text-right\">\n <div class=\"col\">\n <strong>" + (company.r_po ? company.r_po : lang['po_number']) + "</strong>\n </div>\n <div class=\"col invoice-detail-right\">" + document.pon + "</div>\n </div>\n " : '') + "\n </div>\n </div>\n </div>\n <!-- end invoice-header -->\n <!-- begin invoice-content -->\n <div class=\"invoice-content\">\n <div class=\"table-responsive\">\n <table class=\"table table-invoice\">\n <thead>\n <tr class=\"table table-invoice\">\n <th class=\"text-left\">" + (company.r_it ? company.r_it : lang['item']) + "</th>\n <th class=\"text-center\" width=\"15%\">" + (document.um ? document.um : company.r_q ? company.r_q : lang['quantity']) + "</th>\n <th class=\"text-right\" width=\"15%\">" + (company.r_p ? company.r_p : lang['price']) + "</th>\n " + (discountOnItem ? "<th class=\"text-right\" width=\"15%\">" + (company.r_dc ? company.r_dc : lang['discount']) + "</th>" : '') + "\n <th class=\"text-right\" width=\"15%\">" + (company.r_a ? company.r_a : lang['amount']) + "</th>\n </tr>\n </thead>\n <tbody>\n " + itemsContainer + "\n </tbody>\n </table>\n </div>\n \n <hr />\n <div class=\"row\">\n <div class=\"col-12\">\n <table class=\"table table-borderless table-small\">\n <tbody>\n <tr>\n <td class=\"d-table-cell\" rowspan=\"" + numOfRowsPaymentInstruction + "\">\n " + (paymentOn ? paymentInstructionDetails : "") + "\n </td>\n <td class=\"text-right\" width=\"25%\">" + (company.r_sb ? company.r_sb : lang["subtotal"]) + "</td>\n <td class=\"text-right\" width=\"25%\">" + FormatCurrency(document.st, company.cr, company.la, company.cf) + "</td>\n </tr>\n " + (document.dc ? "<tr>\n <td class=\"text-right\" width=\"25%\">" + ((company.r_dc ? company.r_dc : lang["discount"]) + (document.dcpo && document.dcp ? " (" + document.dcp + "%)" : "")) + "</td>\n <td class=\"text-right\" width=\"25%\">" + ("(" + FormatCurrency(document.dc, company.cr, company.la, company.cf) + ")") + "</td>\n </tr>" : '') + "\n " + (document.sp && !document.sntx ? "<tr>\n <td class=\"text-right\" width=\"25%\">" + (company.r_sp ? company.r_sp : lang["shipping"]) + "</td>\n <td class=\"text-right\" width=\"25%\">" + FormatCurrency(document.sp, company.cr, company.la, company.cf) + "</td>\n </tr>" : '') + "\n " + (document.tx != 0 ? "<tr>\n <td class=\"text-right\" width=\"25%\">" + (taxName1 + taxIncluded1 + "(" + document.tp + "%)") + "</td>\n <td class=\"text-right\" width=\"25%\">" + ((document.t1d ? "(" : "") + FormatCurrency(document.tx, company.cr, company.la, company.cf) + (document.t1d ? ")" : "")) + "</td>\n </tr>" : '') + "\n " + (document.ttx && document.tx2 != 0 ? "<tr>\n <td></td>\n <td class=\"text-right\" width=\"25%\">" + (taxName2 + taxIncluded2 + "(" + document.tp2 + "%)") + "</td>\n <td class=\"text-right\" width=\"25%\">" + ((document.t2d ? "(" : "") + FormatCurrency(document.tx2, company.cr, company.la, company.cf) + (document.t2d ? ")" : "")) + "</td>\n </tr>" : '') + "\n " + (document.sp && document.sntx ? "<tr>\n <td class=\"text-right\" width=\"25%\">" + (company.r_sp ? company.r_sp : lang["shipping"]) + "</td>\n <td class=\"text-right\" width=\"25%\">" + FormatCurrency(document.sp, company.cr, company.la, company.cf) + "</td>\n </tr>" : '') + "\n " + (document.ti ? "<tr>\n <td class=\"text-right\" width=\"25%\" style=\"border-top: 1px solid #ddd\">" + (company.r_n ? company.r_n : lang["net"]) + "</td>\n <td class=\"text-right\" width=\"25%\" style=\"border-top: 1px solid #ddd\">" + FormatCurrency(document.tt - (document.tx || 0) - (document.tx2 || 0), company.cr, company.la, company.cd) + "</td>\n </tr>" : '') + "\n " + (document.ty == 1 || document.ty !== 1 && (document.t1d || document.ttx && document.tx2 > 0 && document.t2d) ? "<tr>\n <td class=\"text-right\" width=\"25%\" style=\"border-bottom: 1px solid #ddd\">" + (company.r_tt ? company.r_tt : lang["total"]) + "</td>\n <td class=\"text-right\" width=\"25%\" style=\"border-bottom: 1px solid #ddd\">" + FormatCurrency(document.tt ? document.tt : 0, company.cr, company.la, company.cf) + "</td>\n </tr>" : '') + "\n " + (document.sca ? "<tr>\n <td class=\"text-right\" width=\"25%\">" + lang["credit_card_surcharge"] + "</td>\n <td class=\"text-right\" width=\"25%\">" + FormatCurrency(document.sca, company.cr, company.la, company.cf) + "</td>\n </tr>" : '') + "\n " + (document.ty == 1 && document.pma && document.pm ? paymentContainer : '') + "\n </tbody>\n </table>\n </div>\n </div>\n </div>\n <!-- end invoice-content -->\n\n <!-- begin invoice price -->\n <div class=\"invoice-price\">\n <div class=\"invoice-price-left\">\n <div class=\"invoice-price-row\"></div>\n </div>\n <div class=\"invoice-price-right\">\n <small>" + (document.ty == 1 ? company.r_ad ? company.r_ad : lang["amount_due"] : company.r_gt ? company.r_gt : lang["grand_total"]) + "</small>\n <span class=\"f-w-600\">" + (isDeposit ? FormatCurrency(document.depositAmount, company.cr, company.la, company.cf) : FormatCurrency(document.ad, company.cr, company.la, company.cf)) + "</span>\n </div>\n </div>\n <!-- end invoice price -->\n\n <div class=\"invoice-body\">\n\n <!-- begin invoice-note -->\n " + (document.noteHtml ? "<div class=\"mt-1\">\n " + document.noteHtml + "\n </div>" : (document.nt ? "<div class=\"mt-1\">\n <h2>" + (company.r_nt ? company.r_nt : lang["note"]) + "</h2>\n " + nl2br(document.nt) + "\n </div>" : '') + "\n " + (document.tc ? "<div class=\"mt-1\">\n <h2>" + (company.r_tc ? company.r_tc : lang["terms"]) + "</h2>\n " + nl2br(document.tc) + "\n </div>" : '')) + "\n <!-- end invoice-note -->\n \n <!--- begin company signature -->\n <!-- begin invoice-signature -->\n " + (document.sd || document.cs || customerSignBase64 ? "<div>" + (company.r_bs || lang['by_signing'] || "") + "</div>\n <div class=\"row mt-1\">\n " + (signatureContainer || clientSignature || "") + "\n " + (signatureContainer && clientSignature || "") + "\n </div>" : '') + "\n <!-- end invoice-signature-->\n\n <!-- begin invoice attachments -->\n\n " + (attachments && attachments.length > 0 ? "<div style=\"text-align: center\">\n " + attachmentContainer + "\n </div>" : '') + "\n <!-- end invoice attachment -->\n </div>\n </div>\n\n" + (!removeHtmlStandardDom ? '</body></html>' : '') + "\n";
2218
+ var paymentInstructionDetails = "\n " + (paymentOn ? "<h2 style=\"margin-top: 0; font-size: 18px; font-weight: 700;\">" + (company.r_pi ? company.r_pi : lang["payment_instruction"]) + "</h2>" : "") + "\n " + (paymentOn && company.p1 ? company.p1 + "<br>" : "") + "\n " + (paymentOn && company.p2 ? company.p2 + "<br>" : "") + "\n " + (paymentOn && company.p3 ? company.p3 + "<br>" : "") + "\n ";
2219
+ var html = (!removeHtmlStandardDom ? '<!DOCTYPE html>\n<html>\n <head>\n <meta charset="utf-8">\n <title>Invoice</title>' : "") + "\n " + (isOffline ? "<style>" + bootstrapCss + "</style><style>" + fontawesomeCss + "</style>" : " <link rel=\"stylesheet\" href=\"https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css\" integrity=\"sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh\" crossorigin=\"anonymous\">\n <link href=\"https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css\" rel=\"stylesheet\">") + "\n " + (!removeHtmlStandardDom ? "</head>" : "") + "\n <style>\n * {\n -webkit-print-color-adjust: exact !important;\n color-adjust: exact !important;\n }\n html {\n min-width: 800px;\n }\n body {\n font-size: 18px;removeHtmlStandardDom\n -webkit-hyphens: auto;\n -ms-hyphens: auto;\n hyphens: auto;\n word-break: break-word;\n }\n .invoice-body {\n background: #fff;\n padding: 25px 50px;\n }\n\n .invoice-company {\n font-size: 20px\n }\n\n .invoice-header {\n /* margin: 0 -50px; */\n background: #f0f3f4;\n padding: 25px 50px;\n }\n .invoice-content {\n padding: 20px 38px 10px;\n }\n .invoice-date,\n .invoice-from,\n .invoice-to {\n /* display: table-cell; */\n /* width: 1% */\n }\n\n .table td, .table th {\n padding: .50rem .75rem;\n }\n\n .invoice-from,\n .invoice-to {\n padding-right: 20px\n }\n\n .invoice-date .date,\n .invoice-from strong,\n .invoice-to strong {\n font-size: 18px;\n font-weight: 600\n }\n\n .invoice-date {\n /* text-align: right; */\n padding-left: 20px\n }\n\n .invoice-price {\n /* background: #f0f3f4; */\n display: table;\n width: 100%\n }\n\n .invoice-price .invoice-price-left,\n .invoice-price .invoice-price-right {\n display: table-cell;\n padding: 28px 12px 16px;\n font-size: 20px;\n font-weight: 600;\n width: 70%;\n position: relative;\n vertical-align: middle\n }\n\n .invoice-price .invoice-price-left .sub-price {\n display: table-cell;\n vertical-align: middle;\n padding: 0 20px\n }\n\n .invoice-price small {\n font-size: 18px;\n font-weight: 400;\n display: block\n }\n\n .invoice-price .invoice-price-row {\n display: table;\n float: left\n }\n\n .invoice-price .invoice-price-right {\n width: 30%;\n background: #5B717D;\n color: #fff;\n font-size: 28px;\n text-align: right;\n vertical-align: bottom;\n font-weight: 300;\n right: 38px;\n }\n\n .invoice-price .invoice-price-right small {\n display: block;\n opacity: .7;\n position: absolute;\n top: 10px;\n left: 12px;\n font-size: 18px\n }\n\n .invoice-footer {\n border-top: 1px solid #ddd;\n padding-top: 10px;\n font-size: 18px\n }\n\n .invoice-note {\n color: #999;\n margin-top: 80px;\n font-size: 85%\n }\n\n .invoice-body > div:not(.invoice-footer) {\n margin-bottom: 20px\n }\n\n .btn.btn-white, .btn.btn-white.disabled, .btn.btn-white.disabled:focus, .btn.btn-white.disabled:hover, .btn.btn-white[disabled], .btn.btn-white[disabled]:focus, .btn.btn-white[disabled]:hover {\n color: #2d353c;\n background: #fff;\n border-color: #d9dfe3;\n }\n .table-inline-block{\n display: inline-block;\n }\n\n @media print {\n @page {\n size: A4;\n margin: 0 0.66cm 0 0.66cm;\n }\n body, page, html {\n /*width: 21cm; */\n /*margin: 0; */\n width: 100%;\n box-shadow: 0;\n background-color: #fff;\n display: block;\n }\n .print {\n max-width:100%\n margin: 0 auto 0 auto;\n }\n /* .invoice-body {\n padding:10;\n } */\n #invoice {\n " + (isFromReactnative ? "zoom: 0.8; max-width:calc(38cm - 1.32cm);margin: 0 auto 0 auto;" : "") + "\n }\n\n .invoice-price .invoice-price-right {\n background: #f0f3f4;\n color: black;\n border: 2px solid #f0f3f4;\n }\n \n .col-sm {\n -ms-flex-preferred-size: 0;\n flex-basis: 0;\n -ms-flex-positive: 1;\n flex-grow: 1;\n max-width: 100%;\n }\n \n .col-sm-6 {\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%;\n }\n }\n \n .text-left{\n text-align: left;\n }\n .text-center{\n text-align: center;\n } \n .text-right{\n text-align: right;\n }\n\n @media only screen {\n #invoice {\n margin-top:10px;\n max-width:28cm;\n zoom: 0.8;\n box-shadow: 0 0 0.5cm rgba(0,0,0,0.2);\n margin-right:auto;margin-left:auto;\n background: white;\n }\n }\n\n @media (min-width: 767.99px) {\n .invoice-detail-right {\n max-width: 200px;\n }\n }\n @media (max-width: 767.98px) {\n .invoice-body {\n padding: 30px\n }\n .invoice-header {\n padding: 20px 30px;\n }\n .invoice-content {\n padding: 18px;\n }\n .invoice-price .invoice-price-right {\n right: 18px;\n }\n #invoice-logo {\n max-width: 100%;\n display: block;\n }\n .invoice-date {\n margin-top:10px;\n /*border-top: 1px solid #dee2e6;*/\n }\n }\n\n .table-small td{\n padding: 8px 12px\n }\n .table-invoice-header{\n background: #f0f3f4\n }\n h1,h2,h3,h4 {margin-top:15px}\n h1 {font-size:27px}\n h2 {font-size:22px}\n </style>\n " + (!removeHtmlStandardDom ? "<body>" : "") + "\n <div id=\"invoice\" class=\"print\">\n <div class=\"invoice-body\">\n <!-- begin invoice-company -->\n <div class=\"row\">\n <div class=\"col\" style=\"padding-top:10px\">\n " + logoContainer + "\n </div>\n <div class=\"col text-right\">\n <h1>" + documentName + "</h1>\n <div class=\"text-inverse mb-1\" style=\"font-size: 20px;\">\n <strong>" + company.c + "</strong>\n </div>\n <address class=\"m-t-5 m-b-5\">\n <div class=\"mb-2\">\n " + (companyAddress.address1 ? "<div>" + companyAddress.address1 + "</div>" : "") + "\n " + (companyAddress.address2 ? "<div>" + companyAddress.address2 + "</div>" : "") + "\n " + (companyAddress.address3 ? "<div>" + companyAddress.address3 + "</div>" : "") + "\n " + (companyAddress.city || companyAddress.state || companyAddress.zip ? "<div>" + ((companyAddress.city ? companyAddress.city + " " : "") + (companyAddress.state ? companyAddress.state + " " : "") + (companyAddress.zip ? companyAddress.zip + " " : "")) + "</div>" : "") + "\n " + (companyAddress.country ? "<div>" + companyAddress.country + "</div>" : "") + "\n </div>\n " + (company.ai ? "<div>" + company.ai + "</div>" : "") + "\n " + (company.ph ? "<div>" + company.ph + "</div>" : "") + "\n " + (company.de ? "<div>" + company.de + "</div>" : "") + "\n " + (company.tfn ? "<div>" + ((company.bn ? company.bn : "Tax no.") + " : " + company.tfn) + "</div>" : "") + "\n </address>\n </div>\n </div>\n </div>\n <!-- end invoice-company -->\n <!-- begin invoice-header -->\n <div class=\"invoice-header\">\n <div class=\"row\">\n <div class=\"invoice-to col-6\">\n <strong>" + (company.r_bt ? company.r_bt : lang["bill_to"]) + "</strong>\n <div class=\"text-inverse mb-1\">\n <small style=\"font-size: 18px;\">" + (customer ? customer.c : '') + "</small>\n </div>\n <address class=\"m-t-5 m-b-5\">\n " + (customerAddress.address1 ? "<div>" + customerAddress.address1 + "</div>" : "") + "\n " + (customerAddress.address2 ? "<div>" + customerAddress.address2 + "</div>" : "") + "\n " + (customerAddress.address3 ? "<div>" + customerAddress.address3 + "</div>" : "") + "\n " + (customerAddress.city || customerAddress.state || customerAddress.zip ? "<div>" + ((customerAddress.city ? customerAddress.city + " " : "") + (customerAddress.state ? customerAddress.state + " " : "") + (customerAddress.zip ? customerAddress.zip + " " : "")) + "</div>" : "") + "\n " + (customerAddress.country ? "<div>" + customerAddress.country + "</div>" : "") + "\n " + (customer && customer.tfn ? "<div>" + (customer.tfn ? (company.bn || "Tax no.") + " : " + customer.tfn : "") + "</div>" : "") + "\n " + (customer && customer.ph ? "<div>" + customer.ph + "</div>" : "") + "\n </address>\n\n " + (shippingAddressExists ? "<strong stryle=\"margin-top:10px\">" + (company.r_st ? company.r_st : lang.ship_to) + "</strong>" : "") + "\n " + (shippingAddressExists ? "\n <address class=\"m-t-5 m-b-5\">\n " + (customerShippingAddress.address1 ? "<div>" + customerShippingAddress.address1 + "</div>" : "") + "\n " + (customerShippingAddress.address2 ? "<div>" + customerShippingAddress.address2 + "</div>" : "") + "\n " + (customerShippingAddress.address3 ? "<div>" + customerShippingAddress.address3 + "</div>" : "") + "\n " + (customerShippingAddress.city || customerShippingAddress.state || customerShippingAddress.zip ? "<div>" + ((customerShippingAddress.city ? customerShippingAddress.city + " " : "") + (customerShippingAddress.state ? customerShippingAddress.state + " " : "") + (customerShippingAddress.zip ? customerShippingAddress.zip + " " : "")) + "</div>" : "") + "\n " + (customerShippingAddress.country ? "<div>" + customerShippingAddress.country + "</div>" : "") + "\n " + (document.asi ? "<div>" + document.asi + "</div>" : "") + "\n </address>\n " : "") + "\n </div>\n\n <div class=\"invoice-date col-6\">\n <div class=\"row text-right\">\n <div class=\"col\">\n <strong>" + documentName + " #</strong>\n </div>\n <div class=\"col invoice-detail-right\">" + (document.no ? document.no : "") + "</div>\n </div>\n <div class=\"row text-right\">\n <div class=\"col\">\n <strong>" + (company.r_d ? company.r_d : lang["date"]) + "</strong>\n </div>\n <div class=\"col invoice-detail-right\">" + formatDate(document.d) + "</div>\n </div>\n " + (document.ty == 1 && !document.rd ? "<div class=\"row text-right\">\n <div class=\"col\">\n <strong>" + (company.r_dd ? company.r_dd : lang["due_date"]) + "</strong>\n </div>\n <div class=\"col invoice-detail-right\">\n " + (document.dd ? formatDate(document.dd) : formatDate(new Date(document.d).setDate(new Date(document.d).getDate() + parseInt(document.di)))) + "\n </div>\n </div>" : "") + "\n " + (document.pon ? "<div class=\"row text-right\">\n <div class=\"col\">\n <strong>" + (company.r_po ? company.r_po : lang["po_number"]) + "</strong>\n </div>\n <div class=\"col invoice-detail-right\">" + document.pon + "</div>\n </div>\n " : "") + "\n </div>\n </div>\n </div>\n <!-- end invoice-header -->\n <!-- begin invoice-content -->\n <div class=\"invoice-content\">\n <div class=\"table-responsive\">\n <table class=\"table table-invoice\">\n <thead>\n <tr class=\"table table-invoice\">\n <th class=\"text-left\">" + (company.r_it ? company.r_it : lang["item"]) + "</th>\n <th class=\"text-center\" width=\"15%\">" + (document.um ? document.um : company.r_q ? company.r_q : lang["quantity"]) + "</th>\n <th class=\"text-right\" width=\"15%\">" + (company.r_p ? company.r_p : lang["price"]) + "</th>\n " + (discountOnItem ? "<th class=\"text-right\" width=\"15%\">" + (company.r_dc ? company.r_dc : lang["discount"]) + "</th>" : "") + "\n <th class=\"text-right\" width=\"15%\">" + (company.r_a ? company.r_a : lang["amount"]) + "</th>\n </tr>\n </thead>\n <tbody>\n " + itemsContainer + "\n </tbody>\n </table>\n </div>\n \n <hr />\n <div class=\"row\">\n <div class=\"col-12\">\n <table class=\"table table-borderless table-small\">\n <tbody>\n <tr>\n <td class=\"d-table-cell\" rowspan=\"" + numOfRowsPaymentInstruction + "\">\n " + (paymentOn ? paymentInstructionDetails : "") + "\n </td>\n <td class=\"text-right\" width=\"25%\">" + (company.r_sb ? company.r_sb : lang["subtotal"]) + "</td>\n <td class=\"text-right\" width=\"25%\">" + FormatCurrency(document.st, company.cr, company.la, company.cf) + "</td>\n </tr>\n " + (document.dc ? "<tr>\n <td class=\"text-right\" width=\"25%\">" + ((company.r_dc ? company.r_dc : lang["discount"]) + (document.dcpo && document.dcp ? " (" + document.dcp + "%)" : "")) + "</td>\n <td class=\"text-right\" width=\"25%\">" + ("(" + FormatCurrency(document.dc, company.cr, company.la, company.cf) + ")") + "</td>\n </tr>" : "") + "\n " + (document.sp && !document.sntx ? "<tr>\n <td class=\"text-right\" width=\"25%\">" + (company.r_sp ? company.r_sp : lang["shipping"]) + "</td>\n <td class=\"text-right\" width=\"25%\">" + FormatCurrency(document.sp, company.cr, company.la, company.cf) + "</td>\n </tr>" : "") + "\n " + (document.tx != 0 ? "<tr>\n <td class=\"text-right\" width=\"25%\">" + (taxName1 + taxIncluded1 + "(" + document.tp + "%)") + "</td>\n <td class=\"text-right\" width=\"25%\">" + ((document.t1d ? "(" : "") + FormatCurrency(document.tx, company.cr, company.la, company.cf) + (document.t1d ? ")" : "")) + "</td>\n </tr>" : "") + "\n " + (document.ttx && document.tx2 != 0 ? "<tr>\n <td class=\"text-right\" width=\"25%\">" + (taxName2 + taxIncluded2 + "(" + document.tp2 + "%)") + "</td>\n <td class=\"text-right\" width=\"25%\">" + ((document.t2d ? "(" : "") + FormatCurrency(document.tx2, company.cr, company.la, company.cf) + (document.t2d ? ")" : "")) + "</td>\n </tr>" : "") + "\n " + (document.sp && document.sntx ? "<tr>\n <td class=\"text-right\" width=\"25%\">" + (company.r_sp ? company.r_sp : lang["shipping"]) + "</td>\n <td class=\"text-right\" width=\"25%\">" + FormatCurrency(document.sp, company.cr, company.la, company.cf) + "</td>\n </tr>" : "") + "\n " + (document.ti ? "<tr>\n <td class=\"text-right\" width=\"25%\" style=\"border-top: 1px solid #ddd\">" + (company.r_n ? company.r_n : lang["net"]) + "</td>\n <td class=\"text-right\" width=\"25%\" style=\"border-top: 1px solid #ddd\">" + FormatCurrency(document.tt - (document.tx || 0) - (document.tx2 || 0), company.cr, company.la, company.cd) + "</td>\n </tr>" : "") + "\n " + (document.ty == 1 || document.ty !== 1 && (document.t1d || document.ttx && document.tx2 > 0 && document.t2d) ? "<tr>\n <td class=\"text-right\" width=\"25%\" style=\"border-bottom: 1px solid #ddd\">" + (company.r_tt ? company.r_tt : lang["total"]) + "</td>\n <td class=\"text-right\" width=\"25%\" style=\"border-bottom: 1px solid #ddd\">" + FormatCurrency(document.tt ? document.tt : 0, company.cr, company.la, company.cf) + "</td>\n </tr>" : "") + "\n " + (document.sca ? "<tr>\n <td class=\"text-right\" width=\"25%\">" + lang["credit_card_surcharge"] + "</td>\n <td class=\"text-right\" width=\"25%\">" + FormatCurrency(document.sca, company.cr, company.la, company.cf) + "</td>\n </tr>" : "") + "\n " + (document.ty == 1 && document.pma && document.pm ? paymentContainer : "") + "\n </tbody>\n </table>\n </div>\n </div>\n </div>\n <!-- end invoice-content -->\n\n <!-- begin invoice price -->\n <div class=\"invoice-price\">\n <div class=\"invoice-price-left\">\n <div class=\"invoice-price-row\"></div>\n </div>\n <div class=\"invoice-price-right\">\n <small>" + (document.ty == 1 ? company.r_ad ? company.r_ad : lang["amount_due"] : company.r_gt ? company.r_gt : lang["grand_total"]) + "</small>\n <span class=\"f-w-600\">" + (isDeposit ? FormatCurrency(document.depositAmount, company.cr, company.la, company.cf) : FormatCurrency(document.ad, company.cr, company.la, company.cf)) + "</span>\n </div>\n </div>\n <!-- end invoice price -->\n\n <div class=\"invoice-body\">\n\n <!-- begin invoice-note -->\n " + (document.noteHtml ? "<div class=\"mt-1\">\n " + document.noteHtml + "\n </div>" : (document.nt ? "<div class=\"mt-1\">\n <h2>" + (company.r_nt ? company.r_nt : lang["note"]) + "</h2>\n " + nl2br(document.nt) + "\n </div>" : "") + "\n " + (document.tc ? "<div class=\"mt-1\">\n <h2>" + (company.r_tc ? company.r_tc : lang["terms"]) + "</h2>\n " + nl2br(document.tc) + "\n </div>" : "")) + "\n <!-- end invoice-note -->\n \n <!--- begin company signature -->\n <!-- begin invoice-signature -->\n " + (document.sd || document.cs || customerSignBase64 ? "<div>" + (company.r_bs || lang["by_signing"] || "") + "</div>\n <div class=\"row mt-1\">\n " + (signatureContainer || clientSignature || "") + "\n " + (signatureContainer && clientSignature || "") + "\n </div>" : "") + "\n <!-- end invoice-signature-->\n\n <!-- begin invoice attachments -->\n\n " + (attachments && attachments.length > 0 ? "<div style=\"text-align: center\">\n " + attachmentContainer + "\n </div>" : "") + "\n <!-- end invoice attachment -->\n </div>\n </div>\n\n" + (!removeHtmlStandardDom ? "</body></html>" : "") + "\n";
2210
2220
  return {
2211
2221
  html: html,
2212
2222
  timeZone: timeZone,
@@ -2221,7 +2231,7 @@ var invoiceHtml = (function (_ref) {
2221
2231
  lang = _ref$lang === void 0 ? defaultLang : _ref$lang,
2222
2232
  referral = _ref.referral,
2223
2233
  _ref$companyLogoBase = _ref.companyLogoBase,
2224
- companyLogoBase = _ref$companyLogoBase === void 0 ? 'https://s3.amazonaws.com/bookipi/' : _ref$companyLogoBase,
2234
+ companyLogoBase = _ref$companyLogoBase === void 0 ? "https://s3.amazonaws.com/bookipi/" : _ref$companyLogoBase,
2225
2235
  _ref$isDeposit = _ref.isDeposit,
2226
2236
  isDeposit = _ref$isDeposit === void 0 ? false : _ref$isDeposit,
2227
2237
  _ref$isOffline = _ref.isOffline,
@@ -2242,10 +2252,11 @@ var invoiceHtml = (function (_ref) {
2242
2252
  }).html;
2243
2253
  });
2244
2254
 
2245
- var docTypeMapping = new Map([[0, 'estimate'], [1, 'invoice'], [2, 'credit_note'], [3, 'delivery_note'], [4, 'purchase_order'], ['estimate', 0], ['invoice', 1], ['credit_note', 2], ['delivery_note', 3], ['purchase_order', 4]]);
2255
+ var docTypeMapping = new Map([[0, "estimate"], [1, "invoice"], [2, "credit_note"], [3, "delivery_note"], [4, "purchase_order"], ["estimate", 0], ["invoice", 1], ["credit_note", 2], ["delivery_note", 3], ["purchase_order", 4]]);
2246
2256
 
2247
2257
  var ItemCompat = function ItemCompat(item) {
2248
- var mapping = new Map([['name', 'n'], ['description', 'dsc'], ['price', 'p'], ['quantity', 'q'], ['tax', 'tx'], ['tax2', 'tx2'], ['discount', 'dc'], ['total', 't']]);
2258
+ if (item == null) return null;
2259
+ var mapping = new Map([["name", "n"], ["description", "dsc"], ["price", "p"], ["quantity", "q"], ["tax", "tx"], ["tax2", "tx2"], ["discount", "dc"], ["total", "t"]]);
2249
2260
  return Object.fromEntries(Object.entries(item).map(function (_ref) {
2250
2261
  var k = _ref[0],
2251
2262
  v = _ref[1];
@@ -2254,7 +2265,8 @@ var ItemCompat = function ItemCompat(item) {
2254
2265
  };
2255
2266
 
2256
2267
  var PaymentCompat = function PaymentCompat(payment) {
2257
- var mapping = new Map([['amount', 'a'], ['date', 'd'], ['chargeId', 'cid'], ['surchargeRate', 'sr'], ['last4', 'l'], ['brand', 'b']]);
2268
+ if (payment == null) return null;
2269
+ var mapping = new Map([["amount", "a"], ["date", "d"], ["chargeId", "cid"], ["surchargeRate", "sr"], ["last4", "l"], ["brand", "b"]]);
2258
2270
  return Object.fromEntries(Object.entries(payment).map(function (_ref2) {
2259
2271
  var k = _ref2[0],
2260
2272
  v = _ref2[1];
@@ -2263,7 +2275,8 @@ var PaymentCompat = function PaymentCompat(payment) {
2263
2275
  };
2264
2276
 
2265
2277
  var CustomerCompat = function CustomerCompat(customer) {
2266
- var mapping = new Map([['companyName', 'c'], ['firstName', 'f'], ['lastName', 'l'], ['email', 'e'], ['additionalInfo', 'ai'], ['address1', 'a1'], ['address2', 'a2'], ['address3', 'a3'], ['shippingAddress1', 'sa1'], ['shippingAddress2', 'sa2'], ['shippingAddress3', 'sa3'], ['mobile', 'mb'], ['phone', 'ph'], ['TFN', 'tfn'], ['trashed', 'tr'], ['trashedDate', 'trd'], ['company', 'ui'], ['fax', 'fax']]);
2278
+ if (customer == null) return null;
2279
+ var mapping = new Map([["companyName", "c"], ["firstName", "f"], ["lastName", "l"], ["email", "e"], ["additionalInfo", "ai"], ["address1", "a1"], ["address2", "a2"], ["address3", "a3"], ["shippingAddress1", "sa1"], ["shippingAddress2", "sa2"], ["shippingAddress3", "sa3"], ["mobile", "mb"], ["phone", "ph"], ["TFN", "tfn"], ["trashed", "tr"], ["trashedDate", "trd"], ["company", "ui"], ["fax", "fax"]]);
2267
2280
  return Object.fromEntries(Object.entries(customer).map(function (_ref3) {
2268
2281
  var k = _ref3[0],
2269
2282
  v = _ref3[1];
@@ -2272,7 +2285,8 @@ var CustomerCompat = function CustomerCompat(customer) {
2272
2285
  };
2273
2286
 
2274
2287
  var InvoiceCompat = function InvoiceCompat(doc) {
2275
- var mapping = new Map([['address1', 'a1'], ['address2', 'a2'], ['address3', 'a3'], ['customer', ['cu', CustomerCompat]], ['items', ['it', ItemCompat]], ['taxInclusive', 'ti'], ['taxPercentage', 'tp'], ['taxDeductible', 't1d'], ['taxInclusive', 'ti'], ['taxName', 'tn'], ['twoTaxes', 'ttx'], ['taxName2', 'tn2'], ['taxPercentage2', 'tp2'], ['taxDeductible2', 't2d'], ['taxAmount', 'tx'], ['tax2', 'tx2'], ['taxDeductibleInc2', 't2di'], ['shippingCost', 'sp'], ['shippingNonTax', 'sntx'], ['total', 'tt'], ['subTotal', 'st'], ['amountDue', 'ad'], ['discount', 'dc'], ['discountOption', 'dco'], ['discountPercentage', 'dcp'], ['discountPercentageOption', 'dcpo'], ['payments', ['pm', PaymentCompat]], ['timeZone', 'tz'], ['type', 'ty'], ['date', 'd'], ['dueDate', 'dd'], ['dueIn', 'di'], ['removeDueDate', 'rd'], ['purchaseOrderNumber', 'pon'], ['note', 'nt']]);
2288
+ if (doc == null) return null;
2289
+ var mapping = new Map([["address1", "a1"], ["address2", "a2"], ["address3", "a3"], ["customer", ["cu", CustomerCompat]], ["items", ["it", ItemCompat]], ["taxInclusive", "ti"], ["taxPercentage", "tp"], ["taxDeductible", "t1d"], ["taxInclusive", "ti"], ["taxName", "tn"], ["twoTaxes", "ttx"], ["taxName2", "tn2"], ["taxPercentage2", "tp2"], ["taxDeductible2", "t2d"], ["taxAmount", "tx"], ["tax2", "tx2"], ["taxDeductibleInc2", "t2di"], ["shippingCost", "sp"], ["shippingNonTax", "sntx"], ["total", "tt"], ["subTotal", "st"], ["amountDue", "ad"], ["discount", "dc"], ["discountOption", "dco"], ["discountPercentage", "dcp"], ["discountPercentageOption", "dcpo"], ["payments", ["pm", PaymentCompat]], ["timeZone", "tz"], ["type", "ty"], ["date", "d"], ["dueDate", "dd"], ["dueIn", "di"], ["removeDueDate", "rd"], ["purchaseOrderNumber", "pon"], ["note", "nt"]]);
2276
2290
  return Object.fromEntries(Object.entries(doc).map(function (_ref4) {
2277
2291
  var k = _ref4[0],
2278
2292
  v = _ref4[1];
@@ -2295,7 +2309,8 @@ var InvoiceCompat = function InvoiceCompat(doc) {
2295
2309
  };
2296
2310
 
2297
2311
  var TemplateCompat = function TemplateCompat(template) {
2298
- var mapping = new Map([['billTo', 'r_bt'], ['shipTo', 'r_st'], ['item', 'r_it'], ['quantity', 'r_q'], ['price', 'r_p'], ['amount', 'r_a'], ['date', 'r_d'], ['dueDate', 'r_dd'], ['postCode', 'r_po'], ['shipping', 'r_sp'], ['included', 'r_ic'], ['subtotal', 'r_sb'], ['net', 'r_n'], ['total', 'r_tt'], ['amountDue', 'r_ad'], ['grandTotal', 'r_gt'], ['payInt', 'r_pi'], ['note', 'r_nt'], ['Tos', 'r_tc'], ['bySigning', 'r_bs']]);
2312
+ if (template == null) return null;
2313
+ var mapping = new Map([["billTo", "r_bt"], ["shipTo", "r_st"], ["item", "r_it"], ["quantity", "r_q"], ["price", "r_p"], ["amount", "r_a"], ["date", "r_d"], ["dueDate", "r_dd"], ["postCode", "r_po"], ["shipping", "r_sp"], ["included", "r_ic"], ["subtotal", "r_sb"], ["net", "r_n"], ["total", "r_tt"], ["amountDue", "r_ad"], ["grandTotal", "r_gt"], ["payInt", "r_pi"], ["note", "r_nt"], ["Tos", "r_tc"], ["bySigning", "r_bs"]]);
2299
2314
  return Object.fromEntries(Object.entries(template).map(function (_ref5) {
2300
2315
  var k = _ref5[0],
2301
2316
  v = _ref5[1];
@@ -2304,7 +2319,8 @@ var TemplateCompat = function TemplateCompat(template) {
2304
2319
  };
2305
2320
 
2306
2321
  var DocumentDefinitionCompat = function DocumentDefinitionCompat(dd) {
2307
- var docTypeMapping = new Map([[0, 'estimate'], [1, 'invoice'], [2, 'credit_note'], [3, 'delivery_note'], [4, 'purchase_order'], ['estimate', 0], ['invoice', 1], ['credit_note', 2], ['delivery_note', 3], ['purchase_order', 4]]);
2322
+ if (dd == null) return null;
2323
+ var docTypeMapping = new Map([[0, "estimate"], [1, "invoice"], [2, "credit_note"], [3, "delivery_note"], [4, "purchase_order"], ["estimate", 0], ["invoice", 1], ["credit_note", 2], ["delivery_note", 3], ["purchase_order", 4]]);
2308
2324
  var docs = [];
2309
2325
  var ms = [];
2310
2326
  var nt = [];
@@ -2336,8 +2352,9 @@ var DocumentDefinitionCompat = function DocumentDefinitionCompat(dd) {
2336
2352
  };
2337
2353
 
2338
2354
  var CompanyCompat = function CompanyCompat(doc) {
2339
- var mapping = new Map([['dateFormat', 'df'], ['timeZone', 'tz'], ['language', 'la'], ['TFN', 'tfn'], ['paymentInstruction1', 'p1'], ['paymentInstruction2', 'p2'], ['paymentInstruction3', 'p3'], ['invoiceColor', 'ct'], ['taxPercentage', 'tp'], ['taxDeductible', 't1d'], ['taxInclusive', 'ti'], ['taxName', 'tn'], ['twoTaxes', 'ttx'], ['taxName2', 'tn2'], ['taxPercentage2', 'tp2'], ['taxDeductible2', 't2d'], ['name', 'c'], ['hasPaymentInstruction', 'pi'], ['additionalInfo', 'ai'], ['phoneNumber', 'ph'], ['displayEmail', 'de'], ['email', 'e'], ['logoExists', 'lg']]);
2340
- var rootMapping = new Map([['template', TemplateCompat], ['documentDefinitions', DocumentDefinitionCompat]]);
2355
+ if (doc == null) return null;
2356
+ var mapping = new Map([["dateFormat", "df"], ["timeZone", "tz"], ["language", "la"], ["TFN", "tfn"], ["paymentInstruction1", "p1"], ["paymentInstruction2", "p2"], ["paymentInstruction3", "p3"], ["invoiceColor", "ct"], ["taxPercentage", "tp"], ["taxDeductible", "t1d"], ["taxInclusive", "ti"], ["taxName", "tn"], ["twoTaxes", "ttx"], ["taxName2", "tn2"], ["taxPercentage2", "tp2"], ["taxDeductible2", "t2d"], ["name", "c"], ["hasPaymentInstruction", "pi"], ["additionalInfo", "ai"], ["phoneNumber", "ph"], ["displayEmail", "de"], ["email", "e"], ["logoExists", "lg"]]);
2357
+ var rootMapping = new Map([["template", TemplateCompat], ["documentDefinitions", DocumentDefinitionCompat]]);
2341
2358
  var newCompany = Object.fromEntries(Object.entries(doc).map(function (_ref6) {
2342
2359
  var k = _ref6[0],
2343
2360
  v = _ref6[1];
@@ -2375,7 +2392,7 @@ var CompanyCompat = function CompanyCompat(doc) {
2375
2392
  var ret = doc.documentDefinitions.map(function (def, idx) {
2376
2393
  var enabled = false;
2377
2394
 
2378
- if (typeof def.enabled === 'undefined') {
2395
+ if (typeof def.enabled === "undefined") {
2379
2396
  if (def.name) {
2380
2397
  enabled = true;
2381
2398
  }