shareneus 1.4.47 → 1.4.49
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.
- package/dist/accounting/counter-sales/auto-sales-receipt-pdf.service.js +1 -1
- package/dist/accounting/counter-sales/sales-receipt-print.service.d.ts +3 -3
- package/dist/accounting/counter-sales/sales-receipt-print.service.js +31 -30
- package/dist/accounting/credit-note/cn-print.service.d.ts +1 -2
- package/dist/accounting/credit-note/cn-print.service.js +10 -32
- package/dist/accounting/credit-note/credit-note-totals.service.d.ts +6 -6
- package/dist/accounting/credit-note/credit-note-totals.service.js +19 -19
- package/dist/accounting/debit-note/debit-note-print.service.d.ts +2 -2
- package/dist/accounting/debit-note/debit-note-print.service.js +15 -15
- package/dist/accounting/debit-note/debit-note-totals.service.d.ts +6 -6
- package/dist/accounting/debit-note/debit-note-totals.service.js +18 -18
- package/dist/accounting/invoice/hc-inv-pdf.service.d.ts +7 -7
- package/dist/accounting/invoice/hc-inv-pdf.service.js +36 -36
- package/dist/accounting/invoice/inv-pdf.service.d.ts +6 -6
- package/dist/accounting/invoice/inv-pdf.service.js +44 -44
- package/dist/accounting/invoice/inv-print.service.d.ts +3 -3
- package/dist/accounting/invoice/inv-print.service.js +24 -24
- package/dist/accounting/invoice/invoice-letterhead-pdf.service.d.ts +6 -6
- package/dist/accounting/invoice/invoice-letterhead-pdf.service.js +44 -44
- package/dist/accounting/invoice/invoice-total.service.d.ts +11 -11
- package/dist/accounting/invoice/invoice-total.service.js +54 -54
- package/dist/accounting/invoice/reports/excel/analysis-excel.service.d.ts +3 -3
- package/dist/accounting/invoice/reports/excel/analysis-excel.service.js +6 -6
- package/dist/accounting/invoice/reports/pdf/analysis-pdf.service.d.ts +4 -4
- package/dist/accounting/invoice/reports/pdf/analysis-pdf.service.js +10 -9
- package/dist/accounting/invoice/reports/pdf/category-wise-item-pdf.service.js +0 -2
- package/dist/accounting/invoice/reports/pdf/cust-wise-sales-details-pdf.service.js +0 -2
- package/dist/accounting/invoice/reports/pdf/cust-wise-sales-summary-pdf.service.js +0 -2
- package/dist/accounting/invoice/reports/pdf/item-wise-doctor-sale-pdf.service.js +0 -2
- package/dist/accounting/invoice/reports/pdf/item-wise-sales-pdf.service.js +0 -2
- package/dist/accounting/invoice/reports/pdf/manf-wise-sales-pdf.service.js +0 -2
- package/dist/accounting/invoice/reports/pdf/operator-wise-details-pdf.service.js +0 -2
- package/dist/accounting/invoice/reports/pdf/operator-wise-summary-pdf.js +0 -2
- package/dist/accounting/invoice/reports/pdf/sales-by-service-pdf.service.js +0 -2
- package/dist/accounting/invoice/reports/pdf/scheduled-drug-pdf.service.js +0 -2
- package/dist/accounting/invoice/reports/pdf/scheduled-drug-summary-pdf.service.js +0 -2
- package/dist/accounting/invoice/shared-inv-pdf.service.d.ts +6 -6
- package/dist/accounting/invoice/shared-inv-pdf.service.js +30 -30
- package/dist/accounting/payment-receive/reports/pdf/customer-balances-pdf.service.d.ts +1 -1
- package/dist/accounting/payment-receive/reports/pdf/customer-balances-pdf.service.js +3 -3
- package/dist/accounting/payment-receive/reports/pdf/payment-report-pdf.service.d.ts +4 -4
- package/dist/accounting/payment-receive/reports/pdf/payment-report-pdf.service.js +9 -11
- package/dist/appointments/appointments/appointment-total.service.d.ts +6 -6
- package/dist/appointments/appointments/appointment-total.service.js +28 -29
- package/dist/appointments/consultations/consultation-fee-receipt.service.d.ts +1 -1
- package/dist/appointments/consultations/consultation-fee-receipt.service.js +3 -3
- package/dist/appointments/consultations/consultation-full-pdf.service.d.ts +2 -2
- package/dist/appointments/consultations/consultation-full-pdf.service.js +7 -7
- package/dist/appointments/consultations/consultation-letterhead-pdf.service.d.ts +2 -3
- package/dist/appointments/consultations/consultation-letterhead-pdf.service.js +7 -15
- package/dist/appointments/consultations/consultation-pdf.service.d.ts +2 -3
- package/dist/appointments/consultations/consultation-pdf.service.js +14 -15
- package/dist/inventory/items/issue-parts-pdf.service.js +1 -1
- package/dist/inventory/items/reports/pdf/expiring-drugs-pdf.service.d.ts +1 -1
- package/dist/inventory/items/reports/pdf/expiring-drugs-pdf.service.js +4 -4
- package/dist/inventory/items/reports/pdf/item-wise-mout-details-pdf.js +0 -2
- package/dist/inventory/items/reports/pdf/item-wise-mout-summary-pdf.js +0 -2
- package/dist/inventory/items/reports/pdf/reorder-point-pdf.service.js +1 -1
- package/dist/inventory/transfer-order/transfer-order-pdf.service.js +1 -2
- package/dist/purchases/payment-made/reports/pdf/vendor-balances-pdf.service.d.ts +1 -1
- package/dist/purchases/payment-made/reports/pdf/vendor-balances-pdf.service.js +3 -3
- package/dist/purchases/purchase-order/po-totals.service.d.ts +7 -7
- package/dist/purchases/purchase-order/po-totals.service.js +24 -25
- package/dist/purchases/purchase-order/purchase-order-print.service.js +3 -3
- package/dist/purchases/purchase-order/purchase-order-totals.service.d.ts +10 -10
- package/dist/purchases/purchase-order/purchase-order-totals.service.js +27 -27
- package/dist/purchases/vendor-debit-note/vendor-debit-note-print.service.d.ts +1 -2
- package/dist/purchases/vendor-debit-note/vendor-debit-note-print.service.js +10 -32
- package/dist/sales/delivery-challan/delivery-challan-print.service.d.ts +1 -2
- package/dist/sales/delivery-challan/delivery-challan-print.service.js +9 -32
- package/dist/sales/sales/sales-print.service.d.ts +2 -2
- package/dist/sales/sales/sales-print.service.js +17 -17
- package/dist/services/est.print-service.d.ts +18 -18
- package/dist/services/est.print-service.js +132 -132
- package/dist/services/reports/pdf/next-service-date-pdf.service.js +0 -2
- package/dist/services/reports/pdf/repair-orders-pdf.service.js +0 -1
- package/dist/services/ro-print-service.d.ts +6 -6
- package/dist/services/ro-print-service.js +39 -39
- package/dist/services/separate-wo-print.service.d.ts +1 -1
- package/dist/services/separate-wo-print.service.js +4 -4
- package/dist/shared/shared-pdf.service.d.ts +0 -16
- package/dist/shared/shared-pdf.service.js +36 -34
- package/dist/shared/shared-print.service.js +3 -1
- package/dist/tasks/meetings/meeting-pdf.d.ts +4 -4
- package/dist/tasks/meetings/meeting-pdf.js +9 -9
- package/dist/tasks/tasks/task-pdf.service.d.ts +4 -4
- package/dist/tasks/tasks/task-pdf.service.js +8 -8
- package/dist/tasks/tasks/task-reports-pdf.service.d.ts +6 -6
- package/dist/tasks/tasks/task-reports-pdf.service.js +14 -14
- package/dist/utils/my-date.d.ts +6 -7
- package/dist/utils/my-date.js +16 -16
- package/dist/utils/tr-utils.d.ts +2 -3
- package/dist/utils/tr-utils.js +5 -5
- package/package.json +1 -1
- package/dist/shared/shared-pdfs/shared-pdf.service.d.ts +0 -926
- package/dist/shared/shared-pdfs/shared-pdf.service.js +0 -2608
|
@@ -46,7 +46,7 @@ class ROPrintService {
|
|
|
46
46
|
argROData = this.ReverseItemsForROPrint(argROData, isReverse);
|
|
47
47
|
let finalTotalsData = ro_totals_service_1.ROTotalsService.GetTotalsValue(argROData, TaxCodes, true, true, true, ROPrintData.Entity.Round);
|
|
48
48
|
finalTotalsData.Settings = tr_utils_1.TrUtils.Stringify(argROData.Settings);
|
|
49
|
-
finalTotalsData = this.GetDetailedInfoForItems(finalTotalsData, IncludeGST, ConsolidateGST, AsCustomerOnly, AsInsuranceOnly, TaxCodes);
|
|
49
|
+
finalTotalsData = this.GetDetailedInfoForItems(finalTotalsData, IncludeGST, ConsolidateGST, AsCustomerOnly, AsInsuranceOnly, TaxCodes, ROPrintData.Entity.DecimalsNumber);
|
|
50
50
|
if (ConsolidateGST) {
|
|
51
51
|
finalTotalsData.CustLaborTotalBeforeDisc = finalTotalsData.CustLaborAfterTax;
|
|
52
52
|
finalTotalsData.CustPartsTotalBeforeDisc = finalTotalsData.CustPartAfterTax;
|
|
@@ -62,7 +62,7 @@ class ROPrintService {
|
|
|
62
62
|
ROPrintData.VehMore = tr_utils_1.TrUtils.Stringify(argROData.VehMore);
|
|
63
63
|
ROPrintData.SANotes = tr_utils_1.TrUtils.Stringify(argROData.SANotes);
|
|
64
64
|
ROPrintData.OrdType = tr_utils_1.TrUtils.Stringify(argROData.OrdType);
|
|
65
|
-
ROPrintData = this.GetLineTotals(ROPrintData, IncludeGST, ConsolidateGST, AsCustomerOnly, AsInsuranceOnly);
|
|
65
|
+
ROPrintData = this.GetLineTotals(ROPrintData, IncludeGST, ConsolidateGST, AsCustomerOnly, AsInsuranceOnly, ROPrintData.Entity.DecimalsNumber);
|
|
66
66
|
ROPrintData.PrintInfo = this.PrepareFormatForROPrint(ROPrintData, Payee, code_enums_1.ROTypeEnum.RepairOrder);
|
|
67
67
|
ROPrintData = this.CheckAndCombineDescMPNForAR(ROPrintData.Entity.MPN, ROPrintData);
|
|
68
68
|
ROPrintData.Vehicle = shared_print_service_1.PrintSharedService.GetVehicleFromServiceAndFormatData(OriginalVehicleData);
|
|
@@ -387,12 +387,12 @@ class ROPrintService {
|
|
|
387
387
|
});
|
|
388
388
|
return Colli;
|
|
389
389
|
}
|
|
390
|
-
static GetLineTotals(ROPrintData, IncludeGST, ConsolidateGST, AsCustomerOnly, AsInsuranceOnly) {
|
|
390
|
+
static GetLineTotals(ROPrintData, IncludeGST, ConsolidateGST, AsCustomerOnly, AsInsuranceOnly, DecimalsNumber) {
|
|
391
391
|
ROPrintData.Ops.forEach((Labor) => {
|
|
392
|
-
Labor.LineTotal = this.GetLaborLineTotal(Labor, IncludeGST, AsCustomerOnly, AsInsuranceOnly);
|
|
392
|
+
Labor.LineTotal = this.GetLaborLineTotal(Labor, IncludeGST, AsCustomerOnly, AsInsuranceOnly, DecimalsNumber);
|
|
393
393
|
});
|
|
394
394
|
ROPrintData.Parts.forEach((Part) => {
|
|
395
|
-
Part.LineTotal = this.GetPartLineTotal(Part, IncludeGST, AsCustomerOnly, AsInsuranceOnly);
|
|
395
|
+
Part.LineTotal = this.GetPartLineTotal(Part, IncludeGST, AsCustomerOnly, AsInsuranceOnly, DecimalsNumber);
|
|
396
396
|
});
|
|
397
397
|
ROPrintData.Colli.forEach((Collision) => {
|
|
398
398
|
let LineTotal = 0;
|
|
@@ -408,7 +408,7 @@ class ROPrintService {
|
|
|
408
408
|
if (!tr_utils_1.TrUtils.IsNull(Collision.DtngData)) {
|
|
409
409
|
LineTotal = (0, aggregation_1.addition)(LineTotal, this.GetCollisionLaborLineTotal(Collision.DtngData, ConsolidateGST, AsCustomerOnly, AsInsuranceOnly));
|
|
410
410
|
}
|
|
411
|
-
Collision.LineTotal = tr_utils_1.TrUtils.FixPriceValue(LineTotal);
|
|
411
|
+
Collision.LineTotal = tr_utils_1.TrUtils.FixPriceValue(LineTotal, DecimalsNumber);
|
|
412
412
|
});
|
|
413
413
|
return ROPrintData;
|
|
414
414
|
}
|
|
@@ -468,7 +468,7 @@ class ROPrintService {
|
|
|
468
468
|
}
|
|
469
469
|
return Number(LineTotal);
|
|
470
470
|
}
|
|
471
|
-
static GetLaborLineTotal(LaborData, IncludeGST, AsCustomerOnly, AsInsuranceOnly) {
|
|
471
|
+
static GetLaborLineTotal(LaborData, IncludeGST, AsCustomerOnly, AsInsuranceOnly, DecimalsNumber) {
|
|
472
472
|
let LineTotal = 0;
|
|
473
473
|
if (AsCustomerOnly) {
|
|
474
474
|
if (IncludeGST) {
|
|
@@ -494,9 +494,9 @@ class ROPrintService {
|
|
|
494
494
|
LineTotal = (0, aggregation_1.addition)(LaborData.InsAfterLaborDisc, LaborData.CustAfterLaborDisc);
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
|
-
return tr_utils_1.TrUtils.FixPriceValue(LineTotal);
|
|
497
|
+
return tr_utils_1.TrUtils.FixPriceValue(LineTotal, DecimalsNumber);
|
|
498
498
|
}
|
|
499
|
-
static GetPartLineTotal(PartData, IncludeGST, AsCustomerOnly, AsInsuranceOnly) {
|
|
499
|
+
static GetPartLineTotal(PartData, IncludeGST, AsCustomerOnly, AsInsuranceOnly, DecimalsNumber) {
|
|
500
500
|
let LineTotal = 0;
|
|
501
501
|
if (AsCustomerOnly) {
|
|
502
502
|
if (IncludeGST) {
|
|
@@ -522,7 +522,7 @@ class ROPrintService {
|
|
|
522
522
|
LineTotal = (0, aggregation_1.addition)(PartData.InsAfterPartDisc, PartData.CustAfterPartDisc);
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
|
-
return tr_utils_1.TrUtils.FixPriceValue(LineTotal);
|
|
525
|
+
return tr_utils_1.TrUtils.FixPriceValue(LineTotal, DecimalsNumber);
|
|
526
526
|
}
|
|
527
527
|
static ReverseItemsForROPrint(argROData, isReverse) {
|
|
528
528
|
if (isReverse) {
|
|
@@ -567,9 +567,9 @@ class ROPrintService {
|
|
|
567
567
|
argROData.Parts = ReversedParts;
|
|
568
568
|
return argROData;
|
|
569
569
|
}
|
|
570
|
-
static GetDetailedInfoForItems(ROTotalsData, IncludeGST, ConsolidateGST, AsCustomerOnly, AsInsuranceOnly, TaxCodes) {
|
|
571
|
-
ROTotalsData.Ops = this.GetLaborPrintInfo(ROTotalsData.Ops, ConsolidateGST, IncludeGST, AsCustomerOnly, AsInsuranceOnly, TaxCodes);
|
|
572
|
-
ROTotalsData.Parts = this.GetItemsPrintInfo(tr_utils_1.TrUtils.Stringify(ROTotalsData.Parts), ConsolidateGST, IncludeGST, AsCustomerOnly, AsInsuranceOnly, TaxCodes);
|
|
570
|
+
static GetDetailedInfoForItems(ROTotalsData, IncludeGST, ConsolidateGST, AsCustomerOnly, AsInsuranceOnly, TaxCodes, DecimalsNumber) {
|
|
571
|
+
ROTotalsData.Ops = this.GetLaborPrintInfo(ROTotalsData.Ops, ConsolidateGST, IncludeGST, AsCustomerOnly, AsInsuranceOnly, TaxCodes, DecimalsNumber);
|
|
572
|
+
ROTotalsData.Parts = this.GetItemsPrintInfo(tr_utils_1.TrUtils.Stringify(ROTotalsData.Parts), ConsolidateGST, IncludeGST, AsCustomerOnly, AsInsuranceOnly, TaxCodes, DecimalsNumber);
|
|
573
573
|
if (IncludeGST && !ConsolidateGST) {
|
|
574
574
|
ROTotalsData.ShowDetailedLaborTaxInfo = this.CheckLaborTaxItemIndex(ROTotalsData.Ops) !== -1;
|
|
575
575
|
ROTotalsData.ShowDetailedPartTaxInfo = this.CheckPartTaxItemIndex(ROTotalsData.Parts) !== -1;
|
|
@@ -580,23 +580,23 @@ class ROPrintService {
|
|
|
580
580
|
}
|
|
581
581
|
return ROTotalsData;
|
|
582
582
|
}
|
|
583
|
-
static GetLaborPrintInfo(LaborList, ConsolidateGST, IncludeGST, AsCustomerOnly, AsInsuranceOnly, TaxCodes) {
|
|
583
|
+
static GetLaborPrintInfo(LaborList, ConsolidateGST, IncludeGST, AsCustomerOnly, AsInsuranceOnly, TaxCodes, DecimalsNumber) {
|
|
584
584
|
LaborList.forEach((Labor) => {
|
|
585
585
|
Labor.HSN = Labor.SAC;
|
|
586
586
|
if (AsCustomerOnly) {
|
|
587
587
|
if (IncludeGST) {
|
|
588
588
|
if (ConsolidateGST) {
|
|
589
|
-
Labor.UnPr = tr_utils_1.TrUtils.FixedTo(Labor.CustAfterTax);
|
|
589
|
+
Labor.UnPr = tr_utils_1.TrUtils.FixedTo(Labor.CustAfterTax, DecimalsNumber);
|
|
590
590
|
}
|
|
591
591
|
else {
|
|
592
|
-
Labor.UnPr = tr_utils_1.TrUtils.FixedTo(Labor.Pr);
|
|
592
|
+
Labor.UnPr = tr_utils_1.TrUtils.FixedTo(Labor.Pr, DecimalsNumber);
|
|
593
593
|
}
|
|
594
|
-
Labor.CGSTAmt = tr_utils_1.TrUtils.FixedTo(Labor.CCGST);
|
|
595
|
-
Labor.SGSTAmt = tr_utils_1.TrUtils.FixedTo(Labor.CSGST);
|
|
596
|
-
Labor.IGSTAmt = tr_utils_1.TrUtils.FixedTo(Labor.CIGST);
|
|
594
|
+
Labor.CGSTAmt = tr_utils_1.TrUtils.FixedTo(Labor.CCGST, DecimalsNumber);
|
|
595
|
+
Labor.SGSTAmt = tr_utils_1.TrUtils.FixedTo(Labor.CSGST, DecimalsNumber);
|
|
596
|
+
Labor.IGSTAmt = tr_utils_1.TrUtils.FixedTo(Labor.CIGST, DecimalsNumber);
|
|
597
597
|
}
|
|
598
598
|
else {
|
|
599
|
-
Labor.UnPr = tr_utils_1.TrUtils.FixedTo(Labor.Pr);
|
|
599
|
+
Labor.UnPr = tr_utils_1.TrUtils.FixedTo(Labor.Pr, DecimalsNumber);
|
|
600
600
|
Labor.CGSTAmt = 0;
|
|
601
601
|
Labor.SGSTAmt = 0;
|
|
602
602
|
Labor.IGSTAmt = 0;
|
|
@@ -605,17 +605,17 @@ class ROPrintService {
|
|
|
605
605
|
else if (AsInsuranceOnly) {
|
|
606
606
|
if (IncludeGST) {
|
|
607
607
|
if (ConsolidateGST) {
|
|
608
|
-
Labor.UnPr = tr_utils_1.TrUtils.FixedTo(Labor.InsAfterTax);
|
|
608
|
+
Labor.UnPr = tr_utils_1.TrUtils.FixedTo(Labor.InsAfterTax, DecimalsNumber);
|
|
609
609
|
}
|
|
610
610
|
else {
|
|
611
|
-
Labor.UnPr = tr_utils_1.TrUtils.FixedTo(Labor.AssPr);
|
|
611
|
+
Labor.UnPr = tr_utils_1.TrUtils.FixedTo(Labor.AssPr, DecimalsNumber);
|
|
612
612
|
}
|
|
613
|
-
Labor.CGSTAmt = tr_utils_1.TrUtils.FixedTo(Labor.ACGST);
|
|
614
|
-
Labor.SGSTAmt = tr_utils_1.TrUtils.FixedTo(Labor.ASGST);
|
|
615
|
-
Labor.IGSTAmt = tr_utils_1.TrUtils.FixedTo(Labor.AIGST);
|
|
613
|
+
Labor.CGSTAmt = tr_utils_1.TrUtils.FixedTo(Labor.ACGST, DecimalsNumber);
|
|
614
|
+
Labor.SGSTAmt = tr_utils_1.TrUtils.FixedTo(Labor.ASGST, DecimalsNumber);
|
|
615
|
+
Labor.IGSTAmt = tr_utils_1.TrUtils.FixedTo(Labor.AIGST, DecimalsNumber);
|
|
616
616
|
}
|
|
617
617
|
else {
|
|
618
|
-
Labor.UnPr = tr_utils_1.TrUtils.FixedTo(Labor.AssPr);
|
|
618
|
+
Labor.UnPr = tr_utils_1.TrUtils.FixedTo(Labor.AssPr, DecimalsNumber);
|
|
619
619
|
Labor.CGSTAmt = 0;
|
|
620
620
|
Labor.SGSTAmt = 0;
|
|
621
621
|
Labor.IGSTAmt = 0;
|
|
@@ -627,22 +627,22 @@ class ROPrintService {
|
|
|
627
627
|
});
|
|
628
628
|
return LaborList;
|
|
629
629
|
}
|
|
630
|
-
static GetItemsPrintInfo(Items, ConsolidateGST, IncludeGST, AsCustomerOnly, AsInsuranceOnly, TaxCodes) {
|
|
630
|
+
static GetItemsPrintInfo(Items, ConsolidateGST, IncludeGST, AsCustomerOnly, AsInsuranceOnly, TaxCodes, DecimalsNumber) {
|
|
631
631
|
Items.forEach((Item) => {
|
|
632
632
|
if (AsCustomerOnly) {
|
|
633
633
|
if (IncludeGST) {
|
|
634
634
|
if (ConsolidateGST) {
|
|
635
|
-
Item.UnPr = tr_utils_1.TrUtils.FixedTo(Item.CustAfterTaxPerItem);
|
|
635
|
+
Item.UnPr = tr_utils_1.TrUtils.FixedTo(Item.CustAfterTaxPerItem, DecimalsNumber);
|
|
636
636
|
}
|
|
637
637
|
else {
|
|
638
|
-
Item.UnPr = tr_utils_1.TrUtils.FixedTo(Item.UnPr);
|
|
638
|
+
Item.UnPr = tr_utils_1.TrUtils.FixedTo(Item.UnPr, DecimalsNumber);
|
|
639
639
|
}
|
|
640
|
-
Item.CGSTAmt = tr_utils_1.TrUtils.FixedTo(Item.CCGST);
|
|
641
|
-
Item.SGSTAmt = tr_utils_1.TrUtils.FixedTo(Item.CSGST);
|
|
642
|
-
Item.IGSTAmt = tr_utils_1.TrUtils.FixedTo(Item.CIGST);
|
|
640
|
+
Item.CGSTAmt = tr_utils_1.TrUtils.FixedTo(Item.CCGST, DecimalsNumber);
|
|
641
|
+
Item.SGSTAmt = tr_utils_1.TrUtils.FixedTo(Item.CSGST, DecimalsNumber);
|
|
642
|
+
Item.IGSTAmt = tr_utils_1.TrUtils.FixedTo(Item.CIGST, DecimalsNumber);
|
|
643
643
|
}
|
|
644
644
|
else {
|
|
645
|
-
Item.UnPr = tr_utils_1.TrUtils.FixedTo(Item.UnPr);
|
|
645
|
+
Item.UnPr = tr_utils_1.TrUtils.FixedTo(Item.UnPr, DecimalsNumber);
|
|
646
646
|
Item.CGSTAmt = 0;
|
|
647
647
|
Item.SGSTAmt = 0;
|
|
648
648
|
Item.IGSTAmt = 0;
|
|
@@ -651,17 +651,17 @@ class ROPrintService {
|
|
|
651
651
|
else if (AsInsuranceOnly) {
|
|
652
652
|
if (IncludeGST) {
|
|
653
653
|
if (ConsolidateGST) {
|
|
654
|
-
Item.UnPr = tr_utils_1.TrUtils.FixedTo(Item.InsAfterTaxPerItem);
|
|
654
|
+
Item.UnPr = tr_utils_1.TrUtils.FixedTo(Item.InsAfterTaxPerItem, DecimalsNumber);
|
|
655
655
|
}
|
|
656
656
|
else {
|
|
657
|
-
Item.UnPr = tr_utils_1.TrUtils.FixedTo(Item.AssPr);
|
|
657
|
+
Item.UnPr = tr_utils_1.TrUtils.FixedTo(Item.AssPr, DecimalsNumber);
|
|
658
658
|
}
|
|
659
|
-
Item.CGSTAmt = tr_utils_1.TrUtils.FixedTo(Item.ACGST);
|
|
660
|
-
Item.SGSTAmt = tr_utils_1.TrUtils.FixedTo(Item.ASGST);
|
|
661
|
-
Item.IGSTAmt = tr_utils_1.TrUtils.FixedTo(Item.AIGST);
|
|
659
|
+
Item.CGSTAmt = tr_utils_1.TrUtils.FixedTo(Item.ACGST, DecimalsNumber);
|
|
660
|
+
Item.SGSTAmt = tr_utils_1.TrUtils.FixedTo(Item.ASGST, DecimalsNumber);
|
|
661
|
+
Item.IGSTAmt = tr_utils_1.TrUtils.FixedTo(Item.AIGST, DecimalsNumber);
|
|
662
662
|
}
|
|
663
663
|
else {
|
|
664
|
-
Item.UnPr = tr_utils_1.TrUtils.FixedTo(Item.AssPr);
|
|
664
|
+
Item.UnPr = tr_utils_1.TrUtils.FixedTo(Item.AssPr, DecimalsNumber);
|
|
665
665
|
Item.CGSTAmt = 0;
|
|
666
666
|
Item.SGSTAmt = 0;
|
|
667
667
|
Item.IGSTAmt = 0;
|
|
@@ -457,7 +457,7 @@ export declare class WOPrintService {
|
|
|
457
457
|
};
|
|
458
458
|
layout: string;
|
|
459
459
|
};
|
|
460
|
-
static GetServiceInformation(Other: any,
|
|
460
|
+
static GetServiceInformation(Other: any, Entity: any): {
|
|
461
461
|
style: string;
|
|
462
462
|
table: {
|
|
463
463
|
widths: (string | number)[];
|
|
@@ -63,7 +63,7 @@ class WOPrintService {
|
|
|
63
63
|
columns: [
|
|
64
64
|
this.GetCustomerInformation(ROPrintData.Customer),
|
|
65
65
|
this.GetVehicleInformation(ROPrintData.Vehicle, ROPrintData.MIn),
|
|
66
|
-
this.GetServiceInformation(ROPrintData, ROPrintData.Entity
|
|
66
|
+
this.GetServiceInformation(ROPrintData, ROPrintData.Entity),
|
|
67
67
|
],
|
|
68
68
|
columnGap: 5
|
|
69
69
|
};
|
|
@@ -295,7 +295,7 @@ class WOPrintService {
|
|
|
295
295
|
layout: 'noBorders'
|
|
296
296
|
};
|
|
297
297
|
}
|
|
298
|
-
static GetServiceInformation(Other,
|
|
298
|
+
static GetServiceInformation(Other, Entity) {
|
|
299
299
|
return {
|
|
300
300
|
style: 'tableExample',
|
|
301
301
|
table: {
|
|
@@ -305,10 +305,10 @@ class WOPrintService {
|
|
|
305
305
|
['Work Type', { text: Other.OrdType, opacity: 0.9, }],
|
|
306
306
|
['RO Date', { text: Other.CrDate, opacity: 0.9, }],
|
|
307
307
|
['RO Number', { text: Other._id, opacity: 0.9, }],
|
|
308
|
-
['Printing Time', { text: my_date_1.MyDate.GetWeekDateAndTime(my_date_1.MyDate.GetDateTimeNowInUTC()), opacity: 0.9, }],
|
|
308
|
+
['Printing Time', { text: my_date_1.MyDate.GetWeekDateAndTime(my_date_1.MyDate.GetDateTimeNowInUTC(Entity.User.TZ), Entity.User.TZ), opacity: 0.9, }],
|
|
309
309
|
['Promise Date', { text: Other.PrDate, opacity: 0.9, }],
|
|
310
310
|
['Service Advisor', { text: Other.Advisor.Name, opacity: 0.9, }],
|
|
311
|
-
['Mobile Number', { text: this.GetPhone(Other.Advisor.Ph, Phone2), opacity: 0.9, }],
|
|
311
|
+
['Mobile Number', { text: this.GetPhone(Other.Advisor.Ph, Entity.Phone2), opacity: 0.9, }],
|
|
312
312
|
]
|
|
313
313
|
},
|
|
314
314
|
layout: 'noBorders'
|
|
@@ -465,22 +465,6 @@ export declare class SharedPDFService {
|
|
|
465
465
|
}[];
|
|
466
466
|
static CreateHSNTaxTable1(PartsTaxInfo: any, ShowAccParts: any, ShowIGST: any, ShowTaxColumn: any): any;
|
|
467
467
|
static CreateHSNTaxTable(PartsTaxInfo: any, ShowAccParts: any, ShowIGST: any, ShowTaxColumn: any): any;
|
|
468
|
-
static GetHCFinalTotalDetails(RecordData: any, BasicLaborTotal: any, OverAllMainLaborDiscount: any, LCGST: any, LSGST: any, LIGST: any, PIGST: any, ShowIGST: any, ShowTaxColumn: any, BasicPartsTotal: any, OverAllMainPartsDiscount: any, PCGST: any, PSGST: any, PartsTaxInfo: any, ShowAccParts: any, LaborAfterGST: any, PartsAfterGST: any, OverAllRecordDiscount: any, For: any, OverAllRecordTotal: any, Rounded: any, GrandTotal: any, ShowDetailedLaborTaxInfo: any, ShowDetailedPartTaxInfo: any, istaxable: boolean, LaborTotalTax: any, PartTotalTax: any, Consolidate: boolean, From: string, Adj: any, STotal: any, moreDiscDetails: boolean): {
|
|
469
|
-
columns: ({
|
|
470
|
-
style: string[];
|
|
471
|
-
lineHeight: number;
|
|
472
|
-
marginBottom: number;
|
|
473
|
-
width: string;
|
|
474
|
-
table: {
|
|
475
|
-
body: any;
|
|
476
|
-
};
|
|
477
|
-
layout: string;
|
|
478
|
-
} | {
|
|
479
|
-
text: string;
|
|
480
|
-
width: number;
|
|
481
|
-
})[];
|
|
482
|
-
marginLeft: number;
|
|
483
|
-
};
|
|
484
468
|
static GetFinalTotalDetails1(RecordData: any, BasicLaborTotal: any, OverAllMainLaborDiscount: any, LCGST: any, LSGST: any, LIGST: any, PIGST: any, ShowIGST: any, ShowTaxColumn: any, BasicPartsTotal: any, OverAllMainPartsDiscount: any, PCGST: any, PSGST: any, PartsTaxInfo: any, ShowAccParts: any, LaborAfterGST: any, PartsAfterGST: any, OverAllRecordDiscount: any, For: any, OverAllRecordTotal: any, Rounded: any, GrandTotal: any, ShowDetailedLaborTaxInfo: any, ShowDetailedPartTaxInfo: any, istaxable: boolean, LaborTotalTax: any, PartTotalTax: any, Consolidate: boolean, From: string, Adj: any, CustLaborTaxGroupDataByPerc: any, STotal: any, isAuto: boolean, moreDiscDetails: boolean): {
|
|
485
469
|
columns: ({
|
|
486
470
|
style: string[];
|
|
@@ -1536,40 +1536,42 @@ class SharedPDFService {
|
|
|
1536
1536
|
return [{}];
|
|
1537
1537
|
}
|
|
1538
1538
|
}
|
|
1539
|
-
static GetHCFinalTotalDetails(RecordData, BasicLaborTotal, OverAllMainLaborDiscount, LCGST, LSGST, LIGST, PIGST, ShowIGST, ShowTaxColumn
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1539
|
+
// static GetHCFinalTotalDetails(RecordData: any, BasicLaborTotal: any, OverAllMainLaborDiscount: any, LCGST: any, LSGST: any, LIGST: any, PIGST: any, ShowIGST: any, ShowTaxColumn: any,
|
|
1540
|
+
// BasicPartsTotal: any, OverAllMainPartsDiscount: any, PCGST: any, PSGST: any, PartsTaxInfo: any,
|
|
1541
|
+
// ShowAccParts: any, LaborAfterGST: any, PartsAfterGST: any, OverAllRecordDiscount: any, For: any,
|
|
1542
|
+
// OverAllRecordTotal: any, Rounded: any, GrandTotal: any, ShowDetailedLaborTaxInfo: any,
|
|
1543
|
+
// ShowDetailedPartTaxInfo: any, istaxable: boolean, LaborTotalTax: any, PartTotalTax: any, Consolidate: boolean, From: string, Adj: any, STotal: any, moreDiscDetails: boolean) {
|
|
1544
|
+
// let totalDisc: any;
|
|
1545
|
+
// let totalTax: any;
|
|
1546
|
+
// if (!Consolidate) {
|
|
1547
|
+
// totalTax = TrUtils.FixPriceValue(Number(LaborTotalTax) + Number(PartTotalTax));
|
|
1548
|
+
// if (istaxable) {
|
|
1549
|
+
// totalDisc = TrUtils.FixPriceValue(Number(OverAllMainLaborDiscount) + Number(OverAllMainPartsDiscount));
|
|
1550
|
+
// } else {
|
|
1551
|
+
// totalDisc = TrUtils.FixPriceValue(Number(OverAllMainLaborDiscount) + Number(OverAllMainPartsDiscount) + Number(OverAllRecordDiscount));
|
|
1552
|
+
// }
|
|
1553
|
+
// }
|
|
1554
|
+
// return {
|
|
1555
|
+
// columns: [
|
|
1556
|
+
// // this.GetTaxOnLabor(BasicLaborTotal, OverAllMainLaborDiscount, LCGST,
|
|
1557
|
+
// // LSGST, LIGST, ShowIGST, ShowTaxColumn, ShowDetailedLaborTaxInfo),
|
|
1558
|
+
// { text: '', width: 225 },
|
|
1559
|
+
// // {
|
|
1560
|
+
// // stack: [
|
|
1561
|
+
// // this.GetTaxOnParts(BasicPartsTotal, OverAllMainPartsDiscount, PCGST,
|
|
1562
|
+
// // PSGST, ShowAccParts, PIGST, ShowIGST, ShowTaxColumn, ShowDetailedPartTaxInfo, From),
|
|
1563
|
+
// // this.PartsTaxAmounts(PartsTaxInfo, ShowAccParts, ShowIGST,
|
|
1564
|
+
// // ShowTaxColumn)
|
|
1565
|
+
// // ]
|
|
1566
|
+
// // },
|
|
1567
|
+
// { text: '', width: 230 },
|
|
1568
|
+
// // this.GrandTotal(LaborAfterGST, PartsAfterGST, totalDisc, For, OverAllRecordTotal, Rounded, GrandTotal)
|
|
1569
|
+
// this.GrandTotal(RecordData, BasicLaborTotal, BasicPartsTotal, totalDisc, totalTax, For, OverAllRecordTotal, Rounded, GrandTotal, Adj, Consolidate, STotal, moreDiscDetails)
|
|
1570
|
+
// ]
|
|
1571
|
+
// // columnGap: 40
|
|
1572
|
+
// , marginLeft: 10
|
|
1573
|
+
// };
|
|
1574
|
+
// }
|
|
1573
1575
|
static GetFinalTotalDetails1(RecordData, BasicLaborTotal, OverAllMainLaborDiscount, LCGST, LSGST, LIGST, PIGST, ShowIGST, ShowTaxColumn, BasicPartsTotal, OverAllMainPartsDiscount, PCGST, PSGST, PartsTaxInfo, ShowAccParts, LaborAfterGST, PartsAfterGST, OverAllRecordDiscount, For, OverAllRecordTotal, Rounded, GrandTotal, ShowDetailedLaborTaxInfo, ShowDetailedPartTaxInfo, istaxable, LaborTotalTax, PartTotalTax, Consolidate, From, Adj, CustLaborTaxGroupDataByPerc, STotal, isAuto, moreDiscDetails) {
|
|
1574
1576
|
let totalDisc;
|
|
1575
1577
|
let totalTax;
|
|
@@ -19,8 +19,10 @@ class PrintSharedService {
|
|
|
19
19
|
if (tr_utils_1.TrUtils.IsNull(EntityData.User.TZ)) {
|
|
20
20
|
EntityData.User.TZ = 'Asia/Calcutta';
|
|
21
21
|
}
|
|
22
|
-
|
|
22
|
+
// MyDate.UserTimeZone = EntityData.User.TZ;
|
|
23
23
|
let Entity = {};
|
|
24
|
+
Entity.User = EntityData.User;
|
|
25
|
+
Entity.DecimalsNumber = 2;
|
|
24
26
|
if (tr_utils_1.TrUtils.IsNull(tempEntity.Settings.Common)) {
|
|
25
27
|
tempEntity.Settings.Common = {};
|
|
26
28
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare class MeetingPdfService {
|
|
2
2
|
static BodySize: number;
|
|
3
|
-
static MeetingPrintData(meetingData: any, isAgendata: boolean): void;
|
|
3
|
+
static MeetingPrintData(meetingData: any, isAgendata: boolean, EntityData: any): void;
|
|
4
4
|
static HeadingforMeeting(isAgendata: any): {
|
|
5
5
|
text: string;
|
|
6
6
|
alignment: string;
|
|
@@ -97,10 +97,10 @@ export declare class MeetingPdfService {
|
|
|
97
97
|
layout: string;
|
|
98
98
|
};
|
|
99
99
|
static GetDetailsTable(data: any): any;
|
|
100
|
-
static GetTopicsAndSubTopicsAndItemsList(meetingData: any, items: any, isAgendata: boolean): any;
|
|
101
|
-
static TopicsItemView(item: any, meetingData: any, tpcs: any): void;
|
|
100
|
+
static GetTopicsAndSubTopicsAndItemsList(meetingData: any, items: any, isAgendata: boolean, TZ: any): any;
|
|
101
|
+
static TopicsItemView(item: any, meetingData: any, tpcs: any, TZ: any): void;
|
|
102
102
|
static GetDescrption(Item: any, MeetingData: any): any;
|
|
103
|
-
static GetDueDate(Item: any, MeetingData: any): string | null;
|
|
103
|
+
static GetDueDate(Item: any, MeetingData: any, TZ: any): string | null;
|
|
104
104
|
static getAssignee(Item: any, MeetingData: any): string;
|
|
105
105
|
static GetTypeOfItem(type: any): "Task" | "Desc" | "Note";
|
|
106
106
|
static GetColorsBasedOnType(type: any): "#b30000" | "blue" | "green";
|
|
@@ -5,7 +5,7 @@ const shared_pdf_service_1 = require("../../shared/shared-pdf.service");
|
|
|
5
5
|
const my_date_1 = require("../../utils/my-date");
|
|
6
6
|
const tr_utils_1 = require("../../utils/tr-utils");
|
|
7
7
|
class MeetingPdfService {
|
|
8
|
-
static MeetingPrintData(meetingData, isAgendata) {
|
|
8
|
+
static MeetingPrintData(meetingData, isAgendata, EntityData) {
|
|
9
9
|
let Images;
|
|
10
10
|
shared_pdf_service_1.SharedPDFService.convertImgToBase64URL(meetingData.image, function (base64Img) {
|
|
11
11
|
Images = base64Img.toString();
|
|
@@ -27,7 +27,7 @@ class MeetingPdfService {
|
|
|
27
27
|
this.GetMeetingDetails(meetingData, isAgendata),
|
|
28
28
|
shared_pdf_service_1.SharedPDFService.HeaderAfterLine(),
|
|
29
29
|
{
|
|
30
|
-
stack: [{ text: 'Topics', bold: true, marginBottom: 7 }, this.GetTopicsAndSubTopicsAndItemsList(meetingData, meetingData.Items, isAgendata)], marginTop: 10
|
|
30
|
+
stack: [{ text: 'Topics', bold: true, marginBottom: 7 }, this.GetTopicsAndSubTopicsAndItemsList(meetingData, meetingData.Items, isAgendata, EntityData.User.TZ)], marginTop: 10
|
|
31
31
|
},
|
|
32
32
|
],
|
|
33
33
|
styles: shared_pdf_service_1.SharedPDFService.GetStyles()
|
|
@@ -208,7 +208,7 @@ class MeetingPdfService {
|
|
|
208
208
|
});
|
|
209
209
|
return body;
|
|
210
210
|
}
|
|
211
|
-
static GetTopicsAndSubTopicsAndItemsList(meetingData, items, isAgendata) {
|
|
211
|
+
static GetTopicsAndSubTopicsAndItemsList(meetingData, items, isAgendata, TZ) {
|
|
212
212
|
let tpcs = [];
|
|
213
213
|
meetingData.Topics.forEach((tpc, index) => {
|
|
214
214
|
let a;
|
|
@@ -219,7 +219,7 @@ class MeetingPdfService {
|
|
|
219
219
|
if (!isAgendata) {
|
|
220
220
|
items.forEach((item) => {
|
|
221
221
|
if (item.Tpc === tpc._id) {
|
|
222
|
-
this.TopicsItemView(item, meetingData, tpcs);
|
|
222
|
+
this.TopicsItemView(item, meetingData, tpcs, TZ);
|
|
223
223
|
}
|
|
224
224
|
});
|
|
225
225
|
}
|
|
@@ -233,7 +233,7 @@ class MeetingPdfService {
|
|
|
233
233
|
if (!isAgendata) {
|
|
234
234
|
items.forEach((item) => {
|
|
235
235
|
if (item.Tpc === subtpc._id) {
|
|
236
|
-
this.TopicsItemView(item, meetingData, tpcs);
|
|
236
|
+
this.TopicsItemView(item, meetingData, tpcs, TZ);
|
|
237
237
|
}
|
|
238
238
|
});
|
|
239
239
|
}
|
|
@@ -242,14 +242,14 @@ class MeetingPdfService {
|
|
|
242
242
|
});
|
|
243
243
|
return tpcs;
|
|
244
244
|
}
|
|
245
|
-
static TopicsItemView(item, meetingData, tpcs) {
|
|
245
|
+
static TopicsItemView(item, meetingData, tpcs, TZ) {
|
|
246
246
|
let ItemType = {
|
|
247
247
|
text: this.GetTypeOfItem(item.Type), marginLeft: 20, marginBottom: 5, marginTop: 5, width: 50,
|
|
248
248
|
color: this.GetColorsBasedOnType(item.Type), background: 'white', fontSize: this.BodySize,
|
|
249
249
|
};
|
|
250
250
|
let ItemDesc = this.GetDescrption(item, meetingData);
|
|
251
251
|
let TaskAssignees = this.getAssignee(item, meetingData);
|
|
252
|
-
let TaskDueDate = this.GetDueDate(item, meetingData);
|
|
252
|
+
let TaskDueDate = this.GetDueDate(item, meetingData, TZ);
|
|
253
253
|
let Item;
|
|
254
254
|
if (item.Type !== 'TAS') {
|
|
255
255
|
Item = {
|
|
@@ -298,13 +298,13 @@ class MeetingPdfService {
|
|
|
298
298
|
return Item.Desc;
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
|
-
static GetDueDate(Item, MeetingData) {
|
|
301
|
+
static GetDueDate(Item, MeetingData, TZ) {
|
|
302
302
|
if (Item.Type === 'TAS' && !tr_utils_1.TrUtils.IsNull(MeetingData.MeetingTasks)) {
|
|
303
303
|
let Index = MeetingData.MeetingTasks.findIndex((task) => {
|
|
304
304
|
return task._id === Item.T_Id;
|
|
305
305
|
});
|
|
306
306
|
if (Index !== -1) {
|
|
307
|
-
return tr_utils_1.TrUtils.IsNull(MeetingData.MeetingTasks[Index].EstEnDt) ? '' : my_date_1.MyDate.GetWeekAndDate(MeetingData.MeetingTasks[Index].EstEnDt);
|
|
307
|
+
return tr_utils_1.TrUtils.IsNull(MeetingData.MeetingTasks[Index].EstEnDt) ? '' : my_date_1.MyDate.GetWeekAndDate(MeetingData.MeetingTasks[Index].EstEnDt, TZ);
|
|
308
308
|
}
|
|
309
309
|
else {
|
|
310
310
|
return '';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare class TaskPDfService {
|
|
2
2
|
static BodySize: number;
|
|
3
|
-
static GetPdfForUnAssignedTasks(TaskData: any, Image: any): void;
|
|
3
|
+
static GetPdfForUnAssignedTasks(TaskData: any, Image: any, EntityData: any): void;
|
|
4
4
|
static GetHeader(task: any): {
|
|
5
5
|
stack: {
|
|
6
6
|
text: string;
|
|
@@ -55,7 +55,7 @@ export declare class TaskPDfService {
|
|
|
55
55
|
};
|
|
56
56
|
static GetDescription(task: any): string;
|
|
57
57
|
static stripHtml(html: any): string;
|
|
58
|
-
static GetTaskDetails(TaskData: any): {
|
|
58
|
+
static GetTaskDetails(TaskData: any, UserTimeZone: any): {
|
|
59
59
|
stack: {
|
|
60
60
|
style: string;
|
|
61
61
|
fontSize: number;
|
|
@@ -73,7 +73,7 @@ export declare class TaskPDfService {
|
|
|
73
73
|
};
|
|
74
74
|
}[];
|
|
75
75
|
};
|
|
76
|
-
static GetTableHeadersForApproval(TaskData: any): {
|
|
76
|
+
static GetTableHeadersForApproval(TaskData: any, UserTimeZone: any): {
|
|
77
77
|
style: string;
|
|
78
78
|
fontSize: number;
|
|
79
79
|
lineHeight: number;
|
|
@@ -92,7 +92,7 @@ export declare class TaskPDfService {
|
|
|
92
92
|
static GetValue(value: any): any;
|
|
93
93
|
static GetProgress(value: any): string;
|
|
94
94
|
static GetPriority(value: any): any;
|
|
95
|
-
static GetTime(date: any): string | null;
|
|
95
|
+
static GetTime(date: any, UserTimeZone: any): string | null;
|
|
96
96
|
static GetAssinessList(Members: any): any;
|
|
97
97
|
static GetOwner(Members: any): any;
|
|
98
98
|
static GetDetails(data: any): {
|
|
@@ -6,7 +6,7 @@ const shared_print_service_1 = require("../../shared/shared-print.service");
|
|
|
6
6
|
const my_date_1 = require("../../utils/my-date");
|
|
7
7
|
const tr_utils_1 = require("../../utils/tr-utils");
|
|
8
8
|
class TaskPDfService {
|
|
9
|
-
static GetPdfForUnAssignedTasks(TaskData, Image) {
|
|
9
|
+
static GetPdfForUnAssignedTasks(TaskData, Image, EntityData) {
|
|
10
10
|
let Images;
|
|
11
11
|
// let IsThere: boolean = false;
|
|
12
12
|
// Images = this.imageExists(meetingData.image);
|
|
@@ -34,7 +34,7 @@ class TaskPDfService {
|
|
|
34
34
|
this.HeaderAfterLine(),
|
|
35
35
|
this.GetTaskSubHeadre(TaskData),
|
|
36
36
|
// this.HeaderAfterLine(),
|
|
37
|
-
this.GetTaskDetails(TaskData),
|
|
37
|
+
this.GetTaskDetails(TaskData, EntityData.User.TZ),
|
|
38
38
|
],
|
|
39
39
|
styles: shared_pdf_service_1.SharedPDFService.GetStyles(),
|
|
40
40
|
};
|
|
@@ -89,19 +89,19 @@ class TaskPDfService {
|
|
|
89
89
|
// Retrieve the text property of the element (cross-browser support)
|
|
90
90
|
return temporalDivElement.textContent || temporalDivElement.innerText || "";
|
|
91
91
|
}
|
|
92
|
-
static GetTaskDetails(TaskData) {
|
|
92
|
+
static GetTaskDetails(TaskData, UserTimeZone) {
|
|
93
93
|
return {
|
|
94
94
|
stack: [
|
|
95
|
-
this.GetTableHeadersForApproval(TaskData),
|
|
95
|
+
this.GetTableHeadersForApproval(TaskData, UserTimeZone),
|
|
96
96
|
]
|
|
97
97
|
};
|
|
98
98
|
}
|
|
99
|
-
static GetTableHeadersForApproval(TaskData) {
|
|
99
|
+
static GetTableHeadersForApproval(TaskData, UserTimeZone) {
|
|
100
100
|
let headersNames = [
|
|
101
101
|
{ name: 'Status', value: this.GetValue(TaskData.Sts) },
|
|
102
102
|
{ name: 'Start date', value: this.GetValue(my_date_1.MyDate.ConvertUTCDateToReadable(TaskData.EstStDt)) },
|
|
103
103
|
{ name: 'Due date', value: this.GetValue(my_date_1.MyDate.ConvertUTCDateToReadable(TaskData.EstEnDt)) },
|
|
104
|
-
{ name: 'Estimated Time', value: this.GetTime(TaskData.EstEnDt) },
|
|
104
|
+
{ name: 'Estimated Time', value: this.GetTime(TaskData.EstEnDt, UserTimeZone) },
|
|
105
105
|
{ name: 'Priority', value: this.GetPriority(TaskData.Prty) },
|
|
106
106
|
{ name: 'Progress', value: this.GetProgress(TaskData.CoPerc) },
|
|
107
107
|
{ name: 'Assingned To', value: this.GetValue(this.GetAssinessList(TaskData.Members)) },
|
|
@@ -133,9 +133,9 @@ class TaskPDfService {
|
|
|
133
133
|
return 'None';
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
|
-
static GetTime(date) {
|
|
136
|
+
static GetTime(date, UserTimeZone) {
|
|
137
137
|
if (!tr_utils_1.TrUtils.IsNull(date)) {
|
|
138
|
-
let time = my_date_1.MyDate.ConvertUTCDateTimeToReadable(date);
|
|
138
|
+
let time = my_date_1.MyDate.ConvertUTCDateTimeToReadable(date, UserTimeZone);
|
|
139
139
|
return time;
|
|
140
140
|
}
|
|
141
141
|
else {
|
|
@@ -8,7 +8,7 @@ declare class Group {
|
|
|
8
8
|
export declare class TaskReportsPDfService {
|
|
9
9
|
static overdueTasks: any[];
|
|
10
10
|
static groupByColumns: string[];
|
|
11
|
-
static GetPdfForUnAssignedTasks(TaskData: any, IsLandScape: any, ReportType: any, Image: any): void;
|
|
11
|
+
static GetPdfForUnAssignedTasks(TaskData: any, IsLandScape: any, ReportType: any, Image: any, EntityData: any): void;
|
|
12
12
|
static GetHeader(Images: any, ReportType: any): {
|
|
13
13
|
stack: ({
|
|
14
14
|
text: string;
|
|
@@ -48,7 +48,7 @@ export declare class TaskReportsPDfService {
|
|
|
48
48
|
})[];
|
|
49
49
|
stack?: undefined;
|
|
50
50
|
};
|
|
51
|
-
static GetTableForApproval(TaskData: any, ReportType: any): {
|
|
51
|
+
static GetTableForApproval(TaskData: any, ReportType: any, TZ: any): {
|
|
52
52
|
style: string;
|
|
53
53
|
marginTop: number;
|
|
54
54
|
lineHeight: number;
|
|
@@ -64,9 +64,9 @@ export declare class TaskReportsPDfService {
|
|
|
64
64
|
vLineColor: (i: any, node: any) => string;
|
|
65
65
|
};
|
|
66
66
|
};
|
|
67
|
-
static GetApprovalTableHeaderBody(TaskData: any, ReportType: any): any;
|
|
67
|
+
static GetApprovalTableHeaderBody(TaskData: any, ReportType: any, TZ: any): any;
|
|
68
68
|
static GetTableHeadersForApproval(): any;
|
|
69
|
-
static GetOverDuePrint(TaskData: any, IsLandScape: any, ReportType: any, Image: any): void;
|
|
69
|
+
static GetOverDuePrint(TaskData: any, IsLandScape: any, ReportType: any, Image: any, EntityData: any): void;
|
|
70
70
|
static GetTableForApprovalUnAssignedTasks(TaskData: any, ReportType: any): {
|
|
71
71
|
style: string;
|
|
72
72
|
marginTop: number;
|
|
@@ -85,8 +85,8 @@ export declare class TaskReportsPDfService {
|
|
|
85
85
|
};
|
|
86
86
|
static GetApprovalTableHeaderUnAssignedTasksBody(TaskData: any, ReportType: any): any;
|
|
87
87
|
static GetOverDueTableHeadersForApproval(): any;
|
|
88
|
-
static GetDueDate(params: any): string;
|
|
89
|
-
static PrepareDataForTable(overdueEmpTasks: any[]): any[];
|
|
88
|
+
static GetDueDate(params: any, TZ: any): string;
|
|
89
|
+
static PrepareDataForTable(overdueEmpTasks: any[], EntityData: any): any[];
|
|
90
90
|
static addGroups(data: any[], groupByColumns: string[]): any[];
|
|
91
91
|
static getSublevel(data: any[], level: number, groupByColumns: string[], parent: Group): any[];
|
|
92
92
|
static uniqueBy(a: any, key: any): any;
|