shareneus 1.4.50 → 1.4.51

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 +31 -30
  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
@@ -735,7 +735,7 @@ class PurchaseOrderPDFService {
735
735
  ];
736
736
  let total = {
737
737
  name: 'Total',
738
- value: tr_utils_1.TrUtils.FixPriceValue(OverAllRecordTotal)
738
+ value: tr_utils_1.TrUtils.FixPriceValue(OverAllRecordTotal, RecordData.Entity.DecimalsNumber)
739
739
  };
740
740
  let Rounding = { name: 'Rounding', value: Rounded };
741
741
  let FinalTotal = { name: 'Total', value: GrandTotal };
@@ -743,22 +743,22 @@ class PurchaseOrderPDFService {
743
743
  Rounding.value = '+' + Rounding.value;
744
744
  }
745
745
  if (!tr_utils_1.TrUtils.IsFixedZero(SubTotal)) {
746
- AccountFields.push({ name: 'SubTotal', value: tr_utils_1.TrUtils.FixPriceValue(SubTotal) });
746
+ AccountFields.push({ name: 'SubTotal', value: tr_utils_1.TrUtils.FixPriceValue(SubTotal, RecordData.Entity.DecimalsNumber) });
747
747
  }
748
748
  if (!tr_utils_1.TrUtils.IsEmpty(PartsDiscTotal) && !moreDiscDetails) {
749
749
  AccountFields.push({ name: 'Discount', value: '-' + PartsDiscTotal });
750
750
  }
751
751
  else {
752
- AccountFields.push({ name: 'Overall Discount', value: '-' + tr_utils_1.TrUtils.FixPriceValue(RecordData.Disc) });
752
+ AccountFields.push({ name: 'Overall Discount', value: '-' + tr_utils_1.TrUtils.FixPriceValue(RecordData.Disc, RecordData.Entity.DecimalsNumber) });
753
753
  }
754
754
  if (!tr_utils_1.TrUtils.IsEmpty(TaxTotal)) {
755
755
  AccountFields.push({ name: 'Total Tax', value: TaxTotal });
756
756
  }
757
757
  if (!tr_utils_1.TrUtils.IsEmpty(Adj)) {
758
758
  if (Adj > 0) {
759
- Adj = '+' + tr_utils_1.TrUtils.FixPriceValue(Adj);
759
+ Adj = '+' + tr_utils_1.TrUtils.FixPriceValue(Adj, RecordData.Entity.DecimalsNumber);
760
760
  }
761
- AccountFields.push({ name: 'Adjust', value: tr_utils_1.TrUtils.FixPriceValue(Adj) });
761
+ AccountFields.push({ name: 'Adjust', value: tr_utils_1.TrUtils.FixPriceValue(Adj, RecordData.Entity.DecimalsNumber) });
762
762
  }
763
763
  AccountFields.push(total);
764
764
  AccountFields.push(Rounding);
@@ -1,8 +1,8 @@
1
1
  export declare class PurchaseOrderPrintService {
2
2
  static GetDataForPurchaseOrderPrint(argPurchaseOrderData: any, EntityData: any, image: any, VendorData: any, TaxCodes: any, IsFormPO: boolean): any;
3
- static GetLaborPrintInfo(LaborList: any, TaxCodes: any, LineTotal: string): any;
3
+ static GetLaborPrintInfo(LaborList: any, TaxCodes: any, LineTotal: string, DecimalsNumber: number): any;
4
4
  static GetVendorDataForPrint(argVendorData: any): any;
5
5
  static GetQtyWithUoM(Items: any): any;
6
6
  static ConcatTotalsInfo(PurchaseOrderPDFData: any, DetailedTotalsInfo: any): any;
7
- static FixPriceValuesForPrint(PrintData: any, TaxCodes: any): any;
7
+ static FixPriceValuesForPrint(PrintData: any, TaxCodes: any, DecimalsNumber: number): any;
8
8
  }
@@ -40,13 +40,13 @@ class PurchaseOrderPrintService {
40
40
  PurchaseOrderPDFData.CrDate = my_date_1.MyDate.ConvertUTCDateToReadable(PurchaseOrderData.CrDate);
41
41
  PurchaseOrderPDFData.DeDate = my_date_1.MyDate.ConvertUTCDateToReadable(PurchaseOrderData.DeDate);
42
42
  }
43
+ PurchaseOrderPDFData.Entity = shared_print_service_1.PrintSharedService.GetFormattedEntityDataForPrint(EntityData, code_enums_1.PrintTypesEnum.PurOrder, PurchaseOrderData);
43
44
  PurchaseOrderPDFData.Items = tr_utils_1.TrUtils.Stringify(PurchaseOrderData.Items);
44
45
  PurchaseOrderPDFData.Ops = tr_utils_1.TrUtils.Stringify(PurchaseOrderData.Ops);
45
46
  if (!tr_utils_1.TrUtils.IsNull(PurchaseOrderPDFData.Ops)) {
46
- PurchaseOrderPDFData.Ops = this.GetLaborPrintInfo(PurchaseOrderPDFData.Ops, TaxCodes, 'AT');
47
+ PurchaseOrderPDFData.Ops = this.GetLaborPrintInfo(PurchaseOrderPDFData.Ops, TaxCodes, 'AT', PurchaseOrderPDFData.Entity.DecimalsNumber);
47
48
  }
48
49
  // PurchaseOrderPDFData.Items = this.GetPartsDescription(PurchaseOrderPDFData.Items);
49
- PurchaseOrderPDFData.Entity = shared_print_service_1.PrintSharedService.GetFormattedEntityDataForPrint(EntityData, code_enums_1.PrintTypesEnum.PurOrder, PurchaseOrderData);
50
50
  PurchaseOrderPDFData.Items = this.GetQtyWithUoM(PurchaseOrderPDFData.Items);
51
51
  let DetailedTotalsInfo;
52
52
  if (IsFormPO) {
@@ -69,16 +69,16 @@ class PurchaseOrderPrintService {
69
69
  }
70
70
  }
71
71
  PurchaseOrderPDFData.Vendor = this.GetVendorDataForPrint(tr_utils_1.TrUtils.Stringify(VendorData));
72
- PurchaseOrderPDFData = this.FixPriceValuesForPrint(PurchaseOrderPDFData, TaxCodes);
72
+ PurchaseOrderPDFData = this.FixPriceValuesForPrint(PurchaseOrderPDFData, TaxCodes, PurchaseOrderPDFData.Entity.DecimalsNumber);
73
73
  return PurchaseOrderPDFData;
74
74
  }
75
- static GetLaborPrintInfo(LaborList, TaxCodes, LineTotal) {
75
+ static GetLaborPrintInfo(LaborList, TaxCodes, LineTotal, DecimalsNumber) {
76
76
  LaborList.forEach((Labor) => {
77
77
  Labor.HSN = Labor.SAC;
78
78
  if (tr_utils_1.TrUtils.IsNull(Labor.Qty)) {
79
79
  Labor.Qty = 1;
80
80
  }
81
- Labor.UnCo = tr_utils_1.TrUtils.FixPriceValue(Labor.UnCo);
81
+ Labor.UnCo = tr_utils_1.TrUtils.FixPriceValue(Labor.UnCo, DecimalsNumber);
82
82
  // Labor.TaxName = this.getTaxName(Labor.TCode, TaxCodes);
83
83
  if (!tr_utils_1.TrUtils.IsEmpty(Labor.Perc)) {
84
84
  Labor.DiscPerc = Labor.Perc;
@@ -87,9 +87,9 @@ class PurchaseOrderPrintService {
87
87
  Labor.DiscPerc = Labor.Perc;
88
88
  Labor.DiscPerc = (0, aggregation_1.division)((0, aggregation_1.multiply)(100, Labor.Disc), Labor.UnCo);
89
89
  }
90
- Labor.CGSTAmt = tr_utils_1.TrUtils.FixPriceValue(Labor.CGST);
91
- Labor.SGSTAmt = tr_utils_1.TrUtils.FixPriceValue(Labor.SGST);
92
- Labor.IGSTAmt = tr_utils_1.TrUtils.FixPriceValue(Labor.IGST);
90
+ Labor.CGSTAmt = tr_utils_1.TrUtils.FixPriceValue(Labor.CGST, DecimalsNumber);
91
+ Labor.SGSTAmt = tr_utils_1.TrUtils.FixPriceValue(Labor.SGST, DecimalsNumber);
92
+ Labor.IGSTAmt = tr_utils_1.TrUtils.FixPriceValue(Labor.IGST, DecimalsNumber);
93
93
  Labor.QtyAndUoM = Labor.Qty.toString();
94
94
  Labor.CGSTPerc = shared_print_service_1.PrintSharedService.GetCGSTValueBasedOnTaxCode(Labor.TCode, TaxCodes);
95
95
  Labor.SGSTPerc = shared_print_service_1.PrintSharedService.GetSGSTValueBasedOnTaxCode(Labor.TCode, TaxCodes);
@@ -152,18 +152,18 @@ class PurchaseOrderPrintService {
152
152
  PurchaseOrderPDFData = tr_utils_1.TrUtils.ConcatObjects(PurchaseOrderPDFData, DetailedTotalsInfo);
153
153
  return PurchaseOrderPDFData;
154
154
  }
155
- static FixPriceValuesForPrint(PrintData, TaxCodes) {
155
+ static FixPriceValuesForPrint(PrintData, TaxCodes, DecimalsNumber) {
156
156
  PrintData.ShowDetailedPartTaxInfo = false;
157
157
  PrintData.Items.forEach((Part) => {
158
158
  if (tr_utils_1.TrUtils.IsNull(Part.UnCo)) {
159
159
  Part.UnCo = Part.UnPr;
160
160
  }
161
- Part.UnCo = tr_utils_1.TrUtils.FixPriceValue(Part.UnCo);
162
- Part.DiscountedPrice = tr_utils_1.TrUtils.FixPriceValue(Part.DiscountedPrice);
163
- Part.AfterTax = tr_utils_1.TrUtils.FixPriceValue(Part.AfterTax);
164
- Part.CGSTAmt = tr_utils_1.TrUtils.FixPriceValue(Part.CGST);
165
- Part.IGSTAmt = tr_utils_1.TrUtils.FixPriceValue(Part.IGST);
166
- Part.SGSTAmt = tr_utils_1.TrUtils.FixPriceValue(Part.SGST);
161
+ Part.UnCo = tr_utils_1.TrUtils.FixPriceValue(Part.UnCo, DecimalsNumber);
162
+ Part.DiscountedPrice = tr_utils_1.TrUtils.FixPriceValue(Part.DiscountedPrice, DecimalsNumber);
163
+ Part.AfterTax = tr_utils_1.TrUtils.FixPriceValue(Part.AfterTax, DecimalsNumber);
164
+ Part.CGSTAmt = tr_utils_1.TrUtils.FixPriceValue(Part.CGST, DecimalsNumber);
165
+ Part.IGSTAmt = tr_utils_1.TrUtils.FixPriceValue(Part.IGST, DecimalsNumber);
166
+ Part.SGSTAmt = tr_utils_1.TrUtils.FixPriceValue(Part.SGST, DecimalsNumber);
167
167
  if (!tr_utils_1.TrUtils.CheckInvalidSelect(Part.TCode)) {
168
168
  PrintData.ShowDetailedPartTaxInfo = true;
169
169
  }
@@ -171,16 +171,16 @@ class PurchaseOrderPrintService {
171
171
  Part.SGSTPerc = shared_print_service_1.PrintSharedService.GetSGSTValueBasedOnTaxCode(Part.TCode, TaxCodes);
172
172
  Part.IGSTPerc = shared_print_service_1.PrintSharedService.GetIGSTValueBasedOnTaxCode(Part.TCode, TaxCodes);
173
173
  });
174
- PrintData.PartsDiscTotal = tr_utils_1.TrUtils.FixPriceValue(PrintData.PartsDiscTotal);
175
- PrintData.PartsTotalAfterDisc = tr_utils_1.TrUtils.FixPriceValue(PrintData.PartsTotalAfterDisc);
176
- PrintData.PartsTotalBeforeDisc = tr_utils_1.TrUtils.FixPriceValue(PrintData.PartsTotalBeforeDisc);
177
- PrintData.TaxTotal = tr_utils_1.TrUtils.FixPriceValue(PrintData.TaxTotal);
178
- PrintData.PartCGST = tr_utils_1.TrUtils.FixPriceValue(PrintData.PartCGST);
179
- PrintData.PartIGST = tr_utils_1.TrUtils.FixPriceValue(PrintData.PartIGST);
180
- PrintData.PartSGST = tr_utils_1.TrUtils.FixPriceValue(PrintData.PartSGST);
181
- PrintData.PartAfterTax = tr_utils_1.TrUtils.FixPriceValue(PrintData.PartAfterTax);
182
- PrintData.TotalRoundedBy = tr_utils_1.TrUtils.FixPriceValue(PrintData.TotalRoundedBy);
183
- PrintData.RoundedTotal = tr_utils_1.TrUtils.FixPriceValue(PrintData.RoundedTotal);
174
+ PrintData.PartsDiscTotal = tr_utils_1.TrUtils.FixPriceValue(PrintData.PartsDiscTotal, DecimalsNumber);
175
+ PrintData.PartsTotalAfterDisc = tr_utils_1.TrUtils.FixPriceValue(PrintData.PartsTotalAfterDisc, DecimalsNumber);
176
+ PrintData.PartsTotalBeforeDisc = tr_utils_1.TrUtils.FixPriceValue(PrintData.PartsTotalBeforeDisc, DecimalsNumber);
177
+ PrintData.TaxTotal = tr_utils_1.TrUtils.FixPriceValue(PrintData.TaxTotal, DecimalsNumber);
178
+ PrintData.PartCGST = tr_utils_1.TrUtils.FixPriceValue(PrintData.PartCGST, DecimalsNumber);
179
+ PrintData.PartIGST = tr_utils_1.TrUtils.FixPriceValue(PrintData.PartIGST, DecimalsNumber);
180
+ PrintData.PartSGST = tr_utils_1.TrUtils.FixPriceValue(PrintData.PartSGST, DecimalsNumber);
181
+ PrintData.PartAfterTax = tr_utils_1.TrUtils.FixPriceValue(PrintData.PartAfterTax, DecimalsNumber);
182
+ PrintData.TotalRoundedBy = tr_utils_1.TrUtils.FixPriceValue(PrintData.TotalRoundedBy, DecimalsNumber);
183
+ PrintData.RoundedTotal = tr_utils_1.TrUtils.FixPriceValue(PrintData.RoundedTotal, DecimalsNumber);
184
184
  return PrintData;
185
185
  }
186
186
  }
@@ -792,7 +792,7 @@ class VendorCreditNotePDFService {
792
792
  AccountFields.push({ name: 'SubTotal', value: SubTotal });
793
793
  }
794
794
  if (moreDiscDetails) {
795
- AccountFields.push({ name: 'Overall Discount', value: tr_utils_1.TrUtils.FixPriceValue(RecordData.Disc) });
795
+ AccountFields.push({ name: 'Overall Discount', value: tr_utils_1.TrUtils.FixPriceValue(RecordData.Disc, RecordData.Entity.DecimalsNumber) });
796
796
  }
797
797
  else {
798
798
  AccountFields.push({ name: 'Discount', value: RecordData.Disc });
@@ -547,7 +547,7 @@ class VendorDebitNotePdfService {
547
547
  static CommonTotalDetails(ROPrintData, moreDiscDetails) {
548
548
  let CommonDetails = [
549
549
  shared_pdf_service_1.SharedPDFService.GetDebitTotalDetails(ROPrintData, ROPrintData.CustLaborTotalBeforeDisc, ROPrintData.CustLaborDiscTotal, ROPrintData.CustLaborCGST, ROPrintData.CustLaborSGST, ROPrintData.CustLaborIGST, ROPrintData.CustPartIGST, ROPrintData.ShowIGST, ROPrintData.ShowTaxColumn, ROPrintData.CustPartsTotalBeforeDisc, ROPrintData.CustPartsDiscTotal, ROPrintData.CustPartCGST, ROPrintData.CustPartSGST, ROPrintData.CustTaxGroupData, ROPrintData.ShowAccParts, ROPrintData.CustLaborAfterTax, ROPrintData.CustPartAfterTax, ROPrintData.FixedDisc, ROPrintData.For, ROPrintData.FixedTotal, ROPrintData.CustTotalRoundedBy, ROPrintData.CustRoundedTotal, ROPrintData.ShowTaxColumn, ROPrintData.ShowTaxColumn, tr_utils_1.TrUtils.isTaxable(ROPrintData.Settings.Tax), ROPrintData.CustLaborITax, ROPrintData.CustPartITax, ROPrintData.Consolidate, ROPrintData.From, moreDiscDetails),
550
- shared_pdf_service_1.SharedPDFService.InvoiceDueStatus(ROPrintData.Type, ROPrintData.Paid, ROPrintData.Due, ROPrintData.Sts, false),
550
+ shared_pdf_service_1.SharedPDFService.InvoiceDueStatus(ROPrintData.Type, ROPrintData.Paid, ROPrintData.Due, ROPrintData.Sts, false, ROPrintData.Entity.DecimalsNumber),
551
551
  shared_pdf_service_1.SharedPDFService.GetTemsAndConditions(ROPrintData.Entity.Terms),
552
552
  shared_pdf_service_1.SharedPDFService.GetUnderLine(),
553
553
  shared_pdf_service_1.SharedPDFService.GetSignatures(ROPrintData.Entity.CName, ROPrintData.Type, ROPrintData.For),
@@ -398,7 +398,7 @@ export declare class DCLandscapePdfService {
398
398
  text: string[];
399
399
  marginLeft: number;
400
400
  };
401
- static TotalDetails(ROPrintData: any, moreDiscDetails: boolean): {
401
+ static TotalDetails(ROPrintData: any, moreDiscDetails: boolean, DecimalsNumber: number): {
402
402
  style: string;
403
403
  marginTop: number;
404
404
  table: {
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DCLandscapePdfService = void 0;
4
+ const aggregation_1 = require("../../aggregation/aggregation");
4
5
  const shared_pdf_service_1 = require("../../shared/shared-pdf.service");
5
6
  const shared_print_service_1 = require("../../shared/shared-print.service");
6
7
  const my_date_1 = require("../../utils/my-date");
@@ -809,7 +810,7 @@ class DCLandscapePdfService {
809
810
  // ROPrintData.ShowTaxColumn, ROPrintData.ShowTaxColumn,
810
811
  // TrUtils.isTaxable(ROPrintData.Settings.Tax), '0.00',
811
812
  // ROPrintData.CustPartITax, ROPrintData.Consolidate, ROPrintData.From, null),
812
- this.TotalDetails(ROPrintData, moreDiscDetails),
813
+ this.TotalDetails(ROPrintData, moreDiscDetails, ROPrintData.Entity.DecimalsNumber),
813
814
  // SharedPDFService.InvoiceDueStatus(ROPrintData.Type, ROPrintData.Paid, ROPrintData.Due, ROPrintData.Sts),
814
815
  shared_pdf_service_1.SharedPDFService.GetTemsAndConditions(ROPrintData.Entity.Terms),
815
816
  // SharedPDFService.GetUnderLine(),
@@ -851,16 +852,16 @@ class DCLandscapePdfService {
851
852
  text: ['Customer Signature'], marginLeft: 90
852
853
  };
853
854
  }
854
- static TotalDetails(ROPrintData, moreDiscDetails) {
855
+ static TotalDetails(ROPrintData, moreDiscDetails, DecimalsNumber) {
855
856
  let totalDisc;
856
857
  let totalTax;
857
858
  if (!ROPrintData.Consolidate) {
858
- totalTax = tr_utils_1.TrUtils.FixPriceValue(Number(0) + Number(ROPrintData.CustPartITax));
859
+ totalTax = tr_utils_1.TrUtils.FixPriceValue((0, aggregation_1.addition)(Number(0), Number(ROPrintData.CustPartITax)), DecimalsNumber);
859
860
  if (tr_utils_1.TrUtils.isTaxable(ROPrintData.Settings.Tax)) {
860
- totalDisc = tr_utils_1.TrUtils.FixPriceValue(Number(0) + Number(ROPrintData.CustPartsDiscTotal));
861
+ totalDisc = tr_utils_1.TrUtils.FixPriceValue((0, aggregation_1.addition)(Number(0), Number(ROPrintData.CustPartsDiscTotal)), DecimalsNumber);
861
862
  }
862
863
  else {
863
- totalDisc = tr_utils_1.TrUtils.FixPriceValue(Number(0) + Number(ROPrintData.CustPartsDiscTotal) + Number(ROPrintData.FixedDisc));
864
+ totalDisc = tr_utils_1.TrUtils.FixPriceValue((0, aggregation_1.addition)(Number(0), Number(ROPrintData.CustPartsDiscTotal), Number(ROPrintData.FixedDisc)), DecimalsNumber);
864
865
  }
865
866
  }
866
867
  return [
@@ -878,7 +879,7 @@ class DCLandscapePdfService {
878
879
  // ROPrintData.ShowTaxColumn, ROPrintData.From),
879
880
  shared_pdf_service_1.SharedPDFService.GetBankDetials(ROPrintData.Entity.Bank, ROPrintData.Entity.PrBank),
880
881
  {
881
- columns: [{ text: '', width: moreDiscDetails ? 140 : 175 }, shared_pdf_service_1.SharedPDFService.GrandTotal(ROPrintData, '0.00', ROPrintData.CustPartsTotalBeforeDisc, totalDisc, totalTax, ROPrintData.For, ROPrintData.FixedTotal, ROPrintData.CustTotalRoundedBy, ROPrintData.CustRoundedTotal, null, ROPrintData.Consolidate, null, moreDiscDetails)]
882
+ columns: [{ text: '', width: moreDiscDetails ? 140 : 175 }, shared_pdf_service_1.SharedPDFService.GrandTotal(ROPrintData, '0.00', ROPrintData.CustPartsTotalBeforeDisc, totalDisc, totalTax, ROPrintData.For, ROPrintData.FixedTotal, ROPrintData.CustTotalRoundedBy, ROPrintData.CustRoundedTotal, null, ROPrintData.Consolidate, null, moreDiscDetails, ROPrintData.Entity.DecimalsNumber)],
882
883
  }
883
884
  // SharedPDFService.GetCustomer(ROPrintData.Customer, ROPrintData.Type, ROPrintData.For,
884
885
  // ROPrintData.Product, ROPrintData.Settings, 'Customer Name & Address', false)
@@ -612,7 +612,7 @@ class SalesPdfService {
612
612
  static CommonTotalDetails(ROPrintData, index, numberofCopies, moreDiscDetails) {
613
613
  let CommonDetails = [
614
614
  shared_pdf_service_1.SharedPDFService.GetFinalTotalDetails(ROPrintData, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', ROPrintData.ShowIGST, ROPrintData.ShowTaxColumn, ROPrintData.CustItemsTotalBeforeDisc, ROPrintData.CustItemsDiscTotal, ROPrintData.CustItemCGST, ROPrintData.CustItemSGST, ROPrintData.CustTaxGroupData, ROPrintData.ShowAccParts, '0.00', ROPrintData.CustItemAfterTax, ROPrintData.FixedDisc, ROPrintData.For, ROPrintData.FixedTotal, ROPrintData.CustTotalRoundedBy, ROPrintData.CustRoundedTotal, ROPrintData.ShowTaxColumn, ROPrintData.ShowTaxColumn, tr_utils_1.TrUtils.isTaxable(ROPrintData.Settings.Tax), '0.00', ROPrintData.CustItemITax, ROPrintData.Consolidate, ROPrintData.From, null, ROPrintData.SubTotal, moreDiscDetails),
615
- shared_pdf_service_1.SharedPDFService.InvoiceDueStatus(ROPrintData.Type, ROPrintData.Paid, ROPrintData.Due, ROPrintData.Sts, false),
615
+ shared_pdf_service_1.SharedPDFService.InvoiceDueStatus(ROPrintData.Type, ROPrintData.Paid, ROPrintData.Due, ROPrintData.Sts, false, ROPrintData.Entity.DecimalsNumber),
616
616
  shared_pdf_service_1.SharedPDFService.GetTemsAndConditions(ROPrintData.Entity.Terms),
617
617
  shared_pdf_service_1.SharedPDFService.GetUnderLine(),
618
618
  shared_pdf_service_1.SharedPDFService.GetSignatures(ROPrintData.Entity.CName, ROPrintData.Type, ROPrintData.For),
@@ -113,11 +113,11 @@ class SalesPrintService {
113
113
  tr_utils_1.TrUtils.SetValueToZeroIfNull(Item.CGST) + tr_utils_1.TrUtils.SetValueToZeroIfNull(Item.SGST)
114
114
  + tr_utils_1.TrUtils.SetValueToZeroIfNull(Item.IGST);
115
115
  if (Consolidate) {
116
- let AfterDiscForEach = Item.AfterItemDisc / Item.Qty;
117
- let CTaxAmtPerItem = Item.CGST / Item.Qty;
118
- let STaxAmtPerItem = Item.SGST / Item.Qty;
119
- let ITaxAmtPerItem = Item.IGST / Item.Qty;
120
- Item.UnPr = tr_utils_1.TrUtils.FixedTo((AfterDiscForEach + CTaxAmtPerItem + STaxAmtPerItem + ITaxAmtPerItem), DecimalsNumber);
116
+ let AfterDiscForEach = (0, aggregation_1.division)(Item.AfterItemDisc, Item.Qty);
117
+ let CTaxAmtPerItem = (0, aggregation_1.division)(Item.CGST, Item.Qty);
118
+ let STaxAmtPerItem = (0, aggregation_1.division)(Item.SGST, Item.Qty);
119
+ let ITaxAmtPerItem = (0, aggregation_1.division)(Item.IGST, Item.Qty);
120
+ Item.UnPr = tr_utils_1.TrUtils.FixedTo((0, aggregation_1.addition)(AfterDiscForEach, CTaxAmtPerItem, STaxAmtPerItem, ITaxAmtPerItem), DecimalsNumber);
121
121
  }
122
122
  else {
123
123
  Item.UnPr = tr_utils_1.TrUtils.FixPriceValue(Item.UnPr, DecimalsNumber);
@@ -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), DecimalsNumber);
296
+ Data.Due = tr_utils_1.TrUtils.FixedTo((0, aggregation_1.subtraction)(Total, PaidTotal), DecimalsNumber);
297
297
  }
298
298
  if (Data.Due < 0) {
299
299
  Data.Due = 0;
@@ -1,5 +1,5 @@
1
1
  export declare class RepairOrdersReportsPDFService {
2
- static GetRepairOrdersReportstPrint(InvoicesData: any, CName: any, HeaerName: any, searchValue: any): {
2
+ static GetRepairOrdersReportstPrint(InvoicesData: any, EntityData: any, HeaerName: any, searchValue: any): {
3
3
  info: {
4
4
  title: string;
5
5
  };
@@ -206,9 +206,9 @@ export declare class RepairOrdersReportsPDFService {
206
206
  };
207
207
  };
208
208
  };
209
- static GetInvoiceDataTable(InvoicesData: any): any;
209
+ static GetInvoiceDataTable(InvoicesData: any, DecimalsNumber: number): any;
210
210
  static getTableWidths(): (string | number)[];
211
- static GetItemsTable(InvoiceData: any): {
211
+ static GetItemsTable(InvoiceData: any, DecimalsNumber: number): {
212
212
  style: string;
213
213
  marginTop: number;
214
214
  marginBottom: number;
@@ -224,6 +224,6 @@ export declare class RepairOrdersReportsPDFService {
224
224
  vLineColor: (i: any, node: any) => string;
225
225
  };
226
226
  };
227
- static BuildTableBodyForLaborAndParts(InvoiceData: any): any;
227
+ static BuildTableBodyForLaborAndParts(InvoiceData: any, DecimalsNumber: number): any;
228
228
  static GetHeaderNames(): any;
229
229
  }
@@ -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 RepairOrdersReportsPDFService {
8
- static GetRepairOrdersReportstPrint(InvoicesData, CName, HeaerName, searchValue) {
8
+ static GetRepairOrdersReportstPrint(InvoicesData, EntityData, HeaerName, searchValue) {
9
9
  var dd = {
10
10
  info: {
11
11
  title: 'RepairOrders',
@@ -16,19 +16,19 @@ class RepairOrdersReportsPDFService {
16
16
  pageMargins: [10, 15, 10, 15],
17
17
  pageOrientation: 'landscape',
18
18
  content: [
19
- { text: '' + CName + '', style: ['header'] },
19
+ { text: '' + EntityData.DName + '', style: ['header'] },
20
20
  { text: HeaerName, alignment: 'center', fontSize: 15, bold: true },
21
21
  shared_pdf_service_1.SharedPDFService.GetSearchValueDetails(searchValue),
22
- this.GetInvoiceDataTable(InvoicesData),
22
+ this.GetInvoiceDataTable(InvoicesData, EntityData.Settings.DecimalsNumber),
23
23
  ],
24
24
  styles: shared_pdf_service_1.SharedPDFService.GetStyles()
25
25
  };
26
26
  return dd;
27
27
  }
28
- static GetInvoiceDataTable(InvoicesData) {
28
+ static GetInvoiceDataTable(InvoicesData, DecimalsNumber) {
29
29
  let Data = [];
30
30
  // InvoicesData.forEach((invoice: any) => {
31
- Data.push(this.GetItemsTable(InvoicesData));
31
+ Data.push(this.GetItemsTable(InvoicesData, DecimalsNumber));
32
32
  // });
33
33
  return Data;
34
34
  }
@@ -39,7 +39,7 @@ class RepairOrdersReportsPDFService {
39
39
  // return [25, '*', 40, 40, 80];
40
40
  // }
41
41
  }
42
- static GetItemsTable(InvoiceData) {
42
+ static GetItemsTable(InvoiceData, DecimalsNumber) {
43
43
  // InvoicesData.forEach((InvoiceData: any) => {
44
44
  return {
45
45
  style: 'tableExample',
@@ -48,7 +48,7 @@ class RepairOrdersReportsPDFService {
48
48
  table: {
49
49
  widths: this.getTableWidths(),
50
50
  headerRows: 1,
51
- body: this.BuildTableBodyForLaborAndParts(InvoiceData)
51
+ body: this.BuildTableBodyForLaborAndParts(InvoiceData, DecimalsNumber)
52
52
  // body:[['fsdfsdf','asfafdas','asdasdas','asdasdasd','asddass']]
53
53
  },
54
54
  layout: {
@@ -71,7 +71,7 @@ class RepairOrdersReportsPDFService {
71
71
  };
72
72
  // });
73
73
  }
74
- static BuildTableBodyForLaborAndParts(InvoiceData) {
74
+ static BuildTableBodyForLaborAndParts(InvoiceData, DecimalsNumber) {
75
75
  let body = this.GetHeaderNames();
76
76
  // let Row: any = [{ text: InvoiceData.Name, alignment: 'left', colSpan: isHC ? 5 : 8, bold: true, fontSize: 12 }, {}, {}, {}, {}];
77
77
  // if (!isHC) {
@@ -125,7 +125,7 @@ class RepairOrdersReportsPDFService {
125
125
  dataRow.push({ text: invoice.WOType.Name });
126
126
  dataRow.push({ text: invoice.Name });
127
127
  dataRow.push({ text: invoice.TeNa });
128
- dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Total), alignment: 'right' });
128
+ dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Total, DecimalsNumber), alignment: 'right' });
129
129
  // dataRow.push({ text: TrUtils.IsNull(invoice.Prod) ? '' : invoice.Prod?.Model + ' ' + invoice.Prod?.Var });
130
130
  // }
131
131
  // dataRow.push({ text: invoice.BFrom.Name, alignment: 'left', style: ['headerstyle'], });
@@ -29,7 +29,7 @@ class RoprintService {
29
29
  static CommonTotalDetails(ROPrintData, index, numberofCopies) {
30
30
  let CommonDetails = [
31
31
  shared_pdf_service_1.SharedPDFService.GetFinalTotalDetails(ROPrintData, ROPrintData.CustLaborTotalBeforeDisc, ROPrintData.CustLaborDiscTotal, ROPrintData.CustLaborCGST, ROPrintData.CustLaborSGST, ROPrintData.CustLaborIGST, ROPrintData.CustPartIGST, ROPrintData.ShowIGST, ROPrintData.ShowTaxColumn, ROPrintData.CustPartsTotalBeforeDisc, ROPrintData.CustPartsDiscTotal, ROPrintData.CustPartCGST, ROPrintData.CustPartSGST, ROPrintData.CustTaxGroupData, ROPrintData.ShowAccParts, ROPrintData.CustLaborAfterTax, ROPrintData.CustPartAfterTax, ROPrintData.FixedDisc, ROPrintData.Payee, ROPrintData.FixedTotal, ROPrintData.CustTotalRoundedBy, ROPrintData.CustRoundedTotal, ROPrintData.ShowDetailedLaborTaxInfo, ROPrintData.ShowDetailedPartTaxInfo, tr_utils_1.TrUtils.isTaxable(ROPrintData.Settings.Tax), ROPrintData.CustLaborITax, ROPrintData.CustPartITax, ROPrintData.Consolidate, ROPrintData.From, null, null, false),
32
- shared_pdf_service_1.SharedPDFService.InvoiceDueStatus(ROPrintData.Type, ROPrintData.Paid, ROPrintData.Due, ROPrintData.Sts, false),
32
+ shared_pdf_service_1.SharedPDFService.InvoiceDueStatus(ROPrintData.Type, ROPrintData.Paid, ROPrintData.Due, ROPrintData.Sts, false, ROPrintData.Entity.DecimalsNumber),
33
33
  shared_pdf_service_1.SharedPDFService.GetTemsAndConditions(ROPrintData.Entity.Terms),
34
34
  shared_pdf_service_1.SharedPDFService.GetUnderLine(),
35
35
  shared_pdf_service_1.SharedPDFService.GetSignatures(ROPrintData.Entity.CName, ROPrintData.Type, ROPrintData.Payee),
@@ -45,7 +45,7 @@ class RoprintService {
45
45
  static CommonInsTotalDetails(ROPrintData, index, numberofCopies) {
46
46
  let CommonDetails = [
47
47
  shared_pdf_service_1.SharedPDFService.GetFinalTotalDetails(ROPrintData, ROPrintData.InsLaborTotalBeforeDisc, ROPrintData.InsLaborDiscTotal, ROPrintData.InsLaborCGST, ROPrintData.InsLaborSGST, ROPrintData.InsLaborIGST, ROPrintData.InsPartIGST, ROPrintData.ShowIGST, ROPrintData.ShowTaxColumn, ROPrintData.InsPartsTotalBeforeDisc, ROPrintData.InsPartsDiscTotal, ROPrintData.InsPartCGST, ROPrintData.InsPartSGST, ROPrintData.InsTaxGroupData, ROPrintData.ShowAccParts, ROPrintData.InsLaborTotalAfterTax, ROPrintData.InsPartsTotalAfterTax, ROPrintData.FixedDisc, ROPrintData.Payee, ROPrintData.FixedInsTotal, ROPrintData.InsTotalRoundedBy, ROPrintData.InsRoundedTotal, ROPrintData.ShowDetailedLaborTaxInfo, ROPrintData.ShowDetailedPartTaxInfo, tr_utils_1.TrUtils.isTaxable(ROPrintData.Settings.Tax), ROPrintData.InsLaborITax, ROPrintData.InsPartITax, ROPrintData.Consolidate, ROPrintData.From, null, null, false),
48
- shared_pdf_service_1.SharedPDFService.InvoiceDueStatus(ROPrintData.Type, ROPrintData.Paid, ROPrintData.Due, ROPrintData.Sts, false),
48
+ shared_pdf_service_1.SharedPDFService.InvoiceDueStatus(ROPrintData.Type, ROPrintData.Paid, ROPrintData.Due, ROPrintData.Sts, false, ROPrintData.Entity.DecimalsNumber),
49
49
  shared_pdf_service_1.SharedPDFService.GetTemsAndConditions(ROPrintData.Entity.Terms),
50
50
  shared_pdf_service_1.SharedPDFService.GetUnderLine(),
51
51
  shared_pdf_service_1.SharedPDFService.GetSignatures(ROPrintData.Entity.CName, ROPrintData.Type, ROPrintData.Payee),
@@ -333,7 +333,7 @@ class WOPrintService {
333
333
  static CommonTotalDetails(ROPrintData, index, numberofCopies) {
334
334
  let CommonDetails = [
335
335
  shared_pdf_service_1.SharedPDFService.GetFinalTotalDetails(ROPrintData, ROPrintData.CustLaborTotalBeforeDisc, ROPrintData.CustLaborDiscTotal, ROPrintData.CustLaborCGST, ROPrintData.CustLaborSGST, ROPrintData.CustLaborIGST, ROPrintData.CustPartIGST, ROPrintData.ShowIGST, ROPrintData.ShowTaxColumn, ROPrintData.CustPartsTotalBeforeDisc, ROPrintData.CustPartsDiscTotal, ROPrintData.CustPartCGST, ROPrintData.CustPartSGST, ROPrintData.CustTaxGroupData, ROPrintData.ShowAccParts, ROPrintData.CustLaborAfterTax, ROPrintData.CustPartAfterTax, ROPrintData.FixedDisc, ROPrintData.Payee, ROPrintData.FixedTotal, ROPrintData.CustTotalRoundedBy, ROPrintData.CustRoundedTotal, ROPrintData.ShowDetailedLaborTaxInfo, ROPrintData.ShowDetailedPartTaxInfo, tr_utils_1.TrUtils.isTaxable(ROPrintData.Settings.Tax), ROPrintData.CustLaborITax, ROPrintData.CustPartITax, ROPrintData.Consolidate, ROPrintData.From, null, null, false),
336
- shared_pdf_service_1.SharedPDFService.InvoiceDueStatus(ROPrintData.Type, ROPrintData.Paid, ROPrintData.Due, ROPrintData.Sts, false),
336
+ shared_pdf_service_1.SharedPDFService.InvoiceDueStatus(ROPrintData.Type, ROPrintData.Paid, ROPrintData.Due, ROPrintData.Sts, false, ROPrintData.Entity.DecimalsNumber),
337
337
  shared_pdf_service_1.SharedPDFService.GetTemsAndConditions(ROPrintData.Entity.Terms),
338
338
  shared_pdf_service_1.SharedPDFService.GetUnderLine(),
339
339
  shared_pdf_service_1.SharedPDFService.GetSignatures(ROPrintData.Entity.CName, ROPrintData.Type, ROPrintData.Payee),
@@ -533,7 +533,7 @@ export declare class SharedPDFService {
533
533
  })[];
534
534
  marginLeft: number;
535
535
  };
536
- static DebitGrandTotal(RecordData: any, LaborAfterGST: any, PartsAfterGST: any, OverAllRecordDiscount: any, totalTax: any, For: any, OverAllRecordTotal: any, Rounded: any, GrandTotal: any, moreDiscDetails: boolean): {
536
+ static DebitGrandTotal(RecordData: any, LaborAfterGST: any, PartsAfterGST: any, OverAllRecordDiscount: any, totalTax: any, For: any, OverAllRecordTotal: any, Rounded: any, GrandTotal: any, moreDiscDetails: boolean, DecimalsNumber: number): {
537
537
  style: string[];
538
538
  lineHeight: number;
539
539
  marginBottom: number;
@@ -566,7 +566,7 @@ export declare class SharedPDFService {
566
566
  };
567
567
  static GetTaxOnParts(BasicPartsTotal: any, OverAllMainPartsDiscount: any, PCGST: any, PSGST: any, ShowAccParts: any, PIGST: any, ShowIGST: any, ShowTaxColumn: any, ShowDetailedPartTaxInfo: any, From: string, Consolidate: boolean): any;
568
568
  static GetTaxOnLabor(BasicLaborTotal: any, OverAllMainLaborDiscount: any, LCGST: any, LSGST: any, LIGST: any, ShowIGST: any, ShowTaxColumn: any, ShowDetailedLaborTaxInfo: any, Consolidate: boolean): any;
569
- static GrandTotal(RecordData: any, LaborAfterGST: any, PartsAfterGST: any, OverAllRecordDiscount: any, totalTax: any, For: any, OverAllRecordTotal: any, Rounded: any, GrandTotal: any, Adj: any, Consolidate: any, subTotal: any, moreDiscDetails: boolean): {
569
+ static GrandTotal(RecordData: any, LaborAfterGST: any, PartsAfterGST: any, OverAllRecordDiscount: any, totalTax: any, For: any, OverAllRecordTotal: any, Rounded: any, GrandTotal: any, Adj: any, Consolidate: any, subTotal: any, moreDiscDetails: boolean, DecimalsNumber: number): {
570
570
  style: string[];
571
571
  lineHeight: number;
572
572
  marginBottom: number;
@@ -586,7 +586,7 @@ export declare class SharedPDFService {
586
586
  layout: string;
587
587
  };
588
588
  static GrandTotalTable(data: any): any;
589
- static InvoiceDueStatus(Type: any, Paid: any, Due: any, Status: any, isCounter: boolean): any;
589
+ static InvoiceDueStatus(Type: any, Paid: any, Due: any, Status: any, isCounter: boolean, DecimalsNumber: number): any;
590
590
  static DebitDueStatus(Type: any, Paid: any, Due: any, Status: any): {
591
591
  fontSize: number;
592
592
  marginTop: number;