shareneus 1.4.47 → 1.4.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/dist/accounting/counter-sales/auto-sales-receipt-pdf.service.js +1 -1
  2. package/dist/accounting/counter-sales/sales-receipt-print.service.d.ts +3 -3
  3. package/dist/accounting/counter-sales/sales-receipt-print.service.js +31 -30
  4. package/dist/accounting/credit-note/cn-print.service.d.ts +1 -2
  5. package/dist/accounting/credit-note/cn-print.service.js +10 -32
  6. package/dist/accounting/credit-note/credit-note-totals.service.d.ts +6 -6
  7. package/dist/accounting/credit-note/credit-note-totals.service.js +19 -19
  8. package/dist/accounting/debit-note/debit-note-print.service.d.ts +2 -2
  9. package/dist/accounting/debit-note/debit-note-print.service.js +15 -15
  10. package/dist/accounting/debit-note/debit-note-totals.service.d.ts +6 -6
  11. package/dist/accounting/debit-note/debit-note-totals.service.js +18 -18
  12. package/dist/accounting/invoice/hc-inv-pdf.service.d.ts +7 -7
  13. package/dist/accounting/invoice/hc-inv-pdf.service.js +36 -36
  14. package/dist/accounting/invoice/inv-pdf.service.d.ts +6 -6
  15. package/dist/accounting/invoice/inv-pdf.service.js +44 -44
  16. package/dist/accounting/invoice/inv-print.service.d.ts +3 -3
  17. package/dist/accounting/invoice/inv-print.service.js +24 -24
  18. package/dist/accounting/invoice/invoice-letterhead-pdf.service.d.ts +6 -6
  19. package/dist/accounting/invoice/invoice-letterhead-pdf.service.js +44 -44
  20. package/dist/accounting/invoice/invoice-total.service.d.ts +11 -11
  21. package/dist/accounting/invoice/invoice-total.service.js +54 -54
  22. package/dist/accounting/invoice/reports/excel/analysis-excel.service.d.ts +3 -3
  23. package/dist/accounting/invoice/reports/excel/analysis-excel.service.js +6 -6
  24. package/dist/accounting/invoice/reports/pdf/analysis-pdf.service.d.ts +4 -4
  25. package/dist/accounting/invoice/reports/pdf/analysis-pdf.service.js +10 -9
  26. package/dist/accounting/invoice/reports/pdf/category-wise-item-pdf.service.js +0 -2
  27. package/dist/accounting/invoice/reports/pdf/cust-wise-sales-details-pdf.service.js +0 -2
  28. package/dist/accounting/invoice/reports/pdf/cust-wise-sales-summary-pdf.service.js +0 -2
  29. package/dist/accounting/invoice/reports/pdf/item-wise-doctor-sale-pdf.service.js +0 -2
  30. package/dist/accounting/invoice/reports/pdf/item-wise-sales-pdf.service.js +0 -2
  31. package/dist/accounting/invoice/reports/pdf/manf-wise-sales-pdf.service.js +0 -2
  32. package/dist/accounting/invoice/reports/pdf/operator-wise-details-pdf.service.js +0 -2
  33. package/dist/accounting/invoice/reports/pdf/operator-wise-summary-pdf.js +0 -2
  34. package/dist/accounting/invoice/reports/pdf/sales-by-service-pdf.service.js +0 -2
  35. package/dist/accounting/invoice/reports/pdf/scheduled-drug-pdf.service.js +0 -2
  36. package/dist/accounting/invoice/reports/pdf/scheduled-drug-summary-pdf.service.js +0 -2
  37. package/dist/accounting/invoice/shared-inv-pdf.service.d.ts +6 -6
  38. package/dist/accounting/invoice/shared-inv-pdf.service.js +30 -30
  39. package/dist/accounting/payment-receive/reports/pdf/customer-balances-pdf.service.d.ts +1 -1
  40. package/dist/accounting/payment-receive/reports/pdf/customer-balances-pdf.service.js +3 -3
  41. package/dist/accounting/payment-receive/reports/pdf/payment-report-pdf.service.d.ts +4 -4
  42. package/dist/accounting/payment-receive/reports/pdf/payment-report-pdf.service.js +9 -11
  43. package/dist/appointments/appointments/appointment-total.service.d.ts +6 -6
  44. package/dist/appointments/appointments/appointment-total.service.js +28 -29
  45. package/dist/appointments/consultations/consultation-fee-receipt.service.d.ts +1 -1
  46. package/dist/appointments/consultations/consultation-fee-receipt.service.js +3 -3
  47. package/dist/appointments/consultations/consultation-full-pdf.service.d.ts +2 -2
  48. package/dist/appointments/consultations/consultation-full-pdf.service.js +7 -7
  49. package/dist/appointments/consultations/consultation-letterhead-pdf.service.d.ts +2 -3
  50. package/dist/appointments/consultations/consultation-letterhead-pdf.service.js +7 -15
  51. package/dist/appointments/consultations/consultation-pdf.service.d.ts +2 -3
  52. package/dist/appointments/consultations/consultation-pdf.service.js +14 -15
  53. package/dist/inventory/items/issue-parts-pdf.service.js +1 -1
  54. package/dist/inventory/items/reports/pdf/expiring-drugs-pdf.service.d.ts +1 -1
  55. package/dist/inventory/items/reports/pdf/expiring-drugs-pdf.service.js +4 -4
  56. package/dist/inventory/items/reports/pdf/item-wise-mout-details-pdf.js +0 -2
  57. package/dist/inventory/items/reports/pdf/item-wise-mout-summary-pdf.js +0 -2
  58. package/dist/inventory/items/reports/pdf/reorder-point-pdf.service.js +1 -1
  59. package/dist/inventory/transfer-order/transfer-order-pdf.service.js +1 -2
  60. package/dist/purchases/payment-made/reports/pdf/vendor-balances-pdf.service.d.ts +1 -1
  61. package/dist/purchases/payment-made/reports/pdf/vendor-balances-pdf.service.js +3 -3
  62. package/dist/purchases/purchase-order/po-totals.service.d.ts +7 -7
  63. package/dist/purchases/purchase-order/po-totals.service.js +24 -25
  64. package/dist/purchases/purchase-order/purchase-order-print.service.js +3 -3
  65. package/dist/purchases/purchase-order/purchase-order-totals.service.d.ts +10 -10
  66. package/dist/purchases/purchase-order/purchase-order-totals.service.js +27 -27
  67. package/dist/purchases/vendor-debit-note/vendor-debit-note-print.service.d.ts +1 -2
  68. package/dist/purchases/vendor-debit-note/vendor-debit-note-print.service.js +10 -32
  69. package/dist/sales/delivery-challan/delivery-challan-print.service.d.ts +1 -2
  70. package/dist/sales/delivery-challan/delivery-challan-print.service.js +9 -32
  71. package/dist/sales/sales/sales-print.service.d.ts +2 -2
  72. package/dist/sales/sales/sales-print.service.js +17 -17
  73. package/dist/services/est.print-service.d.ts +18 -18
  74. package/dist/services/est.print-service.js +132 -132
  75. package/dist/services/reports/pdf/next-service-date-pdf.service.js +0 -2
  76. package/dist/services/reports/pdf/repair-orders-pdf.service.js +0 -1
  77. package/dist/services/ro-print-service.d.ts +6 -6
  78. package/dist/services/ro-print-service.js +39 -39
  79. package/dist/services/separate-wo-print.service.d.ts +1 -1
  80. package/dist/services/separate-wo-print.service.js +4 -4
  81. package/dist/shared/shared-pdf.service.d.ts +0 -16
  82. package/dist/shared/shared-pdf.service.js +36 -34
  83. package/dist/shared/shared-print.service.js +3 -1
  84. package/dist/tasks/meetings/meeting-pdf.d.ts +4 -4
  85. package/dist/tasks/meetings/meeting-pdf.js +9 -9
  86. package/dist/tasks/tasks/task-pdf.service.d.ts +4 -4
  87. package/dist/tasks/tasks/task-pdf.service.js +8 -8
  88. package/dist/tasks/tasks/task-reports-pdf.service.d.ts +6 -6
  89. package/dist/tasks/tasks/task-reports-pdf.service.js +14 -14
  90. package/dist/utils/my-date.d.ts +6 -7
  91. package/dist/utils/my-date.js +16 -16
  92. package/dist/utils/tr-utils.d.ts +2 -3
  93. package/dist/utils/tr-utils.js +5 -5
  94. package/package.json +1 -1
  95. package/dist/shared/shared-pdfs/shared-pdf.service.d.ts +0 -926
  96. package/dist/shared/shared-pdfs/shared-pdf.service.js +0 -2608
@@ -40,7 +40,7 @@ class SalesPrintService {
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
  }
@@ -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[];