shareneus 1.7.317 → 1.7.319
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.
- package/dist/accounting/invoice/inv-print.service.js +2 -2
- package/dist/shared/party-details-section/pdf-party-details.section.js +1 -0
- package/dist/shared/transactions-pdf.service.js +1 -0
- package/package.json +1 -1
- package/src/accounting/invoice/inv-print.service.ts +1 -1
- package/src/shared/party-details-section/pdf-party-details.section.ts +1 -0
- package/src/shared/transactions-pdf.service.ts +1 -0
|
@@ -375,7 +375,7 @@ function GetFormattedProductDataForPrint(argInvoiceData, InvoicePrintData) {
|
|
|
375
375
|
return InvoicePrintData;
|
|
376
376
|
}
|
|
377
377
|
function GetBillNameForInvoicePrint(argInvoiceData, InvoicePrintData) {
|
|
378
|
-
var _a;
|
|
378
|
+
var _a, _b;
|
|
379
379
|
let Customer = {};
|
|
380
380
|
if (!tr_utils_1.TrUtils.IsNull(argInvoiceData.BillTo)) {
|
|
381
381
|
Customer.Name = argInvoiceData.BillTo.Name;
|
|
@@ -398,7 +398,7 @@ function GetBillNameForInvoicePrint(argInvoiceData, InvoicePrintData) {
|
|
|
398
398
|
Customer.Adrs.push(city);
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
|
-
Customer.GSTIN = argInvoiceData.BillTo.GSTIN;
|
|
401
|
+
Customer.GSTIN = (_b = argInvoiceData.BillTo.TaxId) === null || _b === void 0 ? void 0 : _b.GSTIN;
|
|
402
402
|
if (!tr_utils_1.TrUtils.IsNull(argInvoiceData.BillTo.DLNo)) {
|
|
403
403
|
Customer.DLNo = argInvoiceData.BillTo.DLNo;
|
|
404
404
|
}
|
|
@@ -13,6 +13,7 @@ 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);
|
|
16
17
|
const billTo = resolveSalesBillToDetails(transactionData);
|
|
17
18
|
const shipTo = resolveSalesShipToDetails(transactionData);
|
|
18
19
|
const insurance = resolveInsuranceDetails(transactionData);
|
|
@@ -49,6 +49,7 @@ 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);
|
|
52
53
|
invPrint = (0, invoice_pdf_service_1.CreateInvoicePDFService)(invoicePrintData, printConfigData, numberofCopies);
|
|
53
54
|
}
|
|
54
55
|
return invPrint;
|
package/package.json
CHANGED
|
@@ -415,7 +415,7 @@ export function GetBillNameForInvoicePrint(argInvoiceData: any, InvoicePrintData
|
|
|
415
415
|
Customer.Adrs.push(city);
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
|
-
Customer.GSTIN = argInvoiceData.BillTo.GSTIN;
|
|
418
|
+
Customer.GSTIN = argInvoiceData.BillTo.TaxId?.GSTIN;
|
|
419
419
|
if (!TrUtils.IsNull(argInvoiceData.BillTo.DLNo)) {
|
|
420
420
|
Customer.DLNo = argInvoiceData.BillTo.DLNo;
|
|
421
421
|
}
|
|
@@ -8,6 +8,7 @@ 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);
|
|
11
12
|
const billTo = resolveSalesBillToDetails(transactionData);
|
|
12
13
|
const shipTo = resolveSalesShipToDetails(transactionData);
|
|
13
14
|
const insurance = resolveInsuranceDetails(transactionData);
|
|
@@ -46,6 +46,7 @@ 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);
|
|
49
50
|
invPrint = CreateInvoicePDFService(invoicePrintData, printConfigData, numberofCopies);
|
|
50
51
|
}
|
|
51
52
|
return invPrint;
|