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
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DeliveryChallanPdfService = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
4
|
+
const shared_pdf_service_1 = require("../../shared/shared-services/shared-pdf.service");
|
|
5
|
+
const shared_print_service_1 = require("../../shared/shared-services/shared-print.service");
|
|
6
|
+
const tr_utils_1 = require("../../utils/tr-utils");
|
|
7
7
|
class DeliveryChallanPdfService {
|
|
8
8
|
constructor() {
|
|
9
9
|
this.FontSize = 8;
|
|
10
10
|
}
|
|
11
11
|
static GetDeliveryChallanPrint(ROPrintData, numberofCopies, moreDiscDetails) {
|
|
12
12
|
var contents = [];
|
|
13
|
-
if (
|
|
13
|
+
if (tr_utils_1.TrUtils.IsNull(numberofCopies) || numberofCopies.length === 0) {
|
|
14
14
|
contents.push(this.CommonHeaderDetails(ROPrintData, null), this.PreparesparePartsTable(ROPrintData), this.CommonTotalDetails(ROPrintData, null, numberofCopies, moreDiscDetails));
|
|
15
15
|
}
|
|
16
16
|
else {
|
|
@@ -36,7 +36,7 @@ class DeliveryChallanPdfService {
|
|
|
36
36
|
}
|
|
37
37
|
static GetFileName(ROPrintData) {
|
|
38
38
|
let fileName = ROPrintData.HeaderName;
|
|
39
|
-
if (!
|
|
39
|
+
if (!tr_utils_1.TrUtils.IsNull(ROPrintData.Product) && !tr_utils_1.TrUtils.IsEmpty(ROPrintData.Product.RegNo)) {
|
|
40
40
|
fileName = fileName + '-' + ROPrintData.Product.RegNo;
|
|
41
41
|
}
|
|
42
42
|
return fileName;
|
|
@@ -62,7 +62,7 @@ class DeliveryChallanPdfService {
|
|
|
62
62
|
let List = [];
|
|
63
63
|
if (ROPrintData.Entity.Body === 1) {
|
|
64
64
|
for (let i = 0; i < ROPrintData.PrintInfo.length; i++) {
|
|
65
|
-
if (
|
|
65
|
+
if (tr_utils_1.TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
|
|
66
66
|
ROPrintData.PrintInfo[i].Text = '';
|
|
67
67
|
}
|
|
68
68
|
// List.push(ROPrintData.PrintInfo[i].Text,
|
|
@@ -73,10 +73,10 @@ class DeliveryChallanPdfService {
|
|
|
73
73
|
else {
|
|
74
74
|
if (ROPrintData.Entity.Body === 2) {
|
|
75
75
|
for (let i = 0; i < ROPrintData.PrintInfo.length; i++) {
|
|
76
|
-
if (
|
|
76
|
+
if (tr_utils_1.TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
|
|
77
77
|
ROPrintData.PrintInfo[i].Text = '';
|
|
78
78
|
}
|
|
79
|
-
List.push(ROPrintData.PrintInfo[i].Text, this.WithOutDiscountFieldTable(
|
|
79
|
+
List.push(ROPrintData.PrintInfo[i].Text, this.WithOutDiscountFieldTable(tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Items), ROPrintData.ShowTaxColumn, ROPrintData.Entity.MPN, ROPrintData.Entity.Body, ROPrintData.ShowIGST, ROPrintData.ConsolidateGST, ROPrintData.ShowDiscountColumn));
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
else {
|
|
@@ -87,10 +87,10 @@ class DeliveryChallanPdfService {
|
|
|
87
87
|
}
|
|
88
88
|
else {
|
|
89
89
|
for (let i = 0; i < ROPrintData.PrintInfo.length; i++) {
|
|
90
|
-
if (
|
|
90
|
+
if (tr_utils_1.TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
|
|
91
91
|
ROPrintData.PrintInfo[i].Text = '';
|
|
92
92
|
}
|
|
93
|
-
List.push(ROPrintData.PrintInfo[i].Text, this.GetWithOutDiscAndTaxFieldHeader(
|
|
93
|
+
List.push(ROPrintData.PrintInfo[i].Text, this.GetWithOutDiscAndTaxFieldHeader(tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Items), ROPrintData.ShowTaxColumn, ROPrintData.Entity.MPN, ROPrintData.Entity.Body, ROPrintData.ShowIGST, ROPrintData.ConsolidateGST, ROPrintData.ShowDiscountColumn));
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
}
|
|
@@ -154,14 +154,14 @@ class DeliveryChallanPdfService {
|
|
|
154
154
|
Parts.forEach((part) => {
|
|
155
155
|
var dataRow = [];
|
|
156
156
|
columns.forEach((column) => {
|
|
157
|
-
if ((!
|
|
157
|
+
if ((!tr_utils_1.TrUtils.IsFixedZero(part[column.Field]) && !tr_utils_1.TrUtils.IsNull(part[column.Field]))
|
|
158
158
|
|| (column.text === 'Line Total')) {
|
|
159
159
|
if (part[column.Field] === 'Spare Parts') {
|
|
160
160
|
dataRow.push({ text: part[column.Field].toString(), marginLeft: 50, style: 'InlineHeader' });
|
|
161
161
|
}
|
|
162
162
|
else {
|
|
163
163
|
if (((column.Field === 'CGSTAmt' || column.Field === 'SGSTAmt' || column.Field === 'CGSTPerc' || column.Field === 'SGSTPerc' || column.Field === 'IGSTAmt' || column.Field === 'IGSTPerc')
|
|
164
|
-
&&
|
|
164
|
+
&& tr_utils_1.TrUtils.CheckInvalidSelect(part.TCode))) {
|
|
165
165
|
part[column.Field] = '';
|
|
166
166
|
dataRow.push({ text: part[column.Field].toString(), alignment: 'center' });
|
|
167
167
|
}
|
|
@@ -171,7 +171,7 @@ class DeliveryChallanPdfService {
|
|
|
171
171
|
|| column.Field === 'CGSTPerc' || column.Field === 'SGSTPerc' || column.Field === 'IGSTAmt' || column.Field === 'IGSTPerc') {
|
|
172
172
|
if (column.Field === 'Disc') {
|
|
173
173
|
if (column.type === 'percentage') {
|
|
174
|
-
if (!
|
|
174
|
+
if (!tr_utils_1.TrUtils.IsEmpty(part[column.Field])) {
|
|
175
175
|
dataRow.push({ text: part[column.Field].toString(), noWrap: true });
|
|
176
176
|
}
|
|
177
177
|
else {
|
|
@@ -179,7 +179,7 @@ class DeliveryChallanPdfService {
|
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
else {
|
|
182
|
-
if (!
|
|
182
|
+
if (!tr_utils_1.TrUtils.IsZero(part[column.Field])) {
|
|
183
183
|
dataRow.push({ text: part[column.Field].toString(), noWrap: true });
|
|
184
184
|
}
|
|
185
185
|
else {
|
|
@@ -188,7 +188,7 @@ class DeliveryChallanPdfService {
|
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
else {
|
|
191
|
-
if (!
|
|
191
|
+
if (!tr_utils_1.TrUtils.IsZero(part[column.Field])) {
|
|
192
192
|
dataRow.push({ text: part[column.Field].toString(), alignment: 'right', nowrap: true });
|
|
193
193
|
}
|
|
194
194
|
else {
|
|
@@ -201,7 +201,7 @@ class DeliveryChallanPdfService {
|
|
|
201
201
|
if (column.Field === 'Desc') {
|
|
202
202
|
let DescData = [];
|
|
203
203
|
DescData.push(part[column.Field].toString());
|
|
204
|
-
if (!
|
|
204
|
+
if (!tr_utils_1.TrUtils.IsEmpty(part['EDesc'])) {
|
|
205
205
|
DescData.push({ text: part['EDesc'].toString(), color: 'grey' });
|
|
206
206
|
}
|
|
207
207
|
dataRow.push({ stack: DescData });
|
|
@@ -416,7 +416,7 @@ class DeliveryChallanPdfService {
|
|
|
416
416
|
}
|
|
417
417
|
static CommonTotalDetails(ROPrintData, index, numberofCopies, moreDiscDetails) {
|
|
418
418
|
let CommonDetails = [
|
|
419
|
-
shared_pdf_service_1.SharedPDFService.GetFinalTotalDetails(ROPrintData, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', ROPrintData.ShowIGST, ROPrintData.ShowTaxColumn, ROPrintData.CustPartsTotalBeforeDisc, ROPrintData.CustPartsDiscTotal, ROPrintData.CustPartCGST, ROPrintData.CustPartSGST, ROPrintData.CustTaxGroupData, ROPrintData.ShowAccParts, '0.00', ROPrintData.CustPartAfterTax, ROPrintData.FixedDisc, ROPrintData.For, ROPrintData.FixedTotal, ROPrintData.CustTotalRoundedBy, ROPrintData.CustRoundedTotal, ROPrintData.ShowTaxColumn, ROPrintData.ShowTaxColumn,
|
|
419
|
+
shared_pdf_service_1.SharedPDFService.GetFinalTotalDetails(ROPrintData, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', ROPrintData.ShowIGST, ROPrintData.ShowTaxColumn, ROPrintData.CustPartsTotalBeforeDisc, ROPrintData.CustPartsDiscTotal, ROPrintData.CustPartCGST, ROPrintData.CustPartSGST, ROPrintData.CustTaxGroupData, ROPrintData.ShowAccParts, '0.00', ROPrintData.CustPartAfterTax, ROPrintData.FixedDisc, ROPrintData.For, ROPrintData.FixedTotal, ROPrintData.CustTotalRoundedBy, ROPrintData.CustRoundedTotal, ROPrintData.ShowTaxColumn, ROPrintData.ShowTaxColumn, tr_utils_1.TrUtils.isTaxable(ROPrintData.Settings.Tax), '0.00', ROPrintData.CustPartITax, ROPrintData.Consolidate, ROPrintData.From, null, null, moreDiscDetails),
|
|
420
420
|
// SharedPDFService.InvoiceDueStatus(ROPrintData.Type, ROPrintData.Paid, ROPrintData.Due, ROPrintData.Sts),
|
|
421
421
|
shared_pdf_service_1.SharedPDFService.GetTemsAndConditions(ROPrintData.Entity.Terms),
|
|
422
422
|
shared_pdf_service_1.SharedPDFService.GetUnderLine(),
|
|
@@ -425,7 +425,7 @@ class DeliveryChallanPdfService {
|
|
|
425
425
|
if (ROPrintData.Type !== 'Invoice') {
|
|
426
426
|
CommonDetails.splice(2, 0, shared_pdf_service_1.SharedPDFService.GetUnderLine());
|
|
427
427
|
}
|
|
428
|
-
if (!
|
|
428
|
+
if (!tr_utils_1.TrUtils.IsNull(numberofCopies) && numberofCopies.length !== 0 && (index !== (numberofCopies.length - 1))) {
|
|
429
429
|
CommonDetails.push({ text: '', pageBreak: 'after' });
|
|
430
430
|
}
|
|
431
431
|
return CommonDetails;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class DeliveryChallanPrintService {
|
|
2
|
+
static GetChallanDataPrintInfo(OriginalInvoiceData: any, OriginalEntityData: any, image: any, IncludeGST: boolean, ConsolidateGST: boolean, TaxCodes: any, IsProforma: boolean): any;
|
|
3
|
+
static GetPrintConditionsBasedOnInput(InvoicePrintData: any, IncludeGST: boolean, ConsolidateGST: boolean, SType: any, OriginalInvoiceData: any, IsProforma: boolean): any;
|
|
4
|
+
static GetInvoiceTypeHeading(InvoicePrintData: any, OriginalInvoiceData: any, IncludeGST: boolean, ConsolidateGST: boolean, IsProforma: boolean): any;
|
|
5
|
+
static GetInvoiceOtherDetailsForPrint(InvoicePrintData: any, OriginalInvoiceData: any): any;
|
|
6
|
+
static GetItemsPrintInfo(Items: any, Consolidate: boolean, TaxCodes: any, LineTotal: string): any;
|
|
7
|
+
static ReverseItemsForInvoicePrint(argInvoiceData: any): any;
|
|
8
|
+
static PrepareFormatForInvoicePrint(InvoicePrintData: any, ROType: any, InvoiceStatus: any): any[];
|
|
9
|
+
static GetBillNameForInvoicePrint(OriginalInvoiceData: any, InvoicePrintData: any): any;
|
|
10
|
+
static GetBillToName(Title: any, Name: string): string;
|
|
11
|
+
static GetPaymentsTotal(InvoicePayments: any, Total: number, InvoiceStatus: string): any;
|
|
12
|
+
}
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DeliveryChallanPrintService = void 0;
|
|
4
|
-
const shared_print_service_1 = require("./shared-print.service");
|
|
5
4
|
const delivery_challan_totals_1 = require("./delivery-challan-totals");
|
|
6
|
-
const
|
|
7
|
-
const code_enums_1 = require("
|
|
8
|
-
const enums_1 = require("
|
|
9
|
-
const my_date_1 = require("
|
|
10
|
-
const aggregation_1 = require("
|
|
5
|
+
const tr_utils_1 = require("../../utils/tr-utils");
|
|
6
|
+
const code_enums_1 = require("../../enums/code-enums");
|
|
7
|
+
const enums_1 = require("../../enums/enums");
|
|
8
|
+
const my_date_1 = require("../../utils/my-date");
|
|
9
|
+
const aggregation_1 = require("../../aggregation/aggregation");
|
|
10
|
+
const shared_print_service_1 = require("../../shared/shared-services/shared-print.service");
|
|
11
11
|
class DeliveryChallanPrintService {
|
|
12
12
|
static GetChallanDataPrintInfo(OriginalInvoiceData, OriginalEntityData, image, IncludeGST, ConsolidateGST, TaxCodes, IsProforma) {
|
|
13
13
|
var _a, _b;
|
|
14
14
|
let InvoicePrintData = {};
|
|
15
|
-
let argInvoiceData =
|
|
15
|
+
let argInvoiceData = tr_utils_1.TrUtils.Stringify(OriginalInvoiceData);
|
|
16
16
|
if (!IncludeGST) {
|
|
17
17
|
argInvoiceData.Settings.Tax = 'NO';
|
|
18
18
|
}
|
|
19
19
|
InvoicePrintData.IsProforma = IsProforma;
|
|
20
|
-
InvoicePrintData.Settings =
|
|
20
|
+
InvoicePrintData.Settings = tr_utils_1.TrUtils.Stringify(argInvoiceData.Settings);
|
|
21
21
|
let SType;
|
|
22
|
-
if (!
|
|
22
|
+
if (!tr_utils_1.TrUtils.IsNull(argInvoiceData.SType)) {
|
|
23
23
|
SType = argInvoiceData.SType;
|
|
24
24
|
}
|
|
25
25
|
InvoicePrintData = this.GetPrintConditionsBasedOnInput(InvoicePrintData, IncludeGST, ConsolidateGST, SType, argInvoiceData, IsProforma);
|
|
26
26
|
InvoicePrintData.Entity = shared_print_service_1.PrintSharedService.GetFormattedEntityDataForPrint(OriginalEntityData, "Delivery Challan", OriginalInvoiceData);
|
|
27
27
|
InvoicePrintData = shared_print_service_1.PrintSharedService.GetEntityHeaderStyles(InvoicePrintData, OriginalEntityData, image);
|
|
28
28
|
InvoicePrintData = this.GetInvoiceOtherDetailsForPrint(InvoicePrintData, argInvoiceData);
|
|
29
|
-
let IsTaxable = (IncludeGST &&
|
|
29
|
+
let IsTaxable = (IncludeGST && tr_utils_1.TrUtils.isTaxable(argInvoiceData.Settings.Tax)) ? true : false;
|
|
30
30
|
let finalTotalsData = delivery_challan_totals_1.DeliveryChallanTotalsService.GetTotalsValue(argInvoiceData.Items, IsTaxable, true, argInvoiceData.Disc, argInvoiceData.Perc, TaxCodes, true, argInvoiceData.Settings, InvoicePrintData.Entity.Round);
|
|
31
31
|
if (ConsolidateGST) {
|
|
32
32
|
finalTotalsData.CustLaborTotalBeforeDisc = finalTotalsData.CustLaborAfterTax;
|
|
33
33
|
finalTotalsData.CustPartsTotalBeforeDisc = finalTotalsData.CustPartAfterTax;
|
|
34
34
|
}
|
|
35
|
-
InvoicePrintData =
|
|
35
|
+
InvoicePrintData = tr_utils_1.TrUtils.ConcatObjects(InvoicePrintData, finalTotalsData);
|
|
36
36
|
InvoicePrintData.Items = this.GetItemsPrintInfo(InvoicePrintData.Items, ConsolidateGST, TaxCodes, (_b = (_a = OriginalEntityData.Entity.Settings) === null || _a === void 0 ? void 0 : _a.Acc) === null || _b === void 0 ? void 0 : _b.LTot);
|
|
37
37
|
argInvoiceData = this.ReverseItemsForInvoicePrint(argInvoiceData);
|
|
38
38
|
InvoicePrintData.PrintInfo = this.PrepareFormatForInvoicePrint(InvoicePrintData, code_enums_1.ROTypeEnum.Invoice, argInvoiceData.Sts);
|
|
@@ -52,12 +52,12 @@ class DeliveryChallanPrintService {
|
|
|
52
52
|
InvoicePrintData.IncludeGST = IncludeGST;
|
|
53
53
|
InvoicePrintData.ConsolidateGST = ConsolidateGST;
|
|
54
54
|
InvoicePrintData.ShowAccParts = false;
|
|
55
|
-
InvoicePrintData.ShowIGST = (
|
|
55
|
+
InvoicePrintData.ShowIGST = (tr_utils_1.TrUtils.IsNull(SType) || (SType === 'Intra')) ? false : true;
|
|
56
56
|
InvoicePrintData.ShowTaxColumn = (IncludeGST && !ConsolidateGST) ? true : false;
|
|
57
57
|
// InvoicePrintData.ShowDiscountColumn = (!ForInsurance && !ConsolidateGST) ? true : false;
|
|
58
58
|
InvoicePrintData = this.GetInvoiceTypeHeading(InvoicePrintData, OriginalInvoiceData, IncludeGST, ConsolidateGST, IsProforma);
|
|
59
|
-
InvoicePrintData.PrDate =
|
|
60
|
-
InvoicePrintData.BL =
|
|
59
|
+
InvoicePrintData.PrDate = tr_utils_1.TrUtils.IsNull(OriginalInvoiceData.PrDate) ? '' : my_date_1.MyDate.ConvertUTCDateToReadable(OriginalInvoiceData.PrDate);
|
|
60
|
+
InvoicePrintData.BL = tr_utils_1.TrUtils.Stringify(OriginalInvoiceData.BL);
|
|
61
61
|
return InvoicePrintData;
|
|
62
62
|
}
|
|
63
63
|
static GetInvoiceTypeHeading(InvoicePrintData, OriginalInvoiceData, IncludeGST, ConsolidateGST, IsProforma) {
|
|
@@ -83,24 +83,24 @@ class DeliveryChallanPrintService {
|
|
|
83
83
|
let CTaxAmtPerItem = Item.CGST / Item.Qty;
|
|
84
84
|
let STaxAmtPerItem = Item.SGST / Item.Qty;
|
|
85
85
|
let ITaxAmtPerItem = Item.IGST / Item.Qty;
|
|
86
|
-
Item.UnPr =
|
|
86
|
+
Item.UnPr = tr_utils_1.TrUtils.FixPriceValue(AfterDiscForEach + CTaxAmtPerItem + STaxAmtPerItem + ITaxAmtPerItem);
|
|
87
87
|
}
|
|
88
88
|
else {
|
|
89
|
-
Item.UnPr =
|
|
89
|
+
Item.UnPr = tr_utils_1.TrUtils.FixPriceValue(Item.UnPr);
|
|
90
90
|
}
|
|
91
|
-
Item.CGSTAmt =
|
|
92
|
-
Item.SGSTAmt =
|
|
93
|
-
Item.IGSTAmt =
|
|
91
|
+
Item.CGSTAmt = tr_utils_1.TrUtils.FixPriceValue(Item.CGST);
|
|
92
|
+
Item.SGSTAmt = tr_utils_1.TrUtils.FixPriceValue(Item.SGST);
|
|
93
|
+
Item.IGSTAmt = tr_utils_1.TrUtils.FixPriceValue(Item.IGST);
|
|
94
94
|
Item.CGSTPerc = shared_print_service_1.PrintSharedService.GetCGSTValueBasedOnTaxCode(Item.TCode, TaxCodes);
|
|
95
95
|
Item.SGSTPerc = shared_print_service_1.PrintSharedService.GetSGSTValueBasedOnTaxCode(Item.TCode, TaxCodes);
|
|
96
96
|
Item.IGSTPerc = shared_print_service_1.PrintSharedService.GetIGSTValueBasedOnTaxCode(Item.TCode, TaxCodes);
|
|
97
97
|
if (LineTotal === 'AT') {
|
|
98
|
-
Item.LineTotal =
|
|
98
|
+
Item.LineTotal = tr_utils_1.TrUtils.FixPriceValue(Item.AfterPartTax);
|
|
99
99
|
}
|
|
100
100
|
else {
|
|
101
|
-
Item.LineTotal =
|
|
101
|
+
Item.LineTotal = tr_utils_1.TrUtils.FixPriceValue((0, aggregation_1.subtraction)(Item.UnAmt, Item.Disc));
|
|
102
102
|
}
|
|
103
|
-
if (!
|
|
103
|
+
if (!tr_utils_1.TrUtils.IsZero(Item.Qty) && !tr_utils_1.TrUtils.CheckInvalidSelect(Item.UoM)) {
|
|
104
104
|
Item.QtyAndUoM = Item.Qty + ' ' + Item.UoM;
|
|
105
105
|
}
|
|
106
106
|
});
|
|
@@ -124,20 +124,20 @@ class DeliveryChallanPrintService {
|
|
|
124
124
|
Customer.Name = OriginalInvoiceData.ShipTo.Name;
|
|
125
125
|
Customer.Adrs = [];
|
|
126
126
|
Customer.Cons = [];
|
|
127
|
-
if (!
|
|
127
|
+
if (!tr_utils_1.TrUtils.IsNull(OriginalInvoiceData.ShipTo.Adrs)) {
|
|
128
128
|
Customer.Adrs.push(OriginalInvoiceData.ShipTo.Adrs.A1);
|
|
129
|
-
if (!
|
|
129
|
+
if (!tr_utils_1.TrUtils.IsEmpty(OriginalInvoiceData.ShipTo.Adrs.A2)) {
|
|
130
130
|
Customer.Adrs.push(OriginalInvoiceData.ShipTo.Adrs.A2);
|
|
131
131
|
}
|
|
132
|
-
if (!
|
|
132
|
+
if (!tr_utils_1.TrUtils.IsEmpty(OriginalInvoiceData.ShipTo.Adrs.Ct)) {
|
|
133
133
|
Customer.Adrs.push(OriginalInvoiceData.ShipTo.Adrs.Ct);
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
Customer.GSTIN = OriginalInvoiceData.ShipTo.GSTIN;
|
|
137
|
-
if (!
|
|
137
|
+
if (!tr_utils_1.TrUtils.IsEmpty(OriginalInvoiceData.ShipTo.DLNo)) {
|
|
138
138
|
Customer.DLNo = OriginalInvoiceData.ShipTo.DLNo;
|
|
139
139
|
}
|
|
140
|
-
if (!
|
|
140
|
+
if (!tr_utils_1.TrUtils.IsEmpty(OriginalInvoiceData.ShipTo.Ph)) {
|
|
141
141
|
Customer.Cons = [
|
|
142
142
|
{
|
|
143
143
|
Type: 'M',
|
|
@@ -149,7 +149,7 @@ class DeliveryChallanPrintService {
|
|
|
149
149
|
return InvoicePrintData;
|
|
150
150
|
}
|
|
151
151
|
static GetBillToName(Title, Name) {
|
|
152
|
-
return
|
|
152
|
+
return tr_utils_1.TrUtils.IsEmpty(Title) ? Name : Title + ' ' + Name;
|
|
153
153
|
}
|
|
154
154
|
static GetPaymentsTotal(InvoicePayments, Total, InvoiceStatus) {
|
|
155
155
|
var i = 0;
|
|
@@ -162,7 +162,7 @@ class DeliveryChallanPrintService {
|
|
|
162
162
|
Data.Due = 0;
|
|
163
163
|
}
|
|
164
164
|
else {
|
|
165
|
-
Data.Due =
|
|
165
|
+
Data.Due = tr_utils_1.TrUtils.FixedTo(Total - PaidTotal);
|
|
166
166
|
}
|
|
167
167
|
if (Data.Due < 0) {
|
|
168
168
|
Data.Due = 0;
|
|
@@ -170,7 +170,7 @@ class DeliveryChallanPrintService {
|
|
|
170
170
|
if (Data.Due === 0) {
|
|
171
171
|
Data.Sts = enums_1.InvoiceStatusEnum.Closed;
|
|
172
172
|
}
|
|
173
|
-
Data.Paid =
|
|
173
|
+
Data.Paid = tr_utils_1.TrUtils.FixedTo(PaidTotal);
|
|
174
174
|
return Data;
|
|
175
175
|
}
|
|
176
176
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare class DeliveryChallanTotalsService {
|
|
2
|
+
static GetTotalsValue(PartsList: any, IsIndependentTax: boolean, DetailedInfo: boolean, Disc: any, Perc: string, TaxCodes: any, WithItems: boolean, Settings: any, isRoundable: boolean): any;
|
|
3
|
+
static CalculateLaborPartValues(PartsList: any, IsIndependentTax: boolean): any;
|
|
4
|
+
static ResetLaborPartValues(PartsList: any, IsIndependentTax: boolean): any;
|
|
5
|
+
static ResetLaborPartValueIfInvalid(Part: any): any;
|
|
6
|
+
static GetFinalChallanDataForSave(PartsList: any, IsIndependentTax: boolean, Disc: any, Perc: string, DetailedInfo: boolean, Settings: any, isRoundable: boolean): any;
|
|
7
|
+
static SetMainDiscountValues(Disc: any, Perc: string, finalTotalsData: any, DetailedInfo: boolean): any;
|
|
8
|
+
static GetFinalCustomerTotalsData(finalTotalsData: any, PartsList: any, IsIndependentTax: boolean, DetailedInfo: boolean, isRoundable: boolean): any;
|
|
9
|
+
static GetSubTotalFor(PartsList: any): any;
|
|
10
|
+
static GetPartsTotalAfterDiscount(PartsList: any): any;
|
|
11
|
+
static GetDetailedTotalsData(finalTotalsData: any, IsIndependentTax: boolean, PartsList: any, TaxCodes: any): any;
|
|
12
|
+
static GetLaborDiscountedTotal(LaborList: any): any;
|
|
13
|
+
static GetPartDiscountedTotal(PartsList: any): any;
|
|
14
|
+
static GetPartsTaxTotalFor(PartsList: any, IsIndependentTax: boolean): any;
|
|
15
|
+
static GetCustomerTotalBasedOnTaxType(PartsTaxAmount: number, PartsList: any, IsIndependentTax: boolean): any;
|
|
16
|
+
static LaborTotalAfterDiscount(LaborTotalAfterDisc: number, LaborTaxAmount: number, MainLDisc: number, LDiscInPerc: string): number;
|
|
17
|
+
static ItemsTotalAfterDiscount(PartsTotalAfterDisc: number, PartsTaxAmount: number, MainPDisc: number, PDiscInPerc: string): number;
|
|
18
|
+
static GetLaborCGSTTaxTotal(opCodesList: any, IsIndependentTax: boolean): any;
|
|
19
|
+
static GetLaborIGSTTaxTotal(opCodesList: any, IsIndependentTax: boolean): any;
|
|
20
|
+
static GetLaborSGSTTaxTotal(opCodesList: any, IsIndependentTax: boolean): any;
|
|
21
|
+
static GetPartGSTTaxTotal(PartsList: any, IsIndependentTax: boolean): number[];
|
|
22
|
+
static GetTaxGroupingForPartsByHSN(Parts: any, TaxCodes: any): any[];
|
|
23
|
+
static GetCombinedTaxPercentage(Parts: any, TaxCodes: any): any;
|
|
24
|
+
static ComparePartsByHSN(Parts: any, TaxCodes: any): any[];
|
|
25
|
+
static GetTaxGroupingInfoByHSN(FinalMatchedParts: any, TaxCodes: any): any[];
|
|
26
|
+
static GetGSTValueBasedOnTaxCode(TCode: any, TaxCodes: any): any[];
|
|
27
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DeliveryChallanTotalsService = void 0;
|
|
4
|
-
const aggregation_1 = require("
|
|
5
|
-
const
|
|
4
|
+
const aggregation_1 = require("../../aggregation/aggregation");
|
|
5
|
+
const tr_utils_1 = require("../../utils/tr-utils");
|
|
6
6
|
class DeliveryChallanTotalsService {
|
|
7
7
|
static GetTotalsValue(PartsList, IsIndependentTax, DetailedInfo, Disc, Perc, TaxCodes, WithItems, Settings, isRoundable) {
|
|
8
8
|
// LPerc = TrUtils.SetPercToStringIfNull(LPerc);
|
|
9
|
-
Perc =
|
|
9
|
+
Perc = tr_utils_1.TrUtils.SetPercToStringIfNull(Perc);
|
|
10
10
|
// LDisc = TrUtils.SetValueToZeroIfNull(LDisc);
|
|
11
|
-
Disc =
|
|
11
|
+
Disc = tr_utils_1.TrUtils.SetValueToZeroIfNull(Disc);
|
|
12
12
|
PartsList = this.CalculateLaborPartValues(PartsList, IsIndependentTax);
|
|
13
13
|
let finalTotalsData = this.GetFinalChallanDataForSave(PartsList, IsIndependentTax, Disc, Perc, DetailedInfo, Settings, isRoundable);
|
|
14
14
|
if (DetailedInfo) {
|
|
@@ -29,7 +29,7 @@ class DeliveryChallanTotalsService {
|
|
|
29
29
|
static ResetLaborPartValues(PartsList, IsIndependentTax) {
|
|
30
30
|
PartsList.forEach((Part) => {
|
|
31
31
|
Part = this.ResetLaborPartValueIfInvalid(Part);
|
|
32
|
-
Part.DiscountedPrice = (0, aggregation_1.addition)(Part.Disc,
|
|
32
|
+
Part.DiscountedPrice = (0, aggregation_1.addition)(Part.Disc, tr_utils_1.TrUtils.SetValueToZeroIfNull(Part.RecDisc));
|
|
33
33
|
let NetAmt = (0, aggregation_1.subtraction)(Part.UnAmt, Part.Disc, Part.RecDisc);
|
|
34
34
|
Part.AfterPartDisc = NetAmt;
|
|
35
35
|
if (IsIndependentTax) {
|
|
@@ -42,12 +42,12 @@ class DeliveryChallanTotalsService {
|
|
|
42
42
|
return PartsList;
|
|
43
43
|
}
|
|
44
44
|
static ResetLaborPartValueIfInvalid(Part) {
|
|
45
|
-
Part.UnPr =
|
|
46
|
-
Part.Disc =
|
|
47
|
-
Part.RecDisc =
|
|
48
|
-
Part.CGST =
|
|
49
|
-
Part.SGST =
|
|
50
|
-
Part.IGST =
|
|
45
|
+
Part.UnPr = tr_utils_1.TrUtils.SetValueToZeroIfNull(Part.UnPr);
|
|
46
|
+
Part.Disc = tr_utils_1.TrUtils.SetValueToZeroIfNull(Part.Disc);
|
|
47
|
+
Part.RecDisc = tr_utils_1.TrUtils.SetValueToZeroIfNull(Part.RecDisc);
|
|
48
|
+
Part.CGST = tr_utils_1.TrUtils.SetValueToZeroIfNull(Part.CGST);
|
|
49
|
+
Part.SGST = tr_utils_1.TrUtils.SetValueToZeroIfNull(Part.SGST);
|
|
50
|
+
Part.IGST = tr_utils_1.TrUtils.SetValueToZeroIfNull(Part.IGST);
|
|
51
51
|
return Part;
|
|
52
52
|
}
|
|
53
53
|
static GetFinalChallanDataForSave(PartsList, IsIndependentTax, Disc, Perc, DetailedInfo, Settings, isRoundable) {
|
|
@@ -75,15 +75,15 @@ class DeliveryChallanTotalsService {
|
|
|
75
75
|
let CustTotal = this.GetCustomerTotalBasedOnTaxType(CustPartTaxTotal, PartsList, IsIndependentTax);
|
|
76
76
|
// console.log('CustTotal', CustTotal);
|
|
77
77
|
if (isRoundable) {
|
|
78
|
-
finalTotalsData.Round =
|
|
78
|
+
finalTotalsData.Round = tr_utils_1.TrUtils.FixedTo(Math.round(CustTotal) - CustTotal);
|
|
79
79
|
finalTotalsData.Total = Math.round(CustTotal);
|
|
80
80
|
}
|
|
81
81
|
else {
|
|
82
|
-
finalTotalsData.Total =
|
|
82
|
+
finalTotalsData.Total = tr_utils_1.TrUtils.FixedTo(CustTotal);
|
|
83
83
|
}
|
|
84
84
|
if (DetailedInfo) {
|
|
85
|
-
finalTotalsData.FixedSubTotal =
|
|
86
|
-
finalTotalsData.FixedTotal =
|
|
85
|
+
finalTotalsData.FixedSubTotal = tr_utils_1.TrUtils.FixedTo(CustomerAfterDiscTotals);
|
|
86
|
+
finalTotalsData.FixedTotal = tr_utils_1.TrUtils.FixedTo(CustTotal);
|
|
87
87
|
}
|
|
88
88
|
return finalTotalsData;
|
|
89
89
|
}
|
|
@@ -116,21 +116,21 @@ class DeliveryChallanTotalsService {
|
|
|
116
116
|
// finalTotalsData.CustPartIGST = this.GetPartIGSTTaxTotal(PartsList, IsIndependentTax);
|
|
117
117
|
// finalTotalsData.CustPartSGST = this.GetPartSGSTTaxTotal(PartsList, IsIndependentTax);
|
|
118
118
|
let TaxInfo = this.GetPartGSTTaxTotal(PartsList, IsIndependentTax);
|
|
119
|
-
finalTotalsData.CustPartITax =
|
|
120
|
-
finalTotalsData.CustPartCGST =
|
|
121
|
-
finalTotalsData.CustPartIGST =
|
|
122
|
-
finalTotalsData.CustPartSGST =
|
|
119
|
+
finalTotalsData.CustPartITax = tr_utils_1.TrUtils.SetValueToZeroIfNull(TaxInfo[3]);
|
|
120
|
+
finalTotalsData.CustPartCGST = tr_utils_1.TrUtils.SetValueToZeroIfNull(TaxInfo[0]);
|
|
121
|
+
finalTotalsData.CustPartIGST = tr_utils_1.TrUtils.SetValueToZeroIfNull(TaxInfo[2]);
|
|
122
|
+
finalTotalsData.CustPartSGST = tr_utils_1.TrUtils.SetValueToZeroIfNull(TaxInfo[1]);
|
|
123
123
|
// finalTotalsData.CustLaborAfterTax = TrUtils.FixedTo(finalTotalsData.CustLaborITax + finalTotalsData.CustLaborTotalAfterDisc);
|
|
124
124
|
finalTotalsData.CustPartAfterTax = (0, aggregation_1.addition)(finalTotalsData.CustPartITax, finalTotalsData.CustPartsTotalAfterDisc);
|
|
125
125
|
finalTotalsData.CustTaxGroupData = this.GetTaxGroupingForPartsByHSN(PartsList, TaxCodes);
|
|
126
|
-
finalTotalsData.CustTotalRoundedBy =
|
|
127
|
-
finalTotalsData.CustRoundedTotal =
|
|
126
|
+
finalTotalsData.CustTotalRoundedBy = tr_utils_1.TrUtils.FixedTo(finalTotalsData.Round);
|
|
127
|
+
finalTotalsData.CustRoundedTotal = tr_utils_1.TrUtils.FixedTo(finalTotalsData.Total);
|
|
128
128
|
for (var key in finalTotalsData) {
|
|
129
129
|
if (key !== 'Total' && key !== 'SubTotal' &&
|
|
130
130
|
key !== 'LDisc' && key !== 'LPerc' && key !== 'PDisc' &&
|
|
131
131
|
key !== 'PPerc' && key !== 'Disc' && key !== 'Perc' && key !== 'Tax'
|
|
132
132
|
&& typeof finalTotalsData[key] === 'number') {
|
|
133
|
-
finalTotalsData[key] =
|
|
133
|
+
finalTotalsData[key] = tr_utils_1.TrUtils.FixPriceValue(finalTotalsData[key]);
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
return finalTotalsData;
|
|
@@ -170,8 +170,8 @@ class DeliveryChallanTotalsService {
|
|
|
170
170
|
}
|
|
171
171
|
static LaborTotalAfterDiscount(LaborTotalAfterDisc, LaborTaxAmount, MainLDisc, LDiscInPerc) {
|
|
172
172
|
let LaborTotal = (0, aggregation_1.addition)(LaborTotalAfterDisc, LaborTaxAmount);
|
|
173
|
-
if (!
|
|
174
|
-
if (!
|
|
173
|
+
if (!tr_utils_1.TrUtils.IsZero(MainLDisc)) {
|
|
174
|
+
if (!tr_utils_1.TrUtils.IsEmpty(LDiscInPerc)) {
|
|
175
175
|
LaborTotal = (0, aggregation_1.subtraction)(LaborTotal, (0, aggregation_1.division)((0, aggregation_1.multiply)(LaborTotal, Number(LDiscInPerc)), 100));
|
|
176
176
|
}
|
|
177
177
|
else {
|
|
@@ -182,8 +182,8 @@ class DeliveryChallanTotalsService {
|
|
|
182
182
|
}
|
|
183
183
|
static ItemsTotalAfterDiscount(PartsTotalAfterDisc, PartsTaxAmount, MainPDisc, PDiscInPerc) {
|
|
184
184
|
let ItemsTotal = (0, aggregation_1.addition)(PartsTotalAfterDisc, PartsTaxAmount);
|
|
185
|
-
if (!
|
|
186
|
-
if (!
|
|
185
|
+
if (!tr_utils_1.TrUtils.IsZero(MainPDisc)) {
|
|
186
|
+
if (!tr_utils_1.TrUtils.IsEmpty(PDiscInPerc)) {
|
|
187
187
|
ItemsTotal = (0, aggregation_1.subtraction)(ItemsTotal, (0, aggregation_1.division)((0, aggregation_1.multiply)(ItemsTotal, Number(PDiscInPerc)), 100));
|
|
188
188
|
}
|
|
189
189
|
else {
|
|
@@ -242,13 +242,13 @@ class DeliveryChallanTotalsService {
|
|
|
242
242
|
}
|
|
243
243
|
static GetCombinedTaxPercentage(Parts, TaxCodes) {
|
|
244
244
|
Parts.forEach((Part) => {
|
|
245
|
-
if (
|
|
245
|
+
if (tr_utils_1.TrUtils.IsNull(Part.HSN)) {
|
|
246
246
|
Part.HSN = '';
|
|
247
247
|
}
|
|
248
248
|
let GSTValues = this.GetGSTValueBasedOnTaxCode(Part.TCode, TaxCodes);
|
|
249
|
-
Part.CGSTAmt =
|
|
250
|
-
Part.SGSTAmt =
|
|
251
|
-
Part.IGSTAmt =
|
|
249
|
+
Part.CGSTAmt = tr_utils_1.TrUtils.SetValueToZeroIfNull(GSTValues[0]);
|
|
250
|
+
Part.SGSTAmt = tr_utils_1.TrUtils.SetValueToZeroIfNull(GSTValues[1]);
|
|
251
|
+
Part.IGSTAmt = tr_utils_1.TrUtils.SetValueToZeroIfNull(GSTValues[2]);
|
|
252
252
|
Part.CombinedTaxPercentage = (0, aggregation_1.addition)(Part.CGSTAmt, Part.SGSTAmt, Part.IGSTAmt);
|
|
253
253
|
});
|
|
254
254
|
return Parts;
|
|
@@ -299,8 +299,8 @@ class DeliveryChallanTotalsService {
|
|
|
299
299
|
TaxAmount = (0, aggregation_1.addition)(TaxAmount, argMatchedGSTPart.SGST);
|
|
300
300
|
});
|
|
301
301
|
TaxInfo.HSN = HSN;
|
|
302
|
-
TaxInfo.TotalTaxableAmount =
|
|
303
|
-
TaxInfo.TotalTaxAmount =
|
|
302
|
+
TaxInfo.TotalTaxableAmount = tr_utils_1.TrUtils.FixPriceValue(TaxOnAmount);
|
|
303
|
+
TaxInfo.TotalTaxAmount = tr_utils_1.TrUtils.FixPriceValue(TaxAmount);
|
|
304
304
|
TaxInfo.ItemsCount = MatchedPart.length;
|
|
305
305
|
// let GSTValues: any[] = this.GetGSTValueBasedOnTaxCode(MatchedPart[0].TCode, TaxCodes);
|
|
306
306
|
// TaxInfo.CGST = GSTValues[0];
|
|
@@ -319,7 +319,7 @@ class DeliveryChallanTotalsService {
|
|
|
319
319
|
let CGST = 0;
|
|
320
320
|
let SGST = 0;
|
|
321
321
|
let IGST = 0;
|
|
322
|
-
if (
|
|
322
|
+
if (tr_utils_1.TrUtils.IsNull(TCode)) {
|
|
323
323
|
return [CGST, SGST, IGST];
|
|
324
324
|
}
|
|
325
325
|
let TCodeIndex = TaxCodes.findIndex((TaxCode) => {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare class AnalysisXlsxFileService {
|
|
2
|
+
static wb: any;
|
|
3
|
+
static Row: any;
|
|
4
|
+
static MergeArray: any[];
|
|
5
|
+
static range: {
|
|
6
|
+
s: {
|
|
7
|
+
c: number;
|
|
8
|
+
r: number;
|
|
9
|
+
};
|
|
10
|
+
e: {
|
|
11
|
+
c: number;
|
|
12
|
+
r: number;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
static ws: any;
|
|
16
|
+
static GetAnalysisExcelData(MainData: any, isSale: boolean, searchValue: any, HeaderName: any, HeaderText: any): any;
|
|
17
|
+
static setHeadingInCell(HeaderName: any, showSearch: any, HeadText: any): void;
|
|
18
|
+
static setInvoiceDetailsInCell(MainData: any, isSale: boolean, HeaderText: any): void;
|
|
19
|
+
static SetInvoiceDataInExcel(InvoiceInfo: any, isSale: boolean, HeaderText: any): void;
|
|
20
|
+
static ConvertToString(Text: any, IsString: any): any;
|
|
21
|
+
static SetDataInCell(Data: any, ColRange: number, RowNum: any): void;
|
|
22
|
+
static getcelltype(cell: any): any;
|
|
23
|
+
}
|
|
@@ -25,8 +25,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.AnalysisXlsxFileService = void 0;
|
|
27
27
|
const XLSX = __importStar(require("xlsx"));
|
|
28
|
-
const
|
|
29
|
-
const
|
|
28
|
+
const tr_utils_1 = require("../../../utils/tr-utils");
|
|
29
|
+
const my_date_1 = require("../../../utils/my-date");
|
|
30
30
|
class AnalysisXlsxFileService {
|
|
31
31
|
static GetAnalysisExcelData(MainData, isSale, searchValue, HeaderName, HeaderText) {
|
|
32
32
|
this.wb = {};
|
|
@@ -42,7 +42,7 @@ class AnalysisXlsxFileService {
|
|
|
42
42
|
// MainData = this.GetTotals(MainData);
|
|
43
43
|
let showSearch = [];
|
|
44
44
|
for (const key in searchValue) {
|
|
45
|
-
if (!
|
|
45
|
+
if (!tr_utils_1.TrUtils.IsNull(searchValue[key]) && key !== 'Date' && key !== 'CustCntrlId') {
|
|
46
46
|
showSearch.push([{
|
|
47
47
|
text: (key === 'StDate') ? 'Start Date' : (key === 'EnDate') ? 'End Date' : (key === '_id') ? isSale ? 'Report' : 'Report' : key,
|
|
48
48
|
ColRange: 1,
|
|
@@ -260,7 +260,7 @@ class AnalysisXlsxFileService {
|
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
262
|
if (typeof Text === 'number') {
|
|
263
|
-
return Number(
|
|
263
|
+
return Number(tr_utils_1.TrUtils.FixedTo(Text));
|
|
264
264
|
}
|
|
265
265
|
else {
|
|
266
266
|
return Text;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare class CategoryWiseItemXlsxFileService {
|
|
2
|
+
static wb: any;
|
|
3
|
+
static Row: any;
|
|
4
|
+
static MergeArray: any[];
|
|
5
|
+
static range: {
|
|
6
|
+
s: {
|
|
7
|
+
c: number;
|
|
8
|
+
r: number;
|
|
9
|
+
};
|
|
10
|
+
e: {
|
|
11
|
+
c: number;
|
|
12
|
+
r: number;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
static ws: any;
|
|
16
|
+
static GetCategoryWiseItemExcelData(MainData: any, isSale: boolean, searchValue: any, HeaderName: any): any;
|
|
17
|
+
static setHeadingInCell(HeaderName: any, showSearch: any): void;
|
|
18
|
+
static setInvoiceDetailsInCell(MainData: any, isSale: boolean): void;
|
|
19
|
+
static SetInvoiceDataInExcel(InvoiceInfo: any, isSale: boolean): void;
|
|
20
|
+
static ConvertToString(Text: any, IsString: any): any;
|
|
21
|
+
static SetDataInCell(Data: any, ColRange: number, RowNum: any): void;
|
|
22
|
+
static getcelltype(cell: any): any;
|
|
23
|
+
}
|
|
@@ -25,8 +25,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.CategoryWiseItemXlsxFileService = void 0;
|
|
27
27
|
const XLSX = __importStar(require("xlsx"));
|
|
28
|
-
const my_date_1 = require("
|
|
29
|
-
const
|
|
28
|
+
const my_date_1 = require("../../../utils/my-date");
|
|
29
|
+
const tr_utils_1 = require("../../../utils/tr-utils");
|
|
30
30
|
class CategoryWiseItemXlsxFileService {
|
|
31
31
|
static GetCategoryWiseItemExcelData(MainData, isSale, searchValue, HeaderName) {
|
|
32
32
|
this.wb = {};
|
|
@@ -42,7 +42,7 @@ class CategoryWiseItemXlsxFileService {
|
|
|
42
42
|
// MainData = this.GetTotals(MainData);
|
|
43
43
|
let showSearch = [];
|
|
44
44
|
for (const key in searchValue) {
|
|
45
|
-
if (!
|
|
45
|
+
if (!tr_utils_1.TrUtils.IsNull(searchValue[key]) && key !== 'Date' && key !== 'CustCntrlId') {
|
|
46
46
|
showSearch.push([{
|
|
47
47
|
text: (key === 'StDate') ? 'Start Date' : (key === 'EnDate') ? 'End Date' : (key === '_id') ? isSale ? 'Report' : 'Report' : key,
|
|
48
48
|
ColRange: 1,
|
|
@@ -206,12 +206,12 @@ class CategoryWiseItemXlsxFileService {
|
|
|
206
206
|
let InvoiceData = [
|
|
207
207
|
{ text: InvoiceInfo.Name, ColRange: 1, IsString: true },
|
|
208
208
|
{ text: InvoiceInfo.Count, ColRange: 1, IsString: true },
|
|
209
|
-
{ text:
|
|
210
|
-
{ text:
|
|
211
|
-
{ text:
|
|
212
|
-
{ text:
|
|
213
|
-
{ text:
|
|
214
|
-
{ text:
|
|
209
|
+
{ text: tr_utils_1.TrUtils.FixedTo(InvoiceInfo.Qty), ColRange: 1, IsString: true },
|
|
210
|
+
{ text: tr_utils_1.TrUtils.FixedTo(InvoiceInfo.UnAmt), ColRange: 1, IsString: true },
|
|
211
|
+
{ text: tr_utils_1.TrUtils.FixedTo(InvoiceInfo.TotalDisc), ColRange: 1, IsString: true },
|
|
212
|
+
{ text: tr_utils_1.TrUtils.FixedTo(InvoiceInfo.Tax), ColRange: 1, IsString: true },
|
|
213
|
+
{ text: tr_utils_1.TrUtils.FixedTo(InvoiceInfo.NetAmt), ColRange: 1, IsString: true },
|
|
214
|
+
{ text: tr_utils_1.TrUtils.FixedTo(InvoiceInfo.AvgAmt), ColRange: 1, IsString: true },
|
|
215
215
|
];
|
|
216
216
|
let ColStart = 0;
|
|
217
217
|
InvoiceData.forEach((InvData) => {
|
|
@@ -237,7 +237,7 @@ class CategoryWiseItemXlsxFileService {
|
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
239
|
if (typeof Text === 'number') {
|
|
240
|
-
return Number(
|
|
240
|
+
return Number(tr_utils_1.TrUtils.FixedTo(Text));
|
|
241
241
|
}
|
|
242
242
|
else {
|
|
243
243
|
return Text;
|