MT#5879 Allow to skip empty invoices generation with option no_empty.

(cherry picked from commit ae8515d6024df6ac01140a1fd15f209fbcdab33c)
(cherry picked from commit a36a835749be78cafefb4f8a408b98ec6b0565f4)

Conflicts:
	share/tools/generate_invoices.pl
MT#5879 Remove Country processing warning.

(cherry picked from commit 9d80cba5fd51314bd4909505fc09ce05aa232080)
(cherry picked from commit 78a6d8dd96649f969bd9342e418e6c18ef0ce4ff)

Conflicts:
	lib/NGCP/Panel/Utils/Invoice.pm
MT#5879 Fix generation for ampersands;

(cherry picked from commit 00c430608881b96d937fa598ae028b5e72586d4a)

Conflicts:
	share/tools/generate_invoices.pl

(cherry picked from commit d9d85a5db029c59fe578249da5461d5b8d03fd62)
MT#5879 Not all characters should be quoted

(cherry picked from commit 1a1362db7e0685864cbe33b1f60c46a70c7f15b2)
(cherry picked from commit f7e65e242384c157e1f010115e9071694c868ebc)
MT#8401 Add missed library for invoice data sanitize as XML.

(cherry picked from commit 068e71acfa0124fa180d80e646180db48f827df9)
MT#8401 Use common invoice data preprocessing for generation script.

(cherry picked from commit f2e983db25221c7926f22305448941c61e7e0ee6)
MT#8433 Process unrated calls.

(cherry picked from commit 8174c1fea632c8b5c8ee0853708e1f6891b74aec)

Conflicts:
	share/tools/generate_invoices.pl
MT#8433 Remove debug

(cherry picked from commit fda891a70c7dda9f04fe1a888106f8b85aba8375)

Conflicts:
	share/tools/generate_invoices.pl
MT#8433 Fix of option ttreatment in newest version.

(cherry picked from commit ee3e73d7e159b1d49c066485334848096bd57448)
MT#5879 Fix billing_mapping logic, use the latest one as actual.

(cherry picked from commit b90be26a2e6fad716c131640db2fd03c040084af)
(cherry picked from commit 54b7f0cac61af9eb313b430fab0ab908cd8b0061)

Conflicts:
	share/tools/generate_invoices.pl
MT#5879 Fix memory issue

Don't save or fetch data for all generated/sent invoices.
Fetch data one-by-one.

(cherry picked from commit a393853e65380ab2d5cf8c4a746ffb430e2652f7)

Conflicts:
	share/tools/generate_invoices.pl
MT#5879 Fix UTF-8 email send. Further fix of memory usage issue.

(cherry picked from commit 0610d530113fc23e229f36b3be847a409cf8bc04)
(cherry picked from commit 6bcca230fc5911e2a35dfb95367036b98e0e4fc9)

Conflicts:
	share/tools/generate_invoices.pl
MT#8387 Fix incorrect rounding for cents.

(cherry picked from commit e00f0182694dc7b3ab01127805e40cb715c1f7ae)