shareneus 1.4.50 → 1.4.52

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 (87) hide show
  1. package/dist/accounting/counter-sales/auto-sales-receipt-pdf.service.js +1 -1
  2. package/dist/accounting/counter-sales/sales-receipt-pdf.service.js +1 -1
  3. package/dist/accounting/counter-sales/sales-receipt-print.service.js +1 -1
  4. package/dist/accounting/credit-note/credit-note-pdf.service.js +1 -1
  5. package/dist/accounting/debit-note/debit-note-print.service.js +1 -1
  6. package/dist/accounting/invoice/inv-pdf.service.js +13 -12
  7. package/dist/accounting/invoice/inv-print.service.js +6 -6
  8. package/dist/accounting/invoice/invoice-landscape-pdf.service.d.ts +1 -1
  9. package/dist/accounting/invoice/invoice-landscape-pdf.service.js +7 -6
  10. package/dist/accounting/invoice/invoice-letterhead-pdf.service.js +13 -12
  11. package/dist/accounting/invoice/invoice-portrait-pdf.d.ts +5 -5
  12. package/dist/accounting/invoice/invoice-portrait-pdf.js +31 -30
  13. package/dist/accounting/invoice/invoice-total.service.js +1 -1
  14. package/dist/accounting/invoice/reports/excel/sa-wise-labor-sales-excel.service.d.ts +4 -4
  15. package/dist/accounting/invoice/reports/excel/sa-wise-labor-sales-excel.service.js +12 -11
  16. package/dist/accounting/invoice/reports/excel/sa-wise-part-sales-excel.service.d.ts +4 -4
  17. package/dist/accounting/invoice/reports/excel/sa-wise-part-sales-excel.service.js +12 -11
  18. package/dist/accounting/invoice/reports/excel/sale-summary-excel.service.d.ts +4 -4
  19. package/dist/accounting/invoice/reports/excel/sale-summary-excel.service.js +11 -10
  20. package/dist/accounting/invoice/reports/excel/sales-by-service-summary-excel.service.d.ts +4 -4
  21. package/dist/accounting/invoice/reports/excel/sales-by-service-summary-excel.service.js +19 -18
  22. package/dist/accounting/invoice/reports/excel/scheduled-drug-summary-excel.service.d.ts +4 -4
  23. package/dist/accounting/invoice/reports/excel/scheduled-drug-summary-excel.service.js +11 -11
  24. package/dist/accounting/invoice/reports/excel/scheduled-drugs-excel.service.d.ts +4 -4
  25. package/dist/accounting/invoice/reports/excel/scheduled-drugs-excel.service.js +11 -11
  26. package/dist/accounting/invoice/reports/pdf/analysis-pdf.service.d.ts +3 -3
  27. package/dist/accounting/invoice/reports/pdf/analysis-pdf.service.js +13 -12
  28. package/dist/accounting/invoice/reports/pdf/category-wise-item-pdf.service.d.ts +4 -4
  29. package/dist/accounting/invoice/reports/pdf/category-wise-item-pdf.service.js +14 -13
  30. package/dist/accounting/invoice/reports/pdf/cust-wise-sales-details-pdf.service.d.ts +4 -4
  31. package/dist/accounting/invoice/reports/pdf/cust-wise-sales-details-pdf.service.js +15 -14
  32. package/dist/accounting/invoice/reports/pdf/cust-wise-sales-summary-pdf.service.d.ts +4 -4
  33. package/dist/accounting/invoice/reports/pdf/cust-wise-sales-summary-pdf.service.js +15 -14
  34. package/dist/accounting/invoice/reports/pdf/item-wise-doctor-sale-pdf.service.d.ts +4 -4
  35. package/dist/accounting/invoice/reports/pdf/item-wise-doctor-sale-pdf.service.js +10 -10
  36. package/dist/accounting/invoice/reports/pdf/item-wise-sales-pdf.service.d.ts +4 -4
  37. package/dist/accounting/invoice/reports/pdf/item-wise-sales-pdf.service.js +15 -14
  38. package/dist/accounting/invoice/reports/pdf/manf-wise-sales-pdf.service.d.ts +4 -4
  39. package/dist/accounting/invoice/reports/pdf/manf-wise-sales-pdf.service.js +13 -12
  40. package/dist/accounting/invoice/reports/pdf/operator-wise-details-pdf.service.d.ts +4 -4
  41. package/dist/accounting/invoice/reports/pdf/operator-wise-details-pdf.service.js +14 -14
  42. package/dist/accounting/invoice/reports/pdf/operator-wise-summary-pdf.d.ts +4 -4
  43. package/dist/accounting/invoice/reports/pdf/operator-wise-summary-pdf.js +14 -14
  44. package/dist/accounting/invoice/reports/pdf/sales-by-service-pdf.service.d.ts +4 -4
  45. package/dist/accounting/invoice/reports/pdf/sales-by-service-pdf.service.js +14 -13
  46. package/dist/accounting/invoice/reports/pdf/scheduled-drug-pdf.service.d.ts +4 -4
  47. package/dist/accounting/invoice/reports/pdf/scheduled-drug-pdf.service.js +8 -8
  48. package/dist/accounting/invoice/reports/pdf/scheduled-drug-summary-pdf.service.d.ts +4 -4
  49. package/dist/accounting/invoice/reports/pdf/scheduled-drug-summary-pdf.service.js +12 -11
  50. package/dist/accounting/invoice/shared-inv-pdf.service.js +1 -1
  51. package/dist/accounting/payment-receive/reports/excel/cust-balance-excel.service.d.ts +4 -4
  52. package/dist/accounting/payment-receive/reports/excel/cust-balance-excel.service.js +9 -9
  53. package/dist/accounting/payment-receive/reports/excel/payment-receive-excel.service.d.ts +5 -5
  54. package/dist/accounting/payment-receive/reports/excel/payment-receive-excel.service.js +11 -11
  55. package/dist/accounting/payment-receive/reports/pdf/customer-balances-pdf.service.d.ts +3 -3
  56. package/dist/accounting/payment-receive/reports/pdf/customer-balances-pdf.service.js +10 -10
  57. package/dist/accounting/payment-receive/reports/pdf/payment-report-pdf.service.d.ts +3 -3
  58. package/dist/accounting/payment-receive/reports/pdf/payment-report-pdf.service.js +7 -7
  59. package/dist/appointments/consultations/consultation-fee-receipt.service.d.ts +1 -1
  60. package/dist/appointments/consultations/consultation-fee-receipt.service.js +4 -4
  61. package/dist/inventory/items/issue-parts-pdf.service.js +1 -1
  62. package/dist/inventory/items/reports/pdf/expiring-drugs-pdf.service.d.ts +2 -2
  63. package/dist/inventory/items/reports/pdf/expiring-drugs-pdf.service.js +8 -7
  64. package/dist/inventory/items/reports/pdf/item-wise-mout-details-pdf.d.ts +4 -4
  65. package/dist/inventory/items/reports/pdf/item-wise-mout-details-pdf.js +9 -9
  66. package/dist/inventory/items/reports/pdf/item-wise-mout-summary-pdf.d.ts +4 -4
  67. package/dist/inventory/items/reports/pdf/item-wise-mout-summary-pdf.js +9 -9
  68. package/dist/purchases/payment-made/reports/pdf/vendor-balances-pdf.service.d.ts +3 -3
  69. package/dist/purchases/payment-made/reports/pdf/vendor-balances-pdf.service.js +8 -8
  70. package/dist/purchases/purchase-order/purchase-order-pdf.service.js +5 -5
  71. package/dist/purchases/purchase-order/purchase-order-print.service.d.ts +2 -2
  72. package/dist/purchases/purchase-order/purchase-order-print.service.js +25 -25
  73. package/dist/purchases/vendor-credit-note/vendor-credit-note-pdf.service.js +1 -1
  74. package/dist/purchases/vendor-debit-note/vendor-debit-note-pdf.service.js +1 -1
  75. package/dist/sales/delivery-challan/dc-landscape-pdf.service.d.ts +1 -1
  76. package/dist/sales/delivery-challan/dc-landscape-pdf.service.js +7 -6
  77. package/dist/sales/sales/sales-pdf.service.js +1 -1
  78. package/dist/sales/sales/sales-print.service.js +6 -6
  79. package/dist/services/reports/pdf/repair-orders-pdf.service.d.ts +4 -4
  80. package/dist/services/reports/pdf/repair-orders-pdf.service.js +9 -9
  81. package/dist/services/ro-pdf.service.js +2 -2
  82. package/dist/services/separate-wo-print.service.js +1 -1
  83. package/dist/shared/shared-pdf.service.d.ts +3 -3
  84. package/dist/shared/shared-pdf.service.js +33 -32
  85. package/dist/utils/tr-utils.d.ts +1 -1
  86. package/dist/utils/tr-utils.js +2 -2
  87. package/package.json +1 -1
@@ -4,7 +4,8 @@ exports.CategoryWiseItemPDFService = void 0;
4
4
  const shared_pdf_service_1 = require("../../../../shared/shared-pdf.service");
5
5
  const tr_utils_1 = require("../../../../utils/tr-utils");
6
6
  class CategoryWiseItemPDFService {
7
- static GetCategoryWiseItemSales(InvoicesData, CName, isPhar, isHC, isSale, searchValue) {
7
+ static GetCategoryWiseItemSales(InvoicesData, EntityData, isPhar, isHC, isSale, searchValue) {
8
+ var _a;
8
9
  var dd = {
9
10
  info: {
10
11
  title: isSale ? 'CategoryWiseItem' : 'CategoryWiseService',
@@ -14,18 +15,18 @@ class CategoryWiseItemPDFService {
14
15
  },
15
16
  pageMargins: [10, 15, 10, 15],
16
17
  content: [
17
- { text: '' + CName + '', style: ['header'] },
18
+ { text: '' + EntityData.Dame + '', style: ['header'] },
18
19
  { text: isSale ? 'Category Wise Item Sales' : 'Category Wise Service Sales', alignment: 'center', fontSize: 15, bold: true },
19
20
  shared_pdf_service_1.SharedPDFService.GetSearchValueDetails(searchValue),
20
- this.GetInvoiceDataTable(InvoicesData, isPhar, isHC, isSale),
21
+ this.GetInvoiceDataTable(InvoicesData, isPhar, isHC, isSale, (_a = EntityData.Settings) === null || _a === void 0 ? void 0 : _a.DecimalsNumber),
21
22
  ],
22
23
  styles: shared_pdf_service_1.SharedPDFService.GetStyles()
23
24
  };
24
25
  return dd;
25
26
  }
26
- static GetInvoiceDataTable(InvoicesData, isPhar, isHC, isSale) {
27
+ static GetInvoiceDataTable(InvoicesData, isPhar, isHC, isSale, DecimalsNumber) {
27
28
  let Data = [];
28
- Data.push(this.GetItemsTable(InvoicesData, isPhar, isHC, isSale));
29
+ Data.push(this.GetItemsTable(InvoicesData, isPhar, isHC, isSale, DecimalsNumber));
29
30
  return Data;
30
31
  }
31
32
  static getTableWidths(isHC) {
@@ -35,7 +36,7 @@ class CategoryWiseItemPDFService {
35
36
  return [22, '*', 25, 25, 50, 35, 40, 50, 60];
36
37
  // }
37
38
  }
38
- static GetItemsTable(InvoiceData, isPhar, isHC, isSale) {
39
+ static GetItemsTable(InvoiceData, isPhar, isHC, isSale, DecimalsNumber) {
39
40
  return {
40
41
  style: 'tableExample',
41
42
  marginTop: 3,
@@ -43,7 +44,7 @@ class CategoryWiseItemPDFService {
43
44
  table: {
44
45
  widths: this.getTableWidths(isHC),
45
46
  headerRows: 1,
46
- body: this.BuildTableBodyForLaborAndParts(InvoiceData, isPhar, isHC, isSale)
47
+ body: this.BuildTableBodyForLaborAndParts(InvoiceData, isPhar, isHC, isSale, DecimalsNumber)
47
48
  },
48
49
  layout: {
49
50
  hLineWidth: function (i, node) {
@@ -61,7 +62,7 @@ class CategoryWiseItemPDFService {
61
62
  }
62
63
  };
63
64
  }
64
- static BuildTableBodyForLaborAndParts(InvoiceData, isPhar, isHC, isSale) {
65
+ static BuildTableBodyForLaborAndParts(InvoiceData, isPhar, isHC, isSale, DecimalsNumber) {
65
66
  let body = this.GetHeaderNames(isPhar, isHC, isSale);
66
67
  InvoiceData.forEach((invoice, index) => {
67
68
  let dataRow = [];
@@ -69,11 +70,11 @@ class CategoryWiseItemPDFService {
69
70
  dataRow.push({ text: invoice.Name });
70
71
  dataRow.push({ text: invoice.Count });
71
72
  dataRow.push({ text: invoice.Qty });
72
- dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.UnAmt), alignment: 'right' });
73
- dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Disc), alignment: 'right' });
74
- dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Tax), alignment: 'right' });
75
- dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.NetAmt), alignment: 'right' });
76
- dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.AvgAmt), alignment: 'right' });
73
+ dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.UnAmt, DecimalsNumber), alignment: 'right' });
74
+ dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Disc, DecimalsNumber), alignment: 'right' });
75
+ dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Tax, DecimalsNumber), alignment: 'right' });
76
+ dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.NetAmt, DecimalsNumber), alignment: 'right' });
77
+ dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.AvgAmt, DecimalsNumber), alignment: 'right' });
77
78
  body.push(dataRow);
78
79
  });
79
80
  return body;
@@ -1,5 +1,5 @@
1
1
  export declare class CustWiseSalesDetailsService {
2
- static GetCustWiseSalesDetailsPrint(InvoicesData: any, CName: any, isPhar: boolean, isHC: boolean, isSale: boolean, searchValue: any): {
2
+ static GetCustWiseSalesDetailsPrint(InvoicesData: any, EntityData: any, isPhar: boolean, isHC: boolean, isSale: boolean, searchValue: any): {
3
3
  info: {
4
4
  title: string;
5
5
  };
@@ -205,9 +205,9 @@ export declare class CustWiseSalesDetailsService {
205
205
  };
206
206
  };
207
207
  };
208
- static GetInvoiceDataTable(InvoicesData: any, isPhar: boolean, isHC: boolean, isSale: boolean): any;
208
+ static GetInvoiceDataTable(InvoicesData: any, isPhar: boolean, isHC: boolean, isSale: boolean, DecimalsNumber: number): any;
209
209
  static getTableWidths(isHC: any): (string | number)[];
210
- static GetItemsTable(InvoiceData: any, isPhar: boolean, isHC: boolean, isSale: boolean): {
210
+ static GetItemsTable(InvoiceData: any, isPhar: boolean, isHC: boolean, isSale: boolean, DecimalsNumber: number): {
211
211
  style: string;
212
212
  marginTop: number;
213
213
  marginBottom: number;
@@ -223,6 +223,6 @@ export declare class CustWiseSalesDetailsService {
223
223
  vLineColor: (i: any, node: any) => string;
224
224
  };
225
225
  };
226
- static BuildTableBodyForLaborAndParts(InvoiceData: any, isPhar: boolean, isHC: boolean, isSale: boolean): any;
226
+ static BuildTableBodyForLaborAndParts(InvoiceData: any, isPhar: boolean, isHC: boolean, isSale: boolean, DecimalsNumber: number): any;
227
227
  static GetHeaderNames(isPhar: boolean, isHC: boolean, isSale: boolean): any;
228
228
  }
@@ -5,7 +5,8 @@ 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 CustWiseSalesDetailsService {
8
- static GetCustWiseSalesDetailsPrint(InvoicesData, CName, isPhar, isHC, isSale, searchValue) {
8
+ static GetCustWiseSalesDetailsPrint(InvoicesData, EntityData, isPhar, isHC, isSale, searchValue) {
9
+ var _a;
9
10
  var dd = {
10
11
  info: {
11
12
  title: isSale ? 'CustomerWiseSales' : 'VendorWisePurchases',
@@ -15,19 +16,19 @@ class CustWiseSalesDetailsService {
15
16
  },
16
17
  pageMargins: [10, 15, 10, 15],
17
18
  content: [
18
- { text: '' + CName + '', style: ['header'] },
19
+ { text: '' + EntityData.DName + '', style: ['header'] },
19
20
  { text: isSale ? 'Customer Wise Sales Details' : 'Vendor Wise Purchases Details', alignment: 'center', fontSize: 15, bold: true },
20
21
  shared_pdf_service_1.SharedPDFService.GetSearchValueDetails(searchValue),
21
- this.GetInvoiceDataTable(InvoicesData, isPhar, isHC, isSale),
22
+ this.GetInvoiceDataTable(InvoicesData, isPhar, isHC, isSale, (_a = EntityData.Settings) === null || _a === void 0 ? void 0 : _a.DecimalsNumber),
22
23
  ],
23
24
  styles: shared_pdf_service_1.SharedPDFService.GetStyles()
24
25
  };
25
26
  return dd;
26
27
  }
27
- static GetInvoiceDataTable(InvoicesData, isPhar, isHC, isSale) {
28
+ static GetInvoiceDataTable(InvoicesData, isPhar, isHC, isSale, DecimalsNumber) {
28
29
  let Data = [];
29
30
  // InvoicesData.forEach((invoice: any) => {
30
- Data.push(this.GetItemsTable(InvoicesData, isPhar, isHC, isSale));
31
+ Data.push(this.GetItemsTable(InvoicesData, isPhar, isHC, isSale, DecimalsNumber));
31
32
  // });
32
33
  return Data;
33
34
  }
@@ -38,7 +39,7 @@ class CustWiseSalesDetailsService {
38
39
  return [20, 50, 50, '*', 40, 40, 40, 45, 37, 40];
39
40
  // }
40
41
  }
41
- static GetItemsTable(InvoiceData, isPhar, isHC, isSale) {
42
+ static GetItemsTable(InvoiceData, isPhar, isHC, isSale, DecimalsNumber) {
42
43
  // InvoicesData.forEach((InvoiceData: any) => {
43
44
  return {
44
45
  style: 'tableExample',
@@ -47,7 +48,7 @@ class CustWiseSalesDetailsService {
47
48
  table: {
48
49
  widths: this.getTableWidths(isHC),
49
50
  headerRows: 1,
50
- body: this.BuildTableBodyForLaborAndParts(InvoiceData, isPhar, isHC, isSale)
51
+ body: this.BuildTableBodyForLaborAndParts(InvoiceData, isPhar, isHC, isSale, DecimalsNumber)
51
52
  // body:[['fsdfsdf','asfafdas','asdasdas','asdasdasd','asddass']]
52
53
  },
53
54
  layout: {
@@ -70,7 +71,7 @@ class CustWiseSalesDetailsService {
70
71
  };
71
72
  // });
72
73
  }
73
- static BuildTableBodyForLaborAndParts(InvoiceData, isPhar, isHC, isSale) {
74
+ static BuildTableBodyForLaborAndParts(InvoiceData, isPhar, isHC, isSale, DecimalsNumber) {
74
75
  let body = this.GetHeaderNames(isPhar, isHC, isSale);
75
76
  InvoiceData.forEach((invoice, index) => {
76
77
  let dataRow = [];
@@ -88,12 +89,12 @@ class CustWiseSalesDetailsService {
88
89
  else {
89
90
  dataRow.push({ text: invoice.VendName });
90
91
  }
91
- dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.SubTotal), alignment: 'right' });
92
- dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Disc), alignment: 'right' });
93
- dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Tax), alignment: 'right' });
94
- dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Adjust), alignment: 'right' });
95
- dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Round), alignment: 'right' });
96
- dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Total), alignment: 'right' });
92
+ dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.SubTotal, DecimalsNumber), alignment: 'right' });
93
+ dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Disc, DecimalsNumber), alignment: 'right' });
94
+ dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Tax, DecimalsNumber), alignment: 'right' });
95
+ dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Adjust, DecimalsNumber), alignment: 'right' });
96
+ dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Round, DecimalsNumber), alignment: 'right' });
97
+ dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Total, DecimalsNumber), alignment: 'right' });
97
98
  body.push(dataRow);
98
99
  });
99
100
  return body;
@@ -1,5 +1,5 @@
1
1
  export declare class SalesByCustomerPDFService {
2
- static GetSaleByCustPrint(InvoicesData: any, CName: any, isPhar: boolean, isHC: boolean, IsSales: boolean, HeaerName: any, searchValue: any): {
2
+ static GetSaleByCustPrint(InvoicesData: any, EntityData: any, isPhar: boolean, isHC: boolean, IsSales: boolean, HeaerName: any, searchValue: any): {
3
3
  info: {
4
4
  title: string;
5
5
  };
@@ -205,9 +205,9 @@ export declare class SalesByCustomerPDFService {
205
205
  };
206
206
  };
207
207
  };
208
- static GetInvoiceDataTable(InvoicesData: any, isPhar: boolean, isHC: boolean, IsSales: boolean): any;
208
+ static GetInvoiceDataTable(InvoicesData: any, isPhar: boolean, isHC: boolean, IsSales: boolean, DecimalsNumber: number): any;
209
209
  static getTableWidths(isHC: any): (string | number)[];
210
- static GetItemsTable(InvoiceData: any, isPhar: boolean, isHC: boolean, IsSales: boolean): {
210
+ static GetItemsTable(InvoiceData: any, isPhar: boolean, isHC: boolean, IsSales: boolean, DecimalsNumber: number): {
211
211
  style: string;
212
212
  marginTop: number;
213
213
  marginBottom: number;
@@ -223,6 +223,6 @@ export declare class SalesByCustomerPDFService {
223
223
  vLineColor: (i: any, node: any) => string;
224
224
  };
225
225
  };
226
- static BuildTableBodyForLaborAndParts(InvoiceData: any, isPhar: boolean, isHC: boolean, IsSales: boolean): any;
226
+ static BuildTableBodyForLaborAndParts(InvoiceData: any, isPhar: boolean, isHC: boolean, IsSales: boolean, DecimalsNumber: number): any;
227
227
  static GetHeaderNames(isPhar: boolean, isHC: boolean): any;
228
228
  }
@@ -4,7 +4,8 @@ exports.SalesByCustomerPDFService = void 0;
4
4
  const shared_pdf_service_1 = require("../../../../shared/shared-pdf.service");
5
5
  const tr_utils_1 = require("../../../../utils/tr-utils");
6
6
  class SalesByCustomerPDFService {
7
- static GetSaleByCustPrint(InvoicesData, CName, isPhar, isHC, IsSales, HeaerName, searchValue) {
7
+ static GetSaleByCustPrint(InvoicesData, EntityData, isPhar, isHC, IsSales, HeaerName, searchValue) {
8
+ var _a;
8
9
  var dd = {
9
10
  info: {
10
11
  title: 'CustomerWiseSalesSummary',
@@ -14,19 +15,19 @@ class SalesByCustomerPDFService {
14
15
  },
15
16
  pageMargins: [10, 15, 10, 15],
16
17
  content: [
17
- { text: '' + CName + '', style: ['header'] },
18
+ { text: '' + EntityData.DName + '', style: ['header'] },
18
19
  { text: HeaerName, alignment: 'center', fontSize: 15, bold: true },
19
20
  shared_pdf_service_1.SharedPDFService.GetSearchValueDetails(searchValue),
20
- this.GetInvoiceDataTable(InvoicesData, isPhar, isHC, IsSales),
21
+ this.GetInvoiceDataTable(InvoicesData, isPhar, isHC, IsSales, (_a = EntityData.Settings) === null || _a === void 0 ? void 0 : _a.DecimalsNumber),
21
22
  ],
22
23
  styles: shared_pdf_service_1.SharedPDFService.GetStyles()
23
24
  };
24
25
  return dd;
25
26
  }
26
- static GetInvoiceDataTable(InvoicesData, isPhar, isHC, IsSales) {
27
+ static GetInvoiceDataTable(InvoicesData, isPhar, isHC, IsSales, DecimalsNumber) {
27
28
  let Data = [];
28
29
  // InvoicesData.forEach((invoice: any) => {
29
- Data.push(this.GetItemsTable(InvoicesData, isPhar, isHC, IsSales));
30
+ Data.push(this.GetItemsTable(InvoicesData, isPhar, isHC, IsSales, DecimalsNumber));
30
31
  // });
31
32
  return Data;
32
33
  }
@@ -37,7 +38,7 @@ class SalesByCustomerPDFService {
37
38
  // return [25, '*', 40, 40, 80];
38
39
  // }
39
40
  }
40
- static GetItemsTable(InvoiceData, isPhar, isHC, IsSales) {
41
+ static GetItemsTable(InvoiceData, isPhar, isHC, IsSales, DecimalsNumber) {
41
42
  // InvoicesData.forEach((InvoiceData: any) => {
42
43
  return {
43
44
  style: 'tableExample',
@@ -46,7 +47,7 @@ class SalesByCustomerPDFService {
46
47
  table: {
47
48
  widths: this.getTableWidths(isHC),
48
49
  headerRows: 1,
49
- body: this.BuildTableBodyForLaborAndParts(InvoiceData, isPhar, isHC, IsSales)
50
+ body: this.BuildTableBodyForLaborAndParts(InvoiceData, isPhar, isHC, IsSales, DecimalsNumber)
50
51
  // body:[['fsdfsdf','asfafdas','asdasdas','asdasdasd','asddass']]
51
52
  },
52
53
  layout: {
@@ -69,7 +70,7 @@ class SalesByCustomerPDFService {
69
70
  };
70
71
  // });
71
72
  }
72
- static BuildTableBodyForLaborAndParts(InvoiceData, isPhar, isHC, IsSales) {
73
+ static BuildTableBodyForLaborAndParts(InvoiceData, isPhar, isHC, IsSales, DecimalsNumber) {
73
74
  let body = this.GetHeaderNames(isPhar, isHC);
74
75
  InvoiceData.forEach((invoice, index) => {
75
76
  let dataRow = [];
@@ -81,12 +82,12 @@ class SalesByCustomerPDFService {
81
82
  dataRow.push({ text: invoice.VendName, style: ['headerstyle'], });
82
83
  }
83
84
  dataRow.push({ text: invoice.Count, alignment: 'right' });
84
- dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.SubTotal), alignment: 'right' });
85
- dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Disc), alignment: 'right' });
86
- dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Tax), alignment: 'right' });
87
- dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Adjust), alignment: 'right' });
88
- dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Round), alignment: 'right' });
89
- dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Total), alignment: 'right', style: ['headerstyle'], });
85
+ dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.SubTotal, DecimalsNumber), alignment: 'right' });
86
+ dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Disc, DecimalsNumber), alignment: 'right' });
87
+ dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Tax, DecimalsNumber), alignment: 'right' });
88
+ dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Adjust, DecimalsNumber), alignment: 'right' });
89
+ dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Round, DecimalsNumber), alignment: 'right' });
90
+ dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Total, DecimalsNumber), alignment: 'right', style: ['headerstyle'], });
90
91
  body.push(dataRow);
91
92
  });
92
93
  return body;
@@ -1,5 +1,5 @@
1
1
  export declare class ItemWiseDoctorSalePDFService {
2
- static GetItemWiseDoctorSalePrint(InvoicesData: any, CName: any, searchValue: any): {
2
+ static GetItemWiseDoctorSalePrint(InvoicesData: any, EntityData: any, searchValue: any): {
3
3
  info: {
4
4
  title: string;
5
5
  };
@@ -205,9 +205,9 @@ export declare class ItemWiseDoctorSalePDFService {
205
205
  };
206
206
  };
207
207
  };
208
- static GetInvoiceDataTable(InvoicesData: any): any;
208
+ static GetInvoiceDataTable(InvoicesData: any, DecimalsNumber: number): any;
209
209
  static getTableWidths(): (string | number)[];
210
- static GetItemsTable(InvoiceData: any): {
210
+ static GetItemsTable(InvoiceData: any, DecimalsNumber: number): {
211
211
  style: string;
212
212
  marginTop: number;
213
213
  marginBottom: number;
@@ -223,6 +223,6 @@ export declare class ItemWiseDoctorSalePDFService {
223
223
  vLineColor: (i: any, node: any) => string;
224
224
  };
225
225
  };
226
- static BuildTableBodyForLaborAndParts(InvoiceData: any): any;
226
+ static BuildTableBodyForLaborAndParts(InvoiceData: any, DecimalsNumber: number): any;
227
227
  static GetHeaderNames(): any;
228
228
  }
@@ -4,7 +4,7 @@ exports.ItemWiseDoctorSalePDFService = void 0;
4
4
  const shared_pdf_service_1 = require("../../../../shared/shared-pdf.service");
5
5
  const tr_utils_1 = require("../../../../utils/tr-utils");
6
6
  class ItemWiseDoctorSalePDFService {
7
- static GetItemWiseDoctorSalePrint(InvoicesData, CName, searchValue) {
7
+ static GetItemWiseDoctorSalePrint(InvoicesData, EntityData, searchValue) {
8
8
  var dd = {
9
9
  info: {
10
10
  title: 'ItemWiseDoctorSale',
@@ -14,19 +14,19 @@ class ItemWiseDoctorSalePDFService {
14
14
  },
15
15
  pageMargins: [10, 15, 10, 15],
16
16
  content: [
17
- { text: '' + CName + '', style: ['header'] },
17
+ { text: '' + EntityData.DName + '', style: ['header'] },
18
18
  { text: 'Item Wise Doctor Sale', alignment: 'center', fontSize: 15, bold: true },
19
19
  shared_pdf_service_1.SharedPDFService.GetSearchValueDetails(searchValue),
20
- this.GetInvoiceDataTable(InvoicesData),
20
+ this.GetInvoiceDataTable(InvoicesData, EntityData.Settings.DecimalsNumber),
21
21
  ],
22
22
  styles: shared_pdf_service_1.SharedPDFService.GetStyles()
23
23
  };
24
24
  return dd;
25
25
  }
26
- static GetInvoiceDataTable(InvoicesData) {
26
+ static GetInvoiceDataTable(InvoicesData, DecimalsNumber) {
27
27
  let Data = [];
28
28
  // InvoicesData.forEach((invoice: any) => {
29
- Data.push(this.GetItemsTable(InvoicesData));
29
+ Data.push(this.GetItemsTable(InvoicesData, DecimalsNumber));
30
30
  // });
31
31
  return Data;
32
32
  }
@@ -37,7 +37,7 @@ class ItemWiseDoctorSalePDFService {
37
37
  return [25, '*', '*', '*', '*'];
38
38
  // }
39
39
  }
40
- static GetItemsTable(InvoiceData) {
40
+ static GetItemsTable(InvoiceData, DecimalsNumber) {
41
41
  // InvoicesData.forEach((InvoiceData: any) => {
42
42
  return {
43
43
  style: 'tableExample',
@@ -46,7 +46,7 @@ class ItemWiseDoctorSalePDFService {
46
46
  table: {
47
47
  widths: this.getTableWidths(),
48
48
  headerRows: 1,
49
- body: this.BuildTableBodyForLaborAndParts(InvoiceData)
49
+ body: this.BuildTableBodyForLaborAndParts(InvoiceData, DecimalsNumber)
50
50
  // body:[['fsdfsdf','asfafdas','asdasdas','asdasdasd','asddass']]
51
51
  },
52
52
  layout: {
@@ -69,7 +69,7 @@ class ItemWiseDoctorSalePDFService {
69
69
  };
70
70
  // });
71
71
  }
72
- static BuildTableBodyForLaborAndParts(InvoiceData) {
72
+ static BuildTableBodyForLaborAndParts(InvoiceData, DecimalsNumber) {
73
73
  let body = this.GetHeaderNames();
74
74
  // let Row: any = [{ text: InvoiceData.Name, alignment: 'left', colSpan: isHC ? 5 : 8, bold: true, fontSize: 12 }, {}, {}, {}, {}];
75
75
  // if (!isHC) {
@@ -106,8 +106,8 @@ class ItemWiseDoctorSalePDFService {
106
106
  dataRow.push({ text: invoice.Name });
107
107
  dataRow.push({ text: invoice.Count });
108
108
  // if(!isHC){
109
- dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Qty), alignment: 'right' });
110
- dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.AvgPr), alignment: 'right' });
109
+ dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Qty, DecimalsNumber), alignment: 'right' });
110
+ dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.AvgPr, DecimalsNumber), alignment: 'right' });
111
111
  // dataRow.push({ text: TrUtils.FixPriceValue(invoice.Total), alignment: 'right' });
112
112
  // dataRow.push({ text: TrUtils.IsNull(invoice.Prod) ? '' : invoice.Prod?.Model + ' ' + invoice.Prod?.Var });
113
113
  // }
@@ -1,5 +1,5 @@
1
1
  export declare class ItemWiseSalesPDFService {
2
- static GetItemWiseSalesPrint(InvoicesData: any, CName: any, HeaerName: any, searchValue: any): {
2
+ static GetItemWiseSalesPrint(InvoicesData: any, EntityData: any, HeaderName: any, searchValue: any): {
3
3
  info: {
4
4
  title: string;
5
5
  };
@@ -205,9 +205,9 @@ export declare class ItemWiseSalesPDFService {
205
205
  };
206
206
  };
207
207
  };
208
- static GetInvoiceDataTable(InvoicesData: any): any;
208
+ static GetInvoiceDataTable(InvoicesData: any, DecimalsNumber: number): any;
209
209
  static getTableWidths(): (string | number)[];
210
- static GetItemsTable(InvoiceData: any): {
210
+ static GetItemsTable(InvoiceData: any, DecimalsNumber: number): {
211
211
  style: string;
212
212
  marginTop: number;
213
213
  marginBottom: number;
@@ -223,6 +223,6 @@ export declare class ItemWiseSalesPDFService {
223
223
  vLineColor: (i: any, node: any) => string;
224
224
  };
225
225
  };
226
- static BuildTableBodyForLaborAndParts(InvoiceData: any): any;
226
+ static BuildTableBodyForLaborAndParts(InvoiceData: any, DecimalsNumber: number): any;
227
227
  static GetHeaderNames(): any;
228
228
  }
@@ -1,10 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ItemWiseSalesPDFService = void 0;
4
+ const aggregation_1 = require("../../../../aggregation/aggregation");
4
5
  const shared_pdf_service_1 = require("../../../../shared/shared-pdf.service");
5
6
  const tr_utils_1 = require("../../../../utils/tr-utils");
6
7
  class ItemWiseSalesPDFService {
7
- static GetItemWiseSalesPrint(InvoicesData, CName, HeaerName, searchValue) {
8
+ static GetItemWiseSalesPrint(InvoicesData, EntityData, HeaderName, searchValue) {
8
9
  var dd = {
9
10
  info: {
10
11
  title: 'ItemsWiseSale',
@@ -14,19 +15,19 @@ class ItemWiseSalesPDFService {
14
15
  },
15
16
  pageMargins: [10, 15, 10, 15],
16
17
  content: [
17
- { text: '' + CName + '', style: ['header'] },
18
- { text: HeaerName, alignment: 'center', fontSize: 15, bold: true },
18
+ { text: '' + EntityData.DName + '', style: ['header'] },
19
+ { text: HeaderName, alignment: 'center', fontSize: 15, bold: true },
19
20
  shared_pdf_service_1.SharedPDFService.GetSearchValueDetails(searchValue),
20
- this.GetInvoiceDataTable(InvoicesData),
21
+ this.GetInvoiceDataTable(InvoicesData, EntityData.Settings.DecimalsNumber),
21
22
  ],
22
23
  styles: shared_pdf_service_1.SharedPDFService.GetStyles()
23
24
  };
24
25
  return dd;
25
26
  }
26
- static GetInvoiceDataTable(InvoicesData) {
27
+ static GetInvoiceDataTable(InvoicesData, DecimalsNumber) {
27
28
  let Data = [];
28
29
  // InvoicesData.forEach((invoice: any) => {
29
- Data.push(this.GetItemsTable(InvoicesData));
30
+ Data.push(this.GetItemsTable(InvoicesData, DecimalsNumber));
30
31
  // });
31
32
  return Data;
32
33
  }
@@ -37,7 +38,7 @@ class ItemWiseSalesPDFService {
37
38
  // return [25, '*', 40, 40, 80];
38
39
  // }
39
40
  }
40
- static GetItemsTable(InvoiceData) {
41
+ static GetItemsTable(InvoiceData, DecimalsNumber) {
41
42
  // InvoicesData.forEach((InvoiceData: any) => {
42
43
  return {
43
44
  style: 'tableExample',
@@ -46,7 +47,7 @@ class ItemWiseSalesPDFService {
46
47
  table: {
47
48
  widths: this.getTableWidths(),
48
49
  headerRows: 1,
49
- body: this.BuildTableBodyForLaborAndParts(InvoiceData)
50
+ body: this.BuildTableBodyForLaborAndParts(InvoiceData, DecimalsNumber)
50
51
  // body:[['fsdfsdf','asfafdas','asdasdas','asdasdasd','asddass']]
51
52
  },
52
53
  layout: {
@@ -69,7 +70,7 @@ class ItemWiseSalesPDFService {
69
70
  };
70
71
  // });
71
72
  }
72
- static BuildTableBodyForLaborAndParts(InvoiceData) {
73
+ static BuildTableBodyForLaborAndParts(InvoiceData, DecimalsNumber) {
73
74
  let body = this.GetHeaderNames();
74
75
  // let Row: any = [{ text: InvoiceData.Name, alignment: 'left', colSpan: isHC ? 5 : 8, bold: true, fontSize: 12 }, {}, {}, {}, {}];
75
76
  // if (!isHC) {
@@ -112,11 +113,11 @@ class ItemWiseSalesPDFService {
112
113
  // dataRow.push({ text: invoice.SubTotal, alignment: 'right' });
113
114
  // // if(!isHC){
114
115
  // dataRow.push({ text: invoice.OfQty, alignment: 'right' });
115
- dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.UnAmt), alignment: 'right' });
116
- dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Disc), alignment: 'right' });
117
- dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Tax), alignment: 'right' });
118
- dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.NetAmt + invoice.Tax), alignment: 'right' });
119
- dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.AvgPr), alignment: 'right' });
116
+ dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.UnAmt, DecimalsNumber), alignment: 'right' });
117
+ dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Disc, DecimalsNumber), alignment: 'right' });
118
+ dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Tax, DecimalsNumber), alignment: 'right' });
119
+ dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue((0, aggregation_1.addition)(invoice.NetAmt, invoice.Tax), DecimalsNumber), alignment: 'right' });
120
+ dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.AvgPr, DecimalsNumber), alignment: 'right' });
120
121
  // dataRow.push({ text: TrUtils.IsNull(invoice.Prod) ? '' : invoice.Prod?.Model + ' ' + invoice.Prod?.Var });
121
122
  // }
122
123
  // dataRow.push({ text: invoice.BFrom.Name, alignment: 'left', style: ['headerstyle'], });
@@ -1,5 +1,5 @@
1
1
  export declare class ManfWiseSalesService {
2
- static GetManfWiseSalePrint(InvoicesData: any, CName: any, isPhar: boolean, isHC: boolean, isSale: boolean, HeaderName: any, searchValue: any): {
2
+ static GetManfWiseSalePrint(InvoicesData: any, EntityData: any, isPhar: boolean, isHC: boolean, isSale: boolean, HeaderName: any, searchValue: any): {
3
3
  info: {
4
4
  title: string;
5
5
  };
@@ -205,9 +205,9 @@ export declare class ManfWiseSalesService {
205
205
  };
206
206
  };
207
207
  };
208
- static GetInvoiceDataTable(InvoicesData: any, isPhar: boolean, isHC: boolean, isSale: boolean): any;
208
+ static GetInvoiceDataTable(InvoicesData: any, isPhar: boolean, isHC: boolean, isSale: boolean, DecimalsNumber: number): any;
209
209
  static getTableWidths(isSale: any): (string | number)[];
210
- static GetItemsTable(InvoiceData: any, isPhar: boolean, isHC: boolean, isSale: boolean): {
210
+ static GetItemsTable(InvoiceData: any, isPhar: boolean, isHC: boolean, isSale: boolean, DecimalsNumber: number): {
211
211
  style: string;
212
212
  marginTop: number;
213
213
  marginBottom: number;
@@ -223,6 +223,6 @@ export declare class ManfWiseSalesService {
223
223
  vLineColor: (i: any, node: any) => string;
224
224
  };
225
225
  };
226
- static BuildTableBodyForLaborAndParts(InvoiceData: any, isPhar: boolean, isHC: boolean, isSale: boolean): any;
226
+ static BuildTableBodyForLaborAndParts(InvoiceData: any, isPhar: boolean, isHC: boolean, isSale: boolean, DecimalsNumber: number): any;
227
227
  static GetHeaderNames(isPhar: boolean, isHC: boolean, isSale: boolean): any;
228
228
  }
@@ -1,10 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ManfWiseSalesService = void 0;
4
+ const aggregation_1 = require("../../../../aggregation/aggregation");
4
5
  const shared_pdf_service_1 = require("../../../../shared/shared-pdf.service");
5
6
  const tr_utils_1 = require("../../../../utils/tr-utils");
6
7
  class ManfWiseSalesService {
7
- static GetManfWiseSalePrint(InvoicesData, CName, isPhar, isHC, isSale, HeaderName, searchValue) {
8
+ static GetManfWiseSalePrint(InvoicesData, EntityData, isPhar, isHC, isSale, HeaderName, searchValue) {
8
9
  var dd = {
9
10
  info: {
10
11
  title: 'ManfWiseSale',
@@ -14,19 +15,19 @@ class ManfWiseSalesService {
14
15
  },
15
16
  pageMargins: [10, 15, 10, 15],
16
17
  content: [
17
- { text: '' + CName + '', style: ['header'] },
18
+ { text: '' + EntityData.DName + '', style: ['header'] },
18
19
  { text: HeaderName, alignment: 'center', fontSize: 15, bold: true },
19
20
  shared_pdf_service_1.SharedPDFService.GetSearchValueDetails(searchValue),
20
- this.GetInvoiceDataTable(InvoicesData, isPhar, isHC, isSale),
21
+ this.GetInvoiceDataTable(InvoicesData, isPhar, isHC, isSale, EntityData.Settings.DecimalsNumber),
21
22
  ],
22
23
  styles: shared_pdf_service_1.SharedPDFService.GetStyles()
23
24
  };
24
25
  return dd;
25
26
  }
26
- static GetInvoiceDataTable(InvoicesData, isPhar, isHC, isSale) {
27
+ static GetInvoiceDataTable(InvoicesData, isPhar, isHC, isSale, DecimalsNumber) {
27
28
  let Data = [];
28
29
  // InvoicesData.forEach((invoice: any) => {
29
- Data.push(this.GetItemsTable(InvoicesData, isPhar, isHC, isSale));
30
+ Data.push(this.GetItemsTable(InvoicesData, isPhar, isHC, isSale, DecimalsNumber));
30
31
  // });
31
32
  return Data;
32
33
  }
@@ -38,7 +39,7 @@ class ManfWiseSalesService {
38
39
  return [22, '*', 25, 35, 50, 50, 50, 80];
39
40
  }
40
41
  }
41
- static GetItemsTable(InvoiceData, isPhar, isHC, isSale) {
42
+ static GetItemsTable(InvoiceData, isPhar, isHC, isSale, DecimalsNumber) {
42
43
  // InvoicesData.forEach((InvoiceData: any) => {
43
44
  return {
44
45
  style: 'tableExample',
@@ -47,7 +48,7 @@ class ManfWiseSalesService {
47
48
  table: {
48
49
  widths: this.getTableWidths(isSale),
49
50
  headerRows: 1,
50
- body: this.BuildTableBodyForLaborAndParts(InvoiceData, isPhar, isHC, isSale)
51
+ body: this.BuildTableBodyForLaborAndParts(InvoiceData, isPhar, isHC, isSale, DecimalsNumber)
51
52
  // body:[['fsdfsdf','asfafdas','asdasdas','asdasdasd','asddass']]
52
53
  },
53
54
  layout: {
@@ -70,7 +71,7 @@ class ManfWiseSalesService {
70
71
  };
71
72
  // });
72
73
  }
73
- static BuildTableBodyForLaborAndParts(InvoiceData, isPhar, isHC, isSale) {
74
+ static BuildTableBodyForLaborAndParts(InvoiceData, isPhar, isHC, isSale, DecimalsNumber) {
74
75
  let body = this.GetHeaderNames(isPhar, isHC, isSale);
75
76
  // let Row: any = [{ text: InvoiceData.Name, alignment: 'left', colSpan: isHC ? 5 : 8, bold: true, fontSize: 12 }, {}, {}, {}, {}];
76
77
  // if (!isHC) {
@@ -111,13 +112,13 @@ class ManfWiseSalesService {
111
112
  dataRow.push({ text: invoice.Qty, alignment: 'right' });
112
113
  // if(!isHC){
113
114
  dataRow.push({ text: invoice.OfQty, alignment: 'right' });
114
- dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.UnAmt), alignment: 'right' });
115
- dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Disc), alignment: 'right' });
116
- dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Tax), alignment: 'right' });
115
+ dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.UnAmt, DecimalsNumber), alignment: 'right' });
116
+ dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Disc, DecimalsNumber), alignment: 'right' });
117
+ dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Tax, DecimalsNumber), alignment: 'right' });
117
118
  // dataRow.push({ text: TrUtils.IsNull(invoice.Prod) ? '' : invoice.Prod?.Model + ' ' + invoice.Prod?.Var });
118
119
  // }
119
120
  // dataRow.push({ text: invoice.BFrom.Name, alignment: 'left', style: ['headerstyle'], });
120
- dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.UnAmt + invoice.Tax), alignment: 'right', style: ['headerstyle'], });
121
+ dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue((0, aggregation_1.addition)(invoice.UnAmt, invoice.Tax), DecimalsNumber), alignment: 'right', style: ['headerstyle'], });
121
122
  // dataRow.push({ text: TrUtils.FixPriceValue(invoice.Due), alignment: 'right', style: ['headerstyle'], });
122
123
  body.push(dataRow);
123
124
  // if (InvoiceData.Invoices.length === (index + 1)) {
@@ -1,5 +1,5 @@
1
1
  export declare class OperatorWiseSalesDetailsPDF {
2
- static GetOperatorWiseSalesDetailsPrint(InvoicesData: any, CName: any, isPhar: boolean, isHC: boolean, isSale: boolean, searchValue: any): {
2
+ static GetOperatorWiseSalesDetailsPrint(InvoicesData: any, EntityData: any, isPhar: boolean, isHC: boolean, isSale: boolean, searchValue: any): {
3
3
  info: {
4
4
  title: string;
5
5
  };
@@ -205,9 +205,9 @@ export declare class OperatorWiseSalesDetailsPDF {
205
205
  };
206
206
  };
207
207
  };
208
- static GetInvoiceDataTable(InvoicesData: any, isPhar: boolean, isHC: boolean): any;
208
+ static GetInvoiceDataTable(InvoicesData: any, isPhar: boolean, isHC: boolean, DecimalsNumber: number): any;
209
209
  static getTableWidths(isHC: any): (string | number)[];
210
- static GetItemsTable(InvoiceData: any, isPhar: boolean, isHC: boolean): {
210
+ static GetItemsTable(InvoiceData: any, isPhar: boolean, isHC: boolean, DecimalsNumber: number): {
211
211
  style: string;
212
212
  marginTop: number;
213
213
  marginBottom: number;
@@ -223,6 +223,6 @@ export declare class OperatorWiseSalesDetailsPDF {
223
223
  vLineColor: (i: any, node: any) => string;
224
224
  };
225
225
  };
226
- static BuildTableBodyForLaborAndParts(InvoiceData: any, isPhar: boolean, isHC: boolean): any;
226
+ static BuildTableBodyForLaborAndParts(InvoiceData: any, isPhar: boolean, isHC: boolean, DecimalsNumber: number): any;
227
227
  static GetHeaderNames(isPhar: boolean, isHC: boolean): any;
228
228
  }