shareneus 1.4.34 → 1.4.35
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/aggregation/aggregation.js +13 -13
- package/dist/excel-files/GSTR-RO-excel.service.js +3 -3
- package/dist/excel-files/GSTR1-excel.service.js +7 -7
- package/dist/excel-files/GSTR2-excel.service.js +6 -6
- package/dist/excel-files/analysis-excel.service.js +4 -4
- package/dist/excel-files/category-wise-item-excel.service.js +10 -10
- package/dist/excel-files/cust-balance-excel.service.js +5 -5
- package/dist/excel-files/cust-wise-sales-details.js +5 -5
- package/dist/excel-files/cust-wise-sales-summary-excel.service.js +5 -5
- package/dist/excel-files/expiring-drugs-excel.service.js +7 -7
- package/dist/excel-files/insurance-expire-excel.service.js +4 -4
- package/dist/excel-files/invoice-wise-excel.service.js +3 -3
- package/dist/excel-files/item-wise-doctor-sale-excel.service.js +7 -7
- package/dist/excel-files/item-wise-mout-details.js +4 -4
- package/dist/excel-files/item-wise-mout-summary.js +4 -4
- package/dist/excel-files/items-wise-sales-excel.service.js +10 -10
- package/dist/excel-files/manf-wise-sales-excel.service.js +4 -4
- package/dist/excel-files/next-service-date-excel.service.js +5 -5
- package/dist/excel-files/operator-wise-details.js +4 -4
- package/dist/excel-files/operator-wise-summary.js +4 -4
- package/dist/excel-files/payment-receive-excel.service.js +6 -6
- package/dist/excel-files/payments-made-excel.service.js +6 -6
- package/dist/excel-files/repair-orders-excel.service.js +10 -10
- package/dist/excel-files/sa-wise-labor-sales-excel.service.js +6 -6
- package/dist/excel-files/sa-wise-part-sales-excel.service.js +6 -6
- package/dist/excel-files/sale-summary-excel.service.js +3 -3
- package/dist/excel-files/sales-by-service-summary-excel.service.js +14 -14
- package/dist/excel-files/scheduled-drug-summary-excel.service.js +8 -8
- package/dist/excel-files/scheduled-drugs-excel.service.js +10 -10
- package/dist/excel-files/spares-issue-excel.service.js +14 -14
- package/dist/excel-files/stock-excel.service.js +3 -3
- package/dist/excel-files/tally-sales-import.service.js +3 -3
- package/dist/excel-files/ven-balance-excel.service.js +3 -3
- package/dist/index.js +9 -9
- package/dist/services/analysis-pdf.service.js +8 -8
- package/dist/services/appointment-total.service.js +37 -37
- package/dist/services/auto-sales-receipt-pdf.service.js +24 -24
- package/dist/services/category-wise-item-pdf.service.js +6 -6
- package/dist/services/checklist-pdf.js +3 -3
- package/dist/services/cn-print.service.js +33 -33
- package/dist/services/consultation-fee-receipt.service.js +16 -16
- package/dist/services/consultation-full-pdf.service.js +10 -10
- package/dist/services/consultation-letterhead-pdf.service.js +15 -15
- package/dist/services/consultation-pdf.service.js +15 -15
- package/dist/services/credit-note-pdf.service.js +16 -16
- package/dist/services/credit-note-totals.service.js +31 -31
- package/dist/services/cust-wise-sales-details-pdf.service.js +8 -8
- package/dist/services/cust-wise-sales-summary-pdf.service.js +7 -7
- package/dist/services/customer-balances-pdf.service.js +7 -7
- package/dist/services/dc-landscape-pdf.service.js +28 -28
- package/dist/services/dc-landscape-without-price-pdf.service.js +24 -24
- package/dist/services/dc-without-price-pdf.service.js +15 -15
- package/dist/services/debit-note-pdf.service.js +14 -14
- package/dist/services/debit-note-print.service.js +33 -33
- package/dist/services/debit-note-totals.service.js +28 -28
- package/dist/services/delivery-challan-pdf.service.js +16 -16
- package/dist/services/delivery-challan-print.service.js +26 -26
- package/dist/services/delivery-challan-totals.js +32 -32
- package/dist/services/equipment-design-pdf.service.js +10 -10
- package/dist/services/est.print-service.js +150 -150
- package/dist/services/expiring-drugs-pdf.service.js +6 -6
- package/dist/services/hc-inv-pdf.service.js +42 -42
- package/dist/services/insurance-expire-pdf.service.js +1 -1
- package/dist/services/inv-pdf.service.js +54 -54
- package/dist/services/inv-print.service.js +59 -59
- package/dist/services/invoice-landscape-pdf.service.js +29 -29
- package/dist/services/invoice-letterhead-pdf.service.js +54 -54
- package/dist/services/invoice-portrait-pdf.js +51 -51
- package/dist/services/invoice-total.service.js +78 -78
- package/dist/services/issue-parts-pdf.service.js +43 -43
- package/dist/services/item-bar-code-label-pdf.js +2 -2
- package/dist/services/item-price-for-pricelist.js +178 -0
- package/dist/services/item-wise-doctor-sale-pdf.service.js +3 -3
- package/dist/services/item-wise-mout-details-pdf.js +3 -3
- package/dist/services/item-wise-mout-summary-pdf.js +2 -2
- package/dist/services/item-wise-sales-pdf.service.js +6 -6
- package/dist/services/manf-wise-sales-pdf.service.js +5 -5
- package/dist/services/meeting-pdf.js +14 -14
- package/dist/services/mout-pdf.service.js +17 -17
- package/dist/services/next-service-date-pdf.service.js +1 -1
- package/dist/services/operator-wise-details-pdf.service.js +8 -8
- package/dist/services/operator-wise-summary-pdf.js +7 -7
- package/dist/services/pack-ship-pdf.service.js +3 -3
- package/dist/services/pack-ship-print.service.js +26 -26
- package/dist/services/payment-pdf.service.js +4 -4
- package/dist/services/payment-report-pdf.service.js +3 -3
- package/dist/services/po-totals.service.js +28 -28
- package/dist/services/pos-receipt-pdf.js +19 -19
- package/dist/services/purchase-order-pdf.service.js +40 -40
- package/dist/services/purchase-order-print.service.js +43 -43
- package/dist/services/purchase-order-totals.service.js +53 -53
- package/dist/services/receipt-print.service.js +5 -5
- package/dist/services/reorder-point-pdf.service.js +3 -3
- package/dist/services/repair-orders-pdf.service.js +3 -3
- package/dist/services/ro-pdf.service.js +80 -80
- package/dist/services/ro-print-service.js +87 -87
- package/dist/services/ro-totals.service.js +123 -123
- package/dist/services/sales-by-service-pdf.service.js +6 -6
- package/dist/services/sales-pdf.service.js +23 -23
- package/dist/services/sales-print.service.js +54 -54
- package/dist/services/sales-receipt-pdf.service.js +25 -25
- package/dist/services/sales-receipt-print.service.js +62 -62
- package/dist/services/sales-totals.service.js +33 -33
- package/dist/services/scheduled-drug-pdf.service.js +7 -7
- package/dist/services/scheduled-drug-summary-pdf.service.js +4 -4
- package/dist/services/separate-wo-print.service.js +9 -9
- package/dist/services/shared-inv-pdf.service.js +44 -44
- package/dist/services/shared-pdf.service.js +119 -119
- package/dist/services/shared-print.service.js +68 -68
- package/dist/services/task-pdf.service.js +10 -10
- package/dist/services/task-reports-pdf.service.js +9 -9
- package/dist/services/technician-pdf.service.js +10 -10
- package/dist/services/technician-print.service.js +9 -9
- package/dist/services/vendor-balances-pdf.service.js +6 -6
- package/dist/services/vendor-credit-note-pdf.service.js +27 -27
- package/dist/services/vendor-credit-note-print.service.js +29 -29
- package/dist/services/vendor-credit-note-totals.service.js +37 -37
- package/dist/services/vendor-debit-note-pdf.service.js +16 -16
- package/dist/services/vendor-debit-note-print.service.js +29 -29
- package/dist/services/vendor-debit-note-totals.service.js +30 -30
- package/dist/{utils → shared}/my-date.js +31 -31
- package/package.json +1 -1
- package/dist/services/pricelist-item-final-price.service.js +0 -177
- /package/dist/{utils/tr-utils.js → shared/utils.js} +0 -0
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.RoprintService = void 0;
|
|
4
4
|
const code_enums_1 = require("../enums/code-enums");
|
|
5
5
|
const enums_1 = require("../enums/enums");
|
|
6
|
-
const
|
|
6
|
+
const utils_1 = require("../shared/utils");
|
|
7
7
|
const shared_pdf_service_1 = require("./shared-pdf.service");
|
|
8
8
|
const shared_print_service_1 = require("./shared-print.service");
|
|
9
9
|
class RoprintService {
|
|
@@ -28,7 +28,7 @@ class RoprintService {
|
|
|
28
28
|
}
|
|
29
29
|
static CommonTotalDetails(ROPrintData, index, numberofCopies) {
|
|
30
30
|
let CommonDetails = [
|
|
31
|
-
shared_pdf_service_1.SharedPDFService.GetFinalTotalDetails(ROPrintData, ROPrintData.CustLaborTotalBeforeDisc, ROPrintData.CustLaborDiscTotal, ROPrintData.CustLaborCGST, ROPrintData.CustLaborSGST, ROPrintData.CustLaborIGST, ROPrintData.CustPartIGST, ROPrintData.ShowIGST, ROPrintData.ShowTaxColumn, ROPrintData.CustPartsTotalBeforeDisc, ROPrintData.CustPartsDiscTotal, ROPrintData.CustPartCGST, ROPrintData.CustPartSGST, ROPrintData.CustTaxGroupData, ROPrintData.ShowAccParts, ROPrintData.CustLaborAfterTax, ROPrintData.CustPartAfterTax, ROPrintData.FixedDisc, ROPrintData.Payee, ROPrintData.FixedTotal, ROPrintData.CustTotalRoundedBy, ROPrintData.CustRoundedTotal, ROPrintData.ShowDetailedLaborTaxInfo, ROPrintData.ShowDetailedPartTaxInfo,
|
|
31
|
+
shared_pdf_service_1.SharedPDFService.GetFinalTotalDetails(ROPrintData, ROPrintData.CustLaborTotalBeforeDisc, ROPrintData.CustLaborDiscTotal, ROPrintData.CustLaborCGST, ROPrintData.CustLaborSGST, ROPrintData.CustLaborIGST, ROPrintData.CustPartIGST, ROPrintData.ShowIGST, ROPrintData.ShowTaxColumn, ROPrintData.CustPartsTotalBeforeDisc, ROPrintData.CustPartsDiscTotal, ROPrintData.CustPartCGST, ROPrintData.CustPartSGST, ROPrintData.CustTaxGroupData, ROPrintData.ShowAccParts, ROPrintData.CustLaborAfterTax, ROPrintData.CustPartAfterTax, ROPrintData.FixedDisc, ROPrintData.Payee, ROPrintData.FixedTotal, ROPrintData.CustTotalRoundedBy, ROPrintData.CustRoundedTotal, ROPrintData.ShowDetailedLaborTaxInfo, ROPrintData.ShowDetailedPartTaxInfo, utils_1.TrUtils.isTaxable(ROPrintData.Settings.Tax), ROPrintData.CustLaborITax, ROPrintData.CustPartITax, ROPrintData.Consolidate, ROPrintData.From, null, null, false),
|
|
32
32
|
shared_pdf_service_1.SharedPDFService.InvoiceDueStatus(ROPrintData.Type, ROPrintData.Paid, ROPrintData.Due, ROPrintData.Sts, false),
|
|
33
33
|
shared_pdf_service_1.SharedPDFService.GetTemsAndConditions(ROPrintData.Entity.Terms),
|
|
34
34
|
shared_pdf_service_1.SharedPDFService.GetUnderLine(),
|
|
@@ -37,14 +37,14 @@ class RoprintService {
|
|
|
37
37
|
if (ROPrintData.Type !== 'Invoice') {
|
|
38
38
|
CommonDetails.splice(2, 0, shared_pdf_service_1.SharedPDFService.GetUnderLine());
|
|
39
39
|
}
|
|
40
|
-
if (!
|
|
40
|
+
if (!utils_1.TrUtils.IsNull(numberofCopies) && numberofCopies.length !== 0 && (index !== (numberofCopies.length - 1))) {
|
|
41
41
|
CommonDetails.push({ text: '', pageBreak: 'after' });
|
|
42
42
|
}
|
|
43
43
|
return CommonDetails;
|
|
44
44
|
}
|
|
45
45
|
static CommonInsTotalDetails(ROPrintData, index, numberofCopies) {
|
|
46
46
|
let CommonDetails = [
|
|
47
|
-
shared_pdf_service_1.SharedPDFService.GetFinalTotalDetails(ROPrintData, ROPrintData.InsLaborTotalBeforeDisc, ROPrintData.InsLaborDiscTotal, ROPrintData.InsLaborCGST, ROPrintData.InsLaborSGST, ROPrintData.InsLaborIGST, ROPrintData.InsPartIGST, ROPrintData.ShowIGST, ROPrintData.ShowTaxColumn, ROPrintData.InsPartsTotalBeforeDisc, ROPrintData.InsPartsDiscTotal, ROPrintData.InsPartCGST, ROPrintData.InsPartSGST, ROPrintData.InsTaxGroupData, ROPrintData.ShowAccParts, ROPrintData.InsLaborTotalAfterTax, ROPrintData.InsPartsTotalAfterTax, ROPrintData.FixedDisc, ROPrintData.Payee, ROPrintData.FixedInsTotal, ROPrintData.InsTotalRoundedBy, ROPrintData.InsRoundedTotal, ROPrintData.ShowDetailedLaborTaxInfo, ROPrintData.ShowDetailedPartTaxInfo,
|
|
47
|
+
shared_pdf_service_1.SharedPDFService.GetFinalTotalDetails(ROPrintData, ROPrintData.InsLaborTotalBeforeDisc, ROPrintData.InsLaborDiscTotal, ROPrintData.InsLaborCGST, ROPrintData.InsLaborSGST, ROPrintData.InsLaborIGST, ROPrintData.InsPartIGST, ROPrintData.ShowIGST, ROPrintData.ShowTaxColumn, ROPrintData.InsPartsTotalBeforeDisc, ROPrintData.InsPartsDiscTotal, ROPrintData.InsPartCGST, ROPrintData.InsPartSGST, ROPrintData.InsTaxGroupData, ROPrintData.ShowAccParts, ROPrintData.InsLaborTotalAfterTax, ROPrintData.InsPartsTotalAfterTax, ROPrintData.FixedDisc, ROPrintData.Payee, ROPrintData.FixedInsTotal, ROPrintData.InsTotalRoundedBy, ROPrintData.InsRoundedTotal, ROPrintData.ShowDetailedLaborTaxInfo, ROPrintData.ShowDetailedPartTaxInfo, utils_1.TrUtils.isTaxable(ROPrintData.Settings.Tax), ROPrintData.InsLaborITax, ROPrintData.InsPartITax, ROPrintData.Consolidate, ROPrintData.From, null, null, false),
|
|
48
48
|
shared_pdf_service_1.SharedPDFService.InvoiceDueStatus(ROPrintData.Type, ROPrintData.Paid, ROPrintData.Due, ROPrintData.Sts, false),
|
|
49
49
|
shared_pdf_service_1.SharedPDFService.GetTemsAndConditions(ROPrintData.Entity.Terms),
|
|
50
50
|
shared_pdf_service_1.SharedPDFService.GetUnderLine(),
|
|
@@ -53,7 +53,7 @@ class RoprintService {
|
|
|
53
53
|
if (ROPrintData.Type !== 'Invoice') {
|
|
54
54
|
CommonDetails.splice(2, 0, shared_pdf_service_1.SharedPDFService.GetUnderLine());
|
|
55
55
|
}
|
|
56
|
-
if (!
|
|
56
|
+
if (!utils_1.TrUtils.IsNull(numberofCopies) && numberofCopies.length !== 0 && (index !== (numberofCopies.length - 1))) {
|
|
57
57
|
CommonDetails.push({ text: '', pageBreak: 'after' });
|
|
58
58
|
}
|
|
59
59
|
return CommonDetails;
|
|
@@ -61,7 +61,7 @@ class RoprintService {
|
|
|
61
61
|
// Customer Only Print Method
|
|
62
62
|
static GetCustomerPrint(ROPrintData, numberofCopies, isOtherIndustry) {
|
|
63
63
|
var contents = [];
|
|
64
|
-
if (
|
|
64
|
+
if (utils_1.TrUtils.IsNull(numberofCopies) || numberofCopies.length === 0) {
|
|
65
65
|
contents.push(this.CommonHeaderDetails(ROPrintData, null, isOtherIndustry), this.CustomersparePartsTable(ROPrintData), this.CommonTotalDetails(ROPrintData, null, numberofCopies));
|
|
66
66
|
}
|
|
67
67
|
else {
|
|
@@ -106,14 +106,14 @@ class RoprintService {
|
|
|
106
106
|
{ text: 'GSTIN : ' + Entity.GSTIN, alignment: 'right', color: 'gray', lineHeight: 1.5, fontSize: 8 },
|
|
107
107
|
{ text: 'PAN No : ' + Entity.PAN, alignment: 'right', color: 'gray', lineHeight: 1.5, fontSize: 8 }
|
|
108
108
|
];
|
|
109
|
-
if (!
|
|
109
|
+
if (!utils_1.TrUtils.IsEmpty(Entity.Adrs2)) {
|
|
110
110
|
Details.splice(2, 0, { text: Entity.Adrs2 + '', alignment: 'right', color: 'gray', lineHeight: 1.5, fontSize: 8 });
|
|
111
111
|
}
|
|
112
112
|
return Details;
|
|
113
113
|
}
|
|
114
114
|
static GetFileName(ROPrintData) {
|
|
115
115
|
let fileName = ROPrintData.HeaderName;
|
|
116
|
-
if (!
|
|
116
|
+
if (!utils_1.TrUtils.IsEmpty(ROPrintData.Vehicle.RegNo)) {
|
|
117
117
|
fileName = fileName + '-' + ROPrintData.Vehicle.RegNo;
|
|
118
118
|
}
|
|
119
119
|
return fileName;
|
|
@@ -122,19 +122,19 @@ class RoprintService {
|
|
|
122
122
|
let List = [];
|
|
123
123
|
if (ROPrintData.Entity.Body === 1) {
|
|
124
124
|
for (let i = 0; i < ROPrintData.PrintInfo.length; i++) {
|
|
125
|
-
if (
|
|
125
|
+
if (utils_1.TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
|
|
126
126
|
ROPrintData.PrintInfo[i].Text = '';
|
|
127
127
|
}
|
|
128
|
-
List.push(ROPrintData.PrintInfo[i].Text, this.GetLaborPartsTableForView(
|
|
128
|
+
List.push(ROPrintData.PrintInfo[i].Text, this.GetLaborPartsTableForView(utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Parts), utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Ops), ROPrintData.Entity.MPN), this.GetCustomerIndPartsTable(ROPrintData.PrintInfo[i].Colli, ROPrintData.PrintInfo[i].Type, ROPrintData.PrintInfo[i].Sts, ROPrintData.Entity.MPN, ROPrintData.ShowTaxColumn));
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
else {
|
|
132
132
|
if (ROPrintData.Entity.Body === 2) {
|
|
133
133
|
for (let i = 0; i < ROPrintData.PrintInfo.length; i++) {
|
|
134
|
-
if (
|
|
134
|
+
if (utils_1.TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
|
|
135
135
|
ROPrintData.PrintInfo[i].Text = '';
|
|
136
136
|
}
|
|
137
|
-
List.push(ROPrintData.PrintInfo[i].Text, this.WithOutDiscountFieldTable(
|
|
137
|
+
List.push(ROPrintData.PrintInfo[i].Text, this.WithOutDiscountFieldTable(utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Parts), utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Ops), ROPrintData.ShowTaxColumn, ROPrintData.Entity.MPN, ROPrintData.Entity.Body, ROPrintData.ShowIGST, ROPrintData.ConsolidateGST, ROPrintData.ShowDiscountColumn), this.GetCustomerIndPartsTable(ROPrintData.PrintInfo[i].Colli, ROPrintData.PrintInfo[i].Type, ROPrintData.PrintInfo[i].Sts, ROPrintData.Entity.MPN, ROPrintData.ShowTaxColumn));
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
else {
|
|
@@ -146,10 +146,10 @@ class RoprintService {
|
|
|
146
146
|
}
|
|
147
147
|
else {
|
|
148
148
|
for (let i = 0; i < ROPrintData.PrintInfo.length; i++) {
|
|
149
|
-
if (
|
|
149
|
+
if (utils_1.TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
|
|
150
150
|
ROPrintData.PrintInfo[i].Text = '';
|
|
151
151
|
}
|
|
152
|
-
List.push(ROPrintData.PrintInfo[i].Text, this.GetWithOutDiscAndTaxFieldHeader(
|
|
152
|
+
List.push(ROPrintData.PrintInfo[i].Text, this.GetWithOutDiscAndTaxFieldHeader(utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Parts), utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Ops), ROPrintData.ShowTaxColumn, ROPrintData.Entity.MPN, ROPrintData.Entity.Body, ROPrintData.ShowIGST, ROPrintData.ConsolidateGST, ROPrintData.ShowDiscountColumn), this.GetCustomerIndPartsTable(ROPrintData.PrintInfo[i].Colli, ROPrintData.PrintInfo[i].Type, ROPrintData.PrintInfo[i].Sts, ROPrintData.Entity.MPN, ROPrintData.ShowTaxColumn));
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
}
|
|
@@ -158,7 +158,7 @@ class RoprintService {
|
|
|
158
158
|
}
|
|
159
159
|
static GetCustomerIndPartsTable(Colli, Type, Status, PrintPartNo, ShowTaxColumn) {
|
|
160
160
|
let Table = {};
|
|
161
|
-
if (!
|
|
161
|
+
if (!utils_1.TrUtils.IsNull(Colli) && Colli.length !== 0) {
|
|
162
162
|
let Approved = (Status === enums_1.ROStatusEnum.New || Status === enums_1.ROStatusEnum.WtngForAppr) ? false : true;
|
|
163
163
|
let isRepairOrder = (Type === code_enums_1.ROTypeEnum.RepairOrder) ? true : false;
|
|
164
164
|
Table = this.CustomerAccidentalPartsTableAfterApproval(Colli, ShowTaxColumn, PrintPartNo, Approved, isRepairOrder);
|
|
@@ -170,7 +170,7 @@ class RoprintService {
|
|
|
170
170
|
}
|
|
171
171
|
static GetInsurancePrint(ROPrintData, numberofCopies, isOtherIndustry) {
|
|
172
172
|
var contents = [];
|
|
173
|
-
if (
|
|
173
|
+
if (utils_1.TrUtils.IsNull(numberofCopies) || numberofCopies.length === 0) {
|
|
174
174
|
contents.push(this.CommonHeaderDetails(ROPrintData, null, isOtherIndustry), this.InsurancesparePartsTable(ROPrintData), this.CommonInsTotalDetails(ROPrintData, null, numberofCopies));
|
|
175
175
|
}
|
|
176
176
|
else {
|
|
@@ -208,19 +208,19 @@ class RoprintService {
|
|
|
208
208
|
let List = [];
|
|
209
209
|
if (ROPrintData.Entity.Body === 1) {
|
|
210
210
|
for (let i = 0; i < ROPrintData.PrintInfo.length; i++) {
|
|
211
|
-
if (
|
|
211
|
+
if (utils_1.TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
|
|
212
212
|
ROPrintData.PrintInfo[i].Text = '';
|
|
213
213
|
}
|
|
214
|
-
List.push(ROPrintData.PrintInfo[i].Text, this.GetLaborPartsTableForView(
|
|
214
|
+
List.push(ROPrintData.PrintInfo[i].Text, this.GetLaborPartsTableForView(utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Parts), utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Ops), ROPrintData.Entity.MPN), this.GetInsuranceIndPartsTable(ROPrintData.PrintInfo[i], ROPrintData.Entity.MPN, ROPrintData.ShowTaxColumn));
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
217
|
else {
|
|
218
218
|
if (ROPrintData.Entity.Body === 2) {
|
|
219
219
|
for (let i = 0; i < ROPrintData.PrintInfo.length; i++) {
|
|
220
|
-
if (
|
|
220
|
+
if (utils_1.TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
|
|
221
221
|
ROPrintData.PrintInfo[i].Text = '';
|
|
222
222
|
}
|
|
223
|
-
List.push(ROPrintData.PrintInfo[i].Text, this.WithOutDiscountFieldTable(
|
|
223
|
+
List.push(ROPrintData.PrintInfo[i].Text, this.WithOutDiscountFieldTable(utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Parts), utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Ops), ROPrintData.ShowTaxColumn, ROPrintData.Entity.MPN, ROPrintData.Entity.Body, ROPrintData.ShowIGST, ROPrintData.ConsolidateGST, ROPrintData.ShowDiscountColumn), this.GetInsuranceIndPartsTable(ROPrintData.PrintInfo[i], ROPrintData.Entity.MPN, ROPrintData.ShowTaxColumn));
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
226
|
else {
|
|
@@ -232,10 +232,10 @@ class RoprintService {
|
|
|
232
232
|
}
|
|
233
233
|
else {
|
|
234
234
|
for (let i = 0; i < ROPrintData.PrintInfo.length; i++) {
|
|
235
|
-
if (
|
|
235
|
+
if (utils_1.TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
|
|
236
236
|
ROPrintData.PrintInfo[i].Text = '';
|
|
237
237
|
}
|
|
238
|
-
List.push(ROPrintData.PrintInfo[i].Text, this.GetWithOutDiscAndTaxFieldHeader(
|
|
238
|
+
List.push(ROPrintData.PrintInfo[i].Text, this.GetWithOutDiscAndTaxFieldHeader(utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Parts), utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Ops), ROPrintData.ShowTaxColumn, ROPrintData.Entity.MPN, ROPrintData.Entity.Body, ROPrintData.ShowIGST, ROPrintData.ConsolidateGST, ROPrintData.ShowDiscountColumn), this.GetInsuranceIndPartsTable(ROPrintData.PrintInfo[i], ROPrintData.Entity.MPN, ROPrintData.ShowTaxColumn));
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
241
|
}
|
|
@@ -244,7 +244,7 @@ class RoprintService {
|
|
|
244
244
|
}
|
|
245
245
|
static GetInsuranceIndPartsTable(PrintInfo, PrintPartNo, ShowTaxColumn) {
|
|
246
246
|
let Table = {};
|
|
247
|
-
if (!
|
|
247
|
+
if (!utils_1.TrUtils.IsNull(PrintInfo.Colli) && PrintInfo.Colli.length !== 0) {
|
|
248
248
|
if (PrintInfo.Sts === enums_1.ROStatusEnum.New || PrintInfo.Sts === enums_1.ROStatusEnum.WtngForAppr) {
|
|
249
249
|
Table = this.GetTableForApproval(PrintInfo.Colli, PrintPartNo, ShowTaxColumn);
|
|
250
250
|
}
|
|
@@ -260,7 +260,7 @@ class RoprintService {
|
|
|
260
260
|
// Insurance & Customer Print Method
|
|
261
261
|
static GetInsuranceAndCustomerPrint(ROPrintData, numberofCopies, isOtherIndustry) {
|
|
262
262
|
var contents = [];
|
|
263
|
-
if (
|
|
263
|
+
if (utils_1.TrUtils.IsNull(numberofCopies) || numberofCopies.length === 0) {
|
|
264
264
|
contents.push(this.CommonHeaderDetails(ROPrintData, null, isOtherIndustry), this.InsuranceAndCustomersparePartsTable(ROPrintData), this.CommonInsTotalDetails(ROPrintData, null, numberofCopies));
|
|
265
265
|
}
|
|
266
266
|
else {
|
|
@@ -297,31 +297,31 @@ class RoprintService {
|
|
|
297
297
|
let List = [];
|
|
298
298
|
if (ROPrintData.Entity.Body === 1) {
|
|
299
299
|
for (let i = 0; i < ROPrintData.PrintInfo.length; i++) {
|
|
300
|
-
if (
|
|
300
|
+
if (utils_1.TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
|
|
301
301
|
ROPrintData.PrintInfo[i].Text = '';
|
|
302
302
|
}
|
|
303
|
-
List.push(ROPrintData.PrintInfo[i].Text, this.GetLaborPartsTableForView(
|
|
303
|
+
List.push(ROPrintData.PrintInfo[i].Text, this.GetLaborPartsTableForView(utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Parts), utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Ops), ROPrintData.Entity.MPN), this.GetInsuranceAndCustomerIndPartsTable(ROPrintData.PrintInfo[i], ROPrintData.Entity.MPN, ROPrintData.ShowTaxColumn));
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
306
|
else {
|
|
307
307
|
if (ROPrintData.Entity.Body === 2) {
|
|
308
308
|
for (let i = 0; i < ROPrintData.PrintInfo.length; i++) {
|
|
309
|
-
if (
|
|
309
|
+
if (utils_1.TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
|
|
310
310
|
ROPrintData.PrintInfo[i].Text = '';
|
|
311
311
|
}
|
|
312
|
-
List.push(ROPrintData.PrintInfo[i].Text, this.WithOutDiscountFieldTable(
|
|
312
|
+
List.push(ROPrintData.PrintInfo[i].Text, this.WithOutDiscountFieldTable(utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Parts), utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Ops), ROPrintData.ShowTaxColumn, ROPrintData.Entity.MPN, ROPrintData.Entity.Body, ROPrintData.ShowIGST, ROPrintData.ConsolidateGST, ROPrintData.ShowDiscountColumn), this.GetInsuranceAndCustomerIndPartsTable(ROPrintData.PrintInfo[i], ROPrintData.Entity.MPN, ROPrintData.ShowTaxColumn));
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
315
|
else {
|
|
316
316
|
if (ROPrintData.Summary) {
|
|
317
|
-
List.push('', this.GetInsuranceOrCustomerLaborPartsTableForView(
|
|
317
|
+
List.push('', this.GetInsuranceOrCustomerLaborPartsTableForView(utils_1.TrUtils.Stringify(ROPrintData.Parts), utils_1.TrUtils.Stringify(ROPrintData.Ops), ROPrintData.Entity.MPN));
|
|
318
318
|
}
|
|
319
319
|
else {
|
|
320
320
|
for (let i = 0; i < ROPrintData.PrintInfo.length; i++) {
|
|
321
|
-
if (
|
|
321
|
+
if (utils_1.TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
|
|
322
322
|
ROPrintData.PrintInfo[i].Text = '';
|
|
323
323
|
}
|
|
324
|
-
List.push(ROPrintData.PrintInfo[i].Text, this.GetWithOutDiscAndTaxFieldHeader(
|
|
324
|
+
List.push(ROPrintData.PrintInfo[i].Text, this.GetWithOutDiscAndTaxFieldHeader(utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Parts), utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Ops), ROPrintData.ShowTaxColumn, ROPrintData.Entity.MPN, ROPrintData.Entity.Body, ROPrintData.ShowIGST, ROPrintData.ConsolidateGST, ROPrintData.ShowDiscountColumn), this.GetInsuranceAndCustomerIndPartsTable(ROPrintData.PrintInfo[i], ROPrintData.Entity.MPN, ROPrintData.ShowTaxColumn));
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
327
|
}
|
|
@@ -330,7 +330,7 @@ class RoprintService {
|
|
|
330
330
|
}
|
|
331
331
|
static GetInsuranceAndCustomerIndPartsTable(PrintInfo, PrintPartNo, ShowTaxColumn) {
|
|
332
332
|
let Table = {};
|
|
333
|
-
if (!
|
|
333
|
+
if (!utils_1.TrUtils.IsNull(PrintInfo.Colli) && PrintInfo.Colli.length !== 0) {
|
|
334
334
|
Table = this.GetTableAsCombinedColForCustAndIns(PrintInfo.Colli, PrintPartNo, ShowTaxColumn);
|
|
335
335
|
return Table;
|
|
336
336
|
}
|
|
@@ -341,7 +341,7 @@ class RoprintService {
|
|
|
341
341
|
// Insurance | Customer Print Method
|
|
342
342
|
static GetInsuranceOrCustomerPrint(ROPrintData, numberofCopies, isOtherIndustry) {
|
|
343
343
|
var contents = [];
|
|
344
|
-
if (
|
|
344
|
+
if (utils_1.TrUtils.IsNull(numberofCopies) || numberofCopies.length === 0) {
|
|
345
345
|
contents.push(this.CommonHeaderDetails(ROPrintData, null, isOtherIndustry), this.InsuranceOrCustomersparePartsTable(ROPrintData), this.CommonInsTotalDetails(ROPrintData, null, numberofCopies));
|
|
346
346
|
}
|
|
347
347
|
else {
|
|
@@ -378,7 +378,7 @@ class RoprintService {
|
|
|
378
378
|
let List = [];
|
|
379
379
|
if (ROPrintData.Entity.Body === 1) {
|
|
380
380
|
for (let i = 0; i < ROPrintData.PrintInfo.length; i++) {
|
|
381
|
-
if (
|
|
381
|
+
if (utils_1.TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
|
|
382
382
|
ROPrintData.PrintInfo[i].Text = '';
|
|
383
383
|
}
|
|
384
384
|
List.push(ROPrintData.PrintInfo[i].Text, this.GetLaborPartsTableForView(ROPrintData.PrintInfo[i].Parts, ROPrintData.PrintInfo[i].Ops, ROPrintData.Entity.MPN), this.GetInsuranceOrCustomerIndPartsTable(ROPrintData.PrintInfo[i], ROPrintData.Entity.MPN, ROPrintData.ShowTaxColumn));
|
|
@@ -387,7 +387,7 @@ class RoprintService {
|
|
|
387
387
|
else {
|
|
388
388
|
if (ROPrintData.Entity.Body === 2) {
|
|
389
389
|
for (let i = 0; i < ROPrintData.PrintInfo.length; i++) {
|
|
390
|
-
if (
|
|
390
|
+
if (utils_1.TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
|
|
391
391
|
ROPrintData.PrintInfo[i].Text = '';
|
|
392
392
|
}
|
|
393
393
|
List.push(ROPrintData.PrintInfo[i].Text, this.WithOutDiscountFieldTable(ROPrintData.PrintInfo[i].Parts, ROPrintData.PrintInfo[i].Ops, ROPrintData.ShowTaxColumn, ROPrintData.Entity.MPN, ROPrintData.Entity.Body, ROPrintData.ShowIGST, ROPrintData.ConsolidateGST, ROPrintData.ShowDiscountColumn), this.GetInsuranceOrCustomerIndPartsTable(ROPrintData.PrintInfo[i], ROPrintData.Entity.MPN, ROPrintData.ShowTaxColumn));
|
|
@@ -399,7 +399,7 @@ class RoprintService {
|
|
|
399
399
|
}
|
|
400
400
|
else {
|
|
401
401
|
for (let i = 0; i < ROPrintData.PrintInfo.length; i++) {
|
|
402
|
-
if (
|
|
402
|
+
if (utils_1.TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
|
|
403
403
|
ROPrintData.PrintInfo[i].Text = '';
|
|
404
404
|
}
|
|
405
405
|
List.push(ROPrintData.PrintInfo[i].Text, this.GetWithOutDiscAndTaxFieldHeader(ROPrintData.PrintInfo[i].Parts, ROPrintData.PrintInfo[i].Ops, ROPrintData.ShowTaxColumn, ROPrintData.Entity.MPN, ROPrintData.Entity.Body, ROPrintData.ShowIGS, ROPrintData.ConsolidateGST, ROPrintData.ShowDiscountColumn), this.GetInsuranceOrCustomerIndPartsTable(ROPrintData.PrintInfo[i], ROPrintData.Entity.MPN, ROPrintData.ShowTaxColumn));
|
|
@@ -411,7 +411,7 @@ class RoprintService {
|
|
|
411
411
|
}
|
|
412
412
|
static GetInsuranceOrCustomerIndPartsTable(PrintInfo, PrintPartNo, ShowTaxColumn) {
|
|
413
413
|
let Table = {};
|
|
414
|
-
if (!
|
|
414
|
+
if (!utils_1.TrUtils.IsNull(PrintInfo.Colli) && PrintInfo.Colli.length !== 0) {
|
|
415
415
|
Table = this.GetTableAsSeparateColForCustAndIns(PrintInfo.Colli, PrintPartNo, ShowTaxColumn);
|
|
416
416
|
return Table;
|
|
417
417
|
}
|
|
@@ -504,7 +504,7 @@ class RoprintService {
|
|
|
504
504
|
Parts.forEach((part) => {
|
|
505
505
|
var dataRow = [];
|
|
506
506
|
columns[1].forEach((column) => {
|
|
507
|
-
if (!
|
|
507
|
+
if (!utils_1.TrUtils.IsFixedZero(part[column.Field]) && !utils_1.TrUtils.IsNull(part[column.Field])
|
|
508
508
|
|| column.text === 'Line Total') {
|
|
509
509
|
if (part[column.Field] === 'Spare Parts') {
|
|
510
510
|
dataRow.push({ text: part[column.Field].toString(), marginLeft: 50, style: 'InlineHeader' });
|
|
@@ -514,7 +514,7 @@ class RoprintService {
|
|
|
514
514
|
if (column.text === 'Line Total' || column.Field === 'QtyAndUoM' || column.Field === 'Disc' || column.Field === 'UnPr') {
|
|
515
515
|
if (column.Field === 'Disc') {
|
|
516
516
|
if (column.type === 'percentage') {
|
|
517
|
-
if (!
|
|
517
|
+
if (!utils_1.TrUtils.IsEmpty(part.Perc)) {
|
|
518
518
|
dataRow.push({ text: part.Perc.toString(), alignment: 'right', noWrap: true });
|
|
519
519
|
}
|
|
520
520
|
else {
|
|
@@ -522,7 +522,7 @@ class RoprintService {
|
|
|
522
522
|
}
|
|
523
523
|
}
|
|
524
524
|
else {
|
|
525
|
-
if (!
|
|
525
|
+
if (!utils_1.TrUtils.IsZero(part[column.Field])) {
|
|
526
526
|
dataRow.push({ text: part[column.Field].toString(), alignment: 'right', noWrap: true });
|
|
527
527
|
}
|
|
528
528
|
else {
|
|
@@ -538,7 +538,7 @@ class RoprintService {
|
|
|
538
538
|
if (column.Field === 'Desc') {
|
|
539
539
|
let DescData = [];
|
|
540
540
|
DescData.push(part[column.Field].toString());
|
|
541
|
-
if (!
|
|
541
|
+
if (!utils_1.TrUtils.IsEmpty(part['EDesc'])) {
|
|
542
542
|
DescData.push({ text: part['EDesc'].toString(), color: 'grey' });
|
|
543
543
|
}
|
|
544
544
|
dataRow.push({ stack: DescData });
|
|
@@ -574,7 +574,7 @@ class RoprintService {
|
|
|
574
574
|
Ops.forEach((labor) => {
|
|
575
575
|
var dataRow = [];
|
|
576
576
|
columns[1].forEach((column) => {
|
|
577
|
-
if (!
|
|
577
|
+
if (!utils_1.TrUtils.IsFixedZero(labor[column.Field]) && !utils_1.TrUtils.IsNull(labor[column.Field])
|
|
578
578
|
|| column.text === 'Line Total') {
|
|
579
579
|
if (labor[column.Field] === 'Labor') {
|
|
580
580
|
dataRow.push({ text: labor[column.Field].toString(), marginLeft: 50, style: 'InlineHeader' });
|
|
@@ -584,7 +584,7 @@ class RoprintService {
|
|
|
584
584
|
|| column.Field === 'UnPr') {
|
|
585
585
|
if (column.Field === 'Disc') {
|
|
586
586
|
if (column.type === 'percentage') {
|
|
587
|
-
if (!
|
|
587
|
+
if (!utils_1.TrUtils.IsEmpty(labor.Perc)) {
|
|
588
588
|
dataRow.push({ text: labor.Perc.toString(), alignment: 'right', noWrap: true });
|
|
589
589
|
}
|
|
590
590
|
else {
|
|
@@ -592,7 +592,7 @@ class RoprintService {
|
|
|
592
592
|
}
|
|
593
593
|
}
|
|
594
594
|
else {
|
|
595
|
-
if (!
|
|
595
|
+
if (!utils_1.TrUtils.IsZero(labor[column.Field])) {
|
|
596
596
|
dataRow.push({ text: labor[column.Field].toString(), alignment: 'right', noWrap: true });
|
|
597
597
|
}
|
|
598
598
|
else {
|
|
@@ -664,12 +664,12 @@ class RoprintService {
|
|
|
664
664
|
Colli.forEach((part) => {
|
|
665
665
|
var dataRow = [];
|
|
666
666
|
columns[2].forEach((column) => {
|
|
667
|
-
if (!
|
|
667
|
+
if (!utils_1.TrUtils.IsNull(column.Parent)) {
|
|
668
668
|
if (column.Field === 'AssPr') {
|
|
669
669
|
dataRow.push({ text: '', alignment: 'center' });
|
|
670
670
|
}
|
|
671
671
|
else {
|
|
672
|
-
if (!
|
|
672
|
+
if (!utils_1.TrUtils.IsNull(part[column.Parent]) && !utils_1.TrUtils.IsFixedZero(part[column.Parent][column.Field]) && !utils_1.TrUtils.IsNull(part[column.Parent][column.Field])) {
|
|
673
673
|
dataRow.push({ text: part[column.Parent][column.Field].toString(), alignment: 'right', fontSize: 7, nowrap: true });
|
|
674
674
|
}
|
|
675
675
|
else {
|
|
@@ -678,14 +678,14 @@ class RoprintService {
|
|
|
678
678
|
}
|
|
679
679
|
}
|
|
680
680
|
else {
|
|
681
|
-
if (!
|
|
681
|
+
if (!utils_1.TrUtils.IsFixedZero(part[column.Field]) && !utils_1.TrUtils.IsNull(part[column.Field])) {
|
|
682
682
|
if (column.Field === 'SNo' || column.Field === 'Desc'
|
|
683
683
|
|| column.text === 'Description/PartNo') {
|
|
684
684
|
// dataRow.push(part[column.Field].toString());
|
|
685
685
|
if (column.Field === 'Desc') {
|
|
686
686
|
let DescData = [];
|
|
687
687
|
DescData.push(part[column.Field].toString());
|
|
688
|
-
if (!
|
|
688
|
+
if (!utils_1.TrUtils.IsEmpty(part['EDesc'])) {
|
|
689
689
|
DescData.push({ text: part['EDesc'].toString(), color: 'grey' });
|
|
690
690
|
}
|
|
691
691
|
dataRow.push({ stack: DescData });
|
|
@@ -790,8 +790,8 @@ class RoprintService {
|
|
|
790
790
|
Parts.forEach((part) => {
|
|
791
791
|
var dataRow = [];
|
|
792
792
|
columns[2].forEach((column) => {
|
|
793
|
-
if (!
|
|
794
|
-
if (!
|
|
793
|
+
if (!utils_1.TrUtils.IsNull(column.Parent)) {
|
|
794
|
+
if (!utils_1.TrUtils.IsNull(part[column.Parent]) && !utils_1.TrUtils.IsFixedZero(part[column.Parent][column.Field]) && !utils_1.TrUtils.IsNull(part[column.Parent][column.Field])) {
|
|
795
795
|
dataRow.push({ text: part[column.Parent][column.Field].toString(), alignment: 'right', fontSize: 7, nowrap: true });
|
|
796
796
|
}
|
|
797
797
|
else {
|
|
@@ -799,14 +799,14 @@ class RoprintService {
|
|
|
799
799
|
}
|
|
800
800
|
}
|
|
801
801
|
else {
|
|
802
|
-
if (!
|
|
802
|
+
if (!utils_1.TrUtils.IsFixedZero(part[column.Field]) && !utils_1.TrUtils.IsNull(part[column.Field])) {
|
|
803
803
|
if (column.Field === 'SNo' || column.Field === 'Desc'
|
|
804
804
|
|| column.text === 'Description/PartNo') {
|
|
805
805
|
// dataRow.push(part[column.Field].toString());
|
|
806
806
|
if (column.Field === 'Desc') {
|
|
807
807
|
let DescData = [];
|
|
808
808
|
DescData.push(part[column.Field].toString());
|
|
809
|
-
if (!
|
|
809
|
+
if (!utils_1.TrUtils.IsEmpty(part['EDesc'])) {
|
|
810
810
|
DescData.push({ text: part['EDesc'].toString(), color: 'grey' });
|
|
811
811
|
}
|
|
812
812
|
dataRow.push({ stack: DescData });
|
|
@@ -923,8 +923,8 @@ class RoprintService {
|
|
|
923
923
|
Colli.forEach((part) => {
|
|
924
924
|
var dataRow = [];
|
|
925
925
|
columns[1].forEach((column) => {
|
|
926
|
-
if (!
|
|
927
|
-
if (!
|
|
926
|
+
if (!utils_1.TrUtils.IsNull(column.Parent)) {
|
|
927
|
+
if (!utils_1.TrUtils.IsNull(part[column.Parent]) && !utils_1.TrUtils.IsFixedZero(part[column.Parent][column.Field]) && !utils_1.TrUtils.IsNull(part[column.Parent][column.Field])) {
|
|
928
928
|
dataRow.push({ text: part[column.Parent][column.Field].toString(), alignment: 'right', nowrap: true });
|
|
929
929
|
}
|
|
930
930
|
else {
|
|
@@ -932,14 +932,14 @@ class RoprintService {
|
|
|
932
932
|
}
|
|
933
933
|
}
|
|
934
934
|
else {
|
|
935
|
-
if (!
|
|
935
|
+
if (!utils_1.TrUtils.IsFixedZero(part[column.Field]) && !utils_1.TrUtils.IsNull(part[column.Field])) {
|
|
936
936
|
if (column.Field === 'SNo' || column.Field === 'Desc'
|
|
937
937
|
|| column.text === 'Description/PartNo') {
|
|
938
938
|
// dataRow.push(part[column.Field].toString());
|
|
939
939
|
if (column.Field === 'Desc') {
|
|
940
940
|
let DescData = [];
|
|
941
941
|
DescData.push(part[column.Field].toString());
|
|
942
|
-
if (!
|
|
942
|
+
if (!utils_1.TrUtils.IsEmpty(part['EDesc'])) {
|
|
943
943
|
DescData.push({ text: part['EDesc'].toString(), color: 'grey' });
|
|
944
944
|
}
|
|
945
945
|
dataRow.push({ stack: DescData });
|
|
@@ -1068,8 +1068,8 @@ class RoprintService {
|
|
|
1068
1068
|
Parts.forEach((part) => {
|
|
1069
1069
|
var dataRow = [];
|
|
1070
1070
|
columns[1].forEach((column) => {
|
|
1071
|
-
if (!
|
|
1072
|
-
if (!
|
|
1071
|
+
if (!utils_1.TrUtils.IsNull(column.Parent)) {
|
|
1072
|
+
if (!utils_1.TrUtils.IsNull(part[column.Parent]) && !utils_1.TrUtils.IsFixedZero(part[column.Parent][column.Field]) && !utils_1.TrUtils.IsNull(part[column.Parent][column.Field])) {
|
|
1073
1073
|
dataRow.push({ text: part[column.Parent][column.Field].toString(), alignment: 'right', nowrap: true });
|
|
1074
1074
|
}
|
|
1075
1075
|
else {
|
|
@@ -1077,14 +1077,14 @@ class RoprintService {
|
|
|
1077
1077
|
}
|
|
1078
1078
|
}
|
|
1079
1079
|
else {
|
|
1080
|
-
if (!
|
|
1080
|
+
if (!utils_1.TrUtils.IsFixedZero(part[column.Field]) && !utils_1.TrUtils.IsNull(part[column.Field])) {
|
|
1081
1081
|
if (column.Field === 'SNo' || column.Field === 'Desc'
|
|
1082
1082
|
|| column.text === 'Description/PartNo') {
|
|
1083
1083
|
// dataRow.push(part[column.Field].toString());
|
|
1084
1084
|
if (column.Field === 'Desc') {
|
|
1085
1085
|
let DescData = [];
|
|
1086
1086
|
DescData.push(part[column.Field].toString());
|
|
1087
|
-
if (!
|
|
1087
|
+
if (!utils_1.TrUtils.IsEmpty(part['EDesc'])) {
|
|
1088
1088
|
DescData.push({ text: part['EDesc'].toString(), color: 'grey' });
|
|
1089
1089
|
}
|
|
1090
1090
|
dataRow.push({ stack: DescData });
|
|
@@ -1123,8 +1123,8 @@ class RoprintService {
|
|
|
1123
1123
|
Parts.forEach((part) => {
|
|
1124
1124
|
var dataRow = [];
|
|
1125
1125
|
columns[1].forEach((column) => {
|
|
1126
|
-
if (!
|
|
1127
|
-
if (!
|
|
1126
|
+
if (!utils_1.TrUtils.IsNull(column.Parent)) {
|
|
1127
|
+
if (!utils_1.TrUtils.IsNull(part[column.Parent]) && !utils_1.TrUtils.IsFixedZero(part[column.Parent][column.Field]) && !utils_1.TrUtils.IsNull(part[column.Parent][column.Field])) {
|
|
1128
1128
|
dataRow.push({ text: part[column.Parent][column.Field].toString(), alignment: 'right', nowrap: true });
|
|
1129
1129
|
}
|
|
1130
1130
|
else {
|
|
@@ -1132,14 +1132,14 @@ class RoprintService {
|
|
|
1132
1132
|
}
|
|
1133
1133
|
}
|
|
1134
1134
|
else {
|
|
1135
|
-
if (!
|
|
1135
|
+
if (!utils_1.TrUtils.IsFixedZero(part[column.Field]) && !utils_1.TrUtils.IsNull(part[column.Field])) {
|
|
1136
1136
|
if (column.Field === 'SNo' || column.Field === 'Desc'
|
|
1137
1137
|
|| column.text === 'Description/PartNo') {
|
|
1138
1138
|
// dataRow.push(part[column.Field].toString());
|
|
1139
1139
|
if (column.Field === 'Desc') {
|
|
1140
1140
|
let DescData = [];
|
|
1141
1141
|
DescData.push(part[column.Field].toString());
|
|
1142
|
-
if (!
|
|
1142
|
+
if (!utils_1.TrUtils.IsEmpty(part['EDesc'])) {
|
|
1143
1143
|
DescData.push({ text: part['EDesc'].toString(), color: 'grey' });
|
|
1144
1144
|
}
|
|
1145
1145
|
dataRow.push({ stack: DescData });
|
|
@@ -1348,14 +1348,14 @@ class RoprintService {
|
|
|
1348
1348
|
Parts.forEach((part) => {
|
|
1349
1349
|
var dataRow = [];
|
|
1350
1350
|
columns.forEach((column) => {
|
|
1351
|
-
if ((!
|
|
1351
|
+
if ((!utils_1.TrUtils.IsFixedZero(part[column.Field]) && !utils_1.TrUtils.IsNull(part[column.Field]))
|
|
1352
1352
|
|| (column.text === 'Line Total')) {
|
|
1353
1353
|
if (part[column.Field] === 'Spare Parts') {
|
|
1354
1354
|
dataRow.push({ text: part[column.Field].toString(), marginLeft: 50, style: 'InlineHeader' });
|
|
1355
1355
|
}
|
|
1356
1356
|
else {
|
|
1357
1357
|
if (((column.Field === 'CGSTAmt' || column.Field === 'SGSTAmt' || column.Field === 'CGSTPerc' || column.Field === 'SGSTPerc' || column.Field === 'IGSTAmt' || column.Field === 'IGSTPerc')
|
|
1358
|
-
&&
|
|
1358
|
+
&& utils_1.TrUtils.CheckInvalidSelect(part.TCode))) {
|
|
1359
1359
|
part[column.Field] = '';
|
|
1360
1360
|
dataRow.push({ text: part[column.Field].toString(), alignment: 'center' });
|
|
1361
1361
|
}
|
|
@@ -1365,7 +1365,7 @@ class RoprintService {
|
|
|
1365
1365
|
|| column.Field === 'CGSTPerc' || column.Field === 'SGSTPerc' || column.Field === 'IGSTAmt' || column.Field === 'IGSTPerc') {
|
|
1366
1366
|
if (column.Field === 'Disc') {
|
|
1367
1367
|
if (column.type === 'percentage') {
|
|
1368
|
-
if (!
|
|
1368
|
+
if (!utils_1.TrUtils.IsEmpty(part.Perc)) {
|
|
1369
1369
|
dataRow.push({ text: part.Perc.toString(), alignment: 'right', noWrap: true });
|
|
1370
1370
|
}
|
|
1371
1371
|
else {
|
|
@@ -1373,7 +1373,7 @@ class RoprintService {
|
|
|
1373
1373
|
}
|
|
1374
1374
|
}
|
|
1375
1375
|
else {
|
|
1376
|
-
if (!
|
|
1376
|
+
if (!utils_1.TrUtils.IsZero(part[column.Field])) {
|
|
1377
1377
|
dataRow.push({ text: part[column.Field].toString(), alignment: 'right', noWrap: true });
|
|
1378
1378
|
}
|
|
1379
1379
|
else {
|
|
@@ -1390,7 +1390,7 @@ class RoprintService {
|
|
|
1390
1390
|
if (column.Field === 'Desc') {
|
|
1391
1391
|
let DescData = [];
|
|
1392
1392
|
DescData.push(part[column.Field].toString());
|
|
1393
|
-
if (!
|
|
1393
|
+
if (!utils_1.TrUtils.IsEmpty(part['EDesc'])) {
|
|
1394
1394
|
DescData.push({ text: part['EDesc'].toString(), color: 'grey' });
|
|
1395
1395
|
}
|
|
1396
1396
|
dataRow.push({ stack: DescData });
|
|
@@ -1408,7 +1408,7 @@ class RoprintService {
|
|
|
1408
1408
|
SNo = SNo + 1;
|
|
1409
1409
|
}
|
|
1410
1410
|
else {
|
|
1411
|
-
if (
|
|
1411
|
+
if (utils_1.TrUtils.IsNull(part[column.Field])) {
|
|
1412
1412
|
part[column.Field] = '';
|
|
1413
1413
|
}
|
|
1414
1414
|
}
|
|
@@ -1436,14 +1436,14 @@ class RoprintService {
|
|
|
1436
1436
|
Labor.forEach((Ops) => {
|
|
1437
1437
|
var dataRow = [];
|
|
1438
1438
|
columns.forEach((column) => {
|
|
1439
|
-
if ((!
|
|
1439
|
+
if ((!utils_1.TrUtils.IsFixedZero(Ops[column.Field]) && !utils_1.TrUtils.IsNull(Ops[column.Field]))
|
|
1440
1440
|
|| (column.text === 'Line Total')) {
|
|
1441
1441
|
if (Ops[column.Field] === 'Labor') {
|
|
1442
1442
|
dataRow.push({ text: Ops[column.Field].toString(), marginLeft: 50, style: 'InlineHeader' });
|
|
1443
1443
|
}
|
|
1444
1444
|
else {
|
|
1445
1445
|
if (((column.Field === 'CGSTAmt' || column.Field === 'SGSTAmt' || column.Field === 'CGSTPerc' || column.Field === 'SGSTPerc' || column.Field === 'IGSTAmt' || column.Field === 'IGSTPerc')
|
|
1446
|
-
&&
|
|
1446
|
+
&& utils_1.TrUtils.CheckInvalidSelect(Ops.TCode))) {
|
|
1447
1447
|
Ops[column.Field] = '';
|
|
1448
1448
|
dataRow.push({ text: Ops[column.Field].toString(), alignment: 'center' });
|
|
1449
1449
|
}
|
|
@@ -1453,7 +1453,7 @@ class RoprintService {
|
|
|
1453
1453
|
|| column.Field === 'CGSTPerc' || column.Field === 'SGSTPerc' || column.Field === 'IGSTAmt' || column.Field === 'IGSTPerc') {
|
|
1454
1454
|
if (column.Field === 'Disc') {
|
|
1455
1455
|
if (column.type === 'percentage') {
|
|
1456
|
-
if (!
|
|
1456
|
+
if (!utils_1.TrUtils.IsEmpty(Ops.Perc)) {
|
|
1457
1457
|
dataRow.push({ text: Ops.Perc.toString(), alignment: 'right', noWrap: true });
|
|
1458
1458
|
}
|
|
1459
1459
|
else {
|
|
@@ -1461,7 +1461,7 @@ class RoprintService {
|
|
|
1461
1461
|
}
|
|
1462
1462
|
}
|
|
1463
1463
|
else {
|
|
1464
|
-
if (!
|
|
1464
|
+
if (!utils_1.TrUtils.IsZero(Ops[column.Field])) {
|
|
1465
1465
|
dataRow.push({ text: Ops[column.Field].toString(), alignment: 'right', noWrap: true });
|
|
1466
1466
|
}
|
|
1467
1467
|
else {
|
|
@@ -1485,7 +1485,7 @@ class RoprintService {
|
|
|
1485
1485
|
SNo = SNo + 1;
|
|
1486
1486
|
}
|
|
1487
1487
|
else {
|
|
1488
|
-
if (
|
|
1488
|
+
if (utils_1.TrUtils.IsNull(Ops[column.Field])) {
|
|
1489
1489
|
Ops[column.Field] = '';
|
|
1490
1490
|
}
|
|
1491
1491
|
}
|
|
@@ -1637,7 +1637,7 @@ class RoprintService {
|
|
|
1637
1637
|
Parts.forEach((part) => {
|
|
1638
1638
|
var dataRow = [];
|
|
1639
1639
|
columns.forEach((column) => {
|
|
1640
|
-
if (!
|
|
1640
|
+
if (!utils_1.TrUtils.IsFixedZero(part[column.Field]) && !utils_1.TrUtils.IsNull(part[column.Field])
|
|
1641
1641
|
|| column.text === 'Line Total') {
|
|
1642
1642
|
if (part[column.Field] === 'Spare Parts') {
|
|
1643
1643
|
dataRow.push({ text: part[column.Field].toString(), marginLeft: 50, style: 'InlineHeader' });
|
|
@@ -1658,7 +1658,7 @@ class RoprintService {
|
|
|
1658
1658
|
if (column.Field === 'Desc') {
|
|
1659
1659
|
let DescData = [];
|
|
1660
1660
|
DescData.push(part[column.Field].toString());
|
|
1661
|
-
if (!
|
|
1661
|
+
if (!utils_1.TrUtils.IsEmpty(part['EDesc'])) {
|
|
1662
1662
|
DescData.push({ text: part['EDesc'].toString(), color: 'grey' });
|
|
1663
1663
|
}
|
|
1664
1664
|
dataRow.push({ stack: DescData });
|
|
@@ -1675,7 +1675,7 @@ class RoprintService {
|
|
|
1675
1675
|
SNo = SNo + 1;
|
|
1676
1676
|
}
|
|
1677
1677
|
else {
|
|
1678
|
-
if (
|
|
1678
|
+
if (utils_1.TrUtils.IsNull(part[column.Field])) {
|
|
1679
1679
|
part[column.Field] = '';
|
|
1680
1680
|
}
|
|
1681
1681
|
}
|
|
@@ -1701,7 +1701,7 @@ class RoprintService {
|
|
|
1701
1701
|
Ops.forEach((labor) => {
|
|
1702
1702
|
var dataRow = [];
|
|
1703
1703
|
columns.forEach((column) => {
|
|
1704
|
-
if (!
|
|
1704
|
+
if (!utils_1.TrUtils.IsFixedZero(labor[column.Field]) && !utils_1.TrUtils.IsNull(labor[column.Field])
|
|
1705
1705
|
|| column.text === 'Line Total') {
|
|
1706
1706
|
if (labor[column.Field] === 'Labor') {
|
|
1707
1707
|
dataRow.push({ text: labor[column.Field].toString(), marginLeft: 50, style: 'InlineHeader' });
|
|
@@ -1727,7 +1727,7 @@ class RoprintService {
|
|
|
1727
1727
|
SNo = SNo + 1;
|
|
1728
1728
|
}
|
|
1729
1729
|
else {
|
|
1730
|
-
if (
|
|
1730
|
+
if (utils_1.TrUtils.IsNull(labor[column.Field])) {
|
|
1731
1731
|
labor[column.Field] = '';
|
|
1732
1732
|
}
|
|
1733
1733
|
}
|