@bookipi/htmlgenerator 1.12.0-alpha2 → 1.12.0-alpha4

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.
@@ -8891,7 +8891,7 @@ var getDocumentName = function getDocumentName(_ref) {
8891
8891
  var _company$doc$document2;
8892
8892
  documentName = (_company$doc$document2 = company.doc[document.ty]) === null || _company$doc$document2 === void 0 ? void 0 : _company$doc$document2.n;
8893
8893
  } else {
8894
- if (document.ty === 1) {
8894
+ if (document.ty === 1 || document.ty === 5) {
8895
8895
  documentName = company.r_inv ? company.r_inv : defaultLang['document'];
8896
8896
  } else if (document.ty === 2) {
8897
8897
  documentName = company.r_crd ? company.r_crd : defaultLang['creditNote'];
@@ -13182,7 +13182,7 @@ var DocumentDefinitionCompat = function DocumentDefinitionCompat(dd) {
13182
13182
  };
13183
13183
  var CompanyCompat = function CompanyCompat(doc) {
13184
13184
  if (doc == null) return null;
13185
- var mapping = new Map([["dateFormat", "df"], ["timeZone", "tz"], ["language", "la"], ["businessNumber", "tfn"], ["abbrBusinessNumber", "bn"], ["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"], ["logoScale", "ls"], ["currency", "cr"], ["hasSignature", "sg"], ["currencyFormat", "cf"]]);
13185
+ var mapping = new Map([["dateFormat", "df"], ["timeZone", "tz"], ["language", "la"], ["businessNumber", "tfn"], ["abbrBusinessNumber", "bn"], ["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"], ["logoScale", "ls"], ["currency", "cr"], ["hasSignature", "sg"], ["currencyFormat", "cf"], ["country", "co"]]);
13186
13186
  var rootMapping = new Map([["template", TemplateCompat], ["documentDefinitions", DocumentDefinitionCompat]]);
13187
13187
  var newCompany = Object.fromEntries(Object.entries(doc).map(function (_ref6) {
13188
13188
  var k = _ref6[0],