shareneus 1.1.8 → 1.1.9
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.
|
@@ -676,7 +676,7 @@ class InvoiceprintService {
|
|
|
676
676
|
return headersNames;
|
|
677
677
|
}
|
|
678
678
|
static CommonTotalDetails(ROPrintData, index, numberofCopies, withPass, isAuto) {
|
|
679
|
-
console.log('ROPrintData', ROPrintData);
|
|
679
|
+
// console.log('ROPrintData', ROPrintData);
|
|
680
680
|
let CommonDetails = [
|
|
681
681
|
// SharedPDFService.GetFinalTotalDetails(ROPrintData.CustLaborTotalAfterDisc, ROPrintData.CustLaborDiscTotal, ROPrintData.CustLaborCGST,
|
|
682
682
|
// ROPrintData.CustLaborSGST, ROPrintData.CustLaborIGST, ROPrintData.CustPartIGST, ROPrintData.ShowIGST, ROPrintData.ShowTaxColumn,
|
|
@@ -53,9 +53,7 @@ class InvPrintService {
|
|
|
53
53
|
}
|
|
54
54
|
InvoicePrintData.Consolidate = ConsolidateGST;
|
|
55
55
|
InvoicePrintData.ShowDiscountColumn = false;
|
|
56
|
-
console.log(ForInsurance, ConsolidateGST);
|
|
57
56
|
if (!ForInsurance && !ConsolidateGST) {
|
|
58
|
-
console.log(shared_print_service_1.PrintSharedService.CheckItemIndexWithDisc(InvoicePrintData));
|
|
59
57
|
if (shared_print_service_1.PrintSharedService.CheckItemIndexWithDisc(InvoicePrintData) !== -1) {
|
|
60
58
|
// InvoicePrintData.ShowDiscountColumn = (InvoicePrintData.Settings.DiscLvl === 'ITM' || InvoicePrintData.Settings.DiscLvl === 'RECITM') ? true : false;
|
|
61
59
|
InvoicePrintData.ShowDiscountColumn = true;
|
|
@@ -156,7 +156,7 @@ class InvoiceLandscapePdfService {
|
|
|
156
156
|
];
|
|
157
157
|
}
|
|
158
158
|
static PreparesparePartsTable(ROPrintData) {
|
|
159
|
-
console.log('ROPrintData', ROPrintData);
|
|
159
|
+
// console.log('ROPrintData', ROPrintData);
|
|
160
160
|
let List = [];
|
|
161
161
|
if (ROPrintData.Entity.Body === 1) {
|
|
162
162
|
for (let i = 0; i < ROPrintData.PrintInfo.length; i++) {
|
|
@@ -330,7 +330,7 @@ class InvoicePortraitPrintService {
|
|
|
330
330
|
};
|
|
331
331
|
}
|
|
332
332
|
static GetWidths(ShowTaxColumn, printOptions) {
|
|
333
|
-
if (ShowTaxColumn && printOptions.
|
|
333
|
+
if (ShowTaxColumn && printOptions.ShowTax !== 'NO') {
|
|
334
334
|
if (printOptions.Disc === 'NO') {
|
|
335
335
|
return [16, '*', 40, 45, 25, 20, 20, 45, 45, 30, 50];
|
|
336
336
|
}
|
|
@@ -375,7 +375,7 @@ class InvoicePortraitPrintService {
|
|
|
375
375
|
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(item.Disc), alignment: 'right', style: ['headerstyle'], });
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
|
-
if (ShowTaxColumn && printOptions.
|
|
378
|
+
if (ShowTaxColumn && printOptions.ShowTax !== 'NO') {
|
|
379
379
|
let Tax = (_b = item.TaxName) === null || _b === void 0 ? void 0 : _b.split('%');
|
|
380
380
|
dataRow.push({ text: tr_utils_1.TrUtils.IsNull(Tax) ? '' : Tax[0], alignment: 'right', style: ['headerstyle'], });
|
|
381
381
|
}
|
|
@@ -411,7 +411,7 @@ class InvoicePortraitPrintService {
|
|
|
411
411
|
if (printOptions.Disc !== 'NO') {
|
|
412
412
|
HeadingNames[0].splice(9, 0, { text: (printOptions.Disc === 'PERC') ? 'Disc(%)' : 'Disc(Rs)', style: 'tableheader1', Field: 'Disc' });
|
|
413
413
|
}
|
|
414
|
-
if (printOptions.
|
|
414
|
+
if (printOptions.ShowTax !== 'NO') {
|
|
415
415
|
HeadingNames[0].splice(10, 0, { text: (SType === 'Intra') ? 'GST(%)' : 'IGST(%)', style: 'tableheader1', Field: 'TaxAmount', alignment: 'right' });
|
|
416
416
|
}
|
|
417
417
|
}
|
|
@@ -370,6 +370,11 @@ class PrintSharedService {
|
|
|
370
370
|
}
|
|
371
371
|
});
|
|
372
372
|
}
|
|
373
|
+
else if (!tr_utils_1.TrUtils.IsNull(PrintInfo.Items)) {
|
|
374
|
+
PartDiscItem = PrintInfo.Items.findIndex((Item) => {
|
|
375
|
+
return !tr_utils_1.TrUtils.IsZero(Item.Disc);
|
|
376
|
+
});
|
|
377
|
+
}
|
|
373
378
|
if (LaborDiscItem !== -1 || PartDiscItem !== -1) {
|
|
374
379
|
return PrintInfo;
|
|
375
380
|
}
|