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
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare class CustWiseSalesXlsxFileService {
|
|
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 GetCustWiseSalesDetailsExcelData(MainData: any, isSale: boolean, searchValue: any): any;
|
|
17
|
+
static GetTotals(MainData: any): any;
|
|
18
|
+
static setHeadingInCell(isSale: boolean, showSearch: any): void;
|
|
19
|
+
static setInvoiceDetailsInCell(MainData: any, isSale: boolean): void;
|
|
20
|
+
static SetInvoiceDataInExcel(InvoiceInfo: any, isSale: boolean): void;
|
|
21
|
+
static ConvertToString(Text: any, IsString: any): any;
|
|
22
|
+
static SetDataInCell(Data: any, ColRange: number, RowNum: any): void;
|
|
23
|
+
static getcelltype(cell: any): any;
|
|
24
|
+
static ConvertDateToReadableFormat(DateObject: any): any;
|
|
25
|
+
}
|
|
@@ -25,8 +25,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.CustWiseSalesXlsxFileService = 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 CustWiseSalesXlsxFileService {
|
|
31
31
|
static GetCustWiseSalesDetailsExcelData(MainData, isSale, searchValue) {
|
|
32
32
|
this.wb = {};
|
|
@@ -42,7 +42,7 @@ class CustWiseSalesXlsxFileService {
|
|
|
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 === 'CustCntrl') ? isSale ? 'Customer' : 'Vendor' : key,
|
|
48
48
|
ColRange: 1,
|
|
@@ -252,7 +252,7 @@ class CustWiseSalesXlsxFileService {
|
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
if (typeof Text === 'number') {
|
|
255
|
-
return Number(
|
|
255
|
+
return Number(tr_utils_1.TrUtils.FixedTo(Text));
|
|
256
256
|
}
|
|
257
257
|
else {
|
|
258
258
|
return Text;
|
|
@@ -280,7 +280,7 @@ class CustWiseSalesXlsxFileService {
|
|
|
280
280
|
return cell;
|
|
281
281
|
}
|
|
282
282
|
static ConvertDateToReadableFormat(DateObject) {
|
|
283
|
-
if (!
|
|
283
|
+
if (!tr_utils_1.TrUtils.IsEmpty(DateObject)) {
|
|
284
284
|
let date = new Date(DateObject);
|
|
285
285
|
let Month;
|
|
286
286
|
let Day;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare class SalesByCustomerXlsxFileService {
|
|
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 GetSalesByCustExcelData(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
|
+
static ConvertDateToReadableFormat(DateObject: any): any;
|
|
24
|
+
}
|
|
@@ -25,8 +25,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.SalesByCustomerXlsxFileService = 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 SalesByCustomerXlsxFileService {
|
|
31
31
|
static GetSalesByCustExcelData(MainData, isSale, searchValue, HeaderName) {
|
|
32
32
|
this.wb = {};
|
|
@@ -42,7 +42,7 @@ class SalesByCustomerXlsxFileService {
|
|
|
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 === 'CustCntrl') ? isSale ? 'Customer' : 'Vendor' : key,
|
|
48
48
|
ColRange: 1,
|
|
@@ -233,7 +233,7 @@ class SalesByCustomerXlsxFileService {
|
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
235
|
if (typeof Text === 'number') {
|
|
236
|
-
return Number(
|
|
236
|
+
return Number(tr_utils_1.TrUtils.FixedTo(Text));
|
|
237
237
|
}
|
|
238
238
|
else {
|
|
239
239
|
return Text;
|
|
@@ -262,7 +262,7 @@ class SalesByCustomerXlsxFileService {
|
|
|
262
262
|
return cell;
|
|
263
263
|
}
|
|
264
264
|
static ConvertDateToReadableFormat(DateObject) {
|
|
265
|
-
if (!
|
|
265
|
+
if (!tr_utils_1.TrUtils.IsEmpty(DateObject)) {
|
|
266
266
|
let date = new Date(DateObject);
|
|
267
267
|
let Month;
|
|
268
268
|
let Day;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare class ItemWiseDoctorSaleXlsxFileService {
|
|
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 GetItemWiseDoctorSaleExcelData(MainData: any, searchValue: any, HeaderName: any): any;
|
|
17
|
+
static setHeadingInCell(HeaderName: any, showSearch: any): void;
|
|
18
|
+
static setInvoiceDetailsInCell(MainData: any): void;
|
|
19
|
+
static SetInvoiceDataInExcel(InvoiceInfo: 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
|
+
static ConvertDateToReadableFormat(DateObject: any): any;
|
|
24
|
+
}
|
|
@@ -25,8 +25,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.ItemWiseDoctorSaleXlsxFileService = 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 ItemWiseDoctorSaleXlsxFileService {
|
|
31
31
|
static GetItemWiseDoctorSaleExcelData(MainData, searchValue, HeaderName) {
|
|
32
32
|
this.wb = {};
|
|
@@ -42,7 +42,7 @@ class ItemWiseDoctorSaleXlsxFileService {
|
|
|
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,
|
|
@@ -161,8 +161,8 @@ class ItemWiseDoctorSaleXlsxFileService {
|
|
|
161
161
|
let InvoiceData = [
|
|
162
162
|
{ text: InvoiceInfo.Name, ColRange: 1, IsString: true },
|
|
163
163
|
{ text: InvoiceInfo.Count, ColRange: 1, IsString: true },
|
|
164
|
-
{ text:
|
|
165
|
-
{ text:
|
|
164
|
+
{ text: tr_utils_1.TrUtils.FixPriceValue(InvoiceInfo.Qty), ColRange: 1, IsString: false },
|
|
165
|
+
{ text: tr_utils_1.TrUtils.FixPriceValue(InvoiceInfo.AvgPr), ColRange: 1, IsString: false },
|
|
166
166
|
// { text: TrUtils.FixPriceValue(InvoiceInfo.Items.UnAmt), ColRange: 1, IsString: false }
|
|
167
167
|
];
|
|
168
168
|
let ColStart = 0;
|
|
@@ -189,7 +189,7 @@ class ItemWiseDoctorSaleXlsxFileService {
|
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
if (typeof Text === 'number') {
|
|
192
|
-
return Number(
|
|
192
|
+
return Number(tr_utils_1.TrUtils.FixedTo(Text));
|
|
193
193
|
}
|
|
194
194
|
else {
|
|
195
195
|
return Text;
|
|
@@ -218,7 +218,7 @@ class ItemWiseDoctorSaleXlsxFileService {
|
|
|
218
218
|
return cell;
|
|
219
219
|
}
|
|
220
220
|
static ConvertDateToReadableFormat(DateObject) {
|
|
221
|
-
if (!
|
|
221
|
+
if (!tr_utils_1.TrUtils.IsEmpty(DateObject)) {
|
|
222
222
|
let date = new Date(DateObject);
|
|
223
223
|
let Month;
|
|
224
224
|
let Day;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare class ItemsWiseSalesXlsxFileService {
|
|
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 GetItemsWiseSalesExcelData(MainData: any, isSale: boolean, searchValue: any, HeaderName: any): any;
|
|
17
|
+
static setHeadingInCell(HeaderName: any, showSearch: any): void;
|
|
18
|
+
static setInvoiceDetailsInCell(MainData: any): void;
|
|
19
|
+
static SetInvoiceDataInExcel(InvoiceInfo: 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
|
+
static ConvertDateToReadableFormat(DateObject: any): any;
|
|
24
|
+
}
|
|
@@ -25,8 +25,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.ItemsWiseSalesXlsxFileService = 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 ItemsWiseSalesXlsxFileService {
|
|
31
31
|
static GetItemsWiseSalesExcelData(MainData, isSale, searchValue, HeaderName) {
|
|
32
32
|
this.wb = {};
|
|
@@ -42,7 +42,7 @@ class ItemsWiseSalesXlsxFileService {
|
|
|
42
42
|
// MainData = this.GetTotals(MainData, WOTypes);
|
|
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 !== 'DescCntrlId') {
|
|
46
46
|
showSearch.push([{
|
|
47
47
|
text: (key === 'StDate') ? 'Start Date' : (key === 'EnDate') ? 'End Date' : (key === 'DescCntrl') ? 'Item' : key,
|
|
48
48
|
ColRange: 1,
|
|
@@ -209,11 +209,11 @@ class ItemsWiseSalesXlsxFileService {
|
|
|
209
209
|
{ text: InvoiceInfo.Qty, ColRange: 1, IsString: true },
|
|
210
210
|
// { text: InvoiceInfo.CustName, ColRange: 1, IsString: true },
|
|
211
211
|
// { text: Product, ColRange: 1, IsString: false },
|
|
212
|
-
{ text:
|
|
213
|
-
{ text:
|
|
214
|
-
{ text:
|
|
215
|
-
{ text:
|
|
216
|
-
{ text:
|
|
212
|
+
{ text: tr_utils_1.TrUtils.FixPriceValue(InvoiceInfo.UnAmt), ColRange: 1, IsString: false },
|
|
213
|
+
{ text: tr_utils_1.TrUtils.FixPriceValue(InvoiceInfo.Disc), ColRange: 1, IsString: false },
|
|
214
|
+
{ text: tr_utils_1.TrUtils.FixPriceValue(InvoiceInfo.Tax), ColRange: 1, IsString: false },
|
|
215
|
+
{ text: tr_utils_1.TrUtils.FixPriceValue(InvoiceInfo.NetAmt + InvoiceInfo.Tax), ColRange: 1, IsString: false },
|
|
216
|
+
{ text: tr_utils_1.TrUtils.FixPriceValue(InvoiceInfo.AvgPr), ColRange: 1, IsString: false },
|
|
217
217
|
// { text: InvoiceInfo.Items.UnPr, ColRange: 1, IsString: false },
|
|
218
218
|
// { text: InvoiceInfo.Items.UnAmt, ColRange: 1, IsString: false },
|
|
219
219
|
// { text: InvoiceInfo.Items.CGST, ColRange: 1, IsString: false },
|
|
@@ -246,7 +246,7 @@ class ItemsWiseSalesXlsxFileService {
|
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
248
|
if (typeof Text === 'number') {
|
|
249
|
-
return Number(
|
|
249
|
+
return Number(tr_utils_1.TrUtils.FixedTo(Text));
|
|
250
250
|
}
|
|
251
251
|
else {
|
|
252
252
|
return Text;
|
|
@@ -274,7 +274,7 @@ class ItemsWiseSalesXlsxFileService {
|
|
|
274
274
|
return cell;
|
|
275
275
|
}
|
|
276
276
|
static ConvertDateToReadableFormat(DateObject) {
|
|
277
|
-
if (!
|
|
277
|
+
if (!tr_utils_1.TrUtils.IsEmpty(DateObject)) {
|
|
278
278
|
let date = new Date(DateObject);
|
|
279
279
|
let Month;
|
|
280
280
|
let Day;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare class ManfWiseSalesXlsxFileService {
|
|
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 GetManfWiseSalesExcelData(MainData: any, searchValue: any, HeaderName: any, isDetails: boolean): any;
|
|
17
|
+
static GetTotals(MainData: any): any;
|
|
18
|
+
static setHeadingInCell(HeaderName: any, showSearch: any, isDetails: boolean): void;
|
|
19
|
+
static setInvoiceDetailsInCell(MainData: any, isDetails: boolean): void;
|
|
20
|
+
static SetInvoiceDataInExcel(InvoiceInfo: any, isDetails: boolean): void;
|
|
21
|
+
static ConvertToString(Text: any, IsString: any): any;
|
|
22
|
+
static SetDataInCell(Data: any, ColRange: number, RowNum: any): void;
|
|
23
|
+
static getcelltype(cell: any): any;
|
|
24
|
+
}
|
|
@@ -25,8 +25,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.ManfWiseSalesXlsxFileService = 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 ManfWiseSalesXlsxFileService {
|
|
31
31
|
static GetManfWiseSalesExcelData(MainData, searchValue, HeaderName, isDetails) {
|
|
32
32
|
this.wb = {};
|
|
@@ -41,7 +41,7 @@ class ManfWiseSalesXlsxFileService {
|
|
|
41
41
|
this.wb.SheetNames = [];
|
|
42
42
|
let showSearch = [];
|
|
43
43
|
for (const key in searchValue) {
|
|
44
|
-
if (!
|
|
44
|
+
if (!tr_utils_1.TrUtils.IsNull(searchValue[key]) && key !== 'Date' && key !== 'ManfCntrlId' && key !== 'VenCntrlId') {
|
|
45
45
|
showSearch.push([{
|
|
46
46
|
text: (key === 'StDate') ? 'Start Date' : (key === 'EnDate') ? 'End Date' : (key === 'ManfCntrl') ? 'Manufacturer' : (key === 'VenCntrl') ? 'Vendor' : key,
|
|
47
47
|
ColRange: 1,
|
|
@@ -240,7 +240,7 @@ class ManfWiseSalesXlsxFileService {
|
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
242
|
if (typeof Text === 'number') {
|
|
243
|
-
return Number(
|
|
243
|
+
return Number(tr_utils_1.TrUtils.FixedTo(Text));
|
|
244
244
|
}
|
|
245
245
|
else {
|
|
246
246
|
return Text;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare class OperatorWiseDetailsXlsxFileService {
|
|
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 GetOperatorWiseDetailsExcelData(MainData: any, searchValue: any, isSale: boolean): any;
|
|
17
|
+
static setHeadingInCell(isSale: boolean, searchValue: any): void;
|
|
18
|
+
static setInvoiceDetailsInCell(MainData: any): void;
|
|
19
|
+
static SetInvoiceDataInExcel(InvoiceInfo: 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.OperatorWiseDetailsXlsxFileService = 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 OperatorWiseDetailsXlsxFileService {
|
|
31
31
|
static GetOperatorWiseDetailsExcelData(MainData, searchValue, isSale) {
|
|
32
32
|
this.wb = {};
|
|
@@ -42,7 +42,7 @@ class OperatorWiseDetailsXlsxFileService {
|
|
|
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 !== 'DescCntrlId') {
|
|
46
46
|
showSearch.push([{
|
|
47
47
|
text: (key === 'StDate') ? 'Start Date' : (key === 'EnDate') ? 'End Date' : (key === 'DescCntrl') ? 'Item' : key,
|
|
48
48
|
ColRange: 1,
|
|
@@ -229,7 +229,7 @@ class OperatorWiseDetailsXlsxFileService {
|
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
231
|
if (typeof Text === 'number') {
|
|
232
|
-
return Number(
|
|
232
|
+
return Number(tr_utils_1.TrUtils.FixedTo(Text));
|
|
233
233
|
}
|
|
234
234
|
else {
|
|
235
235
|
return Text;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare class OperatorWiseSummaryXlsxFileService {
|
|
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 GetOperatorWiseSummaryExcelData(MainData: any, searchValue: any, HeaderName: any): any;
|
|
17
|
+
static setHeadingInCell(HeaderName: any, searchValue: any): void;
|
|
18
|
+
static setInvoiceDetailsInCell(MainData: any): void;
|
|
19
|
+
static SetInvoiceDataInExcel(InvoiceInfo: 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.OperatorWiseSummaryXlsxFileService = 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 OperatorWiseSummaryXlsxFileService {
|
|
31
31
|
static GetOperatorWiseSummaryExcelData(MainData, searchValue, HeaderName) {
|
|
32
32
|
this.wb = {};
|
|
@@ -42,7 +42,7 @@ class OperatorWiseSummaryXlsxFileService {
|
|
|
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 !== 'DescCntrlId') {
|
|
46
46
|
showSearch.push([{
|
|
47
47
|
text: (key === 'StDate') ? 'Start Date' : (key === 'EnDate') ? 'End Date' : (key === 'DescCntrl') ? 'Item' : key,
|
|
48
48
|
ColRange: 1,
|
|
@@ -230,7 +230,7 @@ class OperatorWiseSummaryXlsxFileService {
|
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
232
|
if (typeof Text === 'number') {
|
|
233
|
-
return Number(
|
|
233
|
+
return Number(tr_utils_1.TrUtils.FixedTo(Text));
|
|
234
234
|
}
|
|
235
235
|
else {
|
|
236
236
|
return Text;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare class ServiceAdvisorWiseLaborXlsxFileService {
|
|
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 GetServiceAdvisorLaborsExcelData(MainData: any): any;
|
|
17
|
+
static setHeadingInCell(): void;
|
|
18
|
+
static setWorkOrderDetailsInCell(MainData: any): void;
|
|
19
|
+
static SetWorkOrderDataInExcel(WorkOrder: any, index: 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.ServiceAdvisorWiseLaborXlsxFileService = 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 ServiceAdvisorWiseLaborXlsxFileService {
|
|
31
31
|
static GetServiceAdvisorLaborsExcelData(MainData) {
|
|
32
32
|
this.wb = {};
|
|
@@ -147,9 +147,9 @@ class ServiceAdvisorWiseLaborXlsxFileService {
|
|
|
147
147
|
static SetWorkOrderDataInExcel(WorkOrder, index) {
|
|
148
148
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
149
149
|
WorkOrder.CrDate = my_date_1.MyDate.ConvertUTCDateToReadable(WorkOrder.CrDate);
|
|
150
|
-
WorkOrder.Discount =
|
|
151
|
-
WorkOrder.Tax =
|
|
152
|
-
WorkOrder.Total =
|
|
150
|
+
WorkOrder.Discount = tr_utils_1.TrUtils.FixPriceValue(tr_utils_1.TrUtils.SetValueToZeroIfNull((_a = WorkOrder.Ops) === null || _a === void 0 ? void 0 : _a.Disc) + tr_utils_1.TrUtils.SetValueToZeroIfNull((_b = WorkOrder.Ops) === null || _b === void 0 ? void 0 : _b.RecDisc));
|
|
151
|
+
WorkOrder.Tax = tr_utils_1.TrUtils.FixPriceValue(((_c = WorkOrder.Ops) === null || _c === void 0 ? void 0 : _c.CGST) + ((_d = WorkOrder.Ops) === null || _d === void 0 ? void 0 : _d.SGST) + ((_e = WorkOrder.Ops) === null || _e === void 0 ? void 0 : _e.IGST));
|
|
152
|
+
WorkOrder.Total = tr_utils_1.TrUtils.FixPriceValue(((_f = WorkOrder.Ops) === null || _f === void 0 ? void 0 : _f.NetAmt) + Number(WorkOrder.Tax));
|
|
153
153
|
// if(!TrUtils.IsNull(WorkOrder.Prod) && !TrUtils.IsNull(WorkOrder.Prod.DDate)){
|
|
154
154
|
// WorkOrder.Prod.DDate= TrUtils.ConvertDateToReadableFormat(WorkOrder.Prod.DDate);
|
|
155
155
|
// }else{
|
|
@@ -196,7 +196,7 @@ class ServiceAdvisorWiseLaborXlsxFileService {
|
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
198
|
if (typeof Text === 'number') {
|
|
199
|
-
return Number(
|
|
199
|
+
return Number(tr_utils_1.TrUtils.FixedTo(Text));
|
|
200
200
|
}
|
|
201
201
|
else {
|
|
202
202
|
return Text;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare class ServiceAdvisorWisePartXlsxFileService {
|
|
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 GetServiceAdvisorPartsExcelData(MainData: any): any;
|
|
17
|
+
static setHeadingInCell(): void;
|
|
18
|
+
static setWorkOrderDetailsInCell(MainData: any): void;
|
|
19
|
+
static SetWorkOrderDataInExcel(WorkOrder: any, index: 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.ServiceAdvisorWisePartXlsxFileService = 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 ServiceAdvisorWisePartXlsxFileService {
|
|
31
31
|
static GetServiceAdvisorPartsExcelData(MainData) {
|
|
32
32
|
this.wb = {};
|
|
@@ -147,9 +147,9 @@ class ServiceAdvisorWisePartXlsxFileService {
|
|
|
147
147
|
static SetWorkOrderDataInExcel(WorkOrder, index) {
|
|
148
148
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
149
149
|
WorkOrder.CrDate = my_date_1.MyDate.ConvertUTCDateToReadable(WorkOrder.CrDate);
|
|
150
|
-
WorkOrder.Discount =
|
|
151
|
-
WorkOrder.Tax =
|
|
152
|
-
WorkOrder.Total =
|
|
150
|
+
WorkOrder.Discount = tr_utils_1.TrUtils.FixPriceValue(tr_utils_1.TrUtils.SetValueToZeroIfNull((_a = WorkOrder.Items) === null || _a === void 0 ? void 0 : _a.Disc) + tr_utils_1.TrUtils.SetValueToZeroIfNull((_b = WorkOrder.Items) === null || _b === void 0 ? void 0 : _b.RecDisc));
|
|
151
|
+
WorkOrder.Tax = tr_utils_1.TrUtils.FixPriceValue(((_c = WorkOrder.Items) === null || _c === void 0 ? void 0 : _c.CGST) + ((_d = WorkOrder.Items) === null || _d === void 0 ? void 0 : _d.SGST) + ((_e = WorkOrder.Items) === null || _e === void 0 ? void 0 : _e.IGST));
|
|
152
|
+
WorkOrder.Total = tr_utils_1.TrUtils.FixPriceValue(((_f = WorkOrder.Items) === null || _f === void 0 ? void 0 : _f.NetAmt) + Number(WorkOrder.Tax));
|
|
153
153
|
// if(!TrUtils.IsNull(WorkOrder.Prod) && !TrUtils.IsNull(WorkOrder.Prod.DDate)){
|
|
154
154
|
// WorkOrder.Prod.DDate= TrUtils.ConvertDateToReadableFormat(WorkOrder.Prod.DDate);
|
|
155
155
|
// }else{
|
|
@@ -196,7 +196,7 @@ class ServiceAdvisorWisePartXlsxFileService {
|
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
198
|
if (typeof Text === 'number') {
|
|
199
|
-
return Number(
|
|
199
|
+
return Number(tr_utils_1.TrUtils.FixedTo(Text));
|
|
200
200
|
}
|
|
201
201
|
else {
|
|
202
202
|
return Text;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare class SummaryXlsxFileService {
|
|
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 setHeadingInCell(): void;
|
|
19
|
+
static setInvoiceDetailsInCell(MainData: any): void;
|
|
20
|
+
static SetInvoiceDataInExcel(InvoiceInfo: any): void;
|
|
21
|
+
static ConvertToString(Text: any, IsString: any): any;
|
|
22
|
+
static SetDataInCell(Data: any, ColRange: number, RowNum: any): void;
|
|
23
|
+
static getcelltype(cell: any): any;
|
|
24
|
+
static ConvertDateToReadableFormat(DateObject: any): any;
|
|
25
|
+
}
|
|
@@ -25,7 +25,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.SummaryXlsxFileService = void 0;
|
|
27
27
|
const XLSX = __importStar(require("xlsx"));
|
|
28
|
-
const
|
|
28
|
+
const tr_utils_1 = require("../../../utils/tr-utils");
|
|
29
29
|
class SummaryXlsxFileService {
|
|
30
30
|
static GetInvoiceWiseExcelData(MainData, WOTypes) {
|
|
31
31
|
this.wb = {};
|
|
@@ -258,7 +258,7 @@ class SummaryXlsxFileService {
|
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
260
|
if (typeof Text === 'number') {
|
|
261
|
-
return Number(
|
|
261
|
+
return Number(tr_utils_1.TrUtils.FixedTo(Text));
|
|
262
262
|
}
|
|
263
263
|
else {
|
|
264
264
|
return Text;
|
|
@@ -286,7 +286,7 @@ class SummaryXlsxFileService {
|
|
|
286
286
|
return cell;
|
|
287
287
|
}
|
|
288
288
|
static ConvertDateToReadableFormat(DateObject) {
|
|
289
|
-
if (!
|
|
289
|
+
if (!tr_utils_1.TrUtils.IsEmpty(DateObject)) {
|
|
290
290
|
let date = new Date(DateObject);
|
|
291
291
|
let Month;
|
|
292
292
|
let Day;
|