shareneus 1.4.49 → 1.4.51
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.js +1 -1
- package/dist/accounting/counter-sales/sales-receipt-pdf.service.js +1 -1
- package/dist/accounting/counter-sales/sales-receipt-print.service.js +1 -1
- package/dist/accounting/credit-note/credit-note-pdf.service.js +1 -1
- package/dist/accounting/debit-note/debit-note-print.service.js +1 -1
- package/dist/accounting/invoice/inv-pdf.service.js +13 -12
- package/dist/accounting/invoice/inv-print.service.js +6 -6
- package/dist/accounting/invoice/invoice-landscape-pdf.service.d.ts +1 -1
- package/dist/accounting/invoice/invoice-landscape-pdf.service.js +7 -6
- package/dist/accounting/invoice/invoice-letterhead-pdf.service.js +13 -12
- package/dist/accounting/invoice/invoice-portrait-pdf.d.ts +5 -5
- package/dist/accounting/invoice/invoice-portrait-pdf.js +31 -30
- package/dist/accounting/invoice/invoice-total.service.js +1 -1
- package/dist/accounting/invoice/reports/excel/analysis-excel.service.d.ts +3 -3
- package/dist/accounting/invoice/reports/excel/analysis-excel.service.js +8 -7
- package/dist/accounting/invoice/reports/excel/category-wise-item-excel.service.d.ts +4 -4
- package/dist/accounting/invoice/reports/excel/category-wise-item-excel.service.js +14 -14
- package/dist/accounting/invoice/reports/excel/cust-wise-sales-details.d.ts +4 -4
- package/dist/accounting/invoice/reports/excel/cust-wise-sales-details.js +8 -8
- package/dist/accounting/invoice/reports/excel/cust-wise-sales-summary-excel.service.d.ts +4 -4
- package/dist/accounting/invoice/reports/excel/cust-wise-sales-summary-excel.service.js +8 -8
- package/dist/accounting/invoice/reports/excel/invoice-wise-excel.service.d.ts +4 -4
- package/dist/accounting/invoice/reports/excel/invoice-wise-excel.service.js +8 -8
- package/dist/accounting/invoice/reports/excel/item-wise-doctor-sale-excel.service.d.ts +4 -4
- package/dist/accounting/invoice/reports/excel/item-wise-doctor-sale-excel.service.js +10 -10
- package/dist/accounting/invoice/reports/excel/items-wise-sales-excel.service.d.ts +4 -4
- package/dist/accounting/invoice/reports/excel/items-wise-sales-excel.service.js +14 -13
- package/dist/accounting/invoice/reports/excel/manf-wise-sales-excel.service.d.ts +4 -4
- package/dist/accounting/invoice/reports/excel/manf-wise-sales-excel.service.js +8 -8
- package/dist/accounting/invoice/reports/excel/operator-wise-details.d.ts +4 -4
- package/dist/accounting/invoice/reports/excel/operator-wise-details.js +8 -8
- package/dist/accounting/invoice/reports/excel/operator-wise-summary.d.ts +4 -4
- package/dist/accounting/invoice/reports/excel/operator-wise-summary.js +8 -8
- package/dist/accounting/invoice/reports/excel/sa-wise-labor-sales-excel.service.d.ts +4 -4
- package/dist/accounting/invoice/reports/excel/sa-wise-labor-sales-excel.service.js +12 -11
- package/dist/accounting/invoice/reports/excel/sa-wise-part-sales-excel.service.d.ts +4 -4
- package/dist/accounting/invoice/reports/excel/sa-wise-part-sales-excel.service.js +12 -11
- package/dist/accounting/invoice/reports/excel/sale-summary-excel.service.d.ts +4 -4
- package/dist/accounting/invoice/reports/excel/sale-summary-excel.service.js +11 -10
- package/dist/accounting/invoice/reports/excel/sales-by-service-summary-excel.service.d.ts +4 -4
- package/dist/accounting/invoice/reports/excel/sales-by-service-summary-excel.service.js +19 -18
- package/dist/accounting/invoice/reports/excel/scheduled-drug-summary-excel.service.d.ts +4 -4
- package/dist/accounting/invoice/reports/excel/scheduled-drug-summary-excel.service.js +11 -11
- package/dist/accounting/invoice/reports/excel/scheduled-drugs-excel.service.d.ts +4 -4
- package/dist/accounting/invoice/reports/excel/scheduled-drugs-excel.service.js +11 -11
- package/dist/accounting/invoice/reports/pdf/analysis-pdf.service.d.ts +3 -3
- package/dist/accounting/invoice/reports/pdf/analysis-pdf.service.js +13 -12
- package/dist/accounting/invoice/reports/pdf/category-wise-item-pdf.service.d.ts +4 -4
- package/dist/accounting/invoice/reports/pdf/category-wise-item-pdf.service.js +14 -13
- package/dist/accounting/invoice/reports/pdf/cust-wise-sales-details-pdf.service.d.ts +4 -4
- package/dist/accounting/invoice/reports/pdf/cust-wise-sales-details-pdf.service.js +15 -14
- package/dist/accounting/invoice/reports/pdf/cust-wise-sales-summary-pdf.service.d.ts +4 -4
- package/dist/accounting/invoice/reports/pdf/cust-wise-sales-summary-pdf.service.js +15 -14
- package/dist/accounting/invoice/reports/pdf/item-wise-doctor-sale-pdf.service.d.ts +4 -4
- package/dist/accounting/invoice/reports/pdf/item-wise-doctor-sale-pdf.service.js +10 -10
- package/dist/accounting/invoice/reports/pdf/item-wise-sales-pdf.service.d.ts +4 -4
- package/dist/accounting/invoice/reports/pdf/item-wise-sales-pdf.service.js +15 -14
- package/dist/accounting/invoice/reports/pdf/manf-wise-sales-pdf.service.d.ts +4 -4
- package/dist/accounting/invoice/reports/pdf/manf-wise-sales-pdf.service.js +13 -12
- package/dist/accounting/invoice/reports/pdf/operator-wise-details-pdf.service.d.ts +4 -4
- package/dist/accounting/invoice/reports/pdf/operator-wise-details-pdf.service.js +14 -14
- package/dist/accounting/invoice/reports/pdf/operator-wise-summary-pdf.d.ts +4 -4
- package/dist/accounting/invoice/reports/pdf/operator-wise-summary-pdf.js +14 -14
- package/dist/accounting/invoice/reports/pdf/sales-by-service-pdf.service.d.ts +4 -4
- package/dist/accounting/invoice/reports/pdf/sales-by-service-pdf.service.js +14 -13
- package/dist/accounting/invoice/reports/pdf/scheduled-drug-pdf.service.d.ts +4 -4
- package/dist/accounting/invoice/reports/pdf/scheduled-drug-pdf.service.js +8 -8
- package/dist/accounting/invoice/reports/pdf/scheduled-drug-summary-pdf.service.d.ts +4 -4
- package/dist/accounting/invoice/reports/pdf/scheduled-drug-summary-pdf.service.js +12 -11
- package/dist/accounting/invoice/shared-inv-pdf.service.js +1 -1
- package/dist/accounting/payment-receive/reports/excel/cust-balance-excel.service.d.ts +4 -4
- package/dist/accounting/payment-receive/reports/excel/cust-balance-excel.service.js +9 -9
- package/dist/accounting/payment-receive/reports/excel/payment-receive-excel.service.d.ts +5 -5
- package/dist/accounting/payment-receive/reports/excel/payment-receive-excel.service.js +11 -11
- package/dist/accounting/payment-receive/reports/pdf/customer-balances-pdf.service.d.ts +3 -3
- package/dist/accounting/payment-receive/reports/pdf/customer-balances-pdf.service.js +10 -10
- package/dist/accounting/payment-receive/reports/pdf/payment-report-pdf.service.d.ts +3 -3
- package/dist/accounting/payment-receive/reports/pdf/payment-report-pdf.service.js +7 -7
- package/dist/appointments/consultations/consultation-fee-receipt.service.d.ts +1 -1
- package/dist/appointments/consultations/consultation-fee-receipt.service.js +4 -4
- package/dist/gst/excel/GSTR-RO-excel.service.d.ts +4 -4
- package/dist/gst/excel/GSTR-RO-excel.service.js +8 -8
- package/dist/gst/excel/GSTR1-excel.service.d.ts +4 -4
- package/dist/gst/excel/GSTR1-excel.service.js +10 -10
- package/dist/gst/excel/GSTR2-excel.service.d.ts +4 -4
- package/dist/gst/excel/GSTR2-excel.service.js +9 -9
- package/dist/gst/excel/tally-sales-import.service.d.ts +4 -4
- package/dist/gst/excel/tally-sales-import.service.js +8 -8
- package/dist/inventory/items/issue-parts-pdf.service.d.ts +6 -6
- package/dist/inventory/items/issue-parts-pdf.service.js +33 -33
- package/dist/inventory/items/reports/excel/expiring-drugs-excel.service.d.ts +4 -4
- package/dist/inventory/items/reports/excel/expiring-drugs-excel.service.js +11 -10
- package/dist/inventory/items/reports/excel/item-wise-mout-details.d.ts +4 -4
- package/dist/inventory/items/reports/excel/item-wise-mout-details.js +8 -8
- package/dist/inventory/items/reports/excel/item-wise-mout-summary.d.ts +4 -4
- package/dist/inventory/items/reports/excel/item-wise-mout-summary.js +8 -8
- package/dist/inventory/items/reports/excel/spares-issue-excel.service.d.ts +4 -4
- package/dist/inventory/items/reports/excel/spares-issue-excel.service.js +12 -12
- package/dist/inventory/items/reports/excel/stock-excel.service.d.ts +4 -4
- package/dist/inventory/items/reports/excel/stock-excel.service.js +8 -8
- package/dist/inventory/items/reports/pdf/expiring-drugs-pdf.service.d.ts +2 -2
- package/dist/inventory/items/reports/pdf/expiring-drugs-pdf.service.js +8 -7
- package/dist/inventory/items/reports/pdf/item-wise-mout-details-pdf.d.ts +4 -4
- package/dist/inventory/items/reports/pdf/item-wise-mout-details-pdf.js +9 -9
- package/dist/inventory/items/reports/pdf/item-wise-mout-summary-pdf.d.ts +4 -4
- package/dist/inventory/items/reports/pdf/item-wise-mout-summary-pdf.js +9 -9
- package/dist/purchases/payment-made/reports/excel/payments-made-excel.service.d.ts +4 -4
- package/dist/purchases/payment-made/reports/excel/payments-made-excel.service.js +9 -9
- package/dist/purchases/payment-made/reports/excel/ven-balance-excel.service.d.ts +6 -6
- package/dist/purchases/payment-made/reports/excel/ven-balance-excel.service.js +14 -14
- package/dist/purchases/payment-made/reports/pdf/vendor-balances-pdf.service.d.ts +3 -3
- package/dist/purchases/payment-made/reports/pdf/vendor-balances-pdf.service.js +8 -8
- package/dist/purchases/purchase-order/purchase-order-pdf.service.js +5 -5
- package/dist/purchases/purchase-order/purchase-order-print.service.d.ts +2 -2
- package/dist/purchases/purchase-order/purchase-order-print.service.js +25 -25
- package/dist/purchases/vendor-credit-note/vendor-credit-note-pdf.service.js +1 -1
- package/dist/purchases/vendor-credit-note/vendor-credit-note-print.service.d.ts +1 -1
- package/dist/purchases/vendor-credit-note/vendor-credit-note-print.service.js +20 -20
- package/dist/purchases/vendor-credit-note/vendor-credit-note-totals.service.d.ts +8 -8
- package/dist/purchases/vendor-credit-note/vendor-credit-note-totals.service.js +31 -32
- package/dist/purchases/vendor-debit-note/vendor-debit-note-pdf.service.js +1 -1
- package/dist/purchases/vendor-debit-note/vendor-debit-note-totals.service.d.ts +6 -6
- package/dist/purchases/vendor-debit-note/vendor-debit-note-totals.service.js +19 -19
- package/dist/sales/delivery-challan/dc-landscape-pdf.service.d.ts +1 -1
- package/dist/sales/delivery-challan/dc-landscape-pdf.service.js +7 -6
- package/dist/sales/delivery-challan/delivery-challan-print.service.js +2 -2
- package/dist/sales/delivery-challan/delivery-challan-totals.d.ts +6 -6
- package/dist/sales/delivery-challan/delivery-challan-totals.js +20 -20
- package/dist/sales/sales/sales-pdf.service.js +1 -1
- package/dist/sales/sales/sales-print.service.js +7 -7
- package/dist/sales/sales/sales-totals.service.d.ts +6 -6
- package/dist/sales/sales/sales-totals.service.js +19 -19
- package/dist/services/est.print-service.js +1 -1
- package/dist/services/reports/excel/insurance-expire-excel.service.d.ts +4 -4
- package/dist/services/reports/excel/insurance-expire-excel.service.js +8 -8
- package/dist/services/reports/excel/next-service-date-excel.service.d.ts +4 -4
- package/dist/services/reports/excel/next-service-date-excel.service.js +8 -8
- package/dist/services/reports/excel/repair-orders-excel.service.d.ts +5 -5
- package/dist/services/reports/excel/repair-orders-excel.service.js +11 -11
- package/dist/services/reports/pdf/repair-orders-pdf.service.d.ts +4 -4
- package/dist/services/reports/pdf/repair-orders-pdf.service.js +9 -9
- package/dist/services/ro-pdf.service.js +2 -2
- package/dist/services/ro-print-service.js +1 -1
- package/dist/services/ro-totals.service.d.ts +11 -11
- package/dist/services/ro-totals.service.js +50 -50
- package/dist/services/separate-wo-print.service.js +1 -1
- package/dist/shared/shared-pdf.service.d.ts +3 -3
- package/dist/shared/shared-pdf.service.js +31 -30
- package/dist/utils/tr-utils.d.ts +1 -1
- package/dist/utils/tr-utils.js +3 -2
- package/package.json +1 -1
|
@@ -13,11 +13,11 @@ export declare class InsuranceExpireXlsxFileService {
|
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
15
|
static ws: any;
|
|
16
|
-
static GetInsuranceExpireExcelData(MainData: any, searchValue: any, HeaderName: any): any;
|
|
16
|
+
static GetInsuranceExpireExcelData(MainData: any, searchValue: any, HeaderName: any, EntitySettings: any): any;
|
|
17
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;
|
|
18
|
+
static setInvoiceDetailsInCell(MainData: any, DecimalsNumber: number): void;
|
|
19
|
+
static SetInvoiceDataInExcel(InvoiceInfo: any, DecimalsNumber: number): void;
|
|
20
|
+
static ConvertToString(Text: any, IsString: any, DecimalsNumber: number): any;
|
|
21
21
|
static SetDataInCell(Data: any, ColRange: number, RowNum: any): void;
|
|
22
22
|
static getcelltype(cell: any): any;
|
|
23
23
|
}
|
|
@@ -28,7 +28,7 @@ const XLSX = __importStar(require("xlsx"));
|
|
|
28
28
|
const my_date_1 = require("../../../utils/my-date");
|
|
29
29
|
const tr_utils_1 = require("../../../utils/tr-utils");
|
|
30
30
|
class InsuranceExpireXlsxFileService {
|
|
31
|
-
static GetInsuranceExpireExcelData(MainData, searchValue, HeaderName) {
|
|
31
|
+
static GetInsuranceExpireExcelData(MainData, searchValue, HeaderName, EntitySettings) {
|
|
32
32
|
this.wb = {};
|
|
33
33
|
this.ws = {};
|
|
34
34
|
this.Row = 0;
|
|
@@ -66,7 +66,7 @@ class InsuranceExpireXlsxFileService {
|
|
|
66
66
|
// console.log(`${key}: ${searchValue[key]}`);
|
|
67
67
|
}
|
|
68
68
|
this.setHeadingInCell(HeaderName, showSearch);
|
|
69
|
-
this.setInvoiceDetailsInCell(MainData);
|
|
69
|
+
this.setInvoiceDetailsInCell(MainData, EntitySettings.DecimalsNumber);
|
|
70
70
|
this.ws['!ref'] = XLSX.utils.encode_range(this.range);
|
|
71
71
|
this.ws['!merges'] = this.MergeArray;
|
|
72
72
|
this.ws["!cols"] = [{ wch: 15 }, { wch: 15 }, { wch: 30 }, { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 20 }];
|
|
@@ -217,12 +217,12 @@ class InsuranceExpireXlsxFileService {
|
|
|
217
217
|
});
|
|
218
218
|
this.Row += 2;
|
|
219
219
|
}
|
|
220
|
-
static setInvoiceDetailsInCell(MainData) {
|
|
220
|
+
static setInvoiceDetailsInCell(MainData, DecimalsNumber) {
|
|
221
221
|
MainData.forEach((InvoiceList) => {
|
|
222
|
-
this.SetInvoiceDataInExcel(InvoiceList);
|
|
222
|
+
this.SetInvoiceDataInExcel(InvoiceList, DecimalsNumber);
|
|
223
223
|
});
|
|
224
224
|
}
|
|
225
|
-
static SetInvoiceDataInExcel(InvoiceInfo) {
|
|
225
|
+
static SetInvoiceDataInExcel(InvoiceInfo, DecimalsNumber) {
|
|
226
226
|
var _a, _b, _c, _d, _e, _f;
|
|
227
227
|
// InvoiceInfo.Date = TrUtils.ConvertDateToReadableFormat(InvoiceInfo.CrDate);
|
|
228
228
|
let Vehicle = InvoiceInfo.Make + ' ' + InvoiceInfo.Model + ' ' + InvoiceInfo.Var + ' ' + InvoiceInfo.Year;
|
|
@@ -243,7 +243,7 @@ class InsuranceExpireXlsxFileService {
|
|
|
243
243
|
];
|
|
244
244
|
let ColStart = 0;
|
|
245
245
|
InvoiceData.forEach((InvData) => {
|
|
246
|
-
InvData.text = this.ConvertToString(InvData.text, InvData.IsString);
|
|
246
|
+
InvData.text = this.ConvertToString(InvData.text, InvData.IsString, DecimalsNumber);
|
|
247
247
|
this.SetDataInCell(InvData.text, ColStart, this.Row);
|
|
248
248
|
this.MergeArray.push({
|
|
249
249
|
s: { r: this.Row, c: ColStart },
|
|
@@ -253,7 +253,7 @@ class InsuranceExpireXlsxFileService {
|
|
|
253
253
|
});
|
|
254
254
|
this.Row += 1;
|
|
255
255
|
}
|
|
256
|
-
static ConvertToString(Text, IsString) {
|
|
256
|
+
static ConvertToString(Text, IsString, DecimalsNumber) {
|
|
257
257
|
if (IsString) {
|
|
258
258
|
if (Text == null) {
|
|
259
259
|
Text = '';
|
|
@@ -265,7 +265,7 @@ class InsuranceExpireXlsxFileService {
|
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
267
|
if (typeof Text === 'number') {
|
|
268
|
-
return Number(tr_utils_1.TrUtils.FixedTo(Text));
|
|
268
|
+
return Number(tr_utils_1.TrUtils.FixedTo(Text, DecimalsNumber));
|
|
269
269
|
}
|
|
270
270
|
else {
|
|
271
271
|
return Text;
|
|
@@ -13,13 +13,13 @@ export declare class NextServiceDateXlsxFileService {
|
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
15
|
static ws: any;
|
|
16
|
-
static GetNextServiceDateExcelData(MainData: any, searchValue: any, HeaderName: any, isDetails: boolean): any;
|
|
16
|
+
static GetNextServiceDateExcelData(MainData: any, searchValue: any, HeaderName: any, isDetails: boolean, EntitySettings: any): any;
|
|
17
17
|
static GetTotals(MainData: any): any;
|
|
18
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;
|
|
19
|
+
static setInvoiceDetailsInCell(MainData: any, isDetails: boolean, DecimalsNumber: number): void;
|
|
20
|
+
static SetInvoiceDataInExcel(InvoiceInfo: any, isDetails: boolean, DecimalsNumber: number): void;
|
|
21
21
|
static ConvertDateToReadableFormat(DateObject: any): any;
|
|
22
|
-
static ConvertToString(Text: any, IsString: any): any;
|
|
22
|
+
static ConvertToString(Text: any, IsString: any, DecimalsNumber: number): any;
|
|
23
23
|
static SetDataInCell(Data: any, ColRange: number, RowNum: any): void;
|
|
24
24
|
static getcelltype(cell: any): any;
|
|
25
25
|
}
|
|
@@ -28,7 +28,7 @@ const XLSX = __importStar(require("xlsx"));
|
|
|
28
28
|
const my_date_1 = require("../../../utils/my-date");
|
|
29
29
|
const tr_utils_1 = require("../../../utils/tr-utils");
|
|
30
30
|
class NextServiceDateXlsxFileService {
|
|
31
|
-
static GetNextServiceDateExcelData(MainData, searchValue, HeaderName, isDetails) {
|
|
31
|
+
static GetNextServiceDateExcelData(MainData, searchValue, HeaderName, isDetails, EntitySettings) {
|
|
32
32
|
this.wb = {};
|
|
33
33
|
this.ws = {};
|
|
34
34
|
this.Row = 0;
|
|
@@ -66,7 +66,7 @@ class NextServiceDateXlsxFileService {
|
|
|
66
66
|
}
|
|
67
67
|
MainData = this.GetTotals(MainData);
|
|
68
68
|
this.setHeadingInCell(HeaderName, showSearch, isDetails);
|
|
69
|
-
this.setInvoiceDetailsInCell(MainData, isDetails);
|
|
69
|
+
this.setInvoiceDetailsInCell(MainData, isDetails, EntitySettings.DecimalsNumber);
|
|
70
70
|
this.ws['!ref'] = XLSX.utils.encode_range(this.range);
|
|
71
71
|
this.ws['!merges'] = this.MergeArray;
|
|
72
72
|
this.ws["!cols"] = [{ wch: 50 }, { wch: 10 }, { wch: 10 }, { wch: 10 }, { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 20 }];
|
|
@@ -189,12 +189,12 @@ class NextServiceDateXlsxFileService {
|
|
|
189
189
|
});
|
|
190
190
|
this.Row += 2;
|
|
191
191
|
}
|
|
192
|
-
static setInvoiceDetailsInCell(MainData, isDetails) {
|
|
192
|
+
static setInvoiceDetailsInCell(MainData, isDetails, DecimalsNumber) {
|
|
193
193
|
MainData.forEach((InvoiceList) => {
|
|
194
|
-
this.SetInvoiceDataInExcel(InvoiceList, isDetails);
|
|
194
|
+
this.SetInvoiceDataInExcel(InvoiceList, isDetails, DecimalsNumber);
|
|
195
195
|
});
|
|
196
196
|
}
|
|
197
|
-
static SetInvoiceDataInExcel(InvoiceInfo, isDetails) {
|
|
197
|
+
static SetInvoiceDataInExcel(InvoiceInfo, isDetails, DecimalsNumber) {
|
|
198
198
|
var _a;
|
|
199
199
|
InvoiceInfo.LSDate = this.ConvertDateToReadableFormat(InvoiceInfo.LSDate);
|
|
200
200
|
InvoiceInfo.NSDate = this.ConvertDateToReadableFormat(InvoiceInfo.NSDate);
|
|
@@ -210,7 +210,7 @@ class NextServiceDateXlsxFileService {
|
|
|
210
210
|
];
|
|
211
211
|
let ColStart = 0;
|
|
212
212
|
InvoiceData.forEach((InvData) => {
|
|
213
|
-
InvData.text = this.ConvertToString(InvData.text, InvData.IsString);
|
|
213
|
+
InvData.text = this.ConvertToString(InvData.text, InvData.IsString, DecimalsNumber);
|
|
214
214
|
this.SetDataInCell(InvData.text, ColStart, this.Row);
|
|
215
215
|
this.MergeArray.push({
|
|
216
216
|
s: { r: this.Row, c: ColStart },
|
|
@@ -252,7 +252,7 @@ class NextServiceDateXlsxFileService {
|
|
|
252
252
|
return null;
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
|
-
static ConvertToString(Text, IsString) {
|
|
255
|
+
static ConvertToString(Text, IsString, DecimalsNumber) {
|
|
256
256
|
if (IsString) {
|
|
257
257
|
if (Text == null) {
|
|
258
258
|
Text = '';
|
|
@@ -264,7 +264,7 @@ class NextServiceDateXlsxFileService {
|
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
266
|
if (typeof Text === 'number') {
|
|
267
|
-
return Number(tr_utils_1.TrUtils.FixedTo(Text));
|
|
267
|
+
return Number(tr_utils_1.TrUtils.FixedTo(Text, DecimalsNumber));
|
|
268
268
|
}
|
|
269
269
|
else {
|
|
270
270
|
return Text;
|
|
@@ -13,12 +13,12 @@ export declare class RepairOrdersXlsxFileService {
|
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
15
|
static ws: any;
|
|
16
|
-
static GetRepairOrdersExcelData(MainData: any): any;
|
|
17
|
-
static GetTotals(MainData: any): any;
|
|
16
|
+
static GetRepairOrdersExcelData(MainData: any, EntitySettings: any): any;
|
|
17
|
+
static GetTotals(MainData: any, DecimalsNumber: number): any;
|
|
18
18
|
static setHeadingInCell(): void;
|
|
19
|
-
static setWorkOrderDetailsInCell(MainData: any): void;
|
|
20
|
-
static SetWorkOrderDataInExcel(WorkOrder: any, index: any): void;
|
|
21
|
-
static ConvertToString(Text: any, IsString: any): any;
|
|
19
|
+
static setWorkOrderDetailsInCell(MainData: any, DecimalsNumber: number): void;
|
|
20
|
+
static SetWorkOrderDataInExcel(WorkOrder: any, index: any, DecimalsNumber: number): void;
|
|
21
|
+
static ConvertToString(Text: any, IsString: any, DecimalsNumber: number): any;
|
|
22
22
|
static SetDataInCell(Data: any, ColRange: number, RowNum: any): void;
|
|
23
23
|
static getcelltype(cell: any): any;
|
|
24
24
|
}
|
|
@@ -28,7 +28,7 @@ const XLSX = __importStar(require("xlsx"));
|
|
|
28
28
|
const my_date_1 = require("../../../utils/my-date");
|
|
29
29
|
const tr_utils_1 = require("../../../utils/tr-utils");
|
|
30
30
|
class RepairOrdersXlsxFileService {
|
|
31
|
-
static GetRepairOrdersExcelData(MainData) {
|
|
31
|
+
static GetRepairOrdersExcelData(MainData, EntitySettings) {
|
|
32
32
|
this.wb = {};
|
|
33
33
|
this.ws = {};
|
|
34
34
|
this.Row = 0;
|
|
@@ -39,16 +39,16 @@ class RepairOrdersXlsxFileService {
|
|
|
39
39
|
this.wb.Props = {};
|
|
40
40
|
this.wb.SSF = {};
|
|
41
41
|
this.wb.SheetNames = [];
|
|
42
|
-
MainData = this.GetTotals(MainData);
|
|
42
|
+
MainData = this.GetTotals(MainData, EntitySettings.DecimalsNumber);
|
|
43
43
|
this.setHeadingInCell();
|
|
44
|
-
this.setWorkOrderDetailsInCell(MainData);
|
|
44
|
+
this.setWorkOrderDetailsInCell(MainData, EntitySettings.DecimalsNumber);
|
|
45
45
|
this.ws['!ref'] = XLSX.utils.encode_range(this.range);
|
|
46
46
|
this.ws['!merges'] = this.MergeArray;
|
|
47
47
|
this.wb.SheetNames.push(ws_name);
|
|
48
48
|
this.wb.Sheets[ws_name] = this.ws;
|
|
49
49
|
return this.wb;
|
|
50
50
|
}
|
|
51
|
-
static GetTotals(MainData) {
|
|
51
|
+
static GetTotals(MainData, DecimalsNumber) {
|
|
52
52
|
MainData.forEach((WorkOrder) => {
|
|
53
53
|
var _a;
|
|
54
54
|
if (tr_utils_1.TrUtils.IsNull((_a = WorkOrder.Prod) === null || _a === void 0 ? void 0 : _a.VIN)) {
|
|
@@ -67,7 +67,7 @@ class RepairOrdersXlsxFileService {
|
|
|
67
67
|
WorkOrder.TypeName = WorkOrder.WOType.Name;
|
|
68
68
|
}
|
|
69
69
|
if (!tr_utils_1.TrUtils.IsNull(WorkOrder.Total)) {
|
|
70
|
-
WorkOrder.Total = tr_utils_1.TrUtils.FixPriceValue(WorkOrder.Total);
|
|
70
|
+
WorkOrder.Total = tr_utils_1.TrUtils.FixPriceValue(WorkOrder.Total, DecimalsNumber);
|
|
71
71
|
}
|
|
72
72
|
else {
|
|
73
73
|
WorkOrder.Total = '0.00';
|
|
@@ -164,12 +164,12 @@ class RepairOrdersXlsxFileService {
|
|
|
164
164
|
});
|
|
165
165
|
this.Row += 2;
|
|
166
166
|
}
|
|
167
|
-
static setWorkOrderDetailsInCell(MainData) {
|
|
167
|
+
static setWorkOrderDetailsInCell(MainData, DecimalsNumber) {
|
|
168
168
|
MainData.forEach((InvoiceList, index) => {
|
|
169
|
-
this.SetWorkOrderDataInExcel(InvoiceList, index);
|
|
169
|
+
this.SetWorkOrderDataInExcel(InvoiceList, index, DecimalsNumber);
|
|
170
170
|
});
|
|
171
171
|
}
|
|
172
|
-
static SetWorkOrderDataInExcel(WorkOrder, index) {
|
|
172
|
+
static SetWorkOrderDataInExcel(WorkOrder, index, DecimalsNumber) {
|
|
173
173
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
174
174
|
WorkOrder.CrDate = my_date_1.MyDate.ConvertUTCDateToReadable(WorkOrder.CrDate);
|
|
175
175
|
if (!tr_utils_1.TrUtils.IsNull(WorkOrder.Prod) && !tr_utils_1.TrUtils.IsNull(WorkOrder.Prod.DDate)) {
|
|
@@ -197,7 +197,7 @@ class RepairOrdersXlsxFileService {
|
|
|
197
197
|
];
|
|
198
198
|
let ColStart = 0;
|
|
199
199
|
InvoiceData.forEach((InvData) => {
|
|
200
|
-
InvData.text = this.ConvertToString(InvData.text, InvData.IsString);
|
|
200
|
+
InvData.text = this.ConvertToString(InvData.text, InvData.IsString, DecimalsNumber);
|
|
201
201
|
this.SetDataInCell(InvData.text, ColStart, this.Row);
|
|
202
202
|
this.MergeArray.push({
|
|
203
203
|
s: { r: this.Row, c: ColStart },
|
|
@@ -207,7 +207,7 @@ class RepairOrdersXlsxFileService {
|
|
|
207
207
|
});
|
|
208
208
|
this.Row += 1;
|
|
209
209
|
}
|
|
210
|
-
static ConvertToString(Text, IsString) {
|
|
210
|
+
static ConvertToString(Text, IsString, DecimalsNumber) {
|
|
211
211
|
if (IsString) {
|
|
212
212
|
if (Text == null) {
|
|
213
213
|
Text = '';
|
|
@@ -219,7 +219,7 @@ class RepairOrdersXlsxFileService {
|
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
221
|
if (typeof Text === 'number') {
|
|
222
|
-
return Number(tr_utils_1.TrUtils.FixedTo(Text));
|
|
222
|
+
return Number(tr_utils_1.TrUtils.FixedTo(Text, DecimalsNumber));
|
|
223
223
|
}
|
|
224
224
|
else {
|
|
225
225
|
return Text;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare class RepairOrdersReportsPDFService {
|
|
2
|
-
static GetRepairOrdersReportstPrint(InvoicesData: any,
|
|
2
|
+
static GetRepairOrdersReportstPrint(InvoicesData: any, EntityData: any, HeaerName: any, searchValue: any): {
|
|
3
3
|
info: {
|
|
4
4
|
title: string;
|
|
5
5
|
};
|
|
@@ -206,9 +206,9 @@ export declare class RepairOrdersReportsPDFService {
|
|
|
206
206
|
};
|
|
207
207
|
};
|
|
208
208
|
};
|
|
209
|
-
static GetInvoiceDataTable(InvoicesData: any): any;
|
|
209
|
+
static GetInvoiceDataTable(InvoicesData: any, DecimalsNumber: number): any;
|
|
210
210
|
static getTableWidths(): (string | number)[];
|
|
211
|
-
static GetItemsTable(InvoiceData: any): {
|
|
211
|
+
static GetItemsTable(InvoiceData: any, DecimalsNumber: number): {
|
|
212
212
|
style: string;
|
|
213
213
|
marginTop: number;
|
|
214
214
|
marginBottom: number;
|
|
@@ -224,6 +224,6 @@ export declare class RepairOrdersReportsPDFService {
|
|
|
224
224
|
vLineColor: (i: any, node: any) => string;
|
|
225
225
|
};
|
|
226
226
|
};
|
|
227
|
-
static BuildTableBodyForLaborAndParts(InvoiceData: any): any;
|
|
227
|
+
static BuildTableBodyForLaborAndParts(InvoiceData: any, DecimalsNumber: number): any;
|
|
228
228
|
static GetHeaderNames(): any;
|
|
229
229
|
}
|
|
@@ -5,7 +5,7 @@ const shared_pdf_service_1 = require("../../../shared/shared-pdf.service");
|
|
|
5
5
|
const my_date_1 = require("../../../utils/my-date");
|
|
6
6
|
const tr_utils_1 = require("../../../utils/tr-utils");
|
|
7
7
|
class RepairOrdersReportsPDFService {
|
|
8
|
-
static GetRepairOrdersReportstPrint(InvoicesData,
|
|
8
|
+
static GetRepairOrdersReportstPrint(InvoicesData, EntityData, HeaerName, searchValue) {
|
|
9
9
|
var dd = {
|
|
10
10
|
info: {
|
|
11
11
|
title: 'RepairOrders',
|
|
@@ -16,19 +16,19 @@ class RepairOrdersReportsPDFService {
|
|
|
16
16
|
pageMargins: [10, 15, 10, 15],
|
|
17
17
|
pageOrientation: 'landscape',
|
|
18
18
|
content: [
|
|
19
|
-
{ text: '' +
|
|
19
|
+
{ text: '' + EntityData.DName + '', style: ['header'] },
|
|
20
20
|
{ text: HeaerName, alignment: 'center', fontSize: 15, bold: true },
|
|
21
21
|
shared_pdf_service_1.SharedPDFService.GetSearchValueDetails(searchValue),
|
|
22
|
-
this.GetInvoiceDataTable(InvoicesData),
|
|
22
|
+
this.GetInvoiceDataTable(InvoicesData, EntityData.Settings.DecimalsNumber),
|
|
23
23
|
],
|
|
24
24
|
styles: shared_pdf_service_1.SharedPDFService.GetStyles()
|
|
25
25
|
};
|
|
26
26
|
return dd;
|
|
27
27
|
}
|
|
28
|
-
static GetInvoiceDataTable(InvoicesData) {
|
|
28
|
+
static GetInvoiceDataTable(InvoicesData, DecimalsNumber) {
|
|
29
29
|
let Data = [];
|
|
30
30
|
// InvoicesData.forEach((invoice: any) => {
|
|
31
|
-
Data.push(this.GetItemsTable(InvoicesData));
|
|
31
|
+
Data.push(this.GetItemsTable(InvoicesData, DecimalsNumber));
|
|
32
32
|
// });
|
|
33
33
|
return Data;
|
|
34
34
|
}
|
|
@@ -39,7 +39,7 @@ class RepairOrdersReportsPDFService {
|
|
|
39
39
|
// return [25, '*', 40, 40, 80];
|
|
40
40
|
// }
|
|
41
41
|
}
|
|
42
|
-
static GetItemsTable(InvoiceData) {
|
|
42
|
+
static GetItemsTable(InvoiceData, DecimalsNumber) {
|
|
43
43
|
// InvoicesData.forEach((InvoiceData: any) => {
|
|
44
44
|
return {
|
|
45
45
|
style: 'tableExample',
|
|
@@ -48,7 +48,7 @@ class RepairOrdersReportsPDFService {
|
|
|
48
48
|
table: {
|
|
49
49
|
widths: this.getTableWidths(),
|
|
50
50
|
headerRows: 1,
|
|
51
|
-
body: this.BuildTableBodyForLaborAndParts(InvoiceData)
|
|
51
|
+
body: this.BuildTableBodyForLaborAndParts(InvoiceData, DecimalsNumber)
|
|
52
52
|
// body:[['fsdfsdf','asfafdas','asdasdas','asdasdasd','asddass']]
|
|
53
53
|
},
|
|
54
54
|
layout: {
|
|
@@ -71,7 +71,7 @@ class RepairOrdersReportsPDFService {
|
|
|
71
71
|
};
|
|
72
72
|
// });
|
|
73
73
|
}
|
|
74
|
-
static BuildTableBodyForLaborAndParts(InvoiceData) {
|
|
74
|
+
static BuildTableBodyForLaborAndParts(InvoiceData, DecimalsNumber) {
|
|
75
75
|
let body = this.GetHeaderNames();
|
|
76
76
|
// let Row: any = [{ text: InvoiceData.Name, alignment: 'left', colSpan: isHC ? 5 : 8, bold: true, fontSize: 12 }, {}, {}, {}, {}];
|
|
77
77
|
// if (!isHC) {
|
|
@@ -125,7 +125,7 @@ class RepairOrdersReportsPDFService {
|
|
|
125
125
|
dataRow.push({ text: invoice.WOType.Name });
|
|
126
126
|
dataRow.push({ text: invoice.Name });
|
|
127
127
|
dataRow.push({ text: invoice.TeNa });
|
|
128
|
-
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Total), alignment: 'right' });
|
|
128
|
+
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Total, DecimalsNumber), alignment: 'right' });
|
|
129
129
|
// dataRow.push({ text: TrUtils.IsNull(invoice.Prod) ? '' : invoice.Prod?.Model + ' ' + invoice.Prod?.Var });
|
|
130
130
|
// }
|
|
131
131
|
// dataRow.push({ text: invoice.BFrom.Name, alignment: 'left', style: ['headerstyle'], });
|
|
@@ -29,7 +29,7 @@ class RoprintService {
|
|
|
29
29
|
static CommonTotalDetails(ROPrintData, index, numberofCopies) {
|
|
30
30
|
let CommonDetails = [
|
|
31
31
|
shared_pdf_service_1.SharedPDFService.GetFinalTotalDetails(ROPrintData, ROPrintData.CustLaborTotalBeforeDisc, ROPrintData.CustLaborDiscTotal, ROPrintData.CustLaborCGST, ROPrintData.CustLaborSGST, ROPrintData.CustLaborIGST, ROPrintData.CustPartIGST, ROPrintData.ShowIGST, ROPrintData.ShowTaxColumn, ROPrintData.CustPartsTotalBeforeDisc, ROPrintData.CustPartsDiscTotal, ROPrintData.CustPartCGST, ROPrintData.CustPartSGST, ROPrintData.CustTaxGroupData, ROPrintData.ShowAccParts, ROPrintData.CustLaborAfterTax, ROPrintData.CustPartAfterTax, ROPrintData.FixedDisc, ROPrintData.Payee, ROPrintData.FixedTotal, ROPrintData.CustTotalRoundedBy, ROPrintData.CustRoundedTotal, ROPrintData.ShowDetailedLaborTaxInfo, ROPrintData.ShowDetailedPartTaxInfo, tr_utils_1.TrUtils.isTaxable(ROPrintData.Settings.Tax), ROPrintData.CustLaborITax, ROPrintData.CustPartITax, ROPrintData.Consolidate, ROPrintData.From, null, null, false),
|
|
32
|
-
shared_pdf_service_1.SharedPDFService.InvoiceDueStatus(ROPrintData.Type, ROPrintData.Paid, ROPrintData.Due, ROPrintData.Sts, false),
|
|
32
|
+
shared_pdf_service_1.SharedPDFService.InvoiceDueStatus(ROPrintData.Type, ROPrintData.Paid, ROPrintData.Due, ROPrintData.Sts, false, ROPrintData.Entity.DecimalsNumber),
|
|
33
33
|
shared_pdf_service_1.SharedPDFService.GetTemsAndConditions(ROPrintData.Entity.Terms),
|
|
34
34
|
shared_pdf_service_1.SharedPDFService.GetUnderLine(),
|
|
35
35
|
shared_pdf_service_1.SharedPDFService.GetSignatures(ROPrintData.Entity.CName, ROPrintData.Type, ROPrintData.Payee),
|
|
@@ -45,7 +45,7 @@ class RoprintService {
|
|
|
45
45
|
static CommonInsTotalDetails(ROPrintData, index, numberofCopies) {
|
|
46
46
|
let CommonDetails = [
|
|
47
47
|
shared_pdf_service_1.SharedPDFService.GetFinalTotalDetails(ROPrintData, ROPrintData.InsLaborTotalBeforeDisc, ROPrintData.InsLaborDiscTotal, ROPrintData.InsLaborCGST, ROPrintData.InsLaborSGST, ROPrintData.InsLaborIGST, ROPrintData.InsPartIGST, ROPrintData.ShowIGST, ROPrintData.ShowTaxColumn, ROPrintData.InsPartsTotalBeforeDisc, ROPrintData.InsPartsDiscTotal, ROPrintData.InsPartCGST, ROPrintData.InsPartSGST, ROPrintData.InsTaxGroupData, ROPrintData.ShowAccParts, ROPrintData.InsLaborTotalAfterTax, ROPrintData.InsPartsTotalAfterTax, ROPrintData.FixedDisc, ROPrintData.Payee, ROPrintData.FixedInsTotal, ROPrintData.InsTotalRoundedBy, ROPrintData.InsRoundedTotal, ROPrintData.ShowDetailedLaborTaxInfo, ROPrintData.ShowDetailedPartTaxInfo, tr_utils_1.TrUtils.isTaxable(ROPrintData.Settings.Tax), ROPrintData.InsLaborITax, ROPrintData.InsPartITax, ROPrintData.Consolidate, ROPrintData.From, null, null, false),
|
|
48
|
-
shared_pdf_service_1.SharedPDFService.InvoiceDueStatus(ROPrintData.Type, ROPrintData.Paid, ROPrintData.Due, ROPrintData.Sts, false),
|
|
48
|
+
shared_pdf_service_1.SharedPDFService.InvoiceDueStatus(ROPrintData.Type, ROPrintData.Paid, ROPrintData.Due, ROPrintData.Sts, false, ROPrintData.Entity.DecimalsNumber),
|
|
49
49
|
shared_pdf_service_1.SharedPDFService.GetTemsAndConditions(ROPrintData.Entity.Terms),
|
|
50
50
|
shared_pdf_service_1.SharedPDFService.GetUnderLine(),
|
|
51
51
|
shared_pdf_service_1.SharedPDFService.GetSignatures(ROPrintData.Entity.CName, ROPrintData.Type, ROPrintData.Payee),
|
|
@@ -44,7 +44,7 @@ class ROPrintService {
|
|
|
44
44
|
ROPrintData.ShowAccParts = this.CheckAndShowItemsAsAR(argROData);
|
|
45
45
|
}
|
|
46
46
|
argROData = this.ReverseItemsForROPrint(argROData, isReverse);
|
|
47
|
-
let finalTotalsData = ro_totals_service_1.ROTotalsService.GetTotalsValue(argROData, TaxCodes, true, true, true, ROPrintData.Entity.Round);
|
|
47
|
+
let finalTotalsData = ro_totals_service_1.ROTotalsService.GetTotalsValue(argROData, TaxCodes, true, true, true, ROPrintData.Entity.Round, ROPrintData.Entity);
|
|
48
48
|
finalTotalsData.Settings = tr_utils_1.TrUtils.Stringify(argROData.Settings);
|
|
49
49
|
finalTotalsData = this.GetDetailedInfoForItems(finalTotalsData, IncludeGST, ConsolidateGST, AsCustomerOnly, AsInsuranceOnly, TaxCodes, ROPrintData.Entity.DecimalsNumber);
|
|
50
50
|
if (ConsolidateGST) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare class ROTotalsService {
|
|
2
|
-
static GetTotalsValue(OriRecordData: any, TaxCodes: any[], isWorkOrder: boolean, detailedInfo: boolean, withItems: boolean, isRoundable: boolean): any;
|
|
2
|
+
static GetTotalsValue(OriRecordData: any, TaxCodes: any[], isWorkOrder: boolean, detailedInfo: boolean, withItems: boolean, isRoundable: boolean, EntitySettings: any): any;
|
|
3
3
|
static CalculateLaborValues(opCodesList: any, isWorkOrder: boolean, isTaxable: boolean): any;
|
|
4
4
|
static FilterValidLaborItems(opCodesList: any[]): any[];
|
|
5
5
|
static ResetLaborValuesIfInvalid(opCodesList: any, isWorkOrder: boolean): any;
|
|
@@ -16,24 +16,24 @@ export declare class ROTotalsService {
|
|
|
16
16
|
static GetPartsAfterDiscount(PartsList: any, LaborList: any, isWorkOrder: boolean): any;
|
|
17
17
|
static GetPartsAfterTax(PartsList: any, LaborList: any, isWorkOrder: boolean, isTaxable: boolean): any;
|
|
18
18
|
static GetPartsPerItemAfterTax(PartsList: any): any;
|
|
19
|
-
static GetROTotalsData(argRecordData: any, dupRecordData: any, TaxCodes: any, withItems: boolean, detailedInfo: any, isWorkOrder: boolean, isRoundable: boolean): any;
|
|
19
|
+
static GetROTotalsData(argRecordData: any, dupRecordData: any, TaxCodes: any, withItems: boolean, detailedInfo: any, isWorkOrder: boolean, isRoundable: boolean, DecimalsNumber: number): any;
|
|
20
20
|
static ResetDiscountValuesIfInvalid(dupRecordData: any): any;
|
|
21
21
|
static SetMainDiscountValues(argRecordData: any, dupRecordData: any, detailedInfo: boolean): any;
|
|
22
|
-
static GetFinalCustomerTotalsData(argRecordData: any, dupRecordData: any, isWorkOrder: boolean, detailedInfo: boolean, isRoundable: boolean): any;
|
|
22
|
+
static GetFinalCustomerTotalsData(argRecordData: any, dupRecordData: any, isWorkOrder: boolean, detailedInfo: boolean, isRoundable: boolean, DecimalsNumber: number): any;
|
|
23
23
|
static GetCustSubTotal(LaborList: any, PartsList: any): any;
|
|
24
24
|
static GetCustLaborTotalAfterDiscount(LaborList: any): any;
|
|
25
25
|
static GetCustPartsTotalAfterDiscount(PartsList: any): any;
|
|
26
26
|
static GetCustLaborTaxTotal(opCodesList: any, IsTaxable: boolean, isWorkOrder: boolean): any;
|
|
27
27
|
static GetCustPartsTaxTotal(OpsList: any, PartsList: any, IsTaxable: boolean, isWorkOrder: boolean): any;
|
|
28
28
|
static GetCustomerTotalBasedOnTaxType(dupRecordData: any, LaborTaxAmount: number, PartsTaxAmount: number, LaborList: any, PartsList: any, IsTaxable: boolean): any;
|
|
29
|
-
static GetFinalInsuranceTotalsData(argRecordData: any, dupRecordData: any, detailedInfo: boolean, isWorkOrder: boolean): any;
|
|
29
|
+
static GetFinalInsuranceTotalsData(argRecordData: any, dupRecordData: any, detailedInfo: boolean, isWorkOrder: boolean, DecimalsNumber: number): any;
|
|
30
30
|
static GetInsSubTotal(LaborList: any, PartsList: any): any;
|
|
31
31
|
static GetInsLaborTotalAfterDiscount(LaborList: any): any;
|
|
32
32
|
static GetInsPartsTotalAfterDiscount(PartsList: any): any;
|
|
33
33
|
static GetInsLaborTaxTotal(opCodesList: any, IsTaxable: boolean, isWorkOrder: boolean): any;
|
|
34
34
|
static GetInsPartsTaxTotal(PartsList: any, IsTaxable: boolean, isWorkOrder: boolean): any;
|
|
35
35
|
static GetInsuranceTotalBasedOnTaxType(SubTotal: number, LaborTaxAmount: number, PartsTaxAmount: number, IsTaxable: boolean): any;
|
|
36
|
-
static GetDetailedTotalsData(argRecordData: any, dupRecordData: any, TaxCodes: any, isWorkOrder: boolean): any;
|
|
36
|
+
static GetDetailedTotalsData(argRecordData: any, dupRecordData: any, TaxCodes: any, isWorkOrder: boolean, DecimalsNumber: number): any;
|
|
37
37
|
static GetCustLaborDiscountedTotal(LaborList: any, isTaxable: boolean, finalTotalsData: any): any;
|
|
38
38
|
static GetCustPartDiscountedTotal(PartsList: any, isTaxable: boolean, finalTotalsData: any): any;
|
|
39
39
|
static GetCustLaborCGSTTaxTotal(opCodesList: any, IsTaxable: boolean, isWorkOrder: boolean): any;
|
|
@@ -50,14 +50,14 @@ export declare class ROTotalsService {
|
|
|
50
50
|
static GetInsPartSGSTTaxTotal(PartsList: any, IsTaxable: boolean, isWorkOrder: boolean): any;
|
|
51
51
|
static GetLaborLDiscAmount(LaborTotalAfterDisc: any, LDisc: any): any;
|
|
52
52
|
static GetPartsPDiscAmount(PartsTotalAfterDisc: any, PDisc: any): any;
|
|
53
|
-
static GetCustPartsTaxGrouping(PartsList: any, TaxCodes: any, isWorkOrder: boolean): any[];
|
|
53
|
+
static GetCustPartsTaxGrouping(PartsList: any, TaxCodes: any, isWorkOrder: boolean, DecimalsNumber: number): any[];
|
|
54
54
|
static GetCustParts(PartsList: any): any[];
|
|
55
|
-
static GetCustTaxGroupingForPartsByHSN(Parts: any, TaxCodes: any, isWorkOrder: boolean): any[];
|
|
56
|
-
static GetCustTaxGroupingInfoByHSN(FinalMatchedParts: any, TaxCodes: any, isWorkOrder: boolean): any[];
|
|
57
|
-
static GetInsPartsTaxGrouping(PartsList: any, TaxCodes: any): any[];
|
|
55
|
+
static GetCustTaxGroupingForPartsByHSN(Parts: any, TaxCodes: any, isWorkOrder: boolean, DecimalsNumber: number): any[];
|
|
56
|
+
static GetCustTaxGroupingInfoByHSN(FinalMatchedParts: any, TaxCodes: any, isWorkOrder: boolean, DecimalsNumber: number): any[];
|
|
57
|
+
static GetInsPartsTaxGrouping(PartsList: any, TaxCodes: any, DecimalsNumber: number): any[];
|
|
58
58
|
static GetInsParts(PartsList: any): any[];
|
|
59
|
-
static GetInsTaxGroupingForPartsByHSN(Parts: any, TaxCodes: any): any[];
|
|
60
|
-
static GetInsTaxGroupingInfoByHSN(FinalMatchedParts: any, TaxCodes: any): any[];
|
|
59
|
+
static GetInsTaxGroupingForPartsByHSN(Parts: any, TaxCodes: any, DecimalsNumber: number): any[];
|
|
60
|
+
static GetInsTaxGroupingInfoByHSN(FinalMatchedParts: any, TaxCodes: any, DecimalsNumber: number): any[];
|
|
61
61
|
static GetGSTValueBasedOnTaxCode(TCode: any, TaxCodes: any): any[];
|
|
62
62
|
static GetCombinedTaxPercentage(Parts: any, TaxCodes: any): any;
|
|
63
63
|
static ResetPartsHSNIfInvalid(Parts: any): any;
|