shareneus 1.2.9 → 1.3.0
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.
|
@@ -12,9 +12,7 @@ class InvoiceLetterheadPdfService {
|
|
|
12
12
|
static GetInvoiceLetterheadPrint(ROPrintData, numberofCopies, isotherIndustry, withPass, isAuto, LetterHead) {
|
|
13
13
|
var contents = [];
|
|
14
14
|
if (tr_utils_1.TrUtils.IsNull(numberofCopies) || numberofCopies.length === 0) {
|
|
15
|
-
contents.push(
|
|
16
|
-
// this.CommonHeaderDetails(ROPrintData, null, isotherIndustry),
|
|
17
|
-
this.PreparesparePartsTable(ROPrintData, isAuto), this.CommonTotalDetails(ROPrintData, null, numberofCopies, withPass, isAuto));
|
|
15
|
+
contents.push(this.CommonHeaderDetails(ROPrintData, null, isotherIndustry), this.PreparesparePartsTable(ROPrintData, isAuto), this.CommonTotalDetails(ROPrintData, null, numberofCopies, withPass, isAuto));
|
|
18
16
|
}
|
|
19
17
|
else {
|
|
20
18
|
numberofCopies.forEach((text, index) => {
|
|
@@ -58,7 +56,7 @@ class InvoiceLetterheadPdfService {
|
|
|
58
56
|
}
|
|
59
57
|
static CommonHeaderDetails(ROPrintData, text, isotherIndustry) {
|
|
60
58
|
return [
|
|
61
|
-
|
|
59
|
+
this.GetMainHeaderDetails(ROPrintData.Entity, ROPrintData.HeaderName, ROPrintData.Image, ROPrintData.HColor, ROPrintData.AColor, text),
|
|
62
60
|
shared_pdf_service_1.SharedPDFService.GetCustomerAndVehicleDetails(ROPrintData._id, ROPrintData.CrDate, ROPrintData.PrDate, ROPrintData.MOut, ROPrintData.MIn, ROPrintData.Product, ROPrintData.PrintType, ROPrintData.For, ROPrintData.SurName, ROPrintData.SurPhone, ROPrintData.Type, ROPrintData.SurEmail, ROPrintData.InsComp, ROPrintData.PolNo, ROPrintData.PolType, ROPrintData.Customer, ROPrintData.IsProforma, ROPrintData.Settings, ROPrintData.Location, isotherIndustry, ROPrintData.BL, ROPrintData.ROCode, ROPrintData.TypeName, ROPrintData.AdmNo),
|
|
63
61
|
shared_pdf_service_1.SharedPDFService.GetOwnerDetails(ROPrintData.Cust, ROPrintData.Type, ROPrintData.For),
|
|
64
62
|
shared_pdf_service_1.SharedPDFService.CustomerAndVehicleDetailsAfterLine(),
|
|
@@ -68,7 +66,7 @@ class InvoiceLetterheadPdfService {
|
|
|
68
66
|
static GetMainHeaderDetails(Entity, HeaderName, Image, HColor, AColor, text) {
|
|
69
67
|
return [
|
|
70
68
|
// SharedPDFService.MainHeading(Entity.CName, Entity.Header, Image, HColor, text),
|
|
71
|
-
|
|
69
|
+
// SharedPDFService.GetMainHeader(Entity, Image, AColor, HColor, text),
|
|
72
70
|
shared_pdf_service_1.SharedPDFService.GetPrintType(HeaderName),
|
|
73
71
|
shared_pdf_service_1.SharedPDFService.HeaderAfterLine()
|
|
74
72
|
];
|
|
@@ -98,6 +98,7 @@ class InvoicePortraitPrintService {
|
|
|
98
98
|
{
|
|
99
99
|
columns: this.GetHeaderInfo(InvoicePDFData, 0)
|
|
100
100
|
},
|
|
101
|
+
{ text: InvoicePDFData.HeaderName, alignment: 'center', style: ['Receiptheader1'], marginTop: 5 }
|
|
101
102
|
]
|
|
102
103
|
}
|
|
103
104
|
], columnGap: 10
|
|
@@ -111,6 +112,7 @@ class InvoicePortraitPrintService {
|
|
|
111
112
|
{
|
|
112
113
|
columns: this.GetHeaderInfo(InvoicePDFData, 5)
|
|
113
114
|
},
|
|
115
|
+
{ text: InvoicePDFData.HeaderName, alignment: 'center', style: ['Receiptheader1'] }
|
|
114
116
|
]
|
|
115
117
|
};
|
|
116
118
|
}
|