shareneus 1.7.358 → 1.7.360
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.
|
@@ -44,12 +44,16 @@ function GetInvoicePDF(invoiceData, entityData, headerConfig, printConfig, taxCo
|
|
|
44
44
|
invPrint = (0, unified_invoice_pdf_service_1.GetInvoicePrint)(invoicePrintData, numberofCopies, withPass, options.Size, options.MoreDiscDetails, options.Orientation);
|
|
45
45
|
}
|
|
46
46
|
else {
|
|
47
|
+
// console.log('invoicePrintData', invoicePrintData, 'options', options);
|
|
47
48
|
if (options.PartInvoice && options.LaborInvoice) {
|
|
48
49
|
invoicePrintData.Round = tr_utils_1.TrUtils.FixedTo(invoiceData.Round);
|
|
49
50
|
invoicePrintData.Total = tr_utils_1.TrUtils.FixedTo(invoiceData.Total);
|
|
50
51
|
invoicePrintData.SubToal = tr_utils_1.TrUtils.FixedTo(invoiceData.SubToal);
|
|
51
52
|
invoicePrintData.TaxTotal = tr_utils_1.TrUtils.FixedTo(invoiceData.TaxTotal);
|
|
52
53
|
}
|
|
54
|
+
else {
|
|
55
|
+
invoicePrintData.TaxTotal = tr_utils_1.TrUtils.FixedTo((0, math_operations_1.Add)(Number(invoiceData.CustPartITax), Number(invoiceData.CustLaborITax)));
|
|
56
|
+
}
|
|
53
57
|
delete invoicePrintData.SIndTotal;
|
|
54
58
|
invPrint = (0, invoice_pdf_service_1.CreateInvoicePDFService)(invoicePrintData, printConfigData, numberofCopies);
|
|
55
59
|
}
|
package/package.json
CHANGED
|
@@ -40,11 +40,14 @@ export function GetInvoicePDF(invoiceData: any, entityData: any, headerConfig: a
|
|
|
40
40
|
if (options.ConsolidateGST) {
|
|
41
41
|
invPrint = GetInvoicePrint(invoicePrintData, numberofCopies, withPass, options.Size, options.MoreDiscDetails, options.Orientation);
|
|
42
42
|
} else {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
43
|
+
// console.log('invoicePrintData', invoicePrintData, 'options', options);
|
|
44
|
+
if (options.PartInvoice && options.LaborInvoice) {
|
|
45
|
+
invoicePrintData.Round = TrUtils.FixedTo(invoiceData.Round);
|
|
46
|
+
invoicePrintData.Total = TrUtils.FixedTo(invoiceData.Total);
|
|
47
|
+
invoicePrintData.SubToal = TrUtils.FixedTo(invoiceData.SubToal);
|
|
48
|
+
invoicePrintData.TaxTotal = TrUtils.FixedTo(invoiceData.TaxTotal);
|
|
49
|
+
} else {
|
|
50
|
+
invoicePrintData.TaxTotal = TrUtils.FixedTo(Add(Number(invoiceData.CustPartITax), Number(invoiceData.CustLaborITax)));
|
|
48
51
|
}
|
|
49
52
|
delete invoicePrintData.SIndTotal;
|
|
50
53
|
invPrint = CreateInvoicePDFService(invoicePrintData, printConfigData, numberofCopies);
|
|
@@ -105,7 +108,7 @@ export function GetDeliveryChallanPDF(deliveryChallanData: any, entityData: any,
|
|
|
105
108
|
let dcPrint: any;
|
|
106
109
|
if (options.ConsolidateGST) {
|
|
107
110
|
dcPrint = DeliveryChallanPdfService.GetDeliveryChallanPrint(deliveryChallanData, numberofCopies, false);
|
|
108
|
-
|
|
111
|
+
} else {
|
|
109
112
|
dcPrintData.Round = TrUtils.FixedTo(deliveryChallanData.Round);
|
|
110
113
|
dcPrintData.Total = TrUtils.FixedTo(deliveryChallanData.Total);
|
|
111
114
|
dcPrintData.SubToal = TrUtils.FixedTo(deliveryChallanData.SubToal);
|
|
@@ -165,7 +168,7 @@ export function GetDebitNotePDF(debitNoteData: any, entityData: any, headerConfi
|
|
|
165
168
|
true, false, taxCodes, false, true);
|
|
166
169
|
let dnPrint: any;
|
|
167
170
|
if (options.ConsolidateGST) {
|
|
168
|
-
dnPrint = DebitNotePrintService.GetDebitNotePrintInfo(debitNotePrintData,entityData, image,true, true, taxCodes, false, true);
|
|
171
|
+
dnPrint = DebitNotePrintService.GetDebitNotePrintInfo(debitNotePrintData, entityData, image, true, true, taxCodes, false, true);
|
|
169
172
|
} else {
|
|
170
173
|
debitNotePrintData.Round = TrUtils.FixedTo(debitNoteData.Round);
|
|
171
174
|
debitNotePrintData.Total = TrUtils.FixedTo(debitNoteData.Total);
|