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
|
@@ -25,8 +25,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.ScheduledDrugXlsxFileService = 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 ScheduledDrugXlsxFileService {
|
|
31
31
|
static GetScheduledDrugExcelData(MainData, searchValue, HeaderName) {
|
|
32
32
|
this.wb = {};
|
|
@@ -42,7 +42,7 @@ class ScheduledDrugXlsxFileService {
|
|
|
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' && key !== 'DescCntrlId') {
|
|
46
46
|
showSearch.push([{
|
|
47
47
|
text: (key === 'StDate') ? 'Start Date' : (key === 'EnDate') ? 'End Date' : (key === 'CustCntrl') ? 'Customer' : (key === 'DescCntrl') ? 'Item' : key,
|
|
48
48
|
ColRange: 1,
|
|
@@ -247,14 +247,14 @@ class ScheduledDrugXlsxFileService {
|
|
|
247
247
|
// batchdata = BN;
|
|
248
248
|
// }
|
|
249
249
|
// } else {
|
|
250
|
-
if (!
|
|
250
|
+
if (!tr_utils_1.TrUtils.IsNull(InvoiceInfo.Batch)) {
|
|
251
251
|
batchdata = InvoiceInfo.Batch.BN;
|
|
252
252
|
}
|
|
253
253
|
// }
|
|
254
254
|
// });
|
|
255
255
|
let batchExdate;
|
|
256
256
|
// InvoiceInfo.Items?.Batches?.forEach((batch: any) => {
|
|
257
|
-
if (!
|
|
257
|
+
if (!tr_utils_1.TrUtils.IsNull(InvoiceInfo.Batch)) {
|
|
258
258
|
batchExdate = my_date_1.MyDate.ConvertUTCDateToReadableExDate(InvoiceInfo.Batch.ExDt);
|
|
259
259
|
}
|
|
260
260
|
// else {
|
|
@@ -269,9 +269,9 @@ class ScheduledDrugXlsxFileService {
|
|
|
269
269
|
{ text: InvoiceInfo.ItemName, ColRange: 1, IsString: true },
|
|
270
270
|
{ text: batchdata, ColRange: 1, IsString: true },
|
|
271
271
|
{ text: batchExdate, ColRange: 1, IsString: true },
|
|
272
|
-
{ text:
|
|
273
|
-
{ text:
|
|
274
|
-
{ text:
|
|
272
|
+
{ text: tr_utils_1.TrUtils.FixPriceValue(InvoiceInfo.Qty), ColRange: 1, IsString: false },
|
|
273
|
+
{ text: tr_utils_1.TrUtils.FixPriceValue(InvoiceInfo.NetAmt), ColRange: 1, IsString: false },
|
|
274
|
+
{ text: tr_utils_1.TrUtils.FixPriceValue(InvoiceInfo.Tax), ColRange: 1, IsString: false }
|
|
275
275
|
];
|
|
276
276
|
let ColStart = 0;
|
|
277
277
|
InvoiceData.forEach((InvData) => {
|
|
@@ -297,7 +297,7 @@ class ScheduledDrugXlsxFileService {
|
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
299
|
if (typeof Text === 'number') {
|
|
300
|
-
return Number(
|
|
300
|
+
return Number(tr_utils_1.TrUtils.FixedTo(Text));
|
|
301
301
|
}
|
|
302
302
|
else {
|
|
303
303
|
return Text;
|
|
@@ -326,7 +326,7 @@ class ScheduledDrugXlsxFileService {
|
|
|
326
326
|
return cell;
|
|
327
327
|
}
|
|
328
328
|
static ConvertDateToReadableFormat(DateObject) {
|
|
329
|
-
if (!
|
|
329
|
+
if (!tr_utils_1.TrUtils.IsEmpty(DateObject)) {
|
|
330
330
|
let date = new Date(DateObject);
|
|
331
331
|
let Month;
|
|
332
332
|
let Day;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare class IssueSparesXlsxFileService {
|
|
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 GetInvoiceWiseExcelData(MainData: any, WOTypes: any): any;
|
|
17
|
+
static GetTotals(MainData: any, WOTypes: any): any;
|
|
18
|
+
static GetWOTypeName(Type: any, WOTypes: any): any;
|
|
19
|
+
static setHeadingInCell(): void;
|
|
20
|
+
static setInvoiceDetailsInCell(MainData: any): void;
|
|
21
|
+
static SetInvoiceDataInExcel(InvoiceInfo: any): void;
|
|
22
|
+
static ConvertToString(Text: any, IsString: any): any;
|
|
23
|
+
static SetDataInCell(Data: any, ColRange: number, RowNum: any): void;
|
|
24
|
+
static getcelltype(cell: any): any;
|
|
25
|
+
static ConvertDateToReadableFormat(DateObject: any): any;
|
|
26
|
+
}
|
|
@@ -25,7 +25,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.IssueSparesXlsxFileService = void 0;
|
|
27
27
|
const XLSX = __importStar(require("xlsx"));
|
|
28
|
-
const
|
|
28
|
+
const tr_utils_1 = require("../utils/tr-utils");
|
|
29
29
|
class IssueSparesXlsxFileService {
|
|
30
30
|
static GetInvoiceWiseExcelData(MainData, WOTypes) {
|
|
31
31
|
this.wb = {};
|
|
@@ -346,37 +346,37 @@ class IssueSparesXlsxFileService {
|
|
|
346
346
|
static SetInvoiceDataInExcel(InvoiceInfo) {
|
|
347
347
|
InvoiceInfo.CrDate = this.ConvertDateToReadableFormat(InvoiceInfo.CrDate);
|
|
348
348
|
InvoiceInfo.WCrDate = this.ConvertDateToReadableFormat(InvoiceInfo.WCrDate);
|
|
349
|
-
if (
|
|
349
|
+
if (tr_utils_1.TrUtils.IsNull(InvoiceInfo.Prod)) {
|
|
350
350
|
InvoiceInfo.Prod = {};
|
|
351
351
|
}
|
|
352
|
-
if (
|
|
352
|
+
if (tr_utils_1.TrUtils.IsNull(InvoiceInfo.WOType)) {
|
|
353
353
|
InvoiceInfo.WOType = {};
|
|
354
354
|
}
|
|
355
355
|
let Product = '';
|
|
356
356
|
let Price = 0;
|
|
357
357
|
let UnAmt = 0;
|
|
358
|
-
if (!
|
|
359
|
-
if (!
|
|
358
|
+
if (!tr_utils_1.TrUtils.IsNull(InvoiceInfo.Parts)) {
|
|
359
|
+
if (!tr_utils_1.TrUtils.IsNull(InvoiceInfo.Parts.MPN)) {
|
|
360
360
|
Product = InvoiceInfo.Parts.MPN + ' - ' + InvoiceInfo.Parts.Desc;
|
|
361
361
|
}
|
|
362
362
|
else {
|
|
363
363
|
Product = InvoiceInfo.Parts.Desc;
|
|
364
364
|
}
|
|
365
|
-
if (!
|
|
366
|
-
Price =
|
|
365
|
+
if (!tr_utils_1.TrUtils.IsZero(InvoiceInfo.Parts.AssPr)) {
|
|
366
|
+
Price = tr_utils_1.TrUtils.FixPriceValue(InvoiceInfo.Parts.AssPr);
|
|
367
367
|
}
|
|
368
368
|
else {
|
|
369
|
-
Price =
|
|
369
|
+
Price = tr_utils_1.TrUtils.FixPriceValue(InvoiceInfo.Parts.UnPr);
|
|
370
370
|
}
|
|
371
|
-
if (!
|
|
372
|
-
UnAmt =
|
|
371
|
+
if (!tr_utils_1.TrUtils.IsZero(InvoiceInfo.Parts.AssAmt)) {
|
|
372
|
+
UnAmt = tr_utils_1.TrUtils.FixPriceValue(InvoiceInfo.Parts.AssAmt);
|
|
373
373
|
}
|
|
374
374
|
else {
|
|
375
|
-
UnAmt =
|
|
375
|
+
UnAmt = tr_utils_1.TrUtils.FixPriceValue(InvoiceInfo.Parts.UnAmt);
|
|
376
376
|
}
|
|
377
377
|
;
|
|
378
378
|
}
|
|
379
|
-
if (
|
|
379
|
+
if (tr_utils_1.TrUtils.IsNull(InvoiceInfo.Parts)) {
|
|
380
380
|
InvoiceInfo.Parts = {};
|
|
381
381
|
}
|
|
382
382
|
let InvoiceData = [
|
|
@@ -424,7 +424,7 @@ class IssueSparesXlsxFileService {
|
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
426
|
if (typeof Text === 'number') {
|
|
427
|
-
return Number(
|
|
427
|
+
return Number(tr_utils_1.TrUtils.FixedTo(Text));
|
|
428
428
|
}
|
|
429
429
|
else {
|
|
430
430
|
return Text;
|
|
@@ -452,7 +452,7 @@ class IssueSparesXlsxFileService {
|
|
|
452
452
|
return cell;
|
|
453
453
|
}
|
|
454
454
|
static ConvertDateToReadableFormat(DateObject) {
|
|
455
|
-
if (!
|
|
455
|
+
if (!tr_utils_1.TrUtils.IsEmpty(DateObject)) {
|
|
456
456
|
let date = new Date(DateObject);
|
|
457
457
|
let Month;
|
|
458
458
|
let Day;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare class StockXlsxFileService {
|
|
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 GetStockInfoExcelData(MainData: any, isSale: boolean, isHC: any, HeaderName: any): any;
|
|
17
|
+
static setHeadingInCell(HeaderName: any, isHC: any): void;
|
|
18
|
+
static setInvoiceDetailsInCell(MainData: any, isHC: any): void;
|
|
19
|
+
static SetInvoiceDataInExcel(InvoiceInfo: any, index: any, isHC: 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,7 +25,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.StockXlsxFileService = void 0;
|
|
27
27
|
const XLSX = __importStar(require("xlsx"));
|
|
28
|
-
const
|
|
28
|
+
const tr_utils_1 = require("../utils/tr-utils");
|
|
29
29
|
class StockXlsxFileService {
|
|
30
30
|
static GetStockInfoExcelData(MainData, isSale, isHC, HeaderName) {
|
|
31
31
|
this.wb = {};
|
|
@@ -218,7 +218,7 @@ class StockXlsxFileService {
|
|
|
218
218
|
{ text: (_a = InvoiceInfo.Sale) === null || _a === void 0 ? void 0 : _a.Price, ColRange: 1, IsString: false },
|
|
219
219
|
{ text: InvoiceInfo.Qty, ColRange: 1, IsString: false },
|
|
220
220
|
{ text: InvoiceInfo.RQty, ColRange: 1, IsString: false },
|
|
221
|
-
{ text: (
|
|
221
|
+
{ text: (tr_utils_1.TrUtils.SetValueToZeroIfNull(InvoiceInfo.Qty) - tr_utils_1.TrUtils.SetValueToZeroIfNull(InvoiceInfo.RQty)), ColRange: 1, IsString: false },
|
|
222
222
|
];
|
|
223
223
|
if (isHC !== 'HC') {
|
|
224
224
|
InvoiceData.splice(1, 0, { text: InvoiceInfo.MPN, ColRange: 1, IsString: true });
|
|
@@ -247,7 +247,7 @@ class StockXlsxFileService {
|
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
249
|
if (typeof Text === 'number') {
|
|
250
|
-
return Number(
|
|
250
|
+
return Number(tr_utils_1.TrUtils.FixedTo(Text));
|
|
251
251
|
}
|
|
252
252
|
else {
|
|
253
253
|
return Text;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare class VenBalanceXlsxFileService {
|
|
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 GetInvoiceWiseExcelData(MainData: any): any;
|
|
17
|
+
static GetWOTypeName(Type: any, WOTypes: any): any;
|
|
18
|
+
static setHeadingInCell(): void;
|
|
19
|
+
static setHeading1InCell(Name: any): void;
|
|
20
|
+
static setInvoiceFinalRowInCell(Due: any): void;
|
|
21
|
+
static setInvoiceDetailsInCell(MainData: any): void;
|
|
22
|
+
static SetInvoiceDataInExcel(BillInfo: any, index: any): void;
|
|
23
|
+
static ConvertToString(Text: any, IsString: any): any;
|
|
24
|
+
static SetDataInCell(Data: any, ColRange: number, RowNum: any): void;
|
|
25
|
+
static getcelltype(cell: any): any;
|
|
26
|
+
static ConvertDateToReadableFormat(DateObject: any): any;
|
|
27
|
+
}
|
|
@@ -25,7 +25,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.VenBalanceXlsxFileService = void 0;
|
|
27
27
|
const XLSX = __importStar(require("xlsx"));
|
|
28
|
-
const
|
|
28
|
+
const tr_utils_1 = require("../utils/tr-utils");
|
|
29
29
|
class VenBalanceXlsxFileService {
|
|
30
30
|
static GetInvoiceWiseExcelData(MainData) {
|
|
31
31
|
this.wb = {};
|
|
@@ -225,7 +225,7 @@ class VenBalanceXlsxFileService {
|
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
227
|
if (typeof Text === 'number') {
|
|
228
|
-
return Number(
|
|
228
|
+
return Number(tr_utils_1.TrUtils.FixedTo(Text));
|
|
229
229
|
}
|
|
230
230
|
else {
|
|
231
231
|
return Text;
|
|
@@ -253,7 +253,7 @@ class VenBalanceXlsxFileService {
|
|
|
253
253
|
return cell;
|
|
254
254
|
}
|
|
255
255
|
static ConvertDateToReadableFormat(DateObject) {
|
|
256
|
-
if (!
|
|
256
|
+
if (!tr_utils_1.TrUtils.IsEmpty(DateObject)) {
|
|
257
257
|
let date = new Date(DateObject);
|
|
258
258
|
let Month;
|
|
259
259
|
let Day;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare class GSTROXlsxFileService {
|
|
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 MainHeadings: any[];
|
|
17
|
+
static GetGSTROExcelData(MainData: any, WOTypes: any): any;
|
|
18
|
+
static GetTotals(MainData: any, WOTypes: any): any;
|
|
19
|
+
static GetWOTypeName(Type: any, WOTypes: any): any;
|
|
20
|
+
static setHeadingInCell(MainData: any): void;
|
|
21
|
+
static setInvoiceDetailsInCell(MainData: any): void;
|
|
22
|
+
static SetInvoiceDataInExcel(InvoiceInfo: any, Index: any): void;
|
|
23
|
+
static ConvertToString(Text: any, IsString: any): any;
|
|
24
|
+
static SetDataInCell(Data: any, ColRange: number, RowNum: any): void;
|
|
25
|
+
static getcelltype(cell: any): any;
|
|
26
|
+
static ConvertDateToReadableFormat(DateObject: any): any;
|
|
27
|
+
}
|
|
@@ -25,7 +25,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.GSTROXlsxFileService = void 0;
|
|
27
27
|
const XLSX = __importStar(require("xlsx"));
|
|
28
|
-
const
|
|
28
|
+
const tr_utils_1 = require("../../utils/tr-utils");
|
|
29
29
|
class GSTROXlsxFileService {
|
|
30
30
|
static GetGSTROExcelData(MainData, WOTypes) {
|
|
31
31
|
this.wb = {};
|
|
@@ -866,7 +866,7 @@ class GSTROXlsxFileService {
|
|
|
866
866
|
}
|
|
867
867
|
}
|
|
868
868
|
if (typeof Text === 'number') {
|
|
869
|
-
return Number(
|
|
869
|
+
return Number(tr_utils_1.TrUtils.FixedTo(Text));
|
|
870
870
|
}
|
|
871
871
|
else {
|
|
872
872
|
return Text;
|
|
@@ -894,7 +894,7 @@ class GSTROXlsxFileService {
|
|
|
894
894
|
return cell;
|
|
895
895
|
}
|
|
896
896
|
static ConvertDateToReadableFormat(DateObject) {
|
|
897
|
-
if (!
|
|
897
|
+
if (!tr_utils_1.TrUtils.IsEmpty(DateObject)) {
|
|
898
898
|
let date = new Date(DateObject);
|
|
899
899
|
let Month;
|
|
900
900
|
let Day;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare class GSTR1ExcelService {
|
|
2
|
+
static wb: any;
|
|
3
|
+
static Row: any;
|
|
4
|
+
static MergeArray: any[];
|
|
5
|
+
static range: any;
|
|
6
|
+
static ws: any;
|
|
7
|
+
static GetGSTR1ExcelData(MainData: any): any;
|
|
8
|
+
static GetTotals(MainData: any): any;
|
|
9
|
+
static setHeadingInCell(): void;
|
|
10
|
+
static setInvoiceDetailsInCell(MainData: any): void;
|
|
11
|
+
static SetInvoiceDataInExcel(InvoiceList: any): void;
|
|
12
|
+
static ConvertToString(Text: any, IsString: any): any;
|
|
13
|
+
static SetDataInCell(Data: any, ColRange: number, RowNum: any): void;
|
|
14
|
+
static getcelltype(cell: any): any;
|
|
15
|
+
static ConvertDateToReadableFormat(DateObject: any): any;
|
|
16
|
+
}
|
|
@@ -25,7 +25,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.GSTR1ExcelService = void 0;
|
|
27
27
|
const XLSX = __importStar(require("xlsx"));
|
|
28
|
-
const
|
|
28
|
+
const tr_utils_1 = require("../../utils/tr-utils");
|
|
29
29
|
class GSTR1ExcelService {
|
|
30
30
|
static GetGSTR1ExcelData(MainData) {
|
|
31
31
|
this.wb = {};
|
|
@@ -166,7 +166,7 @@ class GSTR1ExcelService {
|
|
|
166
166
|
ColStart += InvData.ColRange;
|
|
167
167
|
});
|
|
168
168
|
let TotalsColStart = ColStart;
|
|
169
|
-
if (!
|
|
169
|
+
if (!tr_utils_1.TrUtils.IsNull(InvoiceInfo.ItemsArray) && InvoiceInfo.ItemsArray.length !== 0) {
|
|
170
170
|
let PartsHeading = { text: 'Parts', ColRange: 1 };
|
|
171
171
|
this.SetDataInCell(PartsHeading.text, TotalsColStart, this.Row);
|
|
172
172
|
this.MergeArray.push({ s: { r: this.Row, c: TotalsColStart }, e: { r: this.Row, c: TotalsColStart + PartsHeading.ColRange - 1 } });
|
|
@@ -189,7 +189,7 @@ class GSTR1ExcelService {
|
|
|
189
189
|
});
|
|
190
190
|
this.Row += 1;
|
|
191
191
|
}
|
|
192
|
-
if (!
|
|
192
|
+
if (!tr_utils_1.TrUtils.IsNull(InvoiceInfo.LaborArray) && InvoiceInfo.LaborArray.length !== 0) {
|
|
193
193
|
let LaborHeading = { text: 'Labor', ColRange: 1 };
|
|
194
194
|
this.SetDataInCell(LaborHeading.text, TotalsColStart, this.Row);
|
|
195
195
|
this.MergeArray.push({ s: { r: this.Row, c: TotalsColStart }, e: { r: this.Row, c: TotalsColStart + LaborHeading.ColRange - 1 } });
|
|
@@ -217,17 +217,17 @@ class GSTR1ExcelService {
|
|
|
217
217
|
}
|
|
218
218
|
static ConvertToString(Text, IsString) {
|
|
219
219
|
if (IsString) {
|
|
220
|
-
if (
|
|
220
|
+
if (tr_utils_1.TrUtils.IsNull(Text)) {
|
|
221
221
|
Text = '';
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
224
|
else {
|
|
225
|
-
if (
|
|
225
|
+
if (tr_utils_1.TrUtils.IsNull(Text)) {
|
|
226
226
|
Text = 0;
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
229
|
if (typeof (Text) === 'number') {
|
|
230
|
-
return Number(
|
|
230
|
+
return Number(tr_utils_1.TrUtils.FixedTo(Text));
|
|
231
231
|
}
|
|
232
232
|
else {
|
|
233
233
|
return Text;
|
|
@@ -255,7 +255,7 @@ class GSTR1ExcelService {
|
|
|
255
255
|
return cell;
|
|
256
256
|
}
|
|
257
257
|
static ConvertDateToReadableFormat(DateObject) {
|
|
258
|
-
if (!
|
|
258
|
+
if (!tr_utils_1.TrUtils.IsEmpty(DateObject)) {
|
|
259
259
|
let date = new Date(DateObject);
|
|
260
260
|
let Month;
|
|
261
261
|
let Day;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare class GSTR2ExcelService {
|
|
2
|
+
static wb: any;
|
|
3
|
+
static Row: any;
|
|
4
|
+
static MergeArray: any[];
|
|
5
|
+
static range: any;
|
|
6
|
+
static ws: any;
|
|
7
|
+
static GetGSTR1ExcelData(MainData: any): any;
|
|
8
|
+
static GetTotals(MainData: any): any;
|
|
9
|
+
static setHeadingInCell(): void;
|
|
10
|
+
static setInvoiceDetailsInCell(MainData: any): void;
|
|
11
|
+
static SetInvoiceDataInExcel(InvoiceList: any): void;
|
|
12
|
+
static ConvertToString(Text: any, IsString: any): any;
|
|
13
|
+
static SetDataInCell(Data: any, ColRange: number, RowNum: any): void;
|
|
14
|
+
static getcelltype(cell: any): any;
|
|
15
|
+
static ConvertDateToReadableFormat(DateObject: any): any;
|
|
16
|
+
}
|
|
@@ -25,7 +25,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.GSTR2ExcelService = void 0;
|
|
27
27
|
const XLSX = __importStar(require("xlsx"));
|
|
28
|
-
const
|
|
28
|
+
const tr_utils_1 = require("../../utils/tr-utils");
|
|
29
29
|
class GSTR2ExcelService {
|
|
30
30
|
static GetGSTR1ExcelData(MainData) {
|
|
31
31
|
this.wb = {};
|
|
@@ -166,7 +166,7 @@ class GSTR2ExcelService {
|
|
|
166
166
|
ColStart += InvData.ColRange;
|
|
167
167
|
});
|
|
168
168
|
let TotalsColStart = ColStart;
|
|
169
|
-
if (!
|
|
169
|
+
if (!tr_utils_1.TrUtils.IsNull(InvoiceInfo.ItemsArray) && InvoiceInfo.ItemsArray.length !== 0) {
|
|
170
170
|
let PartsHeading = { text: 'Parts', ColRange: 1 };
|
|
171
171
|
this.SetDataInCell(PartsHeading.text, TotalsColStart, this.Row);
|
|
172
172
|
this.MergeArray.push({ s: { r: this.Row, c: TotalsColStart }, e: { r: this.Row, c: TotalsColStart + PartsHeading.ColRange - 1 } });
|
|
@@ -217,17 +217,17 @@ class GSTR2ExcelService {
|
|
|
217
217
|
}
|
|
218
218
|
static ConvertToString(Text, IsString) {
|
|
219
219
|
if (IsString) {
|
|
220
|
-
if (
|
|
220
|
+
if (tr_utils_1.TrUtils.IsNull(Text)) {
|
|
221
221
|
Text = '';
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
224
|
else {
|
|
225
|
-
if (
|
|
225
|
+
if (tr_utils_1.TrUtils.IsNull(Text)) {
|
|
226
226
|
Text = 0;
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
229
|
if (typeof (Text) === 'number') {
|
|
230
|
-
return Number(
|
|
230
|
+
return Number(tr_utils_1.TrUtils.FixedTo(Text));
|
|
231
231
|
}
|
|
232
232
|
else {
|
|
233
233
|
return Text;
|
|
@@ -255,7 +255,7 @@ class GSTR2ExcelService {
|
|
|
255
255
|
return cell;
|
|
256
256
|
}
|
|
257
257
|
static ConvertDateToReadableFormat(DateObject) {
|
|
258
|
-
if (!
|
|
258
|
+
if (!tr_utils_1.TrUtils.IsEmpty(DateObject)) {
|
|
259
259
|
let date = new Date(DateObject);
|
|
260
260
|
let Month;
|
|
261
261
|
let Day;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare class TallySalesImportXlsxFileService {
|
|
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 MainHeadings: any[];
|
|
17
|
+
static GetGSTROExcelData(MainData: any, WOTypes: any): any;
|
|
18
|
+
static GetTotals(MainData: any, WOTypes: any): any;
|
|
19
|
+
static GetWOTypeName(Type: any, WOTypes: any): any;
|
|
20
|
+
static setHeadingInCell(MainData: any): void;
|
|
21
|
+
static setInvoiceDetailsInCell(MainData: any): void;
|
|
22
|
+
static SetInvoiceDataInExcel(InvoiceInfo: any, Index: any): void;
|
|
23
|
+
static ConvertToString(Text: any, IsString: any): any;
|
|
24
|
+
static SetDataInCell(Data: any, ColRange: number, RowNum: any): void;
|
|
25
|
+
static getcelltype(cell: any): any;
|
|
26
|
+
static ConvertDateToReadableFormat(DateObject: any): any;
|
|
27
|
+
}
|
|
@@ -25,7 +25,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.TallySalesImportXlsxFileService = void 0;
|
|
27
27
|
const XLSX = __importStar(require("xlsx"));
|
|
28
|
-
const
|
|
28
|
+
const tr_utils_1 = require("../../utils/tr-utils");
|
|
29
29
|
class TallySalesImportXlsxFileService {
|
|
30
30
|
static GetGSTROExcelData(MainData, WOTypes) {
|
|
31
31
|
this.wb = {};
|
|
@@ -695,7 +695,7 @@ class TallySalesImportXlsxFileService {
|
|
|
695
695
|
}
|
|
696
696
|
}
|
|
697
697
|
if (typeof Text === 'number') {
|
|
698
|
-
return Number(
|
|
698
|
+
return Number(tr_utils_1.TrUtils.FixedTo(Text));
|
|
699
699
|
}
|
|
700
700
|
else {
|
|
701
701
|
return Text;
|
|
@@ -723,7 +723,7 @@ class TallySalesImportXlsxFileService {
|
|
|
723
723
|
return cell;
|
|
724
724
|
}
|
|
725
725
|
static ConvertDateToReadableFormat(DateObject) {
|
|
726
|
-
if (!
|
|
726
|
+
if (!tr_utils_1.TrUtils.IsEmpty(DateObject)) {
|
|
727
727
|
let date = new Date(DateObject);
|
|
728
728
|
let Month;
|
|
729
729
|
let Day;
|