shareneus 1.4.48 → 1.4.50

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 (109) hide show
  1. package/dist/accounting/counter-sales/sales-receipt-print.service.d.ts +3 -3
  2. package/dist/accounting/counter-sales/sales-receipt-print.service.js +30 -29
  3. package/dist/accounting/credit-note/cn-print.service.d.ts +1 -2
  4. package/dist/accounting/credit-note/cn-print.service.js +10 -32
  5. package/dist/accounting/credit-note/credit-note-totals.service.d.ts +6 -6
  6. package/dist/accounting/credit-note/credit-note-totals.service.js +19 -19
  7. package/dist/accounting/debit-note/debit-note-print.service.d.ts +2 -2
  8. package/dist/accounting/debit-note/debit-note-print.service.js +15 -15
  9. package/dist/accounting/debit-note/debit-note-totals.service.d.ts +6 -6
  10. package/dist/accounting/debit-note/debit-note-totals.service.js +18 -18
  11. package/dist/accounting/invoice/hc-inv-pdf.service.d.ts +7 -7
  12. package/dist/accounting/invoice/hc-inv-pdf.service.js +36 -36
  13. package/dist/accounting/invoice/inv-pdf.service.d.ts +6 -6
  14. package/dist/accounting/invoice/inv-pdf.service.js +43 -43
  15. package/dist/accounting/invoice/inv-print.service.d.ts +3 -3
  16. package/dist/accounting/invoice/inv-print.service.js +24 -24
  17. package/dist/accounting/invoice/invoice-letterhead-pdf.service.d.ts +6 -6
  18. package/dist/accounting/invoice/invoice-letterhead-pdf.service.js +43 -43
  19. package/dist/accounting/invoice/invoice-total.service.d.ts +11 -11
  20. package/dist/accounting/invoice/invoice-total.service.js +54 -54
  21. package/dist/accounting/invoice/reports/excel/analysis-excel.service.d.ts +3 -3
  22. package/dist/accounting/invoice/reports/excel/analysis-excel.service.js +8 -7
  23. package/dist/accounting/invoice/reports/excel/category-wise-item-excel.service.d.ts +4 -4
  24. package/dist/accounting/invoice/reports/excel/category-wise-item-excel.service.js +14 -14
  25. package/dist/accounting/invoice/reports/excel/cust-wise-sales-details.d.ts +4 -4
  26. package/dist/accounting/invoice/reports/excel/cust-wise-sales-details.js +8 -8
  27. package/dist/accounting/invoice/reports/excel/cust-wise-sales-summary-excel.service.d.ts +4 -4
  28. package/dist/accounting/invoice/reports/excel/cust-wise-sales-summary-excel.service.js +8 -8
  29. package/dist/accounting/invoice/reports/excel/invoice-wise-excel.service.d.ts +4 -4
  30. package/dist/accounting/invoice/reports/excel/invoice-wise-excel.service.js +8 -8
  31. package/dist/accounting/invoice/reports/excel/item-wise-doctor-sale-excel.service.d.ts +4 -4
  32. package/dist/accounting/invoice/reports/excel/item-wise-doctor-sale-excel.service.js +10 -10
  33. package/dist/accounting/invoice/reports/excel/items-wise-sales-excel.service.d.ts +4 -4
  34. package/dist/accounting/invoice/reports/excel/items-wise-sales-excel.service.js +14 -13
  35. package/dist/accounting/invoice/reports/excel/manf-wise-sales-excel.service.d.ts +4 -4
  36. package/dist/accounting/invoice/reports/excel/manf-wise-sales-excel.service.js +8 -8
  37. package/dist/accounting/invoice/reports/excel/operator-wise-details.d.ts +4 -4
  38. package/dist/accounting/invoice/reports/excel/operator-wise-details.js +8 -8
  39. package/dist/accounting/invoice/reports/excel/operator-wise-summary.d.ts +4 -4
  40. package/dist/accounting/invoice/reports/excel/operator-wise-summary.js +8 -8
  41. package/dist/accounting/invoice/shared-inv-pdf.service.d.ts +6 -6
  42. package/dist/accounting/invoice/shared-inv-pdf.service.js +29 -29
  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/gst/excel/GSTR-RO-excel.service.d.ts +4 -4
  46. package/dist/gst/excel/GSTR-RO-excel.service.js +8 -8
  47. package/dist/gst/excel/GSTR1-excel.service.d.ts +4 -4
  48. package/dist/gst/excel/GSTR1-excel.service.js +10 -10
  49. package/dist/gst/excel/GSTR2-excel.service.d.ts +4 -4
  50. package/dist/gst/excel/GSTR2-excel.service.js +9 -9
  51. package/dist/gst/excel/tally-sales-import.service.d.ts +4 -4
  52. package/dist/gst/excel/tally-sales-import.service.js +8 -8
  53. package/dist/inventory/items/issue-parts-pdf.service.d.ts +6 -6
  54. package/dist/inventory/items/issue-parts-pdf.service.js +32 -32
  55. package/dist/inventory/items/reports/excel/expiring-drugs-excel.service.d.ts +4 -4
  56. package/dist/inventory/items/reports/excel/expiring-drugs-excel.service.js +11 -10
  57. package/dist/inventory/items/reports/excel/item-wise-mout-details.d.ts +4 -4
  58. package/dist/inventory/items/reports/excel/item-wise-mout-details.js +8 -8
  59. package/dist/inventory/items/reports/excel/item-wise-mout-summary.d.ts +4 -4
  60. package/dist/inventory/items/reports/excel/item-wise-mout-summary.js +8 -8
  61. package/dist/inventory/items/reports/excel/spares-issue-excel.service.d.ts +4 -4
  62. package/dist/inventory/items/reports/excel/spares-issue-excel.service.js +12 -12
  63. package/dist/inventory/items/reports/excel/stock-excel.service.d.ts +4 -4
  64. package/dist/inventory/items/reports/excel/stock-excel.service.js +8 -8
  65. package/dist/purchases/payment-made/reports/excel/payments-made-excel.service.d.ts +4 -4
  66. package/dist/purchases/payment-made/reports/excel/payments-made-excel.service.js +9 -9
  67. package/dist/purchases/payment-made/reports/excel/ven-balance-excel.service.d.ts +6 -6
  68. package/dist/purchases/payment-made/reports/excel/ven-balance-excel.service.js +14 -14
  69. package/dist/purchases/purchase-order/po-totals.service.d.ts +7 -7
  70. package/dist/purchases/purchase-order/po-totals.service.js +24 -25
  71. package/dist/purchases/purchase-order/purchase-order-print.service.js +3 -3
  72. package/dist/purchases/purchase-order/purchase-order-totals.service.d.ts +10 -10
  73. package/dist/purchases/purchase-order/purchase-order-totals.service.js +27 -27
  74. package/dist/purchases/vendor-credit-note/vendor-credit-note-print.service.d.ts +1 -1
  75. package/dist/purchases/vendor-credit-note/vendor-credit-note-print.service.js +20 -20
  76. package/dist/purchases/vendor-credit-note/vendor-credit-note-totals.service.d.ts +8 -8
  77. package/dist/purchases/vendor-credit-note/vendor-credit-note-totals.service.js +31 -32
  78. package/dist/purchases/vendor-debit-note/vendor-debit-note-print.service.d.ts +1 -2
  79. package/dist/purchases/vendor-debit-note/vendor-debit-note-print.service.js +10 -32
  80. package/dist/purchases/vendor-debit-note/vendor-debit-note-totals.service.d.ts +6 -6
  81. package/dist/purchases/vendor-debit-note/vendor-debit-note-totals.service.js +19 -19
  82. package/dist/sales/delivery-challan/delivery-challan-print.service.d.ts +1 -2
  83. package/dist/sales/delivery-challan/delivery-challan-print.service.js +10 -33
  84. package/dist/sales/delivery-challan/delivery-challan-totals.d.ts +6 -6
  85. package/dist/sales/delivery-challan/delivery-challan-totals.js +20 -20
  86. package/dist/sales/sales/sales-print.service.d.ts +2 -2
  87. package/dist/sales/sales/sales-print.service.js +18 -18
  88. package/dist/sales/sales/sales-totals.service.d.ts +6 -6
  89. package/dist/sales/sales/sales-totals.service.js +19 -19
  90. package/dist/services/est.print-service.d.ts +18 -18
  91. package/dist/services/est.print-service.js +133 -133
  92. package/dist/services/reports/excel/insurance-expire-excel.service.d.ts +4 -4
  93. package/dist/services/reports/excel/insurance-expire-excel.service.js +8 -8
  94. package/dist/services/reports/excel/next-service-date-excel.service.d.ts +4 -4
  95. package/dist/services/reports/excel/next-service-date-excel.service.js +8 -8
  96. package/dist/services/reports/excel/repair-orders-excel.service.d.ts +5 -5
  97. package/dist/services/reports/excel/repair-orders-excel.service.js +11 -11
  98. package/dist/services/ro-print-service.d.ts +6 -6
  99. package/dist/services/ro-print-service.js +40 -40
  100. package/dist/services/ro-totals.service.d.ts +11 -11
  101. package/dist/services/ro-totals.service.js +50 -50
  102. package/dist/shared/shared-pdf.service.d.ts +0 -16
  103. package/dist/shared/shared-pdf.service.js +36 -34
  104. package/dist/shared/shared-print.service.js +1 -0
  105. package/dist/utils/tr-utils.d.ts +2 -3
  106. package/dist/utils/tr-utils.js +7 -6
  107. package/package.json +1 -1
  108. package/dist/shared/shared-pdfs/shared-pdf.service.d.ts +0 -926
  109. package/dist/shared/shared-pdfs/shared-pdf.service.js +0 -2608
@@ -4,15 +4,15 @@ exports.DeliveryChallanTotalsService = void 0;
4
4
  const aggregation_1 = require("../../aggregation/aggregation");
5
5
  const tr_utils_1 = require("../../utils/tr-utils");
6
6
  class DeliveryChallanTotalsService {
7
- static GetTotalsValue(PartsList, IsIndependentTax, DetailedInfo, Disc, Perc, TaxCodes, WithItems, Settings, isRoundable) {
7
+ static GetTotalsValue(PartsList, IsIndependentTax, DetailedInfo, Disc, Perc, TaxCodes, WithItems, Settings, isRoundable, EntitySettings) {
8
8
  // LPerc = TrUtils.SetPercToStringIfNull(LPerc);
9
9
  Perc = tr_utils_1.TrUtils.SetPercToStringIfNull(Perc);
10
10
  // LDisc = TrUtils.SetValueToZeroIfNull(LDisc);
11
11
  Disc = tr_utils_1.TrUtils.SetValueToZeroIfNull(Disc);
12
12
  PartsList = this.CalculateLaborPartValues(PartsList, IsIndependentTax);
13
- let finalTotalsData = this.GetFinalChallanDataForSave(PartsList, IsIndependentTax, Disc, Perc, DetailedInfo, Settings, isRoundable);
13
+ let finalTotalsData = this.GetFinalChallanDataForSave(PartsList, IsIndependentTax, Disc, Perc, DetailedInfo, Settings, isRoundable, EntitySettings.DecimalsNumber);
14
14
  if (DetailedInfo) {
15
- finalTotalsData = this.GetDetailedTotalsData(finalTotalsData, IsIndependentTax, PartsList, TaxCodes);
15
+ finalTotalsData = this.GetDetailedTotalsData(finalTotalsData, IsIndependentTax, PartsList, TaxCodes, EntitySettings.DecimalsNumber);
16
16
  }
17
17
  if (WithItems) {
18
18
  finalTotalsData.Items = PartsList;
@@ -50,11 +50,11 @@ class DeliveryChallanTotalsService {
50
50
  Part.IGST = tr_utils_1.TrUtils.SetValueToZeroIfNull(Part.IGST);
51
51
  return Part;
52
52
  }
53
- static GetFinalChallanDataForSave(PartsList, IsIndependentTax, Disc, Perc, DetailedInfo, Settings, isRoundable) {
53
+ static GetFinalChallanDataForSave(PartsList, IsIndependentTax, Disc, Perc, DetailedInfo, Settings, isRoundable, DecimalsNumber) {
54
54
  let finalTotalsData = {};
55
55
  finalTotalsData = this.SetMainDiscountValues(Disc, Perc, finalTotalsData, DetailedInfo);
56
56
  finalTotalsData.Settings = Settings;
57
- finalTotalsData = this.GetFinalCustomerTotalsData(finalTotalsData, PartsList, IsIndependentTax, DetailedInfo, isRoundable);
57
+ finalTotalsData = this.GetFinalCustomerTotalsData(finalTotalsData, PartsList, IsIndependentTax, DetailedInfo, isRoundable, DecimalsNumber);
58
58
  return finalTotalsData;
59
59
  }
60
60
  static SetMainDiscountValues(Disc, Perc, finalTotalsData, DetailedInfo) {
@@ -65,7 +65,7 @@ class DeliveryChallanTotalsService {
65
65
  }
66
66
  return finalTotalsData;
67
67
  }
68
- static GetFinalCustomerTotalsData(finalTotalsData, PartsList, IsIndependentTax, DetailedInfo, isRoundable) {
68
+ static GetFinalCustomerTotalsData(finalTotalsData, PartsList, IsIndependentTax, DetailedInfo, isRoundable, DecimalsNumber) {
69
69
  let CustomerAfterDiscTotals = this.GetSubTotalFor(PartsList);
70
70
  // let CustLaborTaxTotal = this.GetLaborTaxTotalFor(IsIndependentTax);
71
71
  let CustPartTaxTotal = this.GetPartsTaxTotalFor(PartsList, IsIndependentTax);
@@ -75,15 +75,15 @@ class DeliveryChallanTotalsService {
75
75
  let CustTotal = this.GetCustomerTotalBasedOnTaxType(CustPartTaxTotal, PartsList, IsIndependentTax);
76
76
  // console.log('CustTotal', CustTotal);
77
77
  if (isRoundable) {
78
- finalTotalsData.Round = tr_utils_1.TrUtils.FixedTo(Math.round(CustTotal) - CustTotal);
78
+ finalTotalsData.Round = tr_utils_1.TrUtils.FixedTo((0, aggregation_1.subtraction)(Math.round(CustTotal), CustTotal), DecimalsNumber);
79
79
  finalTotalsData.Total = Math.round(CustTotal);
80
80
  }
81
81
  else {
82
- finalTotalsData.Total = tr_utils_1.TrUtils.FixedTo(CustTotal);
82
+ finalTotalsData.Total = tr_utils_1.TrUtils.FixedTo(CustTotal, DecimalsNumber);
83
83
  }
84
84
  if (DetailedInfo) {
85
- finalTotalsData.FixedSubTotal = tr_utils_1.TrUtils.FixedTo(CustomerAfterDiscTotals);
86
- finalTotalsData.FixedTotal = tr_utils_1.TrUtils.FixedTo(CustTotal);
85
+ finalTotalsData.FixedSubTotal = tr_utils_1.TrUtils.FixedTo(CustomerAfterDiscTotals, DecimalsNumber);
86
+ finalTotalsData.FixedTotal = tr_utils_1.TrUtils.FixedTo(CustTotal, DecimalsNumber);
87
87
  }
88
88
  return finalTotalsData;
89
89
  }
@@ -100,7 +100,7 @@ class DeliveryChallanTotalsService {
100
100
  });
101
101
  return PartsTotalAfterDisc;
102
102
  }
103
- static GetDetailedTotalsData(finalTotalsData, IsIndependentTax, PartsList, TaxCodes) {
103
+ static GetDetailedTotalsData(finalTotalsData, IsIndependentTax, PartsList, TaxCodes, DecimalsNumber) {
104
104
  // finalTotalsData.CustLaborDiscTotal = this.GetLaborDiscountedTotal(opCodesList);
105
105
  finalTotalsData.CustPartsDiscTotal = this.GetPartDiscountedTotal(PartsList);
106
106
  // finalTotalsData.CustLaborTotalAfterDisc = this.GetLaborTotalAfterDiscount(opCodesList);
@@ -122,15 +122,15 @@ class DeliveryChallanTotalsService {
122
122
  finalTotalsData.CustPartSGST = tr_utils_1.TrUtils.SetValueToZeroIfNull(TaxInfo[1]);
123
123
  // finalTotalsData.CustLaborAfterTax = TrUtils.FixedTo(finalTotalsData.CustLaborITax + finalTotalsData.CustLaborTotalAfterDisc);
124
124
  finalTotalsData.CustPartAfterTax = (0, aggregation_1.addition)(finalTotalsData.CustPartITax, finalTotalsData.CustPartsTotalAfterDisc);
125
- finalTotalsData.CustTaxGroupData = this.GetTaxGroupingForPartsByHSN(PartsList, TaxCodes);
126
- finalTotalsData.CustTotalRoundedBy = tr_utils_1.TrUtils.FixedTo(finalTotalsData.Round);
127
- finalTotalsData.CustRoundedTotal = tr_utils_1.TrUtils.FixedTo(finalTotalsData.Total);
125
+ finalTotalsData.CustTaxGroupData = this.GetTaxGroupingForPartsByHSN(PartsList, TaxCodes, DecimalsNumber);
126
+ finalTotalsData.CustTotalRoundedBy = tr_utils_1.TrUtils.FixedTo(finalTotalsData.Round, DecimalsNumber);
127
+ finalTotalsData.CustRoundedTotal = tr_utils_1.TrUtils.FixedTo(finalTotalsData.Total, DecimalsNumber);
128
128
  for (var key in finalTotalsData) {
129
129
  if (key !== 'Total' && key !== 'SubTotal' &&
130
130
  key !== 'LDisc' && key !== 'LPerc' && key !== 'PDisc' &&
131
131
  key !== 'PPerc' && key !== 'Disc' && key !== 'Perc' && key !== 'Tax'
132
132
  && typeof finalTotalsData[key] === 'number') {
133
- finalTotalsData[key] = tr_utils_1.TrUtils.FixPriceValue(finalTotalsData[key]);
133
+ finalTotalsData[key] = tr_utils_1.TrUtils.FixPriceValue(finalTotalsData[key], DecimalsNumber);
134
134
  }
135
135
  }
136
136
  return finalTotalsData;
@@ -234,11 +234,11 @@ class DeliveryChallanTotalsService {
234
234
  }
235
235
  return [TotalCGSTAmt, TotalSGSTAmt, TotalIGSTAmt, TotalTaxAmt];
236
236
  }
237
- static GetTaxGroupingForPartsByHSN(Parts, TaxCodes) {
237
+ static GetTaxGroupingForPartsByHSN(Parts, TaxCodes, DecimalsNumber) {
238
238
  Parts = this.GetCombinedTaxPercentage(Parts, TaxCodes);
239
239
  // Parts = this.ResetPartsHSNIfInvalid(Parts);
240
240
  let FinalMatchedParts = this.ComparePartsByHSN(Parts, TaxCodes);
241
- return this.GetTaxGroupingInfoByHSN(FinalMatchedParts, TaxCodes);
241
+ return this.GetTaxGroupingInfoByHSN(FinalMatchedParts, TaxCodes, DecimalsNumber);
242
242
  }
243
243
  static GetCombinedTaxPercentage(Parts, TaxCodes) {
244
244
  Parts.forEach((Part) => {
@@ -284,7 +284,7 @@ class DeliveryChallanTotalsService {
284
284
  });
285
285
  return FinalMatchedParts;
286
286
  }
287
- static GetTaxGroupingInfoByHSN(FinalMatchedParts, TaxCodes) {
287
+ static GetTaxGroupingInfoByHSN(FinalMatchedParts, TaxCodes, DecimalsNumber) {
288
288
  let HSNTaxInfo = [];
289
289
  FinalMatchedParts.forEach((MatchedPart) => {
290
290
  let TaxInfo = {};
@@ -299,8 +299,8 @@ class DeliveryChallanTotalsService {
299
299
  TaxAmount = (0, aggregation_1.addition)(TaxAmount, argMatchedGSTPart.SGST);
300
300
  });
301
301
  TaxInfo.HSN = HSN;
302
- TaxInfo.TotalTaxableAmount = tr_utils_1.TrUtils.FixPriceValue(TaxOnAmount);
303
- TaxInfo.TotalTaxAmount = tr_utils_1.TrUtils.FixPriceValue(TaxAmount);
302
+ TaxInfo.TotalTaxableAmount = tr_utils_1.TrUtils.FixPriceValue(TaxOnAmount, DecimalsNumber);
303
+ TaxInfo.TotalTaxAmount = tr_utils_1.TrUtils.FixPriceValue(TaxAmount, DecimalsNumber);
304
304
  TaxInfo.ItemsCount = MatchedPart.length;
305
305
  // let GSTValues: any[] = this.GetGSTValueBasedOnTaxCode(MatchedPart[0].TCode, TaxCodes);
306
306
  // TaxInfo.CGST = GSTValues[0];
@@ -3,7 +3,7 @@ export declare class SalesPrintService {
3
3
  static GetPrintConditionsBasedOnInput(InvoicePrintData: any, IncludeGST: boolean, ConsolidateGST: boolean, ForInsurance: boolean, SType: any, OriginalInvoiceData: any, IsProforma: boolean): any;
4
4
  static GetInvoiceTypeHeading(InvoicePrintData: any, OriginalInvoiceData: any, IncludeGST: boolean, ConsolidateGST: boolean, IsProforma: boolean): any;
5
5
  static GetInvoiceOtherDetailsForPrint(InvoicePrintData: any, OriginalInvoiceData: any): any;
6
- static GetItemsPrintInfo(Items: any, Consolidate: boolean, TaxCodes: any, isOtherIndustry: boolean, LineTotal: string): any;
6
+ static GetItemsPrintInfo(Items: any, Consolidate: boolean, TaxCodes: any, isOtherIndustry: boolean, LineTotal: string, DecimalsNumber: number): any;
7
7
  static ReverseItemsForInvoicePrint(argInvoiceData: any): any;
8
8
  static PrepareFormatForInvoicePrint(InvoicePrintData: any, ROType: any, InvoiceStatus: any): any[];
9
9
  static GetFormattedProductDataForPrint(OriginalInvoiceData: any, InvoicePrintData: any): any;
@@ -11,5 +11,5 @@ export declare class SalesPrintService {
11
11
  static GetBillNameForInvoicePrint(OriginalInvoiceData: any, InvoicePrintData: any): any;
12
12
  static GetCustomerDetails(OriginalInvoiceData: any): any;
13
13
  static GetBillToName(Title: any, Name: string): string;
14
- static GetPaymentsTotal(InvoicePayments: any, Total: number, InvoiceStatus: string): any;
14
+ static GetPaymentsTotal(InvoicePayments: any, Total: number, InvoiceStatus: string, DecimalsNumber: number): any;
15
15
  }
@@ -34,13 +34,13 @@ class SalesPrintService {
34
34
  // argInvoiceData.Items = argInvoiceData.Items.filter((item: any) => {
35
35
  // return TrUtils.IsNull(item.Type);
36
36
  // });
37
- let finalTotalsData = sales_totals_service_1.SalesTotalsService.GetTotalsValue(argInvoiceData.Items, IsTaxable, true, argInvoiceData.PDisc, argInvoiceData.PPerc, argInvoiceData.Disc, argInvoiceData.Perc, TaxCodes, true, argInvoiceData.Settings, InvoicePrintData.Entity.Round);
37
+ let finalTotalsData = sales_totals_service_1.SalesTotalsService.GetTotalsValue(argInvoiceData.Items, IsTaxable, true, argInvoiceData.PDisc, argInvoiceData.PPerc, argInvoiceData.Disc, argInvoiceData.Perc, TaxCodes, true, argInvoiceData.Settings, InvoicePrintData.Entity.Round, InvoicePrintData.Entity);
38
38
  if (ConsolidateGST) {
39
39
  finalTotalsData.CustPartsTotalBeforeDisc = finalTotalsData.CustItemAfterTax;
40
40
  }
41
41
  InvoicePrintData = tr_utils_1.TrUtils.ConcatObjects(InvoicePrintData, finalTotalsData);
42
42
  // InvoicePrintData.Ops = this.GetLaborPrintInfo(InvoicePrintData.Ops, ConsolidateGST, TaxCodes);
43
- InvoicePrintData.Items = this.GetItemsPrintInfo(InvoicePrintData.Items, ConsolidateGST, TaxCodes, isOtherIndustry, (_b = (_a = OriginalEntityData.Entity.Settings) === null || _a === void 0 ? void 0 : _a.Acc) === null || _b === void 0 ? void 0 : _b.LTot);
43
+ InvoicePrintData.Items = this.GetItemsPrintInfo(InvoicePrintData.Items, ConsolidateGST, TaxCodes, isOtherIndustry, (_b = (_a = OriginalEntityData.Entity.Settings) === null || _a === void 0 ? void 0 : _a.Acc) === null || _b === void 0 ? void 0 : _b.LTot, OriginalEntityData.Entity.DecimalsNumber);
44
44
  // argInvoiceData = this.ReverseItemsForInvoicePrint(argInvoiceData);
45
45
  InvoicePrintData.PrintInfo = this.PrepareFormatForInvoicePrint(InvoicePrintData, code_enums_1.SOTypeEnum.SO, argInvoiceData.Sts);
46
46
  InvoicePrintData = this.GetFormattedProductDataForPrint(argInvoiceData, InvoicePrintData);
@@ -49,7 +49,7 @@ class SalesPrintService {
49
49
  if (tr_utils_1.TrUtils.IsNull(argInvoiceData.Payments)) {
50
50
  argInvoiceData.Payments = [];
51
51
  }
52
- let PaymentData = this.GetPaymentsTotal(argInvoiceData.Payments, InvoicePrintData.Total, argInvoiceData.Sts);
52
+ let PaymentData = this.GetPaymentsTotal(argInvoiceData.Payments, InvoicePrintData.Total, argInvoiceData.Sts, OriginalEntityData.Entity.DecimalsNumber);
53
53
  if (argInvoiceData.Settings.DiscLvl !== 'REC') {
54
54
  InvoicePrintData.FixedDisc = null;
55
55
  }
@@ -97,7 +97,7 @@ class SalesPrintService {
97
97
  InvoicePrintData.RefNo = OriginalInvoiceData.RefNo;
98
98
  return InvoicePrintData;
99
99
  }
100
- static GetItemsPrintInfo(Items, Consolidate, TaxCodes, isOtherIndustry, LineTotal) {
100
+ static GetItemsPrintInfo(Items, Consolidate, TaxCodes, isOtherIndustry, LineTotal, DecimalsNumber) {
101
101
  let Amt = 0;
102
102
  let TaxAmt = 0;
103
103
  let TotalAmt = 0;
@@ -117,25 +117,25 @@ class SalesPrintService {
117
117
  let CTaxAmtPerItem = Item.CGST / Item.Qty;
118
118
  let STaxAmtPerItem = Item.SGST / Item.Qty;
119
119
  let ITaxAmtPerItem = Item.IGST / Item.Qty;
120
- Item.UnPr = tr_utils_1.TrUtils.FixedTo(AfterDiscForEach + CTaxAmtPerItem + STaxAmtPerItem + ITaxAmtPerItem);
120
+ Item.UnPr = tr_utils_1.TrUtils.FixedTo((AfterDiscForEach + CTaxAmtPerItem + STaxAmtPerItem + ITaxAmtPerItem), DecimalsNumber);
121
121
  }
122
122
  else {
123
- Item.UnPr = tr_utils_1.TrUtils.FixPriceValue(Item.UnPr);
123
+ Item.UnPr = tr_utils_1.TrUtils.FixPriceValue(Item.UnPr, DecimalsNumber);
124
124
  }
125
125
  if (isOtherIndustry && tr_utils_1.TrUtils.IsNull(Item.Type) && !tr_utils_1.TrUtils.IsNull(Item.Model) && !tr_utils_1.TrUtils.IsNull(Item.TR)) {
126
126
  Item.Desc = Item.Desc + '( ' + Item.Model + ', ' + Item.TR + ' TR )';
127
127
  }
128
- Item.CGSTAmt = tr_utils_1.TrUtils.FixPriceValue(Item.CGST);
129
- Item.SGSTAmt = tr_utils_1.TrUtils.FixPriceValue(Item.SGST);
130
- Item.IGSTAmt = tr_utils_1.TrUtils.FixPriceValue(Item.IGST);
128
+ Item.CGSTAmt = tr_utils_1.TrUtils.FixPriceValue(Item.CGST, DecimalsNumber);
129
+ Item.SGSTAmt = tr_utils_1.TrUtils.FixPriceValue(Item.SGST, DecimalsNumber);
130
+ Item.IGSTAmt = tr_utils_1.TrUtils.FixPriceValue(Item.IGST, DecimalsNumber);
131
131
  Item.CGSTPerc = shared_print_service_1.PrintSharedService.GetCGSTValueBasedOnTaxCode(Item.TCode, TaxCodes);
132
132
  Item.SGSTPerc = shared_print_service_1.PrintSharedService.GetSGSTValueBasedOnTaxCode(Item.TCode, TaxCodes);
133
133
  Item.IGSTPerc = shared_print_service_1.PrintSharedService.GetIGSTValueBasedOnTaxCode(Item.TCode, TaxCodes);
134
134
  if (LineTotal === 'AT') {
135
- Item.LineTotal = tr_utils_1.TrUtils.FixPriceValue(Item.AfterItemTax);
135
+ Item.LineTotal = tr_utils_1.TrUtils.FixPriceValue(Item.AfterItemTax, DecimalsNumber);
136
136
  }
137
137
  else {
138
- Item.LineTotal = tr_utils_1.TrUtils.FixPriceValue((0, aggregation_1.subtraction)(Item.UnAmt, Item.Disc));
138
+ Item.LineTotal = tr_utils_1.TrUtils.FixPriceValue((0, aggregation_1.subtraction)(Item.UnAmt, Item.Disc), DecimalsNumber);
139
139
  }
140
140
  if (!tr_utils_1.TrUtils.IsZero(Item.Qty) && !tr_utils_1.TrUtils.CheckInvalidSelect(Item.UoM)) {
141
141
  Item.QtyAndUoM = Item.Qty + ' ' + Item.UoM;
@@ -143,19 +143,19 @@ class SalesPrintService {
143
143
  }
144
144
  else {
145
145
  if (Item.Type === 'Sub') {
146
- Item.LineTotal = tr_utils_1.TrUtils.FixedTo(Amt);
146
+ Item.LineTotal = tr_utils_1.TrUtils.FixedTo(Amt, DecimalsNumber);
147
147
  Amt = 0;
148
148
  }
149
149
  if (Item.Type === 'Tax') {
150
- Item.LineTotal = tr_utils_1.TrUtils.FixedTo(TaxAmt);
150
+ Item.LineTotal = tr_utils_1.TrUtils.FixedTo(TaxAmt, DecimalsNumber);
151
151
  TaxAmt = 0;
152
152
  }
153
153
  if (Item.Type === 'Disc') {
154
- Item.LineTotal = tr_utils_1.TrUtils.FixedTo(DiscAmt);
154
+ Item.LineTotal = tr_utils_1.TrUtils.FixedTo(DiscAmt, DecimalsNumber);
155
155
  DiscAmt = 0;
156
156
  }
157
157
  if (Item.Type === 'Tot') {
158
- Item.LineTotal = tr_utils_1.TrUtils.FixedTo(TotalAmt);
158
+ Item.LineTotal = tr_utils_1.TrUtils.FixedTo(TotalAmt, DecimalsNumber);
159
159
  TotalAmt = 0;
160
160
  }
161
161
  }
@@ -282,7 +282,7 @@ class SalesPrintService {
282
282
  static GetBillToName(Title, Name) {
283
283
  return tr_utils_1.TrUtils.IsEmpty(Title) ? Name : Title + ' ' + Name;
284
284
  }
285
- static GetPaymentsTotal(InvoicePayments, Total, InvoiceStatus) {
285
+ static GetPaymentsTotal(InvoicePayments, Total, InvoiceStatus, DecimalsNumber) {
286
286
  var i = 0;
287
287
  let Data = {};
288
288
  let PaidTotal = 0;
@@ -293,7 +293,7 @@ class SalesPrintService {
293
293
  Data.Due = 0;
294
294
  }
295
295
  else {
296
- Data.Due = tr_utils_1.TrUtils.FixedTo(Total - PaidTotal);
296
+ Data.Due = tr_utils_1.TrUtils.FixedTo((Total - PaidTotal), DecimalsNumber);
297
297
  }
298
298
  if (Data.Due < 0) {
299
299
  Data.Due = 0;
@@ -301,7 +301,7 @@ class SalesPrintService {
301
301
  if (Data.Due === 0) {
302
302
  Data.Sts = enums_1.InvoiceStatusEnum.Closed;
303
303
  }
304
- Data.Paid = tr_utils_1.TrUtils.FixedTo(PaidTotal);
304
+ Data.Paid = tr_utils_1.TrUtils.FixedTo(PaidTotal, DecimalsNumber);
305
305
  return Data;
306
306
  }
307
307
  }
@@ -1,14 +1,14 @@
1
1
  export declare class SalesTotalsService {
2
- static GetTotalsValue(ItemsList: any, IsIndependentTax: boolean, DetailedInfo: boolean, PDisc: any, PPerc: string, Disc: any, Perc: string, TaxCodes: any, WithItems: boolean, Settings: any, isRoundable: boolean): any;
2
+ static GetTotalsValue(ItemsList: any, IsIndependentTax: boolean, DetailedInfo: boolean, PDisc: any, PPerc: string, Disc: any, Perc: string, TaxCodes: any, WithItems: boolean, Settings: any, isRoundable: boolean, EntitySettings: any): any;
3
3
  static CalculateLaborItemValues(ItemsList: any, IsIndependentTax: boolean): any;
4
4
  static ResetLaborItemValues(ItemsList: any, IsIndependentTax: boolean): any;
5
5
  static ResetLaborItemValueIfInvalid(Item: any): any;
6
- static GetFinalRODataForSave(ItemsList: any, IsIndependentTax: boolean, PDisc: string, PPerc: string, Disc: any, Perc: string, DetailedInfo: boolean, Settings: any, isRoundable: boolean): any;
6
+ static GetFinalRODataForSave(ItemsList: any, IsIndependentTax: boolean, PDisc: string, PPerc: string, Disc: any, Perc: string, DetailedInfo: boolean, Settings: any, isRoundable: boolean, DecimalsNumber: number): any;
7
7
  static SetMainDiscountValues(PPerc: string, PDisc: any, Disc: any, Perc: string, finalTotalsData: any, DetailedInfo: boolean): any;
8
- static GetFinalCustomerTotalsData(finalTotalsData: any, ItemsList: any, IsIndependentTax: boolean, DetailedInfo: boolean, isRoundable: boolean): any;
8
+ static GetFinalCustomerTotalsData(finalTotalsData: any, ItemsList: any, IsIndependentTax: boolean, DetailedInfo: boolean, isRoundable: boolean, DecimalsNumber: number): any;
9
9
  static GetSubTotalFor(ItemsList: any): any;
10
10
  static GetItemsTotalAfterDiscount(ItemsList: any): any;
11
- static GetDetailedTotalsData(finalTotalsData: any, IsIndependentTax: boolean, ItemsList: any, TaxCodes: any): any;
11
+ static GetDetailedTotalsData(finalTotalsData: any, IsIndependentTax: boolean, ItemsList: any, TaxCodes: any, DecimalsNumber: any): any;
12
12
  static GetLaborDiscountedTotal(LaborList: any): any;
13
13
  static GetItemDiscountedTotal(ItemsList: any): any;
14
14
  static GetItemsTaxTotalFor(ItemsList: any, IsIndependentTax: boolean): any;
@@ -19,9 +19,9 @@ export declare class SalesTotalsService {
19
19
  static GetLaborIGSTTaxTotal(opCodesList: any, IsIndependentTax: boolean): any;
20
20
  static GetLaborSGSTTaxTotal(opCodesList: any, IsIndependentTax: boolean): any;
21
21
  static GetItemGSTTaxTotal(ItemsList: any, IsIndependentTax: boolean): number[];
22
- static GetTaxGroupingForItemsByHSN(Items: any, TaxCodes: any): any[];
22
+ static GetTaxGroupingForItemsByHSN(Items: any, TaxCodes: any, DecimalsNumber: number): any[];
23
23
  static GetCombinedTaxPercentage(Items: any, TaxCodes: any): any;
24
24
  static CompareItemsByHSN(Items: any, TaxCodes: any): any[];
25
- static GetTaxGroupingInfoByHSN(FinalMatchedItems: any, TaxCodes: any): any[];
25
+ static GetTaxGroupingInfoByHSN(FinalMatchedItems: any, TaxCodes: any, DecimalsNumber: number): any[];
26
26
  static GetGSTValueBasedOnTaxCode(TCode: any, TaxCodes: any): any[];
27
27
  }
@@ -4,7 +4,7 @@ exports.SalesTotalsService = void 0;
4
4
  const aggregation_1 = require("../../aggregation/aggregation");
5
5
  const tr_utils_1 = require("../../utils/tr-utils");
6
6
  class SalesTotalsService {
7
- static GetTotalsValue(ItemsList, IsIndependentTax, DetailedInfo, PDisc, PPerc, Disc, Perc, TaxCodes, WithItems, Settings, isRoundable) {
7
+ static GetTotalsValue(ItemsList, IsIndependentTax, DetailedInfo, PDisc, PPerc, Disc, Perc, TaxCodes, WithItems, Settings, isRoundable, EntitySettings) {
8
8
  // LPerc = TrUtils.SetPercToStringIfNull(LPerc);
9
9
  PPerc = tr_utils_1.TrUtils.SetPercToStringIfNull(PPerc);
10
10
  Perc = tr_utils_1.TrUtils.SetPercToStringIfNull(Perc);
@@ -13,9 +13,9 @@ class SalesTotalsService {
13
13
  Disc = tr_utils_1.TrUtils.SetValueToZeroIfNull(Disc);
14
14
  // opCodesList = this.CalculateLaborValues(opCodesList, IsIndependentTax);
15
15
  ItemsList = this.CalculateLaborItemValues(ItemsList, IsIndependentTax);
16
- let finalTotalsData = this.GetFinalRODataForSave(ItemsList, IsIndependentTax, PDisc, PPerc, Disc, Perc, DetailedInfo, Settings, isRoundable);
16
+ let finalTotalsData = this.GetFinalRODataForSave(ItemsList, IsIndependentTax, PDisc, PPerc, Disc, Perc, DetailedInfo, Settings, isRoundable, EntitySettings);
17
17
  if (DetailedInfo) {
18
- finalTotalsData = this.GetDetailedTotalsData(finalTotalsData, IsIndependentTax, ItemsList, TaxCodes);
18
+ finalTotalsData = this.GetDetailedTotalsData(finalTotalsData, IsIndependentTax, ItemsList, TaxCodes, EntitySettings);
19
19
  }
20
20
  if (WithItems) {
21
21
  finalTotalsData.Items = ItemsList;
@@ -53,11 +53,11 @@ class SalesTotalsService {
53
53
  Item.IGST = tr_utils_1.TrUtils.SetValueToZeroIfNull(Item.IGST);
54
54
  return Item;
55
55
  }
56
- static GetFinalRODataForSave(ItemsList, IsIndependentTax, PDisc, PPerc, Disc, Perc, DetailedInfo, Settings, isRoundable) {
56
+ static GetFinalRODataForSave(ItemsList, IsIndependentTax, PDisc, PPerc, Disc, Perc, DetailedInfo, Settings, isRoundable, DecimalsNumber) {
57
57
  let finalTotalsData = {};
58
58
  finalTotalsData = this.SetMainDiscountValues(PPerc, PDisc, Disc, Perc, finalTotalsData, DetailedInfo);
59
59
  finalTotalsData.Settings = Settings;
60
- finalTotalsData = this.GetFinalCustomerTotalsData(finalTotalsData, ItemsList, IsIndependentTax, DetailedInfo, isRoundable);
60
+ finalTotalsData = this.GetFinalCustomerTotalsData(finalTotalsData, ItemsList, IsIndependentTax, DetailedInfo, isRoundable, DecimalsNumber);
61
61
  return finalTotalsData;
62
62
  }
63
63
  static SetMainDiscountValues(PPerc, PDisc, Disc, Perc, finalTotalsData, DetailedInfo) {
@@ -71,7 +71,7 @@ class SalesTotalsService {
71
71
  }
72
72
  return finalTotalsData;
73
73
  }
74
- static GetFinalCustomerTotalsData(finalTotalsData, ItemsList, IsIndependentTax, DetailedInfo, isRoundable) {
74
+ static GetFinalCustomerTotalsData(finalTotalsData, ItemsList, IsIndependentTax, DetailedInfo, isRoundable, DecimalsNumber) {
75
75
  let CustomerAfterDiscTotals = this.GetSubTotalFor(ItemsList);
76
76
  // let CustLaborTaxTotal = this.GetLaborTaxTotalFor(IsIndependentTax);
77
77
  let CustItemTaxTotal = this.GetItemsTaxTotalFor(ItemsList, IsIndependentTax);
@@ -83,11 +83,11 @@ class SalesTotalsService {
83
83
  finalTotalsData.Total = Math.round(CustTotal);
84
84
  }
85
85
  else {
86
- finalTotalsData.Total = tr_utils_1.TrUtils.FixedTo(CustTotal);
86
+ finalTotalsData.Total = tr_utils_1.TrUtils.FixedTo(CustTotal, DecimalsNumber);
87
87
  }
88
88
  if (DetailedInfo) {
89
- finalTotalsData.FixedSubTotal = tr_utils_1.TrUtils.FixedTo(CustomerAfterDiscTotals);
90
- finalTotalsData.FixedTotal = tr_utils_1.TrUtils.FixedTo(CustTotal);
89
+ finalTotalsData.FixedSubTotal = tr_utils_1.TrUtils.FixedTo(CustomerAfterDiscTotals, DecimalsNumber);
90
+ finalTotalsData.FixedTotal = tr_utils_1.TrUtils.FixedTo(CustTotal, DecimalsNumber);
91
91
  }
92
92
  return finalTotalsData;
93
93
  }
@@ -103,7 +103,7 @@ class SalesTotalsService {
103
103
  });
104
104
  return ItemsTotalAfterDisc;
105
105
  }
106
- static GetDetailedTotalsData(finalTotalsData, IsIndependentTax, ItemsList, TaxCodes) {
106
+ static GetDetailedTotalsData(finalTotalsData, IsIndependentTax, ItemsList, TaxCodes, DecimalsNumber) {
107
107
  // finalTotalsData.CustLaborDiscTotal = this.GetLaborDiscountedTotal(opCodesList);
108
108
  finalTotalsData.CustItemsDiscTotal = this.GetItemDiscountedTotal(ItemsList);
109
109
  // finalTotalsData.CustLaborTotalAfterDisc = this.GetLaborTotalAfterDiscount(opCodesList);
@@ -121,15 +121,15 @@ class SalesTotalsService {
121
121
  finalTotalsData.CustItemSGST = tr_utils_1.TrUtils.SetValueToZeroIfNull(TaxInfo[1]);
122
122
  // finalTotalsData.CustLaborAfterTax = TrUtils.FixedTo(finalTotalsData.CustLaborITax + finalTotalsData.CustLaborTotalAfterDisc);
123
123
  finalTotalsData.CustItemAfterTax = (0, aggregation_1.addition)(finalTotalsData.CustItemITax, finalTotalsData.CustItemsTotalAfterDisc);
124
- finalTotalsData.CustTaxGroupData = this.GetTaxGroupingForItemsByHSN(ItemsList, TaxCodes);
125
- finalTotalsData.CustTotalRoundedBy = tr_utils_1.TrUtils.FixedTo(finalTotalsData.Round);
126
- finalTotalsData.CustRoundedTotal = tr_utils_1.TrUtils.FixedTo(finalTotalsData.Total);
124
+ finalTotalsData.CustTaxGroupData = this.GetTaxGroupingForItemsByHSN(ItemsList, TaxCodes, DecimalsNumber);
125
+ finalTotalsData.CustTotalRoundedBy = tr_utils_1.TrUtils.FixedTo(finalTotalsData.Round, DecimalsNumber);
126
+ finalTotalsData.CustRoundedTotal = tr_utils_1.TrUtils.FixedTo(finalTotalsData.Total, DecimalsNumber);
127
127
  for (var key in finalTotalsData) {
128
128
  if (key !== 'Total' && key !== 'SubTotal' &&
129
129
  key !== 'LDisc' && key !== 'LPerc' && key !== 'PDisc' &&
130
130
  key !== 'PPerc' && key !== 'Disc' && key !== 'Perc' && key !== 'Tax'
131
131
  && typeof finalTotalsData[key] === 'number') {
132
- finalTotalsData[key] = tr_utils_1.TrUtils.FixPriceValue(finalTotalsData[key]);
132
+ finalTotalsData[key] = tr_utils_1.TrUtils.FixPriceValue(finalTotalsData[key], DecimalsNumber);
133
133
  }
134
134
  }
135
135
  return finalTotalsData;
@@ -233,11 +233,11 @@ class SalesTotalsService {
233
233
  }
234
234
  return [TotalCGSTAmt, TotalSGSTAmt, TotalIGSTAmt, TotalTaxAmt];
235
235
  }
236
- static GetTaxGroupingForItemsByHSN(Items, TaxCodes) {
236
+ static GetTaxGroupingForItemsByHSN(Items, TaxCodes, DecimalsNumber) {
237
237
  Items = this.GetCombinedTaxPercentage(Items, TaxCodes);
238
238
  // Items = this.ResetItemsHSNIfInvalid(Items);
239
239
  let FinalMatchedItems = this.CompareItemsByHSN(Items, TaxCodes);
240
- return this.GetTaxGroupingInfoByHSN(FinalMatchedItems, TaxCodes);
240
+ return this.GetTaxGroupingInfoByHSN(FinalMatchedItems, TaxCodes, DecimalsNumber);
241
241
  }
242
242
  static GetCombinedTaxPercentage(Items, TaxCodes) {
243
243
  Items.forEach((Item) => {
@@ -283,7 +283,7 @@ class SalesTotalsService {
283
283
  });
284
284
  return FinalMatchedItems;
285
285
  }
286
- static GetTaxGroupingInfoByHSN(FinalMatchedItems, TaxCodes) {
286
+ static GetTaxGroupingInfoByHSN(FinalMatchedItems, TaxCodes, DecimalsNumber) {
287
287
  let HSNTaxInfo = [];
288
288
  FinalMatchedItems.forEach((MatchedItem) => {
289
289
  let TaxInfo = {};
@@ -298,8 +298,8 @@ class SalesTotalsService {
298
298
  TaxAmount = (0, aggregation_1.addition)(TaxAmount, argMatchedGSTItem.SGST);
299
299
  });
300
300
  TaxInfo.HSN = HSN;
301
- TaxInfo.TotalTaxableAmount = tr_utils_1.TrUtils.FixPriceValue(TaxOnAmount);
302
- TaxInfo.TotalTaxAmount = tr_utils_1.TrUtils.FixPriceValue(TaxAmount);
301
+ TaxInfo.TotalTaxableAmount = tr_utils_1.TrUtils.FixPriceValue(TaxOnAmount, DecimalsNumber);
302
+ TaxInfo.TotalTaxAmount = tr_utils_1.TrUtils.FixPriceValue(TaxAmount, DecimalsNumber);
303
303
  TaxInfo.ItemsCount = MatchedItem.length;
304
304
  // let GSTValues: any[] = this.GetGSTValueBasedOnTaxCode(MatchedItem[0].TCode, TaxCodes);
305
305
  // TaxInfo.CGST = GSTValues[0];
@@ -27,32 +27,32 @@ export declare class EstPrintService {
27
27
  static SeparateROCollisionsByItems(Collisions: any, Ops: any, Parts: any): any[];
28
28
  static ResetQtyAndUoM(Parts: any): any;
29
29
  static CheckAndShowItemsAsAR(argROData: any): boolean;
30
- static ConvertItemsAsAR(ROPrintData: any, Consolidate: boolean): any;
30
+ static ConvertItemsAsAR(ROPrintData: any, Consolidate: boolean, DecimalsNumber: number): any;
31
31
  static ResetItemsDataById(Collision: any, AddedOperations: any[], AddedParts: any[]): any;
32
32
  static GetPartDataById(PartId: any, AddedParts: any[]): any;
33
33
  static GetLaborDataById(LaborId: any, AddedOperations: any[]): any;
34
34
  static EmptyInvalidCollisionRepairItems(Colli: any): any;
35
- static GetLineTotals(ROPrintData: any, IncludeGST: boolean, AsCustomerOnly: boolean, AsInsuranceOnly: boolean, Consolidate: boolean): any;
35
+ static GetLineTotals(ROPrintData: any, IncludeGST: boolean, AsCustomerOnly: boolean, AsInsuranceOnly: boolean, Consolidate: boolean, DecimalsNumber: number): any;
36
36
  static GetCollisionPartLineTotal(PartData: any, AsCustomerOnly: boolean, AsInsuranceOnly: boolean, Consolidate: boolean): number;
37
37
  static GetCollisionLaborLineTotal(LaborData: any, AsCustomerOnly: boolean, AsInsuranceOnly: boolean, Consolidate: boolean): number;
38
- static GetLaborLineTotal(LaborData: any, IncludeGST: boolean, AsCustomerOnly: boolean, AsInsuranceOnly: boolean, Consolidate: boolean): number;
39
- static GetPartLineTotal(PartData: any, IncludeGST: boolean, AsCustomerOnly: boolean, AsInsuranceOnly: boolean, Consolidate: boolean): number;
38
+ static GetLaborLineTotal(LaborData: any, IncludeGST: boolean, AsCustomerOnly: boolean, AsInsuranceOnly: boolean, Consolidate: boolean, DecimalsNumber: number): number;
39
+ static GetPartLineTotal(PartData: any, IncludeGST: boolean, AsCustomerOnly: boolean, AsInsuranceOnly: boolean, Consolidate: boolean, DecimalsNumber: number): number;
40
40
  static ReverseItemsForROPrint(argROData: any, isReverse: boolean): any;
41
- static CheckAndGetCombinedTotals(AsCustomerAndInsurance: boolean, AsInsuranceOrCustomer: boolean, finalTotalsData: any): any;
42
- static GetDetailedInfoForItems(ROTotalsData: any): any;
43
- static GetCustLaborPrintInfo(LaborList: any): any;
44
- static GetCustItemsPrintInfo(Items: any, LaborList: any): any;
45
- static GetCustTaxInfo(ROTotalsData: any, IncludeGST: boolean, TaxCodes: any[]): any;
46
- static GetCustLaborTaxInfo(LaborList: any, IncludeGST: boolean, TaxCodes: any[]): any;
47
- static GetCustPartTaxInfo(Items: any, LaborList: any, IncludeGST: boolean, TaxCodes: any[]): any;
48
- static GetLaborAndPartItemsAfterDisc(ROTotalsData: any): any;
49
- static GetCustLaborAfterDiscPrintInfo(LaborList: any): any;
50
- static GetCustItemsAfterDiscPrintInfo(Items: any, LaborList: any): any;
41
+ static CheckAndGetCombinedTotals(AsCustomerAndInsurance: boolean, AsInsuranceOrCustomer: boolean, finalTotalsData: any, DecimalsNumber: number): any;
42
+ static GetDetailedInfoForItems(ROTotalsData: any, DecimalsNumber: number): any;
43
+ static GetCustLaborPrintInfo(LaborList: any, DecimalsNumber: number): any;
44
+ static GetCustItemsPrintInfo(Items: any, LaborList: any, DecimalsNumber: number): any;
45
+ static GetCustTaxInfo(ROTotalsData: any, IncludeGST: boolean, TaxCodes: any[], DecimalsNumber: number): any;
46
+ static GetCustLaborTaxInfo(LaborList: any, IncludeGST: boolean, TaxCodes: any[], DecimalsNumber: number): any;
47
+ static GetCustPartTaxInfo(Items: any, LaborList: any, IncludeGST: boolean, TaxCodes: any[], DecimalsNumber: number): any;
48
+ static GetLaborAndPartItemsAfterDisc(ROTotalsData: any, DecimalsNumber: number): any;
49
+ static GetCustLaborAfterDiscPrintInfo(LaborList: any, DecimalsNumber: number): any;
50
+ static GetCustItemsAfterDiscPrintInfo(Items: any, LaborList: any, DecimalsNumber: number): any;
51
51
  static GetPartParentStatus(PartOpId: any, LaborList: any): any;
52
- static GetCombinedInfoForItems(ROTotalsData: any): any;
53
- static GetLaborCombinedPrintInfo(LaborList: any): any;
54
- static GetItemsCombinedPrintInfo(Items: any): any;
55
- static GetSplitInfoForParts(Items: any): any;
52
+ static GetCombinedInfoForItems(ROTotalsData: any, DecimalsNumber: number): any;
53
+ static GetLaborCombinedPrintInfo(LaborList: any, DecimalsNumber: number): any;
54
+ static GetItemsCombinedPrintInfo(Items: any, DecimalsNumber: number): any;
55
+ static GetSplitInfoForParts(Items: any, DecimalsNumber: number): any;
56
56
  static CheckLaborTaxItemIndex(LaborList: any[]): any;
57
57
  static CheckPartTaxItemIndex(PartsList: any[]): any;
58
58
  static PrepareFormatForEstPrint(ROPrintData: any, SuppEstCodeValue: any, OverAllEst: boolean, argROType: any, AsEstimated: boolean): any[];