shareneus 1.4.35 → 1.4.37
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/counter-sales/auto-sales-receipt-pdf.service.d.ts +290 -0
- package/dist/{services → accounting/counter-sales}/auto-sales-receipt-pdf.service.js +26 -26
- package/dist/accounting/counter-sales/pos-receipt-pdf.d.ts +156 -0
- package/dist/{services → accounting/counter-sales}/pos-receipt-pdf.js +20 -20
- package/dist/accounting/counter-sales/sales-receipt-pdf.service.d.ts +272 -0
- package/dist/{services → accounting/counter-sales}/sales-receipt-pdf.service.js +28 -27
- package/dist/accounting/counter-sales/sales-receipt-print.service.d.ts +18 -0
- package/dist/{services → accounting/counter-sales}/sales-receipt-print.service.js +67 -67
- package/dist/accounting/credit-note/cn-print.service.d.ts +14 -0
- package/dist/{services → accounting/credit-note}/cn-print.service.js +37 -37
- package/dist/accounting/credit-note/credit-note-pdf.service.d.ts +272 -0
- package/dist/{services → accounting/credit-note}/credit-note-pdf.service.js +18 -18
- package/dist/accounting/credit-note/credit-note-totals.service.d.ts +25 -0
- package/dist/{services → accounting/credit-note}/credit-note-totals.service.js +32 -32
- package/dist/accounting/debit-note/debit-note-pdf.service.d.ts +331 -0
- package/dist/{services → accounting/debit-note}/debit-note-pdf.service.js +16 -16
- package/dist/accounting/debit-note/debit-note-print.service.d.ts +14 -0
- package/dist/{services → accounting/debit-note}/debit-note-print.service.js +37 -37
- package/dist/accounting/debit-note/debit-note-totals.service.d.ts +22 -0
- package/dist/{services → accounting/debit-note}/debit-note-totals.service.js +29 -29
- package/dist/accounting/invoice/hc-inv-pdf.service.d.ts +357 -0
- package/dist/{services → accounting/invoice}/hc-inv-pdf.service.js +44 -44
- package/dist/accounting/invoice/inv-pdf.service.d.ts +314 -0
- package/dist/{services → accounting/invoice}/inv-pdf.service.js +56 -56
- package/dist/accounting/invoice/inv-print.service.d.ts +16 -0
- package/dist/{services → accounting/invoice}/inv-print.service.js +63 -63
- package/dist/accounting/invoice/invoice-landscape-pdf.service.d.ts +416 -0
- package/dist/{services → accounting/invoice}/invoice-landscape-pdf.service.js +31 -31
- package/dist/accounting/invoice/invoice-letterhead-pdf.service.d.ts +323 -0
- package/dist/{services → accounting/invoice}/invoice-letterhead-pdf.service.js +56 -56
- package/dist/accounting/invoice/invoice-portrait-pdf.d.ts +275 -0
- package/dist/{services → accounting/invoice}/invoice-portrait-pdf.js +53 -53
- package/dist/accounting/invoice/invoice-total.service.d.ts +43 -0
- package/dist/{services → accounting/invoice}/invoice-total.service.js +79 -79
- package/dist/accounting/invoice/shared-inv-pdf.service.d.ts +303 -0
- package/dist/accounting/invoice/shared-inv-pdf.service.js +763 -0
- package/dist/accounting/payment-receive/payment-pdf.service.d.ts +618 -0
- package/dist/{services → accounting/payment-receive}/payment-pdf.service.js +5 -5
- package/dist/accounting/payment-receive/receipt-print.service.d.ts +4 -0
- package/dist/{services → accounting/payment-receive}/receipt-print.service.js +6 -6
- package/dist/accounting/payment-receive/reports/pdf/customer-balances-pdf.service.d.ts +228 -0
- package/dist/{services → accounting/payment-receive/reports/pdf}/customer-balances-pdf.service.js +8 -8
- package/dist/accounting/payment-receive/reports/pdf/payment-report-pdf.service.d.ts +228 -0
- package/dist/{services → accounting/payment-receive/reports/pdf}/payment-report-pdf.service.js +4 -4
- package/dist/aggregation/aggregation.d.ts +4 -0
- package/dist/aggregation/aggregation.js +13 -13
- package/dist/appointments/appointments/appointment-total.service.d.ts +25 -0
- package/dist/{services → appointments/appointments}/appointment-total.service.js +38 -38
- package/dist/appointments/consultations/consultation-fee-receipt.service.d.ts +318 -0
- package/dist/{services → appointments/consultations}/consultation-fee-receipt.service.js +17 -17
- package/dist/appointments/consultations/consultation-full-pdf.service.d.ts +207 -0
- package/dist/{services → appointments/consultations}/consultation-full-pdf.service.js +11 -11
- package/dist/appointments/consultations/consultation-letterhead-pdf.service.d.ts +266 -0
- package/dist/{services → appointments/consultations}/consultation-letterhead-pdf.service.js +16 -16
- package/dist/appointments/consultations/consultation-pdf.service.d.ts +306 -0
- package/dist/{services → appointments/consultations}/consultation-pdf.service.js +16 -16
- package/dist/enums/cache-enums.d.ts +33 -0
- package/dist/enums/code-enums.d.ts +266 -0
- package/dist/enums/enums.d.ts +329 -0
- package/dist/enums/industry-enums.d.ts +16 -0
- package/dist/excel-files/cust-balance-excel.service.d.ts +26 -0
- package/dist/excel-files/cust-balance-excel.service.js +5 -5
- package/dist/excel-files/expiring-drugs-excel.service.d.ts +24 -0
- package/dist/excel-files/expiring-drugs-excel.service.js +7 -7
- package/dist/excel-files/insurance-expire-excel.service.d.ts +23 -0
- package/dist/excel-files/insurance-expire-excel.service.js +4 -4
- package/dist/excel-files/invoice-wise-excel.service.d.ts +26 -0
- package/dist/excel-files/invoice-wise-excel.service.js +3 -3
- package/dist/excel-files/next-service-date-excel.service.d.ts +25 -0
- package/dist/excel-files/next-service-date-excel.service.js +5 -5
- package/dist/excel-files/payment-receive-excel.service.d.ts +25 -0
- package/dist/excel-files/payment-receive-excel.service.js +6 -6
- package/dist/excel-files/payments-made-excel.service.d.ts +25 -0
- package/dist/excel-files/payments-made-excel.service.js +6 -6
- package/dist/excel-files/repair-orders-excel.service.d.ts +24 -0
- package/dist/excel-files/repair-orders-excel.service.js +10 -10
- package/dist/excel-files/sales-by-service-details-excel.service.d.ts +0 -0
- package/dist/excel-files/sales-by-service-summary-excel.service.d.ts +24 -0
- package/dist/excel-files/sales-by-service-summary-excel.service.js +14 -14
- package/dist/excel-files/scheduled-drug-summary-excel.service.d.ts +24 -0
- package/dist/excel-files/scheduled-drug-summary-excel.service.js +8 -8
- package/dist/excel-files/scheduled-drugs-excel.service.d.ts +24 -0
- package/dist/excel-files/scheduled-drugs-excel.service.js +10 -10
- package/dist/excel-files/spares-issue-excel.service.d.ts +26 -0
- package/dist/excel-files/spares-issue-excel.service.js +14 -14
- package/dist/excel-files/stock-excel.service.d.ts +23 -0
- package/dist/excel-files/stock-excel.service.js +3 -3
- package/dist/excel-files/ven-balance-excel.service.d.ts +27 -0
- package/dist/excel-files/ven-balance-excel.service.js +3 -3
- package/dist/gst/excel/GSTR-RO-excel.service.d.ts +27 -0
- package/dist/{excel-files → gst/excel}/GSTR-RO-excel.service.js +3 -3
- package/dist/gst/excel/GSTR1-excel.service.d.ts +16 -0
- package/dist/{excel-files → gst/excel}/GSTR1-excel.service.js +7 -7
- package/dist/gst/excel/GSTR2-excel.service.d.ts +16 -0
- package/dist/{excel-files → gst/excel}/GSTR2-excel.service.js +6 -6
- package/dist/gst/excel/tally-sales-import.service.d.ts +27 -0
- package/dist/{excel-files → gst/excel}/tally-sales-import.service.js +3 -3
- package/dist/index.d.ts +124 -0
- package/dist/index.js +102 -102
- package/dist/inventory/items/issue-parts-pdf.service.d.ts +303 -0
- package/dist/{services → inventory/items}/issue-parts-pdf.service.js +45 -45
- package/dist/inventory/items/item-bar-code-label-pdf.d.ts +127 -0
- package/dist/{services → inventory/items}/item-bar-code-label-pdf.js +3 -3
- package/dist/inventory/items/item-detais-pdf.d.ts +121 -0
- package/dist/{services → inventory/items}/item-detais-pdf.js +1 -1
- package/dist/inventory/items/item-price-for-pricelist.d.ts +1 -0
- package/dist/{services → inventory/items}/item-price-for-pricelist.js +44 -50
- package/dist/inventory/items/reports/excel/item-wise-mout-details.d.ts +23 -0
- package/dist/{excel-files → inventory/items/reports/excel}/item-wise-mout-details.js +4 -4
- package/dist/inventory/items/reports/excel/item-wise-mout-summary.d.ts +23 -0
- package/dist/{excel-files → inventory/items/reports/excel}/item-wise-mout-summary.js +4 -4
- package/dist/inventory/items/reports/pdf/expiring-drugs-pdf.service.d.ts +49 -0
- package/dist/{services → inventory/items/reports/pdf}/expiring-drugs-pdf.service.js +6 -6
- package/dist/inventory/items/reports/pdf/item-wise-mout-details-pdf.d.ts +229 -0
- package/dist/{services → inventory/items/reports/pdf}/item-wise-mout-details-pdf.js +4 -4
- package/dist/inventory/items/reports/pdf/item-wise-mout-summary-pdf.d.ts +228 -0
- package/dist/{services → inventory/items/reports/pdf}/item-wise-mout-summary-pdf.js +3 -3
- package/dist/inventory/items/reports/pdf/reorder-point-pdf.service.d.ts +48 -0
- package/dist/{services → inventory/items/reports/pdf}/reorder-point-pdf.service.js +3 -3
- package/dist/inventory/material-out/mout-pdf.service.d.ts +324 -0
- package/dist/{services → inventory/material-out}/mout-pdf.service.js +19 -19
- package/dist/inventory/transfer-order/transfer-order-pdf.service.d.ts +48 -0
- package/dist/{services → inventory/transfer-order}/transfer-order-pdf.service.js +2 -2
- package/dist/purchases/payment-made/reports/pdf/vendor-balances-pdf.service.d.ts +227 -0
- package/dist/{services → purchases/payment-made/reports/pdf}/vendor-balances-pdf.service.js +7 -7
- package/dist/purchases/purchase-order/po-totals.service.d.ts +24 -0
- package/dist/{services → purchases/purchase-order}/po-totals.service.js +29 -29
- package/dist/purchases/purchase-order/purchase-order-pdf.service.d.ts +526 -0
- package/dist/{services → purchases/purchase-order}/purchase-order-pdf.service.js +42 -42
- package/dist/purchases/purchase-order/purchase-order-print.service.d.ts +8 -0
- package/dist/{services → purchases/purchase-order}/purchase-order-print.service.js +46 -46
- package/dist/purchases/purchase-order/purchase-order-totals.service.d.ts +23 -0
- package/dist/{services → purchases/purchase-order}/purchase-order-totals.service.js +55 -55
- package/dist/purchases/vendor-credit-note/vendor-credit-note-pdf.service.d.ts +491 -0
- package/dist/{services → purchases/vendor-credit-note}/vendor-credit-note-pdf.service.js +29 -29
- package/dist/purchases/vendor-credit-note/vendor-credit-note-print.service.d.ts +6 -0
- package/dist/{services → purchases/vendor-credit-note}/vendor-credit-note-print.service.js +31 -31
- package/dist/purchases/vendor-credit-note/vendor-credit-note-totals.service.d.ts +24 -0
- package/dist/{services → purchases/vendor-credit-note}/vendor-credit-note-totals.service.js +38 -38
- package/dist/purchases/vendor-debit-note/vendor-debit-note-pdf.service.d.ts +271 -0
- package/dist/{services → purchases/vendor-debit-note}/vendor-debit-note-pdf.service.js +18 -18
- package/dist/purchases/vendor-debit-note/vendor-debit-note-print.service.d.ts +14 -0
- package/dist/{services → purchases/vendor-debit-note}/vendor-debit-note-print.service.js +34 -34
- package/dist/purchases/vendor-debit-note/vendor-debit-note-totals.service.d.ts +22 -0
- package/dist/{services → purchases/vendor-debit-note}/vendor-debit-note-totals.service.js +31 -31
- package/dist/sales/delivery-challan/dc-landscape-pdf.service.d.ts +416 -0
- package/dist/{services → sales/delivery-challan}/dc-landscape-pdf.service.js +30 -30
- package/dist/sales/delivery-challan/dc-landscape-without-price-pdf.service.d.ts +400 -0
- package/dist/{services → sales/delivery-challan}/dc-landscape-without-price-pdf.service.js +26 -26
- package/dist/sales/delivery-challan/dc-without-price-pdf.service.d.ts +271 -0
- package/dist/{services → sales/delivery-challan}/dc-without-price-pdf.service.js +17 -17
- package/dist/sales/delivery-challan/delivery-challan-pdf.service.d.ts +269 -0
- package/dist/{services → sales/delivery-challan}/delivery-challan-pdf.service.js +18 -18
- package/dist/sales/delivery-challan/delivery-challan-print.service.d.ts +12 -0
- package/dist/{services → sales/delivery-challan}/delivery-challan-print.service.js +30 -30
- package/dist/sales/delivery-challan/delivery-challan-totals.d.ts +27 -0
- package/dist/{services → sales/delivery-challan}/delivery-challan-totals.js +33 -33
- package/dist/sales/reports/excel/analysis-excel.service.d.ts +23 -0
- package/dist/{excel-files → sales/reports/excel}/analysis-excel.service.js +4 -4
- package/dist/sales/reports/excel/category-wise-item-excel.service.d.ts +23 -0
- package/dist/{excel-files → sales/reports/excel}/category-wise-item-excel.service.js +10 -10
- package/dist/sales/reports/excel/cust-wise-sales-details.d.ts +25 -0
- package/dist/{excel-files → sales/reports/excel}/cust-wise-sales-details.js +5 -5
- package/dist/sales/reports/excel/cust-wise-sales-summary-excel.service.d.ts +24 -0
- package/dist/{excel-files → sales/reports/excel}/cust-wise-sales-summary-excel.service.js +5 -5
- package/dist/sales/reports/excel/item-wise-doctor-sale-excel.service.d.ts +24 -0
- package/dist/{excel-files → sales/reports/excel}/item-wise-doctor-sale-excel.service.js +7 -7
- package/dist/sales/reports/excel/items-wise-sales-excel.service.d.ts +24 -0
- package/dist/{excel-files → sales/reports/excel}/items-wise-sales-excel.service.js +10 -10
- package/dist/sales/reports/excel/manf-wise-sales-excel.service.d.ts +24 -0
- package/dist/{excel-files → sales/reports/excel}/manf-wise-sales-excel.service.js +4 -4
- package/dist/sales/reports/excel/operator-wise-details.d.ts +23 -0
- package/dist/{excel-files → sales/reports/excel}/operator-wise-details.js +4 -4
- package/dist/sales/reports/excel/operator-wise-summary.d.ts +23 -0
- package/dist/{excel-files → sales/reports/excel}/operator-wise-summary.js +4 -4
- package/dist/sales/reports/excel/sa-wise-labor-sales-excel.service.d.ts +23 -0
- package/dist/{excel-files → sales/reports/excel}/sa-wise-labor-sales-excel.service.js +6 -6
- package/dist/sales/reports/excel/sa-wise-part-sales-excel.service.d.ts +23 -0
- package/dist/{excel-files → sales/reports/excel}/sa-wise-part-sales-excel.service.js +6 -6
- package/dist/sales/reports/excel/sale-summary-excel.service.d.ts +25 -0
- package/dist/{excel-files → sales/reports/excel}/sale-summary-excel.service.js +3 -3
- package/dist/sales/reports/pdf/analysis-pdf.service.d.ts +228 -0
- package/dist/{services → sales/reports/pdf}/analysis-pdf.service.js +9 -9
- package/dist/sales/reports/pdf/category-wise-item-pdf.service.d.ts +228 -0
- package/dist/{services → sales/reports/pdf}/category-wise-item-pdf.service.js +7 -7
- package/dist/sales/reports/pdf/cust-wise-sales-details-pdf.service.d.ts +228 -0
- package/dist/{services → sales/reports/pdf}/cust-wise-sales-details-pdf.service.js +9 -9
- package/dist/sales/reports/pdf/cust-wise-sales-summary-pdf.service.d.ts +228 -0
- package/dist/{services → sales/reports/pdf}/cust-wise-sales-summary-pdf.service.js +8 -9
- package/dist/sales/reports/pdf/item-wise-doctor-sale-pdf.service.d.ts +228 -0
- package/dist/{services → sales/reports/pdf}/item-wise-doctor-sale-pdf.service.js +4 -4
- package/dist/sales/reports/pdf/item-wise-sales-pdf.service.d.ts +228 -0
- package/dist/{services → sales/reports/pdf}/item-wise-sales-pdf.service.js +7 -8
- package/dist/sales/reports/pdf/manf-wise-sales-pdf.service.d.ts +228 -0
- package/dist/{services → sales/reports/pdf}/manf-wise-sales-pdf.service.js +6 -6
- package/dist/sales/reports/pdf/operator-wise-details-pdf.service.d.ts +228 -0
- package/dist/{services → sales/reports/pdf}/operator-wise-details-pdf.service.js +9 -9
- package/dist/sales/reports/pdf/operator-wise-summary-pdf.d.ts +228 -0
- package/dist/{services → sales/reports/pdf}/operator-wise-summary-pdf.js +8 -8
- package/dist/sales/reports/pdf/sales-by-service-pdf.service.d.ts +228 -0
- package/dist/{services → sales/reports/pdf}/sales-by-service-pdf.service.js +7 -7
- package/dist/sales/reports/pdf/scheduled-drug-pdf.service.d.ts +228 -0
- package/dist/{services → sales/reports/pdf}/scheduled-drug-pdf.service.js +8 -8
- package/dist/sales/reports/pdf/scheduled-drug-summary-pdf.service.d.ts +228 -0
- package/dist/{services → sales/reports/pdf}/scheduled-drug-summary-pdf.service.js +5 -5
- package/dist/sales/sales/equipment-design-pdf.service.d.ts +121 -0
- package/dist/{services → sales/sales}/equipment-design-pdf.service.js +12 -12
- package/dist/sales/sales/pack-ship-pdf.service.d.ts +262 -0
- package/dist/{services → sales/sales}/pack-ship-pdf.service.js +5 -5
- package/dist/sales/sales/pack-ship-print.service.d.ts +11 -0
- package/dist/{services → sales/sales}/pack-ship-print.service.js +27 -27
- package/dist/sales/sales/sales-pdf.service.d.ts +275 -0
- package/dist/{services → sales/sales}/sales-pdf.service.js +25 -25
- package/dist/sales/sales/sales-print.service.d.ts +15 -0
- package/dist/{services → sales/sales}/sales-print.service.js +58 -58
- package/dist/sales/sales/sales-totals.service.d.ts +27 -0
- package/dist/{services → sales/sales}/sales-totals.service.js +34 -34
- package/dist/services/checklist-pdf.d.ts +57 -0
- package/dist/services/checklist-pdf.js +5 -5
- package/dist/services/checklists-pdf.d.ts +12 -0
- package/dist/services/checklists-pdf.js +1 -1
- package/dist/services/est.print-service.d.ts +64 -0
- package/dist/services/est.print-service.js +151 -151
- package/dist/services/next-service-date-pdf.service.d.ts +228 -0
- package/dist/services/next-service-date-pdf.service.js +2 -2
- package/dist/services/reports/insurance-expire-pdf.service.d.ts +227 -0
- package/dist/services/{insurance-expire-pdf.service.js → reports/insurance-expire-pdf.service.js} +2 -2
- package/dist/services/reports/repair-orders-pdf.service.d.ts +229 -0
- package/dist/services/{repair-orders-pdf.service.js → reports/repair-orders-pdf.service.js} +4 -4
- package/dist/services/ro-pdf.service.d.ts +1060 -0
- package/dist/services/ro-pdf.service.js +82 -82
- package/dist/services/ro-print-service.d.ts +45 -0
- package/dist/services/ro-print-service.js +88 -88
- package/dist/services/ro-totals.service.d.ts +65 -0
- package/dist/services/ro-totals.service.js +123 -123
- package/dist/services/separate-wo-print.service.d.ts +494 -0
- package/dist/services/separate-wo-print.service.js +10 -10
- package/dist/services/shared-inv-pdf.service.d.ts +303 -0
- package/dist/services/shared-inv-pdf.service.js +46 -46
- package/dist/services/technician-pdf.service.d.ts +221 -0
- package/dist/services/technician-pdf.service.js +11 -11
- package/dist/services/technician-print.service.d.ts +5 -0
- package/dist/services/technician-print.service.js +10 -10
- package/dist/shared/math-operations.d.ts +53 -0
- package/dist/shared/math-operations.js +184 -0
- package/dist/shared/shared-services/shared-pdf.service.d.ts +926 -0
- package/dist/{services → shared/shared-services}/shared-pdf.service.js +120 -120
- package/dist/shared/shared-services/shared-print.service.d.ts +49 -0
- package/dist/{services → shared/shared-services}/shared-print.service.js +68 -68
- package/dist/shared/util.d.ts +3 -0
- package/dist/shared/util.js +15 -0
- package/dist/tasks/meetings/meeting-pdf.d.ts +107 -0
- package/dist/{services → tasks/meetings}/meeting-pdf.js +15 -15
- package/dist/tasks/tasks/task-pdf.service.d.ts +127 -0
- package/dist/{services → tasks/tasks}/task-pdf.service.js +12 -12
- package/dist/tasks/tasks/task-reports-pdf.service.d.ts +94 -0
- package/dist/{services → tasks/tasks}/task-reports-pdf.service.js +11 -11
- package/dist/utils/my-date.d.ts +104 -0
- package/dist/{shared → utils}/my-date.js +31 -31
- package/dist/utils/tr-utils.d.ts +41 -0
- package/dist/{shared/utils.js → utils/tr-utils.js} +0 -8
- package/package.json +2 -1
- package/tsconfig.json +1 -0
|
@@ -3,9 +3,9 @@ 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
|
|
7
|
-
const
|
|
8
|
-
const
|
|
6
|
+
const shared_pdf_service_1 = require("../shared/shared-services/shared-pdf.service");
|
|
7
|
+
const shared_print_service_1 = require("../shared/shared-services/shared-print.service");
|
|
8
|
+
const tr_utils_1 = require("../utils/tr-utils");
|
|
9
9
|
class RoprintService {
|
|
10
10
|
static CommonHeaderDetails(ROPrintData, text, isOtherIndustry) {
|
|
11
11
|
// console.log('ROPrintData', ROPrintData);
|
|
@@ -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, tr_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 (!tr_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, tr_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 (!tr_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 (tr_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 (!tr_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 (!tr_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 (tr_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(tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Parts), tr_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 (tr_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(tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Parts), tr_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 (tr_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(tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Parts), tr_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 (!tr_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 (tr_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 (tr_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(tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Parts), tr_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 (tr_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(tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Parts), tr_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 (tr_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(tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Parts), tr_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 (!tr_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 (tr_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 (tr_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(tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Parts), tr_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 (tr_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(tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Parts), tr_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(tr_utils_1.TrUtils.Stringify(ROPrintData.Parts), tr_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 (tr_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(tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Parts), tr_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 (!tr_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 (tr_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 (tr_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 (tr_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 (tr_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 (!tr_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 (!tr_utils_1.TrUtils.IsFixedZero(part[column.Field]) && !tr_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 (!tr_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 (!tr_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 (!tr_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 (!tr_utils_1.TrUtils.IsFixedZero(labor[column.Field]) && !tr_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 (!tr_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 (!tr_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 (!tr_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 (!tr_utils_1.TrUtils.IsNull(part[column.Parent]) && !tr_utils_1.TrUtils.IsFixedZero(part[column.Parent][column.Field]) && !tr_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 (!tr_utils_1.TrUtils.IsFixedZero(part[column.Field]) && !tr_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 (!tr_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 (!tr_utils_1.TrUtils.IsNull(column.Parent)) {
|
|
794
|
+
if (!tr_utils_1.TrUtils.IsNull(part[column.Parent]) && !tr_utils_1.TrUtils.IsFixedZero(part[column.Parent][column.Field]) && !tr_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 (!tr_utils_1.TrUtils.IsFixedZero(part[column.Field]) && !tr_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 (!tr_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 (!tr_utils_1.TrUtils.IsNull(column.Parent)) {
|
|
927
|
+
if (!tr_utils_1.TrUtils.IsNull(part[column.Parent]) && !tr_utils_1.TrUtils.IsFixedZero(part[column.Parent][column.Field]) && !tr_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 (!tr_utils_1.TrUtils.IsFixedZero(part[column.Field]) && !tr_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 (!tr_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 (!tr_utils_1.TrUtils.IsNull(column.Parent)) {
|
|
1072
|
+
if (!tr_utils_1.TrUtils.IsNull(part[column.Parent]) && !tr_utils_1.TrUtils.IsFixedZero(part[column.Parent][column.Field]) && !tr_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 (!tr_utils_1.TrUtils.IsFixedZero(part[column.Field]) && !tr_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 (!tr_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 (!tr_utils_1.TrUtils.IsNull(column.Parent)) {
|
|
1127
|
+
if (!tr_utils_1.TrUtils.IsNull(part[column.Parent]) && !tr_utils_1.TrUtils.IsFixedZero(part[column.Parent][column.Field]) && !tr_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 (!tr_utils_1.TrUtils.IsFixedZero(part[column.Field]) && !tr_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 (!tr_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 ((!tr_utils_1.TrUtils.IsFixedZero(part[column.Field]) && !tr_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
|
+
&& tr_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 (!tr_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 (!tr_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 (!tr_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 (tr_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 ((!tr_utils_1.TrUtils.IsFixedZero(Ops[column.Field]) && !tr_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
|
+
&& tr_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 (!tr_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 (!tr_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 (tr_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 (!tr_utils_1.TrUtils.IsFixedZero(part[column.Field]) && !tr_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 (!tr_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 (tr_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 (!tr_utils_1.TrUtils.IsFixedZero(labor[column.Field]) && !tr_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 (tr_utils_1.TrUtils.IsNull(labor[column.Field])) {
|
|
1731
1731
|
labor[column.Field] = '';
|
|
1732
1732
|
}
|
|
1733
1733
|
}
|