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.
Files changed (96) hide show
  1. package/dist/accounting/counter-sales/auto-sales-receipt-pdf.service.js +1 -1
  2. package/dist/accounting/counter-sales/sales-receipt-print.service.d.ts +3 -3
  3. package/dist/accounting/counter-sales/sales-receipt-print.service.js +31 -30
  4. package/dist/accounting/credit-note/cn-print.service.d.ts +1 -2
  5. package/dist/accounting/credit-note/cn-print.service.js +10 -32
  6. package/dist/accounting/credit-note/credit-note-totals.service.d.ts +6 -6
  7. package/dist/accounting/credit-note/credit-note-totals.service.js +19 -19
  8. package/dist/accounting/debit-note/debit-note-print.service.d.ts +2 -2
  9. package/dist/accounting/debit-note/debit-note-print.service.js +15 -15
  10. package/dist/accounting/debit-note/debit-note-totals.service.d.ts +6 -6
  11. package/dist/accounting/debit-note/debit-note-totals.service.js +18 -18
  12. package/dist/accounting/invoice/hc-inv-pdf.service.d.ts +7 -7
  13. package/dist/accounting/invoice/hc-inv-pdf.service.js +36 -36
  14. package/dist/accounting/invoice/inv-pdf.service.d.ts +6 -6
  15. package/dist/accounting/invoice/inv-pdf.service.js +44 -44
  16. package/dist/accounting/invoice/inv-print.service.d.ts +3 -3
  17. package/dist/accounting/invoice/inv-print.service.js +24 -24
  18. package/dist/accounting/invoice/invoice-letterhead-pdf.service.d.ts +6 -6
  19. package/dist/accounting/invoice/invoice-letterhead-pdf.service.js +44 -44
  20. package/dist/accounting/invoice/invoice-total.service.d.ts +11 -11
  21. package/dist/accounting/invoice/invoice-total.service.js +54 -54
  22. package/dist/accounting/invoice/reports/excel/analysis-excel.service.d.ts +3 -3
  23. package/dist/accounting/invoice/reports/excel/analysis-excel.service.js +6 -6
  24. package/dist/accounting/invoice/reports/pdf/analysis-pdf.service.d.ts +4 -4
  25. package/dist/accounting/invoice/reports/pdf/analysis-pdf.service.js +10 -9
  26. package/dist/accounting/invoice/reports/pdf/category-wise-item-pdf.service.js +0 -2
  27. package/dist/accounting/invoice/reports/pdf/cust-wise-sales-details-pdf.service.js +0 -2
  28. package/dist/accounting/invoice/reports/pdf/cust-wise-sales-summary-pdf.service.js +0 -2
  29. package/dist/accounting/invoice/reports/pdf/item-wise-doctor-sale-pdf.service.js +0 -2
  30. package/dist/accounting/invoice/reports/pdf/item-wise-sales-pdf.service.js +0 -2
  31. package/dist/accounting/invoice/reports/pdf/manf-wise-sales-pdf.service.js +0 -2
  32. package/dist/accounting/invoice/reports/pdf/operator-wise-details-pdf.service.js +0 -2
  33. package/dist/accounting/invoice/reports/pdf/operator-wise-summary-pdf.js +0 -2
  34. package/dist/accounting/invoice/reports/pdf/sales-by-service-pdf.service.js +0 -2
  35. package/dist/accounting/invoice/reports/pdf/scheduled-drug-pdf.service.js +0 -2
  36. package/dist/accounting/invoice/reports/pdf/scheduled-drug-summary-pdf.service.js +0 -2
  37. package/dist/accounting/invoice/shared-inv-pdf.service.d.ts +6 -6
  38. package/dist/accounting/invoice/shared-inv-pdf.service.js +30 -30
  39. package/dist/accounting/payment-receive/reports/pdf/customer-balances-pdf.service.d.ts +1 -1
  40. package/dist/accounting/payment-receive/reports/pdf/customer-balances-pdf.service.js +3 -3
  41. package/dist/accounting/payment-receive/reports/pdf/payment-report-pdf.service.d.ts +4 -4
  42. package/dist/accounting/payment-receive/reports/pdf/payment-report-pdf.service.js +9 -11
  43. package/dist/appointments/appointments/appointment-total.service.d.ts +6 -6
  44. package/dist/appointments/appointments/appointment-total.service.js +28 -29
  45. package/dist/appointments/consultations/consultation-fee-receipt.service.d.ts +1 -1
  46. package/dist/appointments/consultations/consultation-fee-receipt.service.js +3 -3
  47. package/dist/appointments/consultations/consultation-full-pdf.service.d.ts +2 -2
  48. package/dist/appointments/consultations/consultation-full-pdf.service.js +7 -7
  49. package/dist/appointments/consultations/consultation-letterhead-pdf.service.d.ts +2 -3
  50. package/dist/appointments/consultations/consultation-letterhead-pdf.service.js +7 -15
  51. package/dist/appointments/consultations/consultation-pdf.service.d.ts +2 -3
  52. package/dist/appointments/consultations/consultation-pdf.service.js +14 -15
  53. package/dist/inventory/items/issue-parts-pdf.service.js +1 -1
  54. package/dist/inventory/items/reports/pdf/expiring-drugs-pdf.service.d.ts +1 -1
  55. package/dist/inventory/items/reports/pdf/expiring-drugs-pdf.service.js +4 -4
  56. package/dist/inventory/items/reports/pdf/item-wise-mout-details-pdf.js +0 -2
  57. package/dist/inventory/items/reports/pdf/item-wise-mout-summary-pdf.js +0 -2
  58. package/dist/inventory/items/reports/pdf/reorder-point-pdf.service.js +1 -1
  59. package/dist/inventory/transfer-order/transfer-order-pdf.service.js +1 -2
  60. package/dist/purchases/payment-made/reports/pdf/vendor-balances-pdf.service.d.ts +1 -1
  61. package/dist/purchases/payment-made/reports/pdf/vendor-balances-pdf.service.js +3 -3
  62. package/dist/purchases/purchase-order/po-totals.service.d.ts +7 -7
  63. package/dist/purchases/purchase-order/po-totals.service.js +24 -25
  64. package/dist/purchases/purchase-order/purchase-order-print.service.js +3 -3
  65. package/dist/purchases/purchase-order/purchase-order-totals.service.d.ts +10 -10
  66. package/dist/purchases/purchase-order/purchase-order-totals.service.js +27 -27
  67. package/dist/purchases/vendor-debit-note/vendor-debit-note-print.service.d.ts +1 -2
  68. package/dist/purchases/vendor-debit-note/vendor-debit-note-print.service.js +10 -32
  69. package/dist/sales/delivery-challan/delivery-challan-print.service.d.ts +1 -2
  70. package/dist/sales/delivery-challan/delivery-challan-print.service.js +9 -32
  71. package/dist/sales/sales/sales-print.service.d.ts +2 -2
  72. package/dist/sales/sales/sales-print.service.js +17 -17
  73. package/dist/services/est.print-service.d.ts +18 -18
  74. package/dist/services/est.print-service.js +132 -132
  75. package/dist/services/reports/pdf/next-service-date-pdf.service.js +0 -2
  76. package/dist/services/reports/pdf/repair-orders-pdf.service.js +0 -1
  77. package/dist/services/ro-print-service.d.ts +6 -6
  78. package/dist/services/ro-print-service.js +39 -39
  79. package/dist/services/separate-wo-print.service.d.ts +1 -1
  80. package/dist/services/separate-wo-print.service.js +4 -4
  81. package/dist/shared/shared-pdf.service.d.ts +0 -16
  82. package/dist/shared/shared-pdf.service.js +36 -34
  83. package/dist/shared/shared-print.service.js +3 -1
  84. package/dist/tasks/meetings/meeting-pdf.d.ts +4 -4
  85. package/dist/tasks/meetings/meeting-pdf.js +9 -9
  86. package/dist/tasks/tasks/task-pdf.service.d.ts +4 -4
  87. package/dist/tasks/tasks/task-pdf.service.js +8 -8
  88. package/dist/tasks/tasks/task-reports-pdf.service.d.ts +6 -6
  89. package/dist/tasks/tasks/task-reports-pdf.service.js +14 -14
  90. package/dist/utils/my-date.d.ts +6 -7
  91. package/dist/utils/my-date.js +16 -16
  92. package/dist/utils/tr-utils.d.ts +2 -3
  93. package/dist/utils/tr-utils.js +5 -5
  94. package/package.json +1 -1
  95. package/dist/shared/shared-pdfs/shared-pdf.service.d.ts +0 -926
  96. package/dist/shared/shared-pdfs/shared-pdf.service.js +0 -2608
@@ -1,5 +1,5 @@
1
1
  export declare class AnalysisPDFService {
2
- static GetAnalysisPDFPrint(InvoicesData: any, CName: any, isPhar: boolean, isHC: boolean, IsSales: boolean, HeaerName: any, searchValue: any, HeaderText: any): {
2
+ static GetAnalysisPDFPrint(InvoicesData: any, EntityData: any, isPhar: boolean, isHC: boolean, IsSales: boolean, HeaerName: any, searchValue: any, HeaderText: any): {
3
3
  info: {
4
4
  title: string;
5
5
  };
@@ -205,9 +205,9 @@ export declare class AnalysisPDFService {
205
205
  };
206
206
  };
207
207
  };
208
- static GetInvoiceDataTable(InvoicesData: any, isPhar: boolean, isHC: boolean, IsSales: boolean, HeaderText: any): any;
208
+ static GetInvoiceDataTable(InvoicesData: any, isPhar: boolean, isHC: boolean, IsSales: boolean, HeaderText: any, UserTimeZone: any): any;
209
209
  static getTableWidths(isHC: any): (string | number)[];
210
- static GetItemsTable(InvoiceData: any, isPhar: boolean, isHC: boolean, IsSales: boolean, HeaderText: any): {
210
+ static GetItemsTable(InvoiceData: any, isPhar: boolean, isHC: boolean, IsSales: boolean, HeaderText: any, UserTimeZone: any): {
211
211
  style: string;
212
212
  marginTop: number;
213
213
  marginBottom: number;
@@ -223,6 +223,6 @@ export declare class AnalysisPDFService {
223
223
  vLineColor: (i: any, node: any) => string;
224
224
  };
225
225
  };
226
- static BuildTableBodyForLaborAndParts(InvoiceData: any, isPhar: boolean, isHC: boolean, IsSales: boolean, HeaderText: any): any;
226
+ static BuildTableBodyForLaborAndParts(InvoiceData: any, isPhar: boolean, isHC: boolean, IsSales: boolean, HeaderText: any, UserTimeZone: any): any;
227
227
  static GetHeaderNames(isPhar: boolean, isHC: boolean, HeaderText: any): any;
228
228
  }
@@ -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 AnalysisPDFService {
8
- static GetAnalysisPDFPrint(InvoicesData, CName, isPhar, isHC, IsSales, HeaerName, searchValue, HeaderText) {
8
+ static GetAnalysisPDFPrint(InvoicesData, EntityData, isPhar, isHC, IsSales, HeaerName, searchValue, HeaderText) {
9
9
  var dd = {
10
10
  info: {
11
11
  title: 'Analysis',
@@ -15,18 +15,18 @@ class AnalysisPDFService {
15
15
  },
16
16
  pageMargins: [10, 15, 10, 15],
17
17
  content: [
18
- { text: '' + CName + '', style: ['header'] },
18
+ { text: '' + EntityData.Entity.DName + '', style: ['header'] },
19
19
  { text: HeaerName, alignment: 'center', fontSize: 15, bold: true },
20
20
  shared_pdf_service_1.SharedPDFService.GetSearchValueDetails(searchValue),
21
- this.GetInvoiceDataTable(InvoicesData, isPhar, isHC, IsSales, HeaderText),
21
+ this.GetInvoiceDataTable(InvoicesData, isPhar, isHC, IsSales, HeaderText, EntityData.User.TZ),
22
22
  ],
23
23
  styles: shared_pdf_service_1.SharedPDFService.GetStyles()
24
24
  };
25
25
  return dd;
26
26
  }
27
- static GetInvoiceDataTable(InvoicesData, isPhar, isHC, IsSales, HeaderText) {
27
+ static GetInvoiceDataTable(InvoicesData, isPhar, isHC, IsSales, HeaderText, UserTimeZone) {
28
28
  let Data = [];
29
- Data.push(this.GetItemsTable(InvoicesData, isPhar, isHC, IsSales, HeaderText));
29
+ Data.push(this.GetItemsTable(InvoicesData, isPhar, isHC, IsSales, HeaderText, UserTimeZone));
30
30
  return Data;
31
31
  }
32
32
  static getTableWidths(isHC) {
@@ -36,7 +36,8 @@ class AnalysisPDFService {
36
36
  // return [25, '*', 40, 40, 80];
37
37
  // }
38
38
  }
39
- static GetItemsTable(InvoiceData, isPhar, isHC, IsSales, HeaderText) {
39
+ static GetItemsTable(InvoiceData, isPhar, isHC, IsSales, HeaderText, UserTimeZone) {
40
+ // InvoiceData.forEach((InvoiceData: any) => {
40
41
  return {
41
42
  style: 'tableExample',
42
43
  marginTop: 3,
@@ -44,7 +45,7 @@ class AnalysisPDFService {
44
45
  table: {
45
46
  widths: this.getTableWidths(isHC),
46
47
  headerRows: 1,
47
- body: this.BuildTableBodyForLaborAndParts(InvoiceData, isPhar, isHC, IsSales, HeaderText)
48
+ body: this.BuildTableBodyForLaborAndParts(InvoiceData, isPhar, isHC, IsSales, HeaderText, UserTimeZone)
48
49
  },
49
50
  layout: {
50
51
  hLineWidth: function (i, node) {
@@ -62,13 +63,13 @@ class AnalysisPDFService {
62
63
  }
63
64
  };
64
65
  }
65
- static BuildTableBodyForLaborAndParts(InvoiceData, isPhar, isHC, IsSales, HeaderText) {
66
+ static BuildTableBodyForLaborAndParts(InvoiceData, isPhar, isHC, IsSales, HeaderText, UserTimeZone) {
66
67
  let body = this.GetHeaderNames(isPhar, isHC, HeaderText);
67
68
  InvoiceData.forEach((invoice, index) => {
68
69
  let dataRow = [];
69
70
  dataRow.push({ text: index + 1 });
70
71
  if (HeaderText === 'Month') {
71
- dataRow.push({ text: my_date_1.MyDate.GetMonthName(invoice._id), style: ['headerstyle'], });
72
+ dataRow.push({ text: my_date_1.MyDate.GetMonthName(invoice._id, UserTimeZone), style: ['headerstyle'], });
72
73
  }
73
74
  else {
74
75
  dataRow.push({ text: my_date_1.MyDate.ConvertUTCDateToReadable(invoice._id), style: ['headerstyle'], });
@@ -16,8 +16,6 @@ class CategoryWiseItemPDFService {
16
16
  content: [
17
17
  { text: '' + CName + '', style: ['header'] },
18
18
  { text: isSale ? 'Category Wise Item Sales' : 'Category Wise Service Sales', alignment: 'center', fontSize: 15, bold: true },
19
- // { text: 'As of ' + MyDate.ConvertUTCDateToReadable(MyDate.GetDateTimeNowInUTC()), alignment: 'center', fontSize: 10 },
20
- // SharedPDFService.HeaderAfterLine(),
21
19
  shared_pdf_service_1.SharedPDFService.GetSearchValueDetails(searchValue),
22
20
  this.GetInvoiceDataTable(InvoicesData, isPhar, isHC, isSale),
23
21
  ],
@@ -17,8 +17,6 @@ class CustWiseSalesDetailsService {
17
17
  content: [
18
18
  { text: '' + CName + '', style: ['header'] },
19
19
  { text: isSale ? 'Customer Wise Sales Details' : 'Vendor Wise Purchases Details', alignment: 'center', fontSize: 15, bold: true },
20
- // { text: 'As of ' + MyDate.ConvertUTCDateToReadable(MyDate.GetDateTimeNowInUTC()), alignment: 'center', fontSize: 10 },
21
- // SharedPDFService.HeaderAfterLine(),
22
20
  shared_pdf_service_1.SharedPDFService.GetSearchValueDetails(searchValue),
23
21
  this.GetInvoiceDataTable(InvoicesData, isPhar, isHC, isSale),
24
22
  ],
@@ -16,8 +16,6 @@ class SalesByCustomerPDFService {
16
16
  content: [
17
17
  { text: '' + CName + '', style: ['header'] },
18
18
  { text: HeaerName, alignment: 'center', fontSize: 15, bold: true },
19
- // { text: 'As of ' + MyDate.ConvertUTCDateToReadable(MyDate.GetDateTimeNowInUTC()), alignment: 'center', fontSize: 10 },
20
- // SharedPDFService.HeaderAfterLine(),
21
19
  shared_pdf_service_1.SharedPDFService.GetSearchValueDetails(searchValue),
22
20
  this.GetInvoiceDataTable(InvoicesData, isPhar, isHC, IsSales),
23
21
  ],
@@ -16,8 +16,6 @@ class ItemWiseDoctorSalePDFService {
16
16
  content: [
17
17
  { text: '' + CName + '', style: ['header'] },
18
18
  { text: 'Item Wise Doctor Sale', alignment: 'center', fontSize: 15, bold: true },
19
- // { text: 'As of ' + MyDate.ConvertUTCDateToReadable(MyDate.GetDateTimeNowInUTC()), alignment: 'center', fontSize: 10 },
20
- // SharedPDFService.HeaderAfterLine(),
21
19
  shared_pdf_service_1.SharedPDFService.GetSearchValueDetails(searchValue),
22
20
  this.GetInvoiceDataTable(InvoicesData),
23
21
  ],
@@ -16,8 +16,6 @@ class ItemWiseSalesPDFService {
16
16
  content: [
17
17
  { text: '' + CName + '', style: ['header'] },
18
18
  { text: HeaerName, alignment: 'center', fontSize: 15, bold: true },
19
- // { text: 'As of ' + MyDate.ConvertUTCDateToReadable(MyDate.GetDateTimeNowInUTC()), alignment: 'center', fontSize: 10 },
20
- // SharedPDFService.HeaderAfterLine(),
21
19
  shared_pdf_service_1.SharedPDFService.GetSearchValueDetails(searchValue),
22
20
  this.GetInvoiceDataTable(InvoicesData),
23
21
  ],
@@ -16,8 +16,6 @@ class ManfWiseSalesService {
16
16
  content: [
17
17
  { text: '' + CName + '', style: ['header'] },
18
18
  { text: HeaderName, alignment: 'center', fontSize: 15, bold: true },
19
- // { text: 'As of ' + MyDate.ConvertUTCDateToReadable(MyDate.GetDateTimeNowInUTC()), alignment: 'center', fontSize: 10 },
20
- // SharedPDFService.HeaderAfterLine(),
21
19
  shared_pdf_service_1.SharedPDFService.GetSearchValueDetails(searchValue),
22
20
  this.GetInvoiceDataTable(InvoicesData, isPhar, isHC, isSale),
23
21
  ],
@@ -18,8 +18,6 @@ class OperatorWiseSalesDetailsPDF {
18
18
  content: [
19
19
  { text: '' + CName + '', style: ['header'] },
20
20
  { text: isSale ? 'Operator Wise Sales Details' : 'Doctor Wise Sales Details', alignment: 'center', fontSize: 15, bold: true },
21
- // { text: 'As of ' + MyDate.ConvertUTCDateToReadable(MyDate.GetDateTimeNowInUTC()), alignment: 'center', fontSize: 10 },
22
- // SharedPDFService.HeaderAfterLine(),
23
21
  shared_pdf_service_1.SharedPDFService.GetSearchValueDetails(searchValue),
24
22
  this.GetInvoiceDataTable(InvoicesData, isPhar, isHC),
25
23
  ],
@@ -16,8 +16,6 @@ class OperatorWiseSalesSummaryPDF {
16
16
  content: [
17
17
  { text: '' + CName + '', style: ['header'] },
18
18
  { text: HeaderName, alignment: 'center', fontSize: 15, bold: true },
19
- // { text: 'As of ' + MyDate.ConvertUTCDateToReadable(MyDate.GetDateTimeNowInUTC()), alignment: 'center', fontSize: 10 },
20
- // SharedPDFService.HeaderAfterLine(),
21
19
  shared_pdf_service_1.SharedPDFService.GetSearchValueDetails(searchValue),
22
20
  this.GetInvoiceDataTable(InvoicesData, isPhar, isHC),
23
21
  ],
@@ -16,8 +16,6 @@ class SalesByServiceSummaryPDF {
16
16
  content: [
17
17
  { text: '' + CName + '', style: ['header'] },
18
18
  { text: HeaderName, alignment: 'center', fontSize: 15, bold: true },
19
- // { text: 'As of ' + MyDate.ConvertUTCDateToReadable(MyDate.GetDateTimeNowInUTC()), alignment: 'center', fontSize: 10 },
20
- // SharedPDFService.HeaderAfterLine(),
21
19
  shared_pdf_service_1.SharedPDFService.GetSearchValueDetails(searchValue),
22
20
  this.GetInvoiceDataTable(InvoicesData, ForService),
23
21
  ],
@@ -17,8 +17,6 @@ class ScheduledDrugPDFService {
17
17
  content: [
18
18
  { text: '' + CName + '', style: ['header'] },
19
19
  { text: 'Schedule Wise Drug Sales', alignment: 'center', fontSize: 15, bold: true },
20
- // { text: 'As of ' + MyDate.ConvertUTCDateToReadable(MyDate.GetDateTimeNowInUTC()), alignment: 'center', fontSize: 10 },
21
- // SharedPDFService.HeaderAfterLine(),
22
20
  shared_pdf_service_1.SharedPDFService.GetSearchValueDetails(searchValue),
23
21
  this.GetInvoiceDataTable(InvoicesData),
24
22
  ],
@@ -16,8 +16,6 @@ class ScheduledDrugSummaryPDFService {
16
16
  content: [
17
17
  { text: '' + CName + '', style: ['header'] },
18
18
  { text: 'Schedule Wise Drug Sales', alignment: 'center', fontSize: 15, bold: true },
19
- // { text: 'As of ' + MyDate.ConvertUTCDateToReadable(MyDate.GetDateTimeNowInUTC()), alignment: 'center', fontSize: 10 },
20
- // SharedPDFService.HeaderAfterLine(),
21
19
  shared_pdf_service_1.SharedPDFService.GetSearchValueDetails(searchValue),
22
20
  this.GetInvoiceDataTable(InvoicesData),
23
21
  ],
@@ -225,10 +225,10 @@ export declare class SharedInvoiceprintService {
225
225
  })[];
226
226
  static PreparesparePartsTable(ROPrintData: any, isAuto: boolean): any;
227
227
  static GetLaborPartsTableForView(Parts: any, Ops: any, PrintPartNo: any): any;
228
- static WithOutDiscountFieldTable(Parts: any, Ops: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, isAuto: boolean): any;
229
- static BuildTableBodyForLaborAndParts(Parts: any, Labor: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, isAuto: boolean): any;
230
- static GetWithOutDiscAndTaxFieldHeader(Parts: any, Ops: any, ShowTaxColumn: any, PrintPartNo: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, isAuto: boolean): any;
231
- static TaxDataTable(Parts: any, Ops: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, isAuto: boolean): {
228
+ static WithOutDiscountFieldTable(Parts: any, Ops: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, isAuto: boolean, DecimalsNumber: number): any;
229
+ static BuildTableBodyForLaborAndParts(Parts: any, Labor: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, isAuto: boolean, DecimalsNumber: number): any;
230
+ static GetWithOutDiscAndTaxFieldHeader(Parts: any, Ops: any, ShowTaxColumn: any, PrintPartNo: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, isAuto: boolean, DecimalsNumber: number): any;
231
+ static TaxDataTable(Parts: any, Ops: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, isAuto: boolean, DecimalsNumber: number): {
232
232
  style: string;
233
233
  table: {
234
234
  widths: number[];
@@ -241,7 +241,7 @@ export declare class SharedInvoiceprintService {
241
241
  vLineColor: (i: any, node: any) => string;
242
242
  };
243
243
  };
244
- static ConsolidateDataTable(Parts: any, Ops: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, isAuto: boolean): {
244
+ static ConsolidateDataTable(Parts: any, Ops: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, isAuto: boolean, DecimalsNumber: number): {
245
245
  style: string;
246
246
  table: {
247
247
  widths: number[];
@@ -254,7 +254,7 @@ export declare class SharedInvoiceprintService {
254
254
  vLineColor: (i: any, node: any) => string;
255
255
  };
256
256
  };
257
- static NoTaxDataTable(Parts: any, Ops: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, isAuto: boolean): {
257
+ static NoTaxDataTable(Parts: any, Ops: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, isAuto: boolean, DecimalsNumber: number): {
258
258
  style: string;
259
259
  table: {
260
260
  widths: number[];
@@ -78,7 +78,7 @@ class SharedInvoiceprintService {
78
78
  if (tr_utils_1.TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
79
79
  ROPrintData.PrintInfo[i].Text = '';
80
80
  }
81
- List.push(ROPrintData.PrintInfo[i].Text, this.WithOutDiscountFieldTable(tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Items), tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Ops), ROPrintData.ShowTaxColumn, ROPrintData.Entity.MPN, ROPrintData.Entity.Body, ROPrintData.ShowIGST, ROPrintData.ConsolidateGST, ROPrintData.ShowDiscountColumn, isAuto));
81
+ List.push(ROPrintData.PrintInfo[i].Text, this.WithOutDiscountFieldTable(tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Items), tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Ops), ROPrintData.ShowTaxColumn, ROPrintData.Entity.MPN, ROPrintData.Entity.Body, ROPrintData.ShowIGST, ROPrintData.ConsolidateGST, ROPrintData.ShowDiscountColumn, isAuto, ROPrintData.Entity.DecimalsNumber));
82
82
  }
83
83
  }
84
84
  else {
@@ -90,7 +90,7 @@ class SharedInvoiceprintService {
90
90
  if (tr_utils_1.TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
91
91
  ROPrintData.PrintInfo[i].Text = '';
92
92
  }
93
- List.push(ROPrintData.PrintInfo[i].Text, this.GetWithOutDiscAndTaxFieldHeader(tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Items), tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Ops), ROPrintData.ShowTaxColumn, ROPrintData.Entity.MPN, ROPrintData.Entity.Body, ROPrintData.ShowIGST, ROPrintData.ConsolidateGST, ROPrintData.ShowDiscountColumn, isAuto));
93
+ List.push(ROPrintData.PrintInfo[i].Text, this.GetWithOutDiscAndTaxFieldHeader(tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Items), tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Ops), ROPrintData.ShowTaxColumn, ROPrintData.Entity.MPN, ROPrintData.Entity.Body, ROPrintData.ShowIGST, ROPrintData.ConsolidateGST, ROPrintData.ShowDiscountColumn, isAuto, ROPrintData.Entity.DecimalsNumber));
94
94
  }
95
95
  }
96
96
  }
@@ -129,7 +129,7 @@ class SharedInvoiceprintService {
129
129
  return a;
130
130
  }
131
131
  }
132
- static WithOutDiscountFieldTable(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, isAuto) {
132
+ static WithOutDiscountFieldTable(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, isAuto, DecimalsNumber) {
133
133
  if (Parts.length !== 0 || Ops.length !== 0) {
134
134
  if (PrintPartNo) {
135
135
  return {
@@ -138,7 +138,7 @@ class SharedInvoiceprintService {
138
138
  table: {
139
139
  widths: [25, 60, 155, 30, 50, 60, 30, 50],
140
140
  headerRows: 1,
141
- body: this.BuildTableBodyForLaborAndParts(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, isAuto)
141
+ body: this.BuildTableBodyForLaborAndParts(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, isAuto, DecimalsNumber)
142
142
  },
143
143
  layout: shared_print_service_1.PrintSharedService.LayOutStyleanother()
144
144
  };
@@ -162,7 +162,7 @@ class SharedInvoiceprintService {
162
162
  return a;
163
163
  }
164
164
  }
165
- static BuildTableBodyForLaborAndParts(Parts, Labor, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, isAuto) {
165
+ static BuildTableBodyForLaborAndParts(Parts, Labor, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, isAuto, DecimalsNumber) {
166
166
  var body = [];
167
167
  let columns = shared_print_service_1.PrintSharedService.GetWithOutDiscountFieldHeaderSharedInv(PrintPartNo, ShowTaxColumn, Body);
168
168
  body = columns;
@@ -186,14 +186,14 @@ class SharedInvoiceprintService {
186
186
  let dpartadding1 = {};
187
187
  dpartadding1.SNo = '';
188
188
  dpartadding1.Desc = 'Spare Total';
189
- dpartadding1.QtyAndUoM = tr_utils_1.TrUtils.FixedTo(Qty);
189
+ dpartadding1.QtyAndUoM = tr_utils_1.TrUtils.FixedTo(Qty, DecimalsNumber);
190
190
  dpartadding1.bold = true;
191
- dpartadding1.UnPr = tr_utils_1.TrUtils.FixedTo(Taxable);
192
- dpartadding1.SGSTAmt = tr_utils_1.TrUtils.FixedTo(SGSTAMT);
193
- dpartadding1.IGSTAmt = tr_utils_1.TrUtils.FixedTo(IGSTAMT);
194
- dpartadding1.CGSTAmt = tr_utils_1.TrUtils.FixedTo(CGSTAMT);
191
+ dpartadding1.UnPr = tr_utils_1.TrUtils.FixedTo(Taxable, DecimalsNumber);
192
+ dpartadding1.SGSTAmt = tr_utils_1.TrUtils.FixedTo(SGSTAMT, DecimalsNumber);
193
+ dpartadding1.IGSTAmt = tr_utils_1.TrUtils.FixedTo(IGSTAMT, DecimalsNumber);
194
+ dpartadding1.CGSTAmt = tr_utils_1.TrUtils.FixedTo(CGSTAMT, DecimalsNumber);
195
195
  dpartadding1.TCode = ShowTaxColumn ? 114 : undefined;
196
- dpartadding1.LineTotal = tr_utils_1.TrUtils.FixPriceValue(FinalTotal);
196
+ dpartadding1.LineTotal = tr_utils_1.TrUtils.FixPriceValue(FinalTotal, DecimalsNumber);
197
197
  Parts.push({ SNo: '' });
198
198
  Parts.push(dpartadding1);
199
199
  }
@@ -305,13 +305,13 @@ class SharedInvoiceprintService {
305
305
  dpartadding1.SNo = '';
306
306
  dpartadding1.Desc = 'Labor Total';
307
307
  // dpartadding1.QtyAndUoM = Qty;
308
- dpartadding1.UnPr = tr_utils_1.TrUtils.FixedTo(Taxable);
309
- dpartadding1.SGSTAmt = tr_utils_1.TrUtils.FixedTo(SGSTAMT);
310
- dpartadding1.IGSTAmt = tr_utils_1.TrUtils.FixedTo(IGSTAMT);
311
- dpartadding1.CGSTAmt = tr_utils_1.TrUtils.FixedTo(CGSTAMT);
308
+ dpartadding1.UnPr = tr_utils_1.TrUtils.FixedTo(Taxable, DecimalsNumber);
309
+ dpartadding1.SGSTAmt = tr_utils_1.TrUtils.FixedTo(SGSTAMT, DecimalsNumber);
310
+ dpartadding1.IGSTAmt = tr_utils_1.TrUtils.FixedTo(IGSTAMT, DecimalsNumber);
311
+ dpartadding1.CGSTAmt = tr_utils_1.TrUtils.FixedTo(CGSTAMT, DecimalsNumber);
312
312
  dpartadding1.TCode = ShowTaxColumn ? 114 : undefined;
313
313
  dpartadding1.bold = true;
314
- dpartadding1.LineTotal = tr_utils_1.TrUtils.FixPriceValue(FinalTotal);
314
+ dpartadding1.LineTotal = tr_utils_1.TrUtils.FixPriceValue(FinalTotal, DecimalsNumber);
315
315
  Labor.push({ SNo: '' });
316
316
  Labor.push(dpartadding1);
317
317
  }
@@ -407,17 +407,17 @@ class SharedInvoiceprintService {
407
407
  });
408
408
  return body;
409
409
  }
410
- static GetWithOutDiscAndTaxFieldHeader(Parts, Ops, ShowTaxColumn, PrintPartNo, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, isAuto) {
410
+ static GetWithOutDiscAndTaxFieldHeader(Parts, Ops, ShowTaxColumn, PrintPartNo, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, isAuto, DecimalsNumber) {
411
411
  if (Parts.length !== 0 || Ops.length !== 0) {
412
412
  if (ShowTaxColumn) {
413
- return this.TaxDataTable(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, isAuto);
413
+ return this.TaxDataTable(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, isAuto, DecimalsNumber);
414
414
  }
415
415
  else {
416
416
  if (ConsolidateGST) {
417
- return this.ConsolidateDataTable(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, isAuto);
417
+ return this.ConsolidateDataTable(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, isAuto, DecimalsNumber);
418
418
  }
419
419
  else {
420
- return this.NoTaxDataTable(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, isAuto);
420
+ return this.NoTaxDataTable(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, isAuto, DecimalsNumber);
421
421
  }
422
422
  }
423
423
  }
@@ -426,7 +426,7 @@ class SharedInvoiceprintService {
426
426
  return a;
427
427
  }
428
428
  }
429
- static TaxDataTable(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, isAuto) {
429
+ static TaxDataTable(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, isAuto, DecimalsNumber) {
430
430
  if (PrintPartNo) {
431
431
  // if (ShowIGST) {
432
432
  // return {
@@ -444,7 +444,7 @@ class SharedInvoiceprintService {
444
444
  table: {
445
445
  widths: [25, 50, 150, 40, 25, 50, 70, 50, 40],
446
446
  // headerRows: 2,
447
- body: this.BuildTableBodyForLaborAndParts(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, isAuto)
447
+ body: this.BuildTableBodyForLaborAndParts(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, isAuto, DecimalsNumber)
448
448
  },
449
449
  layout: shared_print_service_1.PrintSharedService.LayOutStyle()
450
450
  };
@@ -467,21 +467,21 @@ class SharedInvoiceprintService {
467
467
  table: {
468
468
  widths: [25, 170, 40, 40, 50, 70, 60, 50],
469
469
  // headerRows: 2,
470
- body: this.BuildTableBodyForLaborAndParts(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, isAuto)
470
+ body: this.BuildTableBodyForLaborAndParts(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, isAuto, DecimalsNumber)
471
471
  },
472
472
  layout: shared_print_service_1.PrintSharedService.LayOutStyle()
473
473
  };
474
474
  // }
475
475
  }
476
476
  }
477
- static ConsolidateDataTable(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, isAuto) {
477
+ static ConsolidateDataTable(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, isAuto, DecimalsNumber) {
478
478
  if (PrintPartNo) {
479
479
  return {
480
480
  style: 'tableExample',
481
481
  table: {
482
482
  widths: [25, 70, 263, 25, 60, 80, 10, 40],
483
483
  // headerRows: 1,
484
- body: this.BuildTableBodyForLaborAndParts(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, isAuto)
484
+ body: this.BuildTableBodyForLaborAndParts(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, isAuto, DecimalsNumber)
485
485
  },
486
486
  layout: shared_print_service_1.PrintSharedService.LayOutStyle()
487
487
  };
@@ -492,20 +492,20 @@ class SharedInvoiceprintService {
492
492
  table: {
493
493
  widths: [25, 295, 50, 80, 80, 10, 40],
494
494
  // headerRows: 1,
495
- body: this.BuildTableBodyForLaborAndParts(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, isAuto)
495
+ body: this.BuildTableBodyForLaborAndParts(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, isAuto, DecimalsNumber)
496
496
  },
497
497
  layout: shared_print_service_1.PrintSharedService.LayOutStyle()
498
498
  };
499
499
  }
500
500
  }
501
- static NoTaxDataTable(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, isAuto) {
501
+ static NoTaxDataTable(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, isAuto, DecimalsNumber) {
502
502
  if (PrintPartNo) {
503
503
  return {
504
504
  style: 'tableExample',
505
505
  table: {
506
506
  widths: shared_print_service_1.PrintSharedService.WidthForInsuranceOrNot(ShowDiscountColumn, PrintPartNo),
507
507
  // headerRows: 1,
508
- body: this.BuildTableBodyForLaborAndParts(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, isAuto)
508
+ body: this.BuildTableBodyForLaborAndParts(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, isAuto, DecimalsNumber)
509
509
  },
510
510
  layout: shared_print_service_1.PrintSharedService.LayOutStyle()
511
511
  };
@@ -516,7 +516,7 @@ class SharedInvoiceprintService {
516
516
  table: {
517
517
  widths: shared_print_service_1.PrintSharedService.WidthForInsuranceOrNot(ShowDiscountColumn, PrintPartNo),
518
518
  // headerRows: 1,
519
- body: this.BuildTableBodyForLaborAndParts(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, isAuto)
519
+ body: this.BuildTableBodyForLaborAndParts(Parts, Ops, PrintPartNo, ShowTaxColumn, Body, ShowIGST, ConsolidateGST, ShowDiscountColumn, isAuto, DecimalsNumber)
520
520
  },
521
521
  layout: shared_print_service_1.PrintSharedService.LayOutStyle()
522
522
  };
@@ -703,7 +703,7 @@ class SharedInvoiceprintService {
703
703
  stack: [
704
704
  {
705
705
  columns: [{ text: '' }, { text: 'Gate Pass', bold: true, fontSize: 9, alignment: 'center', marginTop: 5 },
706
- { text: 'Date: ' + my_date_1.MyDate.ConvertUTCDateToReadable(my_date_1.MyDate.GetDateTimeNowInUTC()), marginTop: 5, fontSize: 9, alignment: 'right' }]
706
+ { text: 'Date: ' + my_date_1.MyDate.ConvertUTCDateToReadable(my_date_1.MyDate.GetDateTimeNowInUTC(ROPrintData.Entity.User.TZ)), marginTop: 5, fontSize: 9, alignment: 'right' }]
707
707
  },
708
708
  { text: ROPrintData.Entity.CName, alignment: 'center', bold: true, fontSize: 12, marginTop: 5, marginBottom: 5 },
709
709
  {
@@ -1,5 +1,5 @@
1
1
  export declare class CustomerBalancesService {
2
- static GetCustomerBalancesPrint(InvoicesData: any, CName: any, isPhar: boolean, isHC: boolean): {
2
+ static GetCustomerBalancesPrint(InvoicesData: any, EntityData: any, isPhar: boolean, isHC: boolean): {
3
3
  info: {
4
4
  title: string;
5
5
  };
@@ -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 CustomerBalancesService {
8
- static GetCustomerBalancesPrint(InvoicesData, CName, isPhar, isHC) {
8
+ static GetCustomerBalancesPrint(InvoicesData, EntityData, isPhar, isHC) {
9
9
  var dd = {
10
10
  info: {
11
11
  title: 'CustomerBalances',
@@ -15,9 +15,9 @@ class CustomerBalancesService {
15
15
  },
16
16
  pageMargins: [10, 15, 10, 15],
17
17
  content: [
18
- { text: '' + CName + '', style: ['header'] },
18
+ { text: '' + EntityData.Entity.DName + '', style: ['header'] },
19
19
  { text: 'Customer Balances', alignment: 'center', fontSize: 15, bold: true },
20
- { text: 'As of ' + my_date_1.MyDate.ConvertUTCDateToReadable(my_date_1.MyDate.GetDateTimeNowInUTC()), alignment: 'center', fontSize: 10 },
20
+ { text: 'As of ' + my_date_1.MyDate.ConvertUTCDateToReadable(my_date_1.MyDate.GetDateTimeNowInUTC(EntityData.User.TZ)), alignment: 'center', fontSize: 10 },
21
21
  // SharedPDFService.HeaderAfterLine(),
22
22
  this.GetInvoiceDataTable(InvoicesData, isPhar, isHC),
23
23
  ],
@@ -1,5 +1,5 @@
1
1
  export declare class PaymentsReportPDFService {
2
- static GetPaymentsReportPrint(InvoicesData: any, CName: any, HeaerName: any, ispur: boolean, isSale: boolean, searchValue: any): {
2
+ static GetPaymentsReportPrint(InvoicesData: any, EntityData: any, HeaerName: any, ispur: boolean, isSale: boolean, searchValue: any): {
3
3
  info: {
4
4
  title: string;
5
5
  };
@@ -205,9 +205,9 @@ export declare class PaymentsReportPDFService {
205
205
  };
206
206
  };
207
207
  };
208
- static GetInvoiceDataTable(InvoicesData: any, ispur: boolean, isSale: boolean): any;
208
+ static GetInvoiceDataTable(InvoicesData: any, ispur: boolean, isSale: boolean, UserTimeZone: any): any;
209
209
  static getTableWidths(): (string | number)[];
210
- static GetItemsTable(InvoiceData: any, ispur: boolean, isSale: boolean): {
210
+ static GetItemsTable(InvoiceData: any, ispur: boolean, isSale: boolean, UserTimeZone: any): {
211
211
  style: string;
212
212
  marginTop: number;
213
213
  marginBottom: number;
@@ -223,6 +223,6 @@ export declare class PaymentsReportPDFService {
223
223
  vLineColor: (i: any, node: any) => string;
224
224
  };
225
225
  };
226
- static BuildTableBodyForLaborAndParts(InvoiceData: any, ispur: boolean, isSale: boolean): any;
226
+ static BuildTableBodyForLaborAndParts(InvoiceData: any, ispur: boolean, isSale: boolean, UserTimeZone: any): any;
227
227
  static GetHeaderNames(ispur: boolean): any;
228
228
  }
@@ -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 PaymentsReportPDFService {
8
- static GetPaymentsReportPrint(InvoicesData, CName, HeaerName, ispur, isSale, searchValue) {
8
+ static GetPaymentsReportPrint(InvoicesData, EntityData, HeaerName, ispur, isSale, searchValue) {
9
9
  var dd = {
10
10
  info: {
11
11
  title: 'PaymentReport',
@@ -15,21 +15,19 @@ class PaymentsReportPDFService {
15
15
  },
16
16
  pageMargins: [10, 15, 10, 15],
17
17
  content: [
18
- { text: '' + CName + '', style: ['header'] },
18
+ { text: '' + EntityData.Entity.DName + '', style: ['header'] },
19
19
  { text: HeaerName, alignment: 'center', fontSize: 15, bold: true },
20
- // { text: 'As of ' + MyDate.ConvertUTCDateToReadable(MyDate.GetDateTimeNowInUTC()), alignment: 'center', fontSize: 10 },
21
- // SharedPDFService.HeaderAfterLine(),
22
20
  shared_pdf_service_1.SharedPDFService.GetSearchValueDetails(searchValue),
23
- this.GetInvoiceDataTable(InvoicesData, ispur, isSale),
21
+ this.GetInvoiceDataTable(InvoicesData, ispur, isSale, EntityData.User.TZ),
24
22
  ],
25
23
  styles: shared_pdf_service_1.SharedPDFService.GetStyles()
26
24
  };
27
25
  return dd;
28
26
  }
29
- static GetInvoiceDataTable(InvoicesData, ispur, isSale) {
27
+ static GetInvoiceDataTable(InvoicesData, ispur, isSale, UserTimeZone) {
30
28
  let Data = [];
31
29
  // InvoicesData.forEach((invoice: any) => {
32
- Data.push(this.GetItemsTable(InvoicesData, ispur, isSale));
30
+ Data.push(this.GetItemsTable(InvoicesData, ispur, isSale, UserTimeZone));
33
31
  // });
34
32
  return Data;
35
33
  }
@@ -40,7 +38,7 @@ class PaymentsReportPDFService {
40
38
  // return [25, '*', 40, 40, 80];
41
39
  // }
42
40
  }
43
- static GetItemsTable(InvoiceData, ispur, isSale) {
41
+ static GetItemsTable(InvoiceData, ispur, isSale, UserTimeZone) {
44
42
  // InvoicesData.forEach((InvoiceData: any) => {
45
43
  return {
46
44
  style: 'tableExample',
@@ -49,7 +47,7 @@ class PaymentsReportPDFService {
49
47
  table: {
50
48
  widths: this.getTableWidths(),
51
49
  headerRows: 1,
52
- body: this.BuildTableBodyForLaborAndParts(InvoiceData, ispur, isSale)
50
+ body: this.BuildTableBodyForLaborAndParts(InvoiceData, ispur, isSale, UserTimeZone)
53
51
  // body:[['fsdfsdf','asfafdas','asdasdas','asdasdasd','asddass']]
54
52
  },
55
53
  layout: {
@@ -72,7 +70,7 @@ class PaymentsReportPDFService {
72
70
  };
73
71
  // });
74
72
  }
75
- static BuildTableBodyForLaborAndParts(InvoiceData, ispur, isSale) {
73
+ static BuildTableBodyForLaborAndParts(InvoiceData, ispur, isSale, UserTimeZone) {
76
74
  let body = this.GetHeaderNames(ispur);
77
75
  InvoiceData.forEach((invoice, index) => {
78
76
  var _a;
@@ -80,7 +78,7 @@ class PaymentsReportPDFService {
80
78
  dataRow.push({ text: index + 1 });
81
79
  dataRow.push({ text: invoice.Code, style: ['headerstyle'], });
82
80
  dataRow.push({ text: isSale ? invoice.CustName : invoice.Name });
83
- dataRow.push({ text: isSale ? my_date_1.MyDate.ConvertUTCDateTimeToReadable(invoice.Pay.Dt) : my_date_1.MyDate.ConvertUTCDateTimeToReadable(invoice.Date) });
81
+ dataRow.push({ text: isSale ? my_date_1.MyDate.ConvertUTCDateTimeToReadable(invoice.Pay.Dt, UserTimeZone) : my_date_1.MyDate.ConvertUTCDateTimeToReadable(invoice.Date, UserTimeZone) });
84
82
  dataRow.push({ text: isSale ? invoice.Pay.Type : invoice.PType });
85
83
  dataRow.push({ text: isSale ? tr_utils_1.TrUtils.FixPriceValue((_a = invoice.Pay) === null || _a === void 0 ? void 0 : _a.Amt) : tr_utils_1.TrUtils.FixPriceValue(invoice.Amt), alignment: 'right' });
86
84
  body.push(dataRow);
@@ -1,5 +1,5 @@
1
1
  export declare class AppointmentTotalsService {
2
- static GetTotalsValue(OriRecordData: any, TaxCodes: any[], detailedInfo: boolean, withItems: boolean): any;
2
+ static GetTotalsValue(OriRecordData: any, TaxCodes: any[], detailedInfo: boolean, withItems: boolean, EntitySettings: any): any;
3
3
  static CalculateLaborValues(opCodesList: any, isTaxable: boolean): any;
4
4
  static FilterValidLaborItems(opCodesList: any[]): any[];
5
5
  static ResetLaborValuesIfInvalid(opCodesList: any): any;
@@ -7,16 +7,16 @@ export declare class AppointmentTotalsService {
7
7
  static GetOperationsDiscountPrice(OperationsList: any): any;
8
8
  static GetOperationsAfterDiscount(OperationsList: any): any;
9
9
  static GetOperationsAfterTax(OperationsList: any, isTaxable: boolean): any;
10
- static GetROTotalsData(argRecordData: any, dupRecordData: any, TaxCodes: any, withItems: boolean, detailedInfo: any): any;
10
+ static GetROTotalsData(argRecordData: any, dupRecordData: any, TaxCodes: any, withItems: boolean, detailedInfo: any, DecimalsNumber: number): any;
11
11
  static ResetDiscountValuesIfInvalid(dupRecordData: any): any;
12
12
  static SetMainDiscountValues(argRecordData: any, dupRecordData: any, detailedInfo: boolean): any;
13
- static GetFinalCustomerTotalsData(argRecordData: any, dupRecordData: any, detailedInfo: boolean): any;
13
+ static GetFinalCustomerTotalsData(argRecordData: any, dupRecordData: any, detailedInfo: boolean, DecimalsNumber: number): any;
14
14
  static GetCustSubTotal(LaborList: any): any;
15
15
  static GetCustLaborTotalAfterDiscount(LaborList: any): any;
16
16
  static GetCustLaborTaxTotal(opCodesList: any, IsTaxable: boolean): any;
17
- static GetCustomerTotalBasedOnTaxType(dupRecordData: any, LaborTaxAmount: number, LaborList: any, IsTaxable: boolean): any;
18
- static GetDetailedTotalsData(argRecordData: any, dupRecordData: any, TaxCodes: any): any;
19
- static GetCustLaborDiscountedTotal(LaborList: any, isTaxable: boolean, finalTotalsData: any): number;
17
+ static GetCustomerTotalBasedOnTaxType(dupRecordData: any, LaborTaxAmount: number, LaborList: any, IsTaxable: boolean, DecimalsNumber: number): any;
18
+ static GetDetailedTotalsData(argRecordData: any, dupRecordData: any, TaxCodes: any, DecimalsNumber: number): any;
19
+ static GetCustLaborDiscountedTotal(LaborList: any, isTaxable: boolean, finalTotalsData: any, DecimalsNumber: number): number;
20
20
  static GetCustLaborCGSTTaxTotal(opCodesList: any, IsTaxable: boolean): any;
21
21
  static GetCustLaborIGSTTaxTotal(opCodesList: any, IsTaxable: boolean): any;
22
22
  static GetCustLaborSGSTTaxTotal(opCodesList: any, IsTaxable: boolean): any;