shareneus 1.5.1 → 1.5.3

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 (48) hide show
  1. package/dist/accounting/counter-sales/sales-receipt-print.service.js +8 -9
  2. package/dist/accounting/credit-note/cn-print.service.js +7 -7
  3. package/dist/accounting/credit-note/credit-note-totals.service.d.ts +2 -2
  4. package/dist/accounting/credit-note/credit-note-totals.service.js +33 -33
  5. package/dist/accounting/debit-note/debit-note-print.service.js +8 -8
  6. package/dist/accounting/debit-note/debit-note-totals.service.d.ts +2 -2
  7. package/dist/accounting/debit-note/debit-note-totals.service.js +27 -27
  8. package/dist/accounting/invoice/inv-pdf.service.js +12 -12
  9. package/dist/accounting/invoice/inv-print.service.js +11 -11
  10. package/dist/accounting/invoice/invoice-landscape-pdf.service.js +4 -4
  11. package/dist/accounting/invoice/invoice-letterhead-pdf.service.js +12 -12
  12. package/dist/accounting/invoice/invoice-portrait-pdf.js +5 -5
  13. package/dist/accounting/invoice/invoice-total.service.d.ts +8 -8
  14. package/dist/accounting/invoice/invoice-total.service.js +79 -79
  15. package/dist/accounting/invoice/reports/excel/items-wise-sales-excel.service.js +2 -2
  16. package/dist/accounting/invoice/reports/excel/sa-wise-labor-sales-excel.service.js +4 -4
  17. package/dist/accounting/invoice/reports/excel/sa-wise-part-sales-excel.service.js +4 -4
  18. package/dist/accounting/invoice/reports/excel/sale-summary-excel.service.js +3 -3
  19. package/dist/accounting/invoice/reports/excel/sales-by-service-summary-excel.service.js +3 -3
  20. package/dist/accounting/invoice/reports/pdf/item-wise-sales-pdf.service.js +2 -2
  21. package/dist/accounting/invoice/reports/pdf/manf-wise-sales-pdf.service.js +2 -2
  22. package/dist/accounting/invoice/reports/pdf/sales-by-service-pdf.service.js +2 -2
  23. package/dist/appointments/appointments/appointment-total.service.js +12 -12
  24. package/dist/appointments/consultations/consultation-fee-receipt.service.js +2 -2
  25. package/dist/purchases/purchase-order/po-totals.service.js +13 -13
  26. package/dist/purchases/purchase-order/purchase-order-totals.service.d.ts +1 -1
  27. package/dist/purchases/purchase-order/purchase-order-totals.service.js +58 -58
  28. package/dist/purchases/vendor-credit-note/vendor-credit-note-totals.service.d.ts +1 -1
  29. package/dist/purchases/vendor-credit-note/vendor-credit-note-totals.service.js +20 -20
  30. package/dist/purchases/vendor-debit-note/vendor-debit-note-print.service.js +7 -7
  31. package/dist/purchases/vendor-debit-note/vendor-debit-note-totals.service.d.ts +2 -2
  32. package/dist/purchases/vendor-debit-note/vendor-debit-note-totals.service.js +26 -26
  33. package/dist/sales/delivery-challan/dc-landscape-pdf.service.js +4 -4
  34. package/dist/sales/delivery-challan/delivery-challan-print.service.js +7 -7
  35. package/dist/sales/delivery-challan/delivery-challan-totals.js +35 -35
  36. package/dist/sales/sales/sales-print.service.js +9 -9
  37. package/dist/sales/sales/sales-totals.service.js +32 -32
  38. package/dist/sales-receive/sales-receive-print.service.js +10 -10
  39. package/dist/sales-receive/sales-receive-totals.service.d.ts +2 -2
  40. package/dist/sales-receive/sales-receive-totals.service.js +32 -32
  41. package/dist/sales-receive/sales-total-calculation.js +1 -1
  42. package/dist/services/est.print-service.js +5 -5
  43. package/dist/services/ro-print-service.js +13 -13
  44. package/dist/services/ro-totals.service.d.ts +4 -4
  45. package/dist/services/ro-totals.service.js +140 -140
  46. package/dist/shared/math-operations.js +46 -41
  47. package/dist/shared/shared-pdf.service.js +8 -8
  48. package/package.json +1 -1
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ROPrintService = void 0;
4
- const aggregation_1 = require("../aggregation/aggregation");
5
4
  const code_enums_1 = require("../enums/code-enums");
6
5
  const enums_1 = require("../enums/enums");
6
+ const math_operations_1 = require("../shared/math-operations");
7
7
  const shared_print_service_1 = require("../shared/shared-print.service");
8
8
  const my_date_1 = require("../utils/my-date");
9
9
  const tr_utils_1 = require("../utils/tr-utils");
@@ -397,16 +397,16 @@ class ROPrintService {
397
397
  ROPrintData.Colli.forEach((Collision) => {
398
398
  let LineTotal = 0;
399
399
  if (!tr_utils_1.TrUtils.IsNull(Collision.PartData)) {
400
- LineTotal = (0, aggregation_1.addition)(LineTotal, this.GetCollisionPartLineTotal(Collision.PartData, ConsolidateGST, AsCustomerOnly, AsInsuranceOnly));
400
+ LineTotal = (0, math_operations_1.Add)(LineTotal, this.GetCollisionPartLineTotal(Collision.PartData, ConsolidateGST, AsCustomerOnly, AsInsuranceOnly));
401
401
  }
402
402
  if (!tr_utils_1.TrUtils.IsNull(Collision.RRFData)) {
403
- LineTotal = (0, aggregation_1.addition)(LineTotal, this.GetCollisionLaborLineTotal(Collision.RRFData, ConsolidateGST, AsCustomerOnly, AsInsuranceOnly));
403
+ LineTotal = (0, math_operations_1.Add)(LineTotal, this.GetCollisionLaborLineTotal(Collision.RRFData, ConsolidateGST, AsCustomerOnly, AsInsuranceOnly));
404
404
  }
405
405
  if (!tr_utils_1.TrUtils.IsNull(Collision.PtngData)) {
406
- LineTotal = (0, aggregation_1.addition)(LineTotal, this.GetCollisionLaborLineTotal(Collision.PtngData, ConsolidateGST, AsCustomerOnly, AsInsuranceOnly));
406
+ LineTotal = (0, math_operations_1.Add)(LineTotal, this.GetCollisionLaborLineTotal(Collision.PtngData, ConsolidateGST, AsCustomerOnly, AsInsuranceOnly));
407
407
  }
408
408
  if (!tr_utils_1.TrUtils.IsNull(Collision.DtngData)) {
409
- LineTotal = (0, aggregation_1.addition)(LineTotal, this.GetCollisionLaborLineTotal(Collision.DtngData, ConsolidateGST, AsCustomerOnly, AsInsuranceOnly));
409
+ LineTotal = (0, math_operations_1.Add)(LineTotal, this.GetCollisionLaborLineTotal(Collision.DtngData, ConsolidateGST, AsCustomerOnly, AsInsuranceOnly));
410
410
  }
411
411
  Collision.LineTotal = tr_utils_1.TrUtils.FixPriceValue(LineTotal, DecimalsNumber);
412
412
  });
@@ -432,10 +432,10 @@ class ROPrintService {
432
432
  }
433
433
  else {
434
434
  if (ConsolidateGST) {
435
- LineTotal = (0, aggregation_1.addition)(PartData.InsAfterTaxPerItem, PartData.CustAfterTaxPerItem);
435
+ LineTotal = (0, math_operations_1.Add)(PartData.InsAfterTaxPerItem, PartData.CustAfterTaxPerItem);
436
436
  }
437
437
  else {
438
- LineTotal = (0, aggregation_1.addition)(PartData.InsAfterPartDisc, PartData.CustAfterPartDisc);
438
+ LineTotal = (0, math_operations_1.Add)(PartData.InsAfterPartDisc, PartData.CustAfterPartDisc);
439
439
  }
440
440
  }
441
441
  return Number(LineTotal);
@@ -460,10 +460,10 @@ class ROPrintService {
460
460
  }
461
461
  else {
462
462
  if (ConsolidateGST) {
463
- LineTotal = (0, aggregation_1.addition)(LaborData.CustAfterTax, LaborData.InsAfterTax);
463
+ LineTotal = (0, math_operations_1.Add)(LaborData.CustAfterTax, LaborData.InsAfterTax);
464
464
  }
465
465
  else {
466
- LineTotal = (0, aggregation_1.addition)(LaborData.InsAfterLaborDisc, LaborData.CustAfterLaborDisc);
466
+ LineTotal = (0, math_operations_1.Add)(LaborData.InsAfterLaborDisc, LaborData.CustAfterLaborDisc);
467
467
  }
468
468
  }
469
469
  return Number(LineTotal);
@@ -488,10 +488,10 @@ class ROPrintService {
488
488
  }
489
489
  else {
490
490
  if (IncludeGST) {
491
- LineTotal = (0, aggregation_1.addition)(LaborData.CustAfterTax, LaborData.InsAfterTax);
491
+ LineTotal = (0, math_operations_1.Add)(LaborData.CustAfterTax, LaborData.InsAfterTax);
492
492
  }
493
493
  else {
494
- LineTotal = (0, aggregation_1.addition)(LaborData.InsAfterLaborDisc, LaborData.CustAfterLaborDisc);
494
+ LineTotal = (0, math_operations_1.Add)(LaborData.InsAfterLaborDisc, LaborData.CustAfterLaborDisc);
495
495
  }
496
496
  }
497
497
  return tr_utils_1.TrUtils.FixPriceValue(LineTotal, DecimalsNumber);
@@ -516,10 +516,10 @@ class ROPrintService {
516
516
  }
517
517
  else {
518
518
  if (IncludeGST) {
519
- LineTotal = (0, aggregation_1.addition)(PartData.InsAfterTax, PartData.CustAfterTax);
519
+ LineTotal = (0, math_operations_1.Add)(PartData.InsAfterTax, PartData.CustAfterTax);
520
520
  }
521
521
  else {
522
- LineTotal = (0, aggregation_1.addition)(PartData.InsAfterPartDisc, PartData.CustAfterPartDisc);
522
+ LineTotal = (0, math_operations_1.Add)(PartData.InsAfterPartDisc, PartData.CustAfterPartDisc);
523
523
  }
524
524
  }
525
525
  return tr_utils_1.TrUtils.FixPriceValue(LineTotal, DecimalsNumber);
@@ -20,22 +20,22 @@ export declare class ROTotalsService {
20
20
  static ResetDiscountValuesIfInvalid(dupRecordData: any): any;
21
21
  static SetMainDiscountValues(argRecordData: any, dupRecordData: any, detailedInfo: boolean): any;
22
22
  static GetFinalCustomerTotalsData(argRecordData: any, dupRecordData: any, isWorkOrder: boolean, detailedInfo: boolean, isRoundable: boolean, DecimalsNumber: number): any;
23
- static GetCustSubTotal(LaborList: any, PartsList: any): any;
23
+ static GetCustSubTotal(LaborList: any, PartsList: any): number;
24
24
  static GetCustLaborTotalAfterDiscount(LaborList: any): any;
25
25
  static GetCustPartsTotalAfterDiscount(PartsList: any): any;
26
26
  static GetCustLaborTaxTotal(opCodesList: any, IsTaxable: boolean, isWorkOrder: boolean): any;
27
27
  static GetCustPartsTaxTotal(OpsList: any, PartsList: any, IsTaxable: boolean, isWorkOrder: boolean): any;
28
28
  static GetCustomerTotalBasedOnTaxType(dupRecordData: any, LaborTaxAmount: number, PartsTaxAmount: number, LaborList: any, PartsList: any, IsTaxable: boolean): any;
29
29
  static GetFinalInsuranceTotalsData(argRecordData: any, dupRecordData: any, detailedInfo: boolean, isWorkOrder: boolean, DecimalsNumber: number): any;
30
- static GetInsSubTotal(LaborList: any, PartsList: any): any;
30
+ static GetInsSubTotal(LaborList: any, PartsList: any): number;
31
31
  static GetInsLaborTotalAfterDiscount(LaborList: any): any;
32
32
  static GetInsPartsTotalAfterDiscount(PartsList: any): any;
33
33
  static GetInsLaborTaxTotal(opCodesList: any, IsTaxable: boolean, isWorkOrder: boolean): any;
34
34
  static GetInsPartsTaxTotal(PartsList: any, IsTaxable: boolean, isWorkOrder: boolean): any;
35
35
  static GetInsuranceTotalBasedOnTaxType(SubTotal: number, LaborTaxAmount: number, PartsTaxAmount: number, IsTaxable: boolean): any;
36
36
  static GetDetailedTotalsData(argRecordData: any, dupRecordData: any, TaxCodes: any, isWorkOrder: boolean, DecimalsNumber: number): any;
37
- static GetCustLaborDiscountedTotal(LaborList: any, isTaxable: boolean, finalTotalsData: any): any;
38
- static GetCustPartDiscountedTotal(PartsList: any, isTaxable: boolean, finalTotalsData: any): any;
37
+ static GetCustLaborDiscountedTotal(LaborList: any, isTaxable: boolean, finalTotalsData: any): number;
38
+ static GetCustPartDiscountedTotal(PartsList: any, isTaxable: boolean, finalTotalsData: any): number;
39
39
  static GetCustLaborCGSTTaxTotal(opCodesList: any, IsTaxable: boolean, isWorkOrder: boolean): any;
40
40
  static GetCustLaborIGSTTaxTotal(opCodesList: any, IsTaxable: boolean, isWorkOrder: boolean): any;
41
41
  static GetCustLaborSGSTTaxTotal(opCodesList: any, IsTaxable: boolean, isWorkOrder: boolean): any;