shareneus 1.6.77 → 1.6.78

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.
@@ -101,6 +101,7 @@ function GetPartyDetails(Entity, InvoicePDFData) {
101
101
  [{
102
102
  // marginTop: 4,
103
103
  marginLeft: 5,
104
+ marginBottom: 5,
104
105
  // stack: [{ text: 'UHID : ' + InvoicePDFData.Customer.Code, style: ['headerstyle'] },
105
106
  // { text: 'Name : ' + InvoicePDFData.Customer.Name, style: ['headerstyle'] },
106
107
  // { text: 'Doctor : ' + InvoicePDFData.Name, style: ['headerstyle'] }],
@@ -119,7 +120,7 @@ function GetPartyDetails(Entity, InvoicePDFData) {
119
120
  table: {
120
121
  lineHeight: 0.5,
121
122
  body: [
122
- [{ text: 'Bill No', style: ['headerstyle'] }, { text: ':', style: ['headerstyle'] }, { text: InvoicePDFData._id, style: ['headerstyle'] }],
123
+ [{ text: 'Receipt No', style: ['headerstyle'] }, { text: ':', style: ['headerstyle'] }, { text: InvoicePDFData._id, style: ['headerstyle'] }],
123
124
  [{ text: 'Date', style: ['headerstyle'] }, { text: ':', style: ['headerstyle'] }, { text: InvoicePDFData.CrDate, style: ['headerstyle'] }],
124
125
  // [{text:'Doctor', style: ['headerstyle']}, {text:':', style: ['headerstyle']}, {text: InvoicePDFData.Name, style: ['headerstyle']}]
125
126
  ]
@@ -228,7 +229,8 @@ function buildPdfDocDefinition(PDFInvoiceData = {}, PrintConfigData = {}, printC
228
229
  var _a, _b;
229
230
  // const invoiceHeaderContent = buildDocumentHeaderSection(PrintConfig, PDFInvoiceData);
230
231
  const invoiceHeaderContent = [GetMainHeaderInfo(PDFInvoiceData === null || PDFInvoiceData === void 0 ? void 0 : PDFInvoiceData.Entity, PrintConfig === null || PrintConfig === void 0 ? void 0 : PrintConfig.Image, (_a = PrintConfig === null || PrintConfig === void 0 ? void 0 : PrintConfig.headerStyles) === null || _a === void 0 ? void 0 : _a.OrgNameClr, (_b = PrintConfig === null || PrintConfig === void 0 ? void 0 : PrintConfig.headerStyles) === null || _b === void 0 ? void 0 : _b.AdrsClr, PDFInvoiceData)];
231
- const invoiceHeadingContent = (0, pdf_header_footer_section_1.buildDocumentHeadingSection)(PDFInvoiceData, PrintConfig, availableWidth);
232
+ // const invoiceHeadingContent = buildDocumentHeadingSection(PDFInvoiceData, PrintConfig, availableWidth);
233
+ const invoiceHeadingContent = [{}];
232
234
  // const invoicePartyDetailsContent = buildInvoicePartyDetailsSection(PDFInvoiceData, PrintConfig?.Customer, PrintConfig);
233
235
  const invoicePartyDetailsContent = [GetPartyDetails(PDFInvoiceData === null || PDFInvoiceData === void 0 ? void 0 : PDFInvoiceData.Entity, PDFInvoiceData)];
234
236
  const invoiceTotalsAndNotesContent = (0, pdf_totals_section_1.buildInvoiceTotalsAndNotesSection)(PDFInvoiceData, availableWidth, PrintConfigData);
@@ -81,6 +81,10 @@ function buildPostTotalsInfoSection(data) {
81
81
  const termsText = (0, pdf_shared_utils_1.firstValue)(data.terms);
82
82
  const leftStack = [
83
83
  {
84
+ stack: ['* Goods once sold will not be taken back or exchanged',
85
+ '* PLEASE GET YOUR MEDICINES CHECKED BY YOUR DOCTOR BEFORE USE *'],
86
+ fontSize: 7,
87
+ marginLeft: 5,
84
88
  columns: [
85
89
  { width: 'auto', text: 'In Words :', bold: true, fontSize: 9, color: '#111827' },
86
90
  { width: '*', text: inWords, bold: true, fontSize: 9, color: '#111827' }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shareneus",
3
- "version": "1.6.77",
3
+ "version": "1.6.78",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",