shareneus 1.7.320 → 1.7.322

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.
@@ -398,6 +398,7 @@ function GetBillNameForInvoicePrint(argInvoiceData, InvoicePrintData) {
398
398
  Customer.Adrs.push(city);
399
399
  }
400
400
  }
401
+ Customer.TaxId = argInvoiceData.BillTo.TaxId;
401
402
  Customer.GSTIN = (_b = argInvoiceData.BillTo.TaxId) === null || _b === void 0 ? void 0 : _b.Value;
402
403
  if (!tr_utils_1.TrUtils.IsNull(argInvoiceData.BillTo.DLNo)) {
403
404
  Customer.DLNo = argInvoiceData.BillTo.DLNo;
@@ -72,9 +72,12 @@ function CustomerInfo(InvoicePDFData) {
72
72
  [{ text: 'Name', style: ['headerstyle'], fontSize: 9 }, { text: ':', style: ['headerstyle'], fontSize: 9 }, { text: InvoicePDFData.Customer.Name, style: ['headerstyle'], fontSize: 9 }],
73
73
  [{ text: 'Address', style: ['headerstyle'], fontSize: 9 }, { text: ':', style: ['headerstyle'], fontSize: 9 }, { text: (_a = InvoicePDFData.Customer.Adrs) === null || _a === void 0 ? void 0 : _a[0], style: ['headerstyle'], fontSize: 9 }],
74
74
  ];
75
- if (InvoicePDFData.Customer.Code) {
75
+ if (!tr_utils_1.TrUtils.IsEmpty(InvoicePDFData.Customer.Code)) {
76
76
  CustomerTable.unshift([{ text: 'UHID', style: ['headerstyle'], fontSize: 9 }, { text: ':', style: ['headerstyle'], fontSize: 9 }, { text: InvoicePDFData.Customer.Code, style: ['headerstyle'], fontSize: 9 }]);
77
77
  }
78
+ if (!tr_utils_1.TrUtils.IsEmpty(InvoicePDFData.Customer.DLNo)) {
79
+ CustomerTable.push([{ text: 'DLNo', style: ['headerstyle'], fontSize: 9 }, { text: ':', style: ['headerstyle'], fontSize: 9 }, { text: InvoicePDFData.Customer.DLNo, style: ['headerstyle'], fontSize: 9 }]);
80
+ }
78
81
  return CustomerTable;
79
82
  }
80
83
  function GetBarCode(code, PrCustBar) {
@@ -13,7 +13,6 @@ function buildInvoicePartyDetailsSection(PDFInvoiceData, customerLayout, printCo
13
13
  }
14
14
  function buildSalesPartyDetailsSection(PDFInvoiceData, customerLayout, printConfig = {}) {
15
15
  const transactionData = PDFInvoiceData || {};
16
- console.log('Transaction Data for Party Details Section:', transactionData);
17
16
  const billTo = resolveSalesBillToDetails(transactionData);
18
17
  const shipTo = resolveSalesShipToDetails(transactionData);
19
18
  const insurance = resolveInsuranceDetails(transactionData);
@@ -49,7 +49,6 @@ function GetInvoicePDF(invoiceData, entityData, headerConfig, printConfig, taxCo
49
49
  invoicePrintData.TaxTotal = tr_utils_1.TrUtils.FixedTo(invoiceData.TaxTotal);
50
50
  }
51
51
  delete invoicePrintData.SIndTotal;
52
- console.log('invoicePrintData before creating PDF:', invoicePrintData);
53
52
  invPrint = (0, invoice_pdf_service_1.CreateInvoicePDFService)(invoicePrintData, printConfigData, numberofCopies);
54
53
  }
55
54
  return invPrint;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shareneus",
3
- "version": "1.7.320",
3
+ "version": "1.7.322",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -415,6 +415,7 @@ export function GetBillNameForInvoicePrint(argInvoiceData: any, InvoicePrintData
415
415
  Customer.Adrs.push(city);
416
416
  }
417
417
  }
418
+ Customer.TaxId = argInvoiceData.BillTo.TaxId;
418
419
  Customer.GSTIN = argInvoiceData.BillTo.TaxId?.Value;
419
420
  if (!TrUtils.IsNull(argInvoiceData.BillTo.DLNo)) {
420
421
  Customer.DLNo = argInvoiceData.BillTo.DLNo;
@@ -86,9 +86,13 @@ function CustomerInfo(InvoicePDFData: any) {
86
86
  [{ text: 'Name', style: ['headerstyle'], fontSize: 9 }, { text: ':', style: ['headerstyle'], fontSize: 9 }, { text: InvoicePDFData.Customer.Name, style: ['headerstyle'], fontSize: 9 }],
87
87
  [{ text: 'Address', style: ['headerstyle'], fontSize: 9 }, { text: ':', style: ['headerstyle'], fontSize: 9 }, { text: InvoicePDFData.Customer.Adrs?.[0], style: ['headerstyle'], fontSize: 9 }],
88
88
  ];
89
- if (InvoicePDFData.Customer.Code) {
89
+ if (!TrUtils.IsEmpty(InvoicePDFData.Customer.Code)) {
90
90
  CustomerTable.unshift([{ text: 'UHID', style: ['headerstyle'], fontSize: 9 }, { text: ':', style: ['headerstyle'], fontSize: 9 }, { text: InvoicePDFData.Customer.Code, style: ['headerstyle'], fontSize: 9 }]);
91
91
  }
92
+ if (!TrUtils.IsEmpty(InvoicePDFData.Customer.DLNo)) {
93
+ CustomerTable.push([{ text: 'DLNo', style: ['headerstyle'], fontSize: 9 }, { text: ':', style: ['headerstyle'], fontSize: 9 }, { text: InvoicePDFData.Customer.DLNo, style: ['headerstyle'], fontSize: 9 }]);
94
+ }
95
+
92
96
 
93
97
  return CustomerTable;
94
98
  }
@@ -8,7 +8,6 @@ export function buildInvoicePartyDetailsSection(PDFInvoiceData: any, customerLay
8
8
 
9
9
  export function buildSalesPartyDetailsSection(PDFInvoiceData: any, customerLayout: any, printConfig: any = {}) {
10
10
  const transactionData = PDFInvoiceData || {};
11
- console.log('Transaction Data for Party Details Section:', transactionData);
12
11
  const billTo = resolveSalesBillToDetails(transactionData);
13
12
  const shipTo = resolveSalesShipToDetails(transactionData);
14
13
  const insurance = resolveInsuranceDetails(transactionData);
@@ -46,7 +46,6 @@ export function GetInvoicePDF(invoiceData: any, entityData: any, headerConfig: a
46
46
  invoicePrintData.TaxTotal = TrUtils.FixedTo(invoiceData.TaxTotal);
47
47
  }
48
48
  delete invoicePrintData.SIndTotal;
49
- console.log('invoicePrintData before creating PDF:', invoicePrintData);
50
49
  invPrint = CreateInvoicePDFService(invoicePrintData, printConfigData, numberofCopies);
51
50
  }
52
51
  return invPrint;