@bookipi/htmlgenerator 1.1.4 → 1.1.5
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 +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +2 -2
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1668,7 +1668,7 @@ var invoiceHtmlWithDetails = (function (_ref) {
|
|
|
1668
1668
|
var attachments = invoice.attachments || [];
|
|
1669
1669
|
var customerSignBase64 = invoice.customerSignBase64;
|
|
1670
1670
|
var signatureBase64 = invoice.signatureBase64;
|
|
1671
|
-
var logoPath = invoice.logoPath || company.
|
|
1671
|
+
var logoPath = invoice.logoPath || company.lg && "" + companyLogoBase + company._id + "/logo.jpg?" + new Date().getTime();
|
|
1672
1672
|
var documentName = null;
|
|
1673
1673
|
|
|
1674
1674
|
if (company.doc && company.doc[document.ty] && company.doc[document.ty].n) {
|
|
@@ -1897,7 +1897,7 @@ var TemplateCompat = function TemplateCompat(template) {
|
|
|
1897
1897
|
};
|
|
1898
1898
|
|
|
1899
1899
|
var CompanyCompat = function CompanyCompat(doc) {
|
|
1900
|
-
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']]);
|
|
1900
|
+
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']]);
|
|
1901
1901
|
var rootMapping = new Map([['template', TemplateCompat]]);
|
|
1902
1902
|
var newCompany = Object.fromEntries(Object.entries(doc).map(function (_ref6) {
|
|
1903
1903
|
var k = _ref6[0],
|