shareneus 1.6.43 → 1.6.44

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.
@@ -29,6 +29,10 @@ function GetInvoicePDF(invoiceData, entityData, headerConfig, printConfig, taxCo
29
29
  invPrint = (0, unified_invoice_pdf_service_1.GetInvoicePrint)(invoicePrintData, numberofCopies, withPass, options.Size, options.MoreDiscDetails, options.Orientation);
30
30
  }
31
31
  else {
32
+ invoicePrintData.Round = tr_utils_1.TrUtils.FixedTo(invoiceData.Round);
33
+ invoicePrintData.Total = tr_utils_1.TrUtils.FixedTo(invoiceData.Total);
34
+ invoicePrintData.SubToal = tr_utils_1.TrUtils.FixedTo(invoiceData.SubToal);
35
+ invoicePrintData.TaxTotal = tr_utils_1.TrUtils.FixedTo(invoiceData.TaxTotal);
32
36
  invPrint = (0, invoice_pdf_service_1.CreateInvoicePDFService)(invoicePrintData, printConfigData, numberofCopies);
33
37
  }
34
38
  return invPrint;
@@ -33,6 +33,7 @@ export declare class InvoiceTotalsService {
33
33
  static GetRetPartsTaxTotalFor(PartsList: any, IsIndependentTax: boolean): any;
34
34
  static GetNonRetPartsTaxTotalFor(PartsList: any, IsIndependentTax: boolean): any;
35
35
  static GetCustomerTotalBasedOnTaxType(finalTotalsData: any, LaborTaxAmount: number, PartsTaxAmount: number, LaborList: any, PartsList: any, IsIndependentTax: boolean, Adjust: any): number;
36
+ static GetRetLaborTotalAfterDiscount(LaborList: any): number;
36
37
  static GetRetCustomerTotalBasedOnTaxType(finalTotalsData: any, LaborTaxAmount: number, PartsTaxAmount: number, LaborList: any, PartsList: any, IsIndependentTax: boolean, Adjust: any, DecimalsNumber: any): number;
37
38
  static GetNonRetCustomerTotalBasedOnTaxType(finalTotalsData: any, LaborTaxAmount: number, PartsTaxAmount: number, LaborList: any, PartsList: any, IsIndependentTax: boolean, Adjust: any, DecimalsNumber: any): number;
38
39
  static LaborTotalAfterDiscount(LaborTotalAfterDisc: number, LaborTaxAmount: number, MainLDisc: number, LDiscInPerc: string): number;
@@ -511,8 +511,12 @@ class InvoiceTotalsService {
511
511
  return (0, math_operations_1.Add)(LaborTotalAfterDisc, PartsTotalAfterDisc, Adjust);
512
512
  }
513
513
  }
514
+ static GetRetLaborTotalAfterDiscount(LaborList) {
515
+ return 0;
516
+ }
514
517
  static GetRetCustomerTotalBasedOnTaxType(finalTotalsData, LaborTaxAmount, PartsTaxAmount, LaborList, PartsList, IsIndependentTax, Adjust, DecimalsNumber) {
515
- let LaborTotalAfterDisc = this.GetLaborTotalAfterDiscount(LaborList);
518
+ LaborTaxAmount = 0;
519
+ let LaborTotalAfterDisc = this.GetRetLaborTotalAfterDiscount(LaborList);
516
520
  let PartsTotalAfterDisc = this.GetRetPartsTotalAfterDiscount(PartsList);
517
521
  if (IsIndependentTax) {
518
522
  return (0, math_operations_1.Add)(LaborTotalAfterDisc, PartsTotalAfterDisc, LaborTaxAmount, PartsTaxAmount);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shareneus",
3
- "version": "1.6.43",
3
+ "version": "1.6.44",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",