shareneus 1.6.77 → 1.6.79
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: '
|
|
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 =
|
|
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);
|