shareneus 1.5.10 → 1.5.11

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.
@@ -107,6 +107,7 @@ class PurchaseOrderTotalsService {
107
107
  // Part.AfterDiscountPrice = Part.NetAmt;
108
108
  console.log('Part total', Part.UnAmt, Part.Disc, Part.RecDisc);
109
109
  Part.AfterDiscountPrice = (0, math_operations_1.Subtract)(Part.UnAmt, Part.Disc, Part.RecDisc);
110
+ console.log('After discount', Part.AfterDiscountPrice);
110
111
  }
111
112
  Part.GSTAmt = (0, math_operations_1.Add)(Part.SGST, Part.CGST, Part.IGST);
112
113
  Part.Desc = Part.Name;
@@ -160,6 +161,7 @@ class PurchaseOrderTotalsService {
160
161
  static GetTotalsInfo(PartsList, LaborList, IsTaxable, TaxCodes, HasNoTax, GetSubTotal, Discount, DiscInPerc, Adjust, DecimalsNumber) {
161
162
  let finalTotalsData = {};
162
163
  let PartsInfo = this.GetPartsTotalTaxAndAfterDiscount(PartsList);
164
+ console.log('PartsInfo', tr_utils_1.TrUtils.Stringify(PartsInfo));
163
165
  let PartsTotalAfterDisc = tr_utils_1.TrUtils.SetValueToZeroIfNull(PartsInfo[0]);
164
166
  let PartsDiscTotal = tr_utils_1.TrUtils.SetValueToZeroIfNull(PartsInfo[1]);
165
167
  let PartsTaxTotal = tr_utils_1.TrUtils.SetValueToZeroIfNull(PartsInfo[2]);
@@ -206,6 +208,7 @@ class PurchaseOrderTotalsService {
206
208
  let PartsDiscountedTotal = 0;
207
209
  let TotalTaxAmt = 0;
208
210
  PartsList.forEach((Part) => {
211
+ console.log('Part', Part.AfterDiscountPrice, Part.DiscountedPrice, Part.GSTAmt);
209
212
  PartsTotalAfterDisc = (0, math_operations_1.Add)(PartsTotalAfterDisc, Part.AfterDiscountPrice);
210
213
  PartsDiscountedTotal = (0, math_operations_1.Add)(PartsDiscountedTotal, Part.DiscountedPrice);
211
214
  TotalTaxAmt = (0, math_operations_1.Add)(TotalTaxAmt, Part.GSTAmt);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shareneus",
3
- "version": "1.5.10",
3
+ "version": "1.5.11",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",