shareneus 1.6.59 → 1.6.60
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.
|
@@ -87,10 +87,19 @@ class IssuePartsprintService {
|
|
|
87
87
|
}
|
|
88
88
|
else {
|
|
89
89
|
for (let i = 0; i < ROPrintData.PrintInfo.length; i++) {
|
|
90
|
-
if (
|
|
91
|
-
|
|
90
|
+
// if (TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
|
|
91
|
+
// ROPrintData.PrintInfo[i].Text = '';
|
|
92
|
+
// }
|
|
93
|
+
const printInfo = ROPrintData.PrintInfo[i];
|
|
94
|
+
const hasText = !tr_utils_1.TrUtils.IsNull(printInfo.Text) && ('' + printInfo.Text).trim() !== '';
|
|
95
|
+
const hasPartsOrOps = (!tr_utils_1.TrUtils.IsNull(printInfo.Items) && printInfo.Items.length > 0)
|
|
96
|
+
|| (!tr_utils_1.TrUtils.IsNull(printInfo.Ops) && printInfo.Ops.length > 0);
|
|
97
|
+
if (hasText) {
|
|
98
|
+
List.push(ROPrintData.PrintInfo[i].Text);
|
|
99
|
+
}
|
|
100
|
+
if (hasPartsOrOps) {
|
|
101
|
+
List.push(this.GetWithOutDiscAndTaxFieldHeader(tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Items), tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Ops), ROPrintData.ShowTaxColumn, ROPrintData.Entity.MPN, ROPrintData.Entity.Body, ROPrintData.ShowIGST, ROPrintData.ConsolidateGST, ROPrintData.ShowDiscountColumn, isAuto, ROPrintData.Entity.DecimalsNumber));
|
|
92
102
|
}
|
|
93
|
-
List.push(ROPrintData.PrintInfo[i].Text, this.GetWithOutDiscAndTaxFieldHeader(tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Items), tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Ops), ROPrintData.ShowTaxColumn, ROPrintData.Entity.MPN, ROPrintData.Entity.Body, ROPrintData.ShowIGST, ROPrintData.ConsolidateGST, ROPrintData.ShowDiscountColumn, isAuto, ROPrintData.Entity.DecimalsNumber));
|
|
94
103
|
}
|
|
95
104
|
}
|
|
96
105
|
}
|
|
@@ -183,7 +192,7 @@ class IssuePartsprintService {
|
|
|
183
192
|
let Taxable = 0;
|
|
184
193
|
let FinalTotal = 0;
|
|
185
194
|
Parts.forEach((part) => {
|
|
186
|
-
|
|
195
|
+
console.log('part', part);
|
|
187
196
|
Qty = Qty + part.Qty;
|
|
188
197
|
CGSTAMT = CGSTAMT + part.CGSTAmt;
|
|
189
198
|
SGSTAMT = SGSTAMT + part.SGSTAmt;
|