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