@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.
package/dist/index.js CHANGED
@@ -8893,7 +8893,7 @@ var getDocumentName = function getDocumentName(_ref) {
8893
8893
  var _company$doc$document2;
8894
8894
  documentName = (_company$doc$document2 = company.doc[document.ty]) === null || _company$doc$document2 === void 0 ? void 0 : _company$doc$document2.n;
8895
8895
  } else {
8896
- if (document.ty === 1) {
8896
+ if (document.ty === 1 || document.ty === 5) {
8897
8897
  documentName = company.r_inv ? company.r_inv : defaultLang['document'];
8898
8898
  } else if (document.ty === 2) {
8899
8899
  documentName = company.r_crd ? company.r_crd : defaultLang['creditNote'];
@@ -13183,7 +13183,7 @@ var DocumentDefinitionCompat = function DocumentDefinitionCompat(dd) {
13183
13183
  };
13184
13184
  var CompanyCompat = function CompanyCompat(doc) {
13185
13185
  if (doc == null) return null;
13186
- 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"]]);
13186
+ 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"]]);
13187
13187
  var rootMapping = new Map([["template", TemplateCompat], ["documentDefinitions", DocumentDefinitionCompat]]);
13188
13188
  var newCompany = Object.fromEntries(Object.entries(doc).map(function (_ref6) {
13189
13189
  var k = _ref6[0],