shareneus 1.7.350 → 1.7.351

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.
@@ -21,7 +21,7 @@ class SalesReceivePrintService {
21
21
  SalesReceivePrintData.IsProforma = IsProforma;
22
22
  SalesReceivePrintData.Settings = tr_utils_1.TrUtils.Stringify(argSalesReceiveData.Settings);
23
23
  SalesReceivePrintData.SType = tr_utils_1.TrUtils.Stringify(argSalesReceiveData.SType);
24
- SalesReceivePrintData.Items = tr_utils_1.TrUtils.Stringify(argSalesReceiveData.Items);
24
+ SalesReceivePrintData.Items = tr_utils_1.TrUtils.Stringify(argSalesReceiveData.Items || argSalesReceiveData.Lines);
25
25
  let SType = tr_utils_1.TrUtils.IsNull(argSalesReceiveData.SType) ? null : argSalesReceiveData.SType;
26
26
  SalesReceivePrintData = this.GetPrintConditionsBasedOnInput(SalesReceivePrintData, IncludeGST, ConsolidateGST, ForInsurance, SType, argSalesReceiveData, IsProforma, HeaderName);
27
27
  SalesReceivePrintData.Entity = shared_print_service_1.PrintSharedService.GetFormattedEntityDataForPrint(OriginalEntityData, "Invoice", OriginalSalesReceiveData);
@@ -38,7 +38,7 @@ class SalesReceivePrintService {
38
38
  finalTotalsData.CustPartsTotalBeforeDisc = (0, math_operations_1.Add)(finalTotalsData.totalTaxOnItems, (0, math_operations_1.Subtract)(finalTotalsData.subtotalOnItems, finalTotalsData.totalDiscountOnItems));
39
39
  }
40
40
  SalesReceivePrintData = tr_utils_1.TrUtils.ConcatObjects(SalesReceivePrintData, finalTotalsData);
41
- SalesReceivePrintData.Items = this.GetItemsPrintInfo(SalesReceivePrintData.Items, ConsolidateGST, TaxCodes, (_b = (_a = OriginalEntityData.Entity.Settings) === null || _a === void 0 ? void 0 : _a.Acc) === null || _b === void 0 ? void 0 : _b.LTot, IsTaxable, SalesReceivePrintData.Entity.DecimalsNumber);
41
+ SalesReceivePrintData.Items = this.GetItemsPrintInfo(SalesReceivePrintData.Items || SalesReceivePrintData.Lines, ConsolidateGST, TaxCodes, (_b = (_a = OriginalEntityData.Entity.Settings) === null || _a === void 0 ? void 0 : _a.Acc) === null || _b === void 0 ? void 0 : _b.LTot, IsTaxable, SalesReceivePrintData.Entity.DecimalsNumber);
42
42
  argSalesReceiveData = this.ReverseItemsForSalesReceivePrint(argSalesReceiveData);
43
43
  SalesReceivePrintData.PrintInfo = this.PrepareFormatForSalesReceivePrint(SalesReceivePrintData, code_enums_1.ROTypeEnum.Invoice, argSalesReceiveData.Sts);
44
44
  SalesReceivePrintData = this.GetFormattedProductDataForPrint(argSalesReceiveData, SalesReceivePrintData);
@@ -146,7 +146,7 @@ class SalesReceivePrintService {
146
146
  let PrintInfo = [];
147
147
  let SRLaborParts = {};
148
148
  // SRLaborParts.Ops = SalesReceivePrintData.Ops;
149
- SRLaborParts.Items = SalesReceivePrintData.Items;
149
+ SRLaborParts.Items = SalesReceivePrintData.Items || SalesReceivePrintData.Lines;
150
150
  SRLaborParts.Sts = InvoiceStatus;
151
151
  SRLaborParts.Type = ROType;
152
152
  PrintInfo.push(SRLaborParts);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shareneus",
3
- "version": "1.7.350",
3
+ "version": "1.7.351",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -22,7 +22,7 @@ export class SalesReceivePrintService {
22
22
  SalesReceivePrintData.IsProforma = IsProforma;
23
23
  SalesReceivePrintData.Settings = TrUtils.Stringify(argSalesReceiveData.Settings);
24
24
  SalesReceivePrintData.SType = TrUtils.Stringify(argSalesReceiveData.SType);
25
- SalesReceivePrintData.Items = TrUtils.Stringify(argSalesReceiveData.Items);
25
+ SalesReceivePrintData.Items = TrUtils.Stringify(argSalesReceiveData.Items || argSalesReceiveData.Lines);
26
26
 
27
27
  let SType: any = TrUtils.IsNull(argSalesReceiveData.SType) ? null : argSalesReceiveData.SType;
28
28
  SalesReceivePrintData = this.GetPrintConditionsBasedOnInput(SalesReceivePrintData, IncludeGST, ConsolidateGST, ForInsurance,
@@ -41,7 +41,7 @@ export class SalesReceivePrintService {
41
41
  finalTotalsData.CustPartsTotalBeforeDisc = Add(finalTotalsData.totalTaxOnItems, Subtract(finalTotalsData.subtotalOnItems, finalTotalsData.totalDiscountOnItems));
42
42
  }
43
43
  SalesReceivePrintData = TrUtils.ConcatObjects(SalesReceivePrintData, finalTotalsData);
44
- SalesReceivePrintData.Items = this.GetItemsPrintInfo(SalesReceivePrintData.Items, ConsolidateGST, TaxCodes,
44
+ SalesReceivePrintData.Items = this.GetItemsPrintInfo(SalesReceivePrintData.Items || SalesReceivePrintData.Lines, ConsolidateGST, TaxCodes,
45
45
  OriginalEntityData.Entity.Settings?.Acc?.LTot, IsTaxable, SalesReceivePrintData.Entity.DecimalsNumber);
46
46
  argSalesReceiveData = this.ReverseItemsForSalesReceivePrint(argSalesReceiveData);
47
47
  SalesReceivePrintData.PrintInfo = this.PrepareFormatForSalesReceivePrint(SalesReceivePrintData, ROTypeEnum.Invoice, argSalesReceiveData.Sts);
@@ -162,7 +162,7 @@ export class SalesReceivePrintService {
162
162
 
163
163
  // SRLaborParts.Ops = SalesReceivePrintData.Ops;
164
164
 
165
- SRLaborParts.Items = SalesReceivePrintData.Items;
165
+ SRLaborParts.Items = SalesReceivePrintData.Items || SalesReceivePrintData.Lines;
166
166
 
167
167
  SRLaborParts.Sts = InvoiceStatus;
168
168
  SRLaborParts.Type = ROType;