shareneus 1.5.66 → 1.5.67

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.
@@ -25,7 +25,7 @@ function GetInvoicePDF(invoiceData, entityData, headerConfig, printConfig, taxCo
25
25
  invPrint = (0, unified_invoice_pdf_service_1.GetInvoicePrint)(invoicePrintData, numberofCopies, withPass, options.Size, options.MoreDiscDetails, options.Orientation);
26
26
  }
27
27
  else {
28
- invPrint = (0, invoice_pdf_service_1.CreateInvoicePDFService)(invoiceData, printConfigData, numberofCopies);
28
+ invPrint = (0, invoice_pdf_service_1.CreateInvoicePDFService)(invoicePrintData, printConfigData, numberofCopies);
29
29
  }
30
30
  return invPrint;
31
31
  }
@@ -20,7 +20,7 @@ const DEFAULT_PAGE_MARGINS = [20, 20, 20, 20];
20
20
  const DEFAULT_HEADER_POSITION = 'Left';
21
21
  const DEFAULT_LOGO_POSITION = 'Left';
22
22
  function resolvePageOrientation(value) {
23
- return value === 'landscape' ? 'landscape' : DEFAULT_PAGE_ORIENTATION;
23
+ return (value === null || value === void 0 ? void 0 : value.toLowerCase()) === 'landscape' ? 'landscape' : DEFAULT_PAGE_ORIENTATION;
24
24
  }
25
25
  function deriveHeaderDataFromInvoice(PDFInvoiceData) {
26
26
  const entity = (PDFInvoiceData === null || PDFInvoiceData === void 0 ? void 0 : PDFInvoiceData.Entity) || {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shareneus",
3
- "version": "1.5.66",
3
+ "version": "1.5.67",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",