shareneus 1.4.48 → 1.4.50
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/sales-receipt-print.service.d.ts +3 -3
- package/dist/accounting/counter-sales/sales-receipt-print.service.js +30 -29
- package/dist/accounting/credit-note/cn-print.service.d.ts +1 -2
- package/dist/accounting/credit-note/cn-print.service.js +10 -32
- package/dist/accounting/credit-note/credit-note-totals.service.d.ts +6 -6
- package/dist/accounting/credit-note/credit-note-totals.service.js +19 -19
- package/dist/accounting/debit-note/debit-note-print.service.d.ts +2 -2
- package/dist/accounting/debit-note/debit-note-print.service.js +15 -15
- package/dist/accounting/debit-note/debit-note-totals.service.d.ts +6 -6
- package/dist/accounting/debit-note/debit-note-totals.service.js +18 -18
- package/dist/accounting/invoice/hc-inv-pdf.service.d.ts +7 -7
- package/dist/accounting/invoice/hc-inv-pdf.service.js +36 -36
- package/dist/accounting/invoice/inv-pdf.service.d.ts +6 -6
- package/dist/accounting/invoice/inv-pdf.service.js +43 -43
- package/dist/accounting/invoice/inv-print.service.d.ts +3 -3
- package/dist/accounting/invoice/inv-print.service.js +24 -24
- package/dist/accounting/invoice/invoice-letterhead-pdf.service.d.ts +6 -6
- package/dist/accounting/invoice/invoice-letterhead-pdf.service.js +43 -43
- package/dist/accounting/invoice/invoice-total.service.d.ts +11 -11
- package/dist/accounting/invoice/invoice-total.service.js +54 -54
- 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/shared-inv-pdf.service.d.ts +6 -6
- package/dist/accounting/invoice/shared-inv-pdf.service.js +29 -29
- package/dist/appointments/appointments/appointment-total.service.d.ts +6 -6
- package/dist/appointments/appointments/appointment-total.service.js +28 -29
- 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 +32 -32
- 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/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/purchase-order/po-totals.service.d.ts +7 -7
- package/dist/purchases/purchase-order/po-totals.service.js +24 -25
- package/dist/purchases/purchase-order/purchase-order-print.service.js +3 -3
- package/dist/purchases/purchase-order/purchase-order-totals.service.d.ts +10 -10
- package/dist/purchases/purchase-order/purchase-order-totals.service.js +27 -27
- 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-print.service.d.ts +1 -2
- package/dist/purchases/vendor-debit-note/vendor-debit-note-print.service.js +10 -32
- 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/delivery-challan-print.service.d.ts +1 -2
- package/dist/sales/delivery-challan/delivery-challan-print.service.js +10 -33
- 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-print.service.d.ts +2 -2
- package/dist/sales/sales/sales-print.service.js +18 -18
- 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.d.ts +18 -18
- package/dist/services/est.print-service.js +133 -133
- 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/ro-print-service.d.ts +6 -6
- package/dist/services/ro-print-service.js +40 -40
- package/dist/services/ro-totals.service.d.ts +11 -11
- package/dist/services/ro-totals.service.js +50 -50
- package/dist/shared/shared-pdf.service.d.ts +0 -16
- package/dist/shared/shared-pdf.service.js +36 -34
- package/dist/shared/shared-print.service.js +1 -0
- package/dist/utils/tr-utils.d.ts +2 -3
- package/dist/utils/tr-utils.js +7 -6
- package/package.json +1 -1
- package/dist/shared/shared-pdfs/shared-pdf.service.d.ts +0 -926
- package/dist/shared/shared-pdfs/shared-pdf.service.js +0 -2608
|
@@ -28,7 +28,7 @@ const XLSX = __importStar(require("xlsx"));
|
|
|
28
28
|
const tr_utils_1 = require("../../../../utils/tr-utils");
|
|
29
29
|
const my_date_1 = require("../../../../utils/my-date");
|
|
30
30
|
class ItemWiseMODetailsXlsxFileService {
|
|
31
|
-
static GetItemWiseMODetailsExcelData(MainData, searchValue, HeaderName) {
|
|
31
|
+
static GetItemWiseMODetailsExcelData(MainData, searchValue, HeaderName, EntitySettings) {
|
|
32
32
|
this.wb = {};
|
|
33
33
|
this.ws = {};
|
|
34
34
|
this.Row = 0;
|
|
@@ -66,7 +66,7 @@ class ItemWiseMODetailsXlsxFileService {
|
|
|
66
66
|
// console.log(`${key}: ${searchValue[key]}`);
|
|
67
67
|
}
|
|
68
68
|
this.setHeadingInCell(HeaderName, showSearch);
|
|
69
|
-
this.setInvoiceDetailsInCell(MainData);
|
|
69
|
+
this.setInvoiceDetailsInCell(MainData, EntitySettings);
|
|
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: 20 }];
|
|
@@ -209,12 +209,12 @@ class ItemWiseMODetailsXlsxFileService {
|
|
|
209
209
|
});
|
|
210
210
|
this.Row += 2;
|
|
211
211
|
}
|
|
212
|
-
static setInvoiceDetailsInCell(MainData) {
|
|
212
|
+
static setInvoiceDetailsInCell(MainData, DecimalsNumber) {
|
|
213
213
|
MainData.forEach((InvoiceList) => {
|
|
214
|
-
this.SetInvoiceDataInExcel(InvoiceList);
|
|
214
|
+
this.SetInvoiceDataInExcel(InvoiceList, DecimalsNumber);
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
|
-
static SetInvoiceDataInExcel(InvoiceInfo) {
|
|
217
|
+
static SetInvoiceDataInExcel(InvoiceInfo, DecimalsNumber) {
|
|
218
218
|
var _a;
|
|
219
219
|
InvoiceInfo.Date = my_date_1.MyDate.ConvertUTCDateToReadable(InvoiceInfo.CrDate);
|
|
220
220
|
let InvoiceData = [
|
|
@@ -234,7 +234,7 @@ class ItemWiseMODetailsXlsxFileService {
|
|
|
234
234
|
];
|
|
235
235
|
let ColStart = 0;
|
|
236
236
|
InvoiceData.forEach((InvData) => {
|
|
237
|
-
InvData.text = this.ConvertToString(InvData.text, InvData.IsString);
|
|
237
|
+
InvData.text = this.ConvertToString(InvData.text, InvData.IsString, DecimalsNumber);
|
|
238
238
|
this.SetDataInCell(InvData.text, ColStart, this.Row);
|
|
239
239
|
this.MergeArray.push({
|
|
240
240
|
s: { r: this.Row, c: ColStart },
|
|
@@ -244,7 +244,7 @@ class ItemWiseMODetailsXlsxFileService {
|
|
|
244
244
|
});
|
|
245
245
|
this.Row += 1;
|
|
246
246
|
}
|
|
247
|
-
static ConvertToString(Text, IsString) {
|
|
247
|
+
static ConvertToString(Text, IsString, DecimalsNumber) {
|
|
248
248
|
if (IsString) {
|
|
249
249
|
if (Text == null) {
|
|
250
250
|
Text = '';
|
|
@@ -256,7 +256,7 @@ class ItemWiseMODetailsXlsxFileService {
|
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
258
|
if (typeof Text === 'number') {
|
|
259
|
-
return Number(tr_utils_1.TrUtils.FixedTo(Text));
|
|
259
|
+
return Number(tr_utils_1.TrUtils.FixedTo(Text, DecimalsNumber));
|
|
260
260
|
}
|
|
261
261
|
else {
|
|
262
262
|
return Text;
|
|
@@ -13,11 +13,11 @@ export declare class ItemWiseMOSummaryXlsxFileService {
|
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
15
|
static ws: any;
|
|
16
|
-
static GetItemWiseMOSummaryExcelData(MainData: any, searchValue: any, HeaderName: any): any;
|
|
16
|
+
static GetItemWiseMOSummaryExcelData(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 ItemWiseMOSummaryXlsxFileService {
|
|
31
|
-
static GetItemWiseMOSummaryExcelData(MainData, searchValue, HeaderName) {
|
|
31
|
+
static GetItemWiseMOSummaryExcelData(MainData, searchValue, HeaderName, EntitySettings) {
|
|
32
32
|
this.wb = {};
|
|
33
33
|
this.ws = {};
|
|
34
34
|
this.Row = 0;
|
|
@@ -66,7 +66,7 @@ class ItemWiseMOSummaryXlsxFileService {
|
|
|
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: 30 }, { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 20 }];
|
|
@@ -207,12 +207,12 @@ class ItemWiseMOSummaryXlsxFileService {
|
|
|
207
207
|
});
|
|
208
208
|
this.Row += 2;
|
|
209
209
|
}
|
|
210
|
-
static setInvoiceDetailsInCell(MainData) {
|
|
210
|
+
static setInvoiceDetailsInCell(MainData, DecimalsNumber) {
|
|
211
211
|
MainData.forEach((InvoiceList) => {
|
|
212
|
-
this.SetInvoiceDataInExcel(InvoiceList);
|
|
212
|
+
this.SetInvoiceDataInExcel(InvoiceList, DecimalsNumber);
|
|
213
213
|
});
|
|
214
214
|
}
|
|
215
|
-
static SetInvoiceDataInExcel(InvoiceInfo) {
|
|
215
|
+
static SetInvoiceDataInExcel(InvoiceInfo, DecimalsNumber) {
|
|
216
216
|
InvoiceInfo.Date = my_date_1.MyDate.ConvertUTCDateToReadable(InvoiceInfo.CrDate);
|
|
217
217
|
let InvoiceData = [
|
|
218
218
|
// { text: InvoiceInfo.Code, ColRange: 1, IsString: true },
|
|
@@ -228,7 +228,7 @@ class ItemWiseMOSummaryXlsxFileService {
|
|
|
228
228
|
];
|
|
229
229
|
let ColStart = 0;
|
|
230
230
|
InvoiceData.forEach((InvData) => {
|
|
231
|
-
InvData.text = this.ConvertToString(InvData.text, InvData.IsString);
|
|
231
|
+
InvData.text = this.ConvertToString(InvData.text, InvData.IsString, DecimalsNumber);
|
|
232
232
|
this.SetDataInCell(InvData.text, ColStart, this.Row);
|
|
233
233
|
this.MergeArray.push({
|
|
234
234
|
s: { r: this.Row, c: ColStart },
|
|
@@ -238,7 +238,7 @@ class ItemWiseMOSummaryXlsxFileService {
|
|
|
238
238
|
});
|
|
239
239
|
this.Row += 1;
|
|
240
240
|
}
|
|
241
|
-
static ConvertToString(Text, IsString) {
|
|
241
|
+
static ConvertToString(Text, IsString, DecimalsNumber) {
|
|
242
242
|
if (IsString) {
|
|
243
243
|
if (Text == null) {
|
|
244
244
|
Text = '';
|
|
@@ -250,7 +250,7 @@ class ItemWiseMOSummaryXlsxFileService {
|
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
252
|
if (typeof Text === 'number') {
|
|
253
|
-
return Number(tr_utils_1.TrUtils.FixedTo(Text));
|
|
253
|
+
return Number(tr_utils_1.TrUtils.FixedTo(Text, DecimalsNumber));
|
|
254
254
|
}
|
|
255
255
|
else {
|
|
256
256
|
return Text;
|
|
@@ -13,13 +13,13 @@ export declare class IssueSparesXlsxFileService {
|
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
15
|
static ws: any;
|
|
16
|
-
static GetInvoiceWiseExcelData(MainData: any, WOTypes: any): any;
|
|
16
|
+
static GetInvoiceWiseExcelData(MainData: any, WOTypes: any, EntitySettings: any): any;
|
|
17
17
|
static GetTotals(MainData: any, WOTypes: any): any;
|
|
18
18
|
static GetWOTypeName(Type: any, WOTypes: any): any;
|
|
19
19
|
static setHeadingInCell(): void;
|
|
20
|
-
static setInvoiceDetailsInCell(MainData: any): void;
|
|
21
|
-
static SetInvoiceDataInExcel(InvoiceInfo: any): void;
|
|
22
|
-
static ConvertToString(Text: any, IsString: any): any;
|
|
20
|
+
static setInvoiceDetailsInCell(MainData: any, DecimalsNumber: number): void;
|
|
21
|
+
static SetInvoiceDataInExcel(InvoiceInfo: any, DecimalsNumber: number): void;
|
|
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
|
static ConvertDateToReadableFormat(DateObject: any): any;
|
|
@@ -27,7 +27,7 @@ exports.IssueSparesXlsxFileService = void 0;
|
|
|
27
27
|
const XLSX = __importStar(require("xlsx"));
|
|
28
28
|
const tr_utils_1 = require("../../../../utils/tr-utils");
|
|
29
29
|
class IssueSparesXlsxFileService {
|
|
30
|
-
static GetInvoiceWiseExcelData(MainData, WOTypes) {
|
|
30
|
+
static GetInvoiceWiseExcelData(MainData, WOTypes, EntitySettings) {
|
|
31
31
|
this.wb = {};
|
|
32
32
|
this.ws = {};
|
|
33
33
|
this.Row = 0;
|
|
@@ -40,7 +40,7 @@ class IssueSparesXlsxFileService {
|
|
|
40
40
|
this.wb.SheetNames = [];
|
|
41
41
|
MainData = this.GetTotals(MainData, WOTypes);
|
|
42
42
|
this.setHeadingInCell();
|
|
43
|
-
this.setInvoiceDetailsInCell(MainData);
|
|
43
|
+
this.setInvoiceDetailsInCell(MainData, EntitySettings.DecimalsNumber);
|
|
44
44
|
this.ws['!ref'] = XLSX.utils.encode_range(this.range);
|
|
45
45
|
this.ws['!merges'] = this.MergeArray;
|
|
46
46
|
this.ws["!cols"] = [{ wch: 15 }, { wch: 15 }, { wch: 20 }, { wch: 20 }, { wch: 10 }, { wch: 15 }, { wch: 20 }, { wch: 20 }, { wch: 10 }, { wch: 50 }, { wch: 40 }];
|
|
@@ -338,12 +338,12 @@ class IssueSparesXlsxFileService {
|
|
|
338
338
|
});
|
|
339
339
|
this.Row += 2;
|
|
340
340
|
}
|
|
341
|
-
static setInvoiceDetailsInCell(MainData) {
|
|
341
|
+
static setInvoiceDetailsInCell(MainData, DecimalsNumber) {
|
|
342
342
|
MainData.forEach((InvoiceList) => {
|
|
343
|
-
this.SetInvoiceDataInExcel(InvoiceList);
|
|
343
|
+
this.SetInvoiceDataInExcel(InvoiceList, DecimalsNumber);
|
|
344
344
|
});
|
|
345
345
|
}
|
|
346
|
-
static SetInvoiceDataInExcel(InvoiceInfo) {
|
|
346
|
+
static SetInvoiceDataInExcel(InvoiceInfo, DecimalsNumber) {
|
|
347
347
|
InvoiceInfo.CrDate = this.ConvertDateToReadableFormat(InvoiceInfo.CrDate);
|
|
348
348
|
InvoiceInfo.WCrDate = this.ConvertDateToReadableFormat(InvoiceInfo.WCrDate);
|
|
349
349
|
if (tr_utils_1.TrUtils.IsNull(InvoiceInfo.Prod)) {
|
|
@@ -363,16 +363,16 @@ class IssueSparesXlsxFileService {
|
|
|
363
363
|
Product = InvoiceInfo.Parts.Desc;
|
|
364
364
|
}
|
|
365
365
|
if (!tr_utils_1.TrUtils.IsZero(InvoiceInfo.Parts.AssPr)) {
|
|
366
|
-
Price = tr_utils_1.TrUtils.FixPriceValue(InvoiceInfo.Parts.AssPr);
|
|
366
|
+
Price = tr_utils_1.TrUtils.FixPriceValue(InvoiceInfo.Parts.AssPr, DecimalsNumber);
|
|
367
367
|
}
|
|
368
368
|
else {
|
|
369
|
-
Price = tr_utils_1.TrUtils.FixPriceValue(InvoiceInfo.Parts.UnPr);
|
|
369
|
+
Price = tr_utils_1.TrUtils.FixPriceValue(InvoiceInfo.Parts.UnPr, DecimalsNumber);
|
|
370
370
|
}
|
|
371
371
|
if (!tr_utils_1.TrUtils.IsZero(InvoiceInfo.Parts.AssAmt)) {
|
|
372
|
-
UnAmt = tr_utils_1.TrUtils.FixPriceValue(InvoiceInfo.Parts.AssAmt);
|
|
372
|
+
UnAmt = tr_utils_1.TrUtils.FixPriceValue(InvoiceInfo.Parts.AssAmt, DecimalsNumber);
|
|
373
373
|
}
|
|
374
374
|
else {
|
|
375
|
-
UnAmt = tr_utils_1.TrUtils.FixPriceValue(InvoiceInfo.Parts.UnAmt);
|
|
375
|
+
UnAmt = tr_utils_1.TrUtils.FixPriceValue(InvoiceInfo.Parts.UnAmt, DecimalsNumber);
|
|
376
376
|
}
|
|
377
377
|
;
|
|
378
378
|
}
|
|
@@ -402,7 +402,7 @@ class IssueSparesXlsxFileService {
|
|
|
402
402
|
];
|
|
403
403
|
let ColStart = 0;
|
|
404
404
|
InvoiceData.forEach((InvData) => {
|
|
405
|
-
InvData.text = this.ConvertToString(InvData.text, InvData.IsString);
|
|
405
|
+
InvData.text = this.ConvertToString(InvData.text, InvData.IsString, DecimalsNumber);
|
|
406
406
|
this.SetDataInCell(InvData.text, ColStart, this.Row);
|
|
407
407
|
this.MergeArray.push({
|
|
408
408
|
s: { r: this.Row, c: ColStart },
|
|
@@ -412,7 +412,7 @@ class IssueSparesXlsxFileService {
|
|
|
412
412
|
});
|
|
413
413
|
this.Row += 1;
|
|
414
414
|
}
|
|
415
|
-
static ConvertToString(Text, IsString) {
|
|
415
|
+
static ConvertToString(Text, IsString, DecimalsNumber) {
|
|
416
416
|
if (IsString) {
|
|
417
417
|
if (Text == null) {
|
|
418
418
|
Text = '';
|
|
@@ -424,7 +424,7 @@ class IssueSparesXlsxFileService {
|
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
426
|
if (typeof Text === 'number') {
|
|
427
|
-
return Number(tr_utils_1.TrUtils.FixedTo(Text));
|
|
427
|
+
return Number(tr_utils_1.TrUtils.FixedTo(Text, DecimalsNumber));
|
|
428
428
|
}
|
|
429
429
|
else {
|
|
430
430
|
return Text;
|
|
@@ -13,11 +13,11 @@ export declare class StockXlsxFileService {
|
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
15
|
static ws: any;
|
|
16
|
-
static GetStockInfoExcelData(MainData: any, isSale: boolean, isHC: any, HeaderName: any): any;
|
|
16
|
+
static GetStockInfoExcelData(MainData: any, isSale: boolean, isHC: any, HeaderName: any, EntitySettings: any): any;
|
|
17
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;
|
|
18
|
+
static setInvoiceDetailsInCell(MainData: any, isHC: any, DecimalsNumber: number): void;
|
|
19
|
+
static SetInvoiceDataInExcel(InvoiceInfo: any, index: any, isHC: any, DecimalsNumber: number): void;
|
|
20
|
+
static ConvertToString(Text: any, IsString: any, DecimalsNumber: any): any;
|
|
21
21
|
static SetDataInCell(Data: any, ColRange: number, RowNum: any): void;
|
|
22
22
|
static getcelltype(cell: any): any;
|
|
23
23
|
}
|
|
@@ -27,7 +27,7 @@ exports.StockXlsxFileService = void 0;
|
|
|
27
27
|
const XLSX = __importStar(require("xlsx"));
|
|
28
28
|
const tr_utils_1 = require("../../../../utils/tr-utils");
|
|
29
29
|
class StockXlsxFileService {
|
|
30
|
-
static GetStockInfoExcelData(MainData, isSale, isHC, HeaderName) {
|
|
30
|
+
static GetStockInfoExcelData(MainData, isSale, isHC, HeaderName, EntitySettings) {
|
|
31
31
|
this.wb = {};
|
|
32
32
|
this.ws = {};
|
|
33
33
|
this.Row = 0;
|
|
@@ -65,7 +65,7 @@ class StockXlsxFileService {
|
|
|
65
65
|
// // console.log(`${key}: ${searchValue[key]}`);
|
|
66
66
|
// }
|
|
67
67
|
this.setHeadingInCell(HeaderName, isHC);
|
|
68
|
-
this.setInvoiceDetailsInCell(MainData, isHC);
|
|
68
|
+
this.setInvoiceDetailsInCell(MainData, isHC, EntitySettings.DecimalsNumber);
|
|
69
69
|
this.ws['!ref'] = XLSX.utils.encode_range(this.range);
|
|
70
70
|
this.ws['!merges'] = this.MergeArray;
|
|
71
71
|
if (isHC === 'HC') {
|
|
@@ -205,12 +205,12 @@ class StockXlsxFileService {
|
|
|
205
205
|
});
|
|
206
206
|
this.Row += 2;
|
|
207
207
|
}
|
|
208
|
-
static setInvoiceDetailsInCell(MainData, isHC) {
|
|
208
|
+
static setInvoiceDetailsInCell(MainData, isHC, DecimalsNumber) {
|
|
209
209
|
MainData.forEach((InvoiceList, index) => {
|
|
210
|
-
this.SetInvoiceDataInExcel(InvoiceList, index, isHC);
|
|
210
|
+
this.SetInvoiceDataInExcel(InvoiceList, index, isHC, DecimalsNumber);
|
|
211
211
|
});
|
|
212
212
|
}
|
|
213
|
-
static SetInvoiceDataInExcel(InvoiceInfo, index, isHC) {
|
|
213
|
+
static SetInvoiceDataInExcel(InvoiceInfo, index, isHC, DecimalsNumber) {
|
|
214
214
|
var _a;
|
|
215
215
|
let InvoiceData = [
|
|
216
216
|
{ text: index + 1, ColRange: 1, IsString: true },
|
|
@@ -225,7 +225,7 @@ class StockXlsxFileService {
|
|
|
225
225
|
}
|
|
226
226
|
let ColStart = 0;
|
|
227
227
|
InvoiceData.forEach((InvData) => {
|
|
228
|
-
InvData.text = this.ConvertToString(InvData.text, InvData.IsString);
|
|
228
|
+
InvData.text = this.ConvertToString(InvData.text, InvData.IsString, DecimalsNumber);
|
|
229
229
|
this.SetDataInCell(InvData.text, ColStart, this.Row);
|
|
230
230
|
this.MergeArray.push({
|
|
231
231
|
s: { r: this.Row, c: ColStart },
|
|
@@ -235,7 +235,7 @@ class StockXlsxFileService {
|
|
|
235
235
|
});
|
|
236
236
|
this.Row += 1;
|
|
237
237
|
}
|
|
238
|
-
static ConvertToString(Text, IsString) {
|
|
238
|
+
static ConvertToString(Text, IsString, DecimalsNumber) {
|
|
239
239
|
if (IsString) {
|
|
240
240
|
if (Text == null) {
|
|
241
241
|
Text = '';
|
|
@@ -247,7 +247,7 @@ class StockXlsxFileService {
|
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
249
|
if (typeof Text === 'number') {
|
|
250
|
-
return Number(tr_utils_1.TrUtils.FixedTo(Text));
|
|
250
|
+
return Number(tr_utils_1.TrUtils.FixedTo(Text, DecimalsNumber));
|
|
251
251
|
}
|
|
252
252
|
else {
|
|
253
253
|
return Text;
|
|
@@ -13,12 +13,12 @@ export declare class PaymentsMadeXlsxFileService {
|
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
15
|
static ws: any;
|
|
16
|
-
static GetPaymentsMadeDetailsExcelData(MainData: any, isPur: boolean, isSale: boolean, searchValue: any, HeaderName: string, ExtraFields: boolean): any;
|
|
16
|
+
static GetPaymentsMadeDetailsExcelData(MainData: any, isPur: boolean, isSale: boolean, searchValue: any, HeaderName: string, ExtraFields: boolean, EntitySettings: any): any;
|
|
17
17
|
static GetTotals(MainData: any): any;
|
|
18
18
|
static setHeadingInCell(isPur: boolean, showSearch: any, HeaderName: any, ExtraFields: boolean): void;
|
|
19
|
-
static setInvoiceDetailsInCell(MainData: any, isSale: boolean, isPur: boolean, ExtraFields: boolean): void;
|
|
20
|
-
static SetInvoiceDataInExcel(InvoiceInfo: any, index: any, isSale: boolean, isPur: any, ExtraFields: boolean): void;
|
|
21
|
-
static ConvertToString(Text: any, IsString: any): any;
|
|
19
|
+
static setInvoiceDetailsInCell(MainData: any, isSale: boolean, isPur: boolean, ExtraFields: boolean, DecimalsNumber: number): void;
|
|
20
|
+
static SetInvoiceDataInExcel(InvoiceInfo: any, index: any, isSale: boolean, isPur: any, ExtraFields: boolean, 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
|
static ConvertDateToReadableFormat(DateObject: any): any;
|
|
@@ -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 PaymentsMadeXlsxFileService {
|
|
31
|
-
static GetPaymentsMadeDetailsExcelData(MainData, isPur, isSale, searchValue, HeaderName, ExtraFields) {
|
|
31
|
+
static GetPaymentsMadeDetailsExcelData(MainData, isPur, isSale, searchValue, HeaderName, ExtraFields, EntitySettings) {
|
|
32
32
|
this.wb = {};
|
|
33
33
|
this.ws = {};
|
|
34
34
|
this.Row = 0;
|
|
@@ -66,7 +66,7 @@ class PaymentsMadeXlsxFileService {
|
|
|
66
66
|
// console.log(`${key}: ${searchValue[key]}`);
|
|
67
67
|
}
|
|
68
68
|
this.setHeadingInCell(isPur, showSearch, HeaderName, ExtraFields);
|
|
69
|
-
this.setInvoiceDetailsInCell(MainData, isSale, isPur, ExtraFields);
|
|
69
|
+
this.setInvoiceDetailsInCell(MainData, isSale, isPur, ExtraFields, 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: 10 }, { wch: 15 }, { wch: 50 }, { wch: 10 }, { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 15 }, { wch: 20 }];
|
|
@@ -183,12 +183,12 @@ class PaymentsMadeXlsxFileService {
|
|
|
183
183
|
});
|
|
184
184
|
this.Row += 2;
|
|
185
185
|
}
|
|
186
|
-
static setInvoiceDetailsInCell(MainData, isSale, isPur, ExtraFields) {
|
|
186
|
+
static setInvoiceDetailsInCell(MainData, isSale, isPur, ExtraFields, DecimalsNumber) {
|
|
187
187
|
MainData.forEach((InvoiceList, index) => {
|
|
188
|
-
this.SetInvoiceDataInExcel(InvoiceList, index, isSale, isPur, ExtraFields);
|
|
188
|
+
this.SetInvoiceDataInExcel(InvoiceList, index, isSale, isPur, ExtraFields, DecimalsNumber);
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
|
-
static SetInvoiceDataInExcel(InvoiceInfo, index, isSale, isPur, ExtraFields) {
|
|
191
|
+
static SetInvoiceDataInExcel(InvoiceInfo, index, isSale, isPur, ExtraFields, DecimalsNumber) {
|
|
192
192
|
var _a;
|
|
193
193
|
if (isSale) {
|
|
194
194
|
InvoiceInfo.Date = this.ConvertDateToReadableFormat(InvoiceInfo.Pay.Dt);
|
|
@@ -205,14 +205,14 @@ class PaymentsMadeXlsxFileService {
|
|
|
205
205
|
{ text: isSale ? InvoiceInfo.CustName : InvoiceInfo.Name, ColRange: 1, IsString: true },
|
|
206
206
|
{ text: InvoiceInfo.Date, ColRange: 1, IsString: true },
|
|
207
207
|
{ text: isSale ? InvoiceInfo.Pay.Type : InvoiceInfo.PType, ColRange: 1, IsString: true },
|
|
208
|
-
{ text: isSale ? tr_utils_1.TrUtils.FixPriceValue((_a = InvoiceInfo.Pay) === null || _a === void 0 ? void 0 : _a.Amt) : tr_utils_1.TrUtils.FixPriceValue(InvoiceInfo.Amt), ColRange: 1, IsString: false }
|
|
208
|
+
{ text: isSale ? tr_utils_1.TrUtils.FixPriceValue((_a = InvoiceInfo.Pay) === null || _a === void 0 ? void 0 : _a.Amt, DecimalsNumber) : tr_utils_1.TrUtils.FixPriceValue(InvoiceInfo.Amt, DecimalsNumber), ColRange: 1, IsString: false }
|
|
209
209
|
];
|
|
210
210
|
if (ExtraFields) {
|
|
211
211
|
InvoiceData.splice(2, 0, { text: isPur ? InvoiceInfo.BNo : InvoiceInfo.InvCode, ColRange: 1, IsString: false }, { text: isPur ? InvoiceInfo.POCode : InvoiceInfo.OrdCode, ColRange: 1, IsString: false }, { text: InvoiceInfo.RegNo, ColRange: 1, IsString: true });
|
|
212
212
|
}
|
|
213
213
|
let ColStart = 0;
|
|
214
214
|
InvoiceData.forEach((InvData) => {
|
|
215
|
-
InvData.text = this.ConvertToString(InvData.text, InvData.IsString);
|
|
215
|
+
InvData.text = this.ConvertToString(InvData.text, InvData.IsString, DecimalsNumber);
|
|
216
216
|
this.SetDataInCell(InvData.text, ColStart, this.Row);
|
|
217
217
|
this.MergeArray.push({
|
|
218
218
|
s: { r: this.Row, c: ColStart },
|
|
@@ -222,7 +222,7 @@ class PaymentsMadeXlsxFileService {
|
|
|
222
222
|
});
|
|
223
223
|
this.Row += 1;
|
|
224
224
|
}
|
|
225
|
-
static ConvertToString(Text, IsString) {
|
|
225
|
+
static ConvertToString(Text, IsString, DecimalsNumber) {
|
|
226
226
|
if (IsString) {
|
|
227
227
|
if (Text == null) {
|
|
228
228
|
Text = '';
|
|
@@ -234,7 +234,7 @@ class PaymentsMadeXlsxFileService {
|
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
236
|
if (typeof Text === 'number') {
|
|
237
|
-
return Number(tr_utils_1.TrUtils.FixedTo(Text));
|
|
237
|
+
return Number(tr_utils_1.TrUtils.FixedTo(Text, DecimalsNumber));
|
|
238
238
|
}
|
|
239
239
|
else {
|
|
240
240
|
return Text;
|
|
@@ -13,14 +13,14 @@ export declare class VenBalanceXlsxFileService {
|
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
15
|
static ws: any;
|
|
16
|
-
static GetInvoiceWiseExcelData(MainData: any): any;
|
|
16
|
+
static GetInvoiceWiseExcelData(MainData: any, EntitySettings: any): any;
|
|
17
17
|
static GetWOTypeName(Type: any, WOTypes: any): any;
|
|
18
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;
|
|
19
|
+
static setHeading1InCell(Name: any, DecimalsNumber: number): void;
|
|
20
|
+
static setInvoiceFinalRowInCell(Due: any, DecimalsNumber: number): void;
|
|
21
|
+
static setInvoiceDetailsInCell(MainData: any, DecimalsNumber: number): void;
|
|
22
|
+
static SetInvoiceDataInExcel(BillInfo: any, index: any, DecimalsNumber: number): void;
|
|
23
|
+
static ConvertToString(Text: any, IsString: any, DecimalsNumber: number): any;
|
|
24
24
|
static SetDataInCell(Data: any, ColRange: number, RowNum: any): void;
|
|
25
25
|
static getcelltype(cell: any): any;
|
|
26
26
|
static ConvertDateToReadableFormat(DateObject: any): any;
|
|
@@ -27,7 +27,7 @@ exports.VenBalanceXlsxFileService = void 0;
|
|
|
27
27
|
const XLSX = __importStar(require("xlsx"));
|
|
28
28
|
const tr_utils_1 = require("../../../../utils/tr-utils");
|
|
29
29
|
class VenBalanceXlsxFileService {
|
|
30
|
-
static GetInvoiceWiseExcelData(MainData) {
|
|
30
|
+
static GetInvoiceWiseExcelData(MainData, EntitySettings) {
|
|
31
31
|
this.wb = {};
|
|
32
32
|
this.ws = {};
|
|
33
33
|
this.Row = 0;
|
|
@@ -40,7 +40,7 @@ class VenBalanceXlsxFileService {
|
|
|
40
40
|
this.wb.SheetNames = [];
|
|
41
41
|
// MainData = this.GetTotals(MainData, WOTypes);
|
|
42
42
|
// this.setHeadingInCell();
|
|
43
|
-
this.setInvoiceDetailsInCell(MainData);
|
|
43
|
+
this.setInvoiceDetailsInCell(MainData, EntitySettings.DecimalsNumber);
|
|
44
44
|
this.ws['!ref'] = XLSX.utils.encode_range(this.range);
|
|
45
45
|
this.ws['!merges'] = this.MergeArray;
|
|
46
46
|
this.wb.SheetNames.push(ws_name);
|
|
@@ -128,7 +128,7 @@ class VenBalanceXlsxFileService {
|
|
|
128
128
|
});
|
|
129
129
|
this.Row += 1;
|
|
130
130
|
}
|
|
131
|
-
static setHeading1InCell(Name) {
|
|
131
|
+
static setHeading1InCell(Name, DecimalsNumber) {
|
|
132
132
|
let InvoiceData = [
|
|
133
133
|
{
|
|
134
134
|
text: Name,
|
|
@@ -138,7 +138,7 @@ class VenBalanceXlsxFileService {
|
|
|
138
138
|
];
|
|
139
139
|
let ColStart = 0;
|
|
140
140
|
InvoiceData.forEach((InvData) => {
|
|
141
|
-
InvData.text = this.ConvertToString(InvData.text, InvData.IsString);
|
|
141
|
+
InvData.text = this.ConvertToString(InvData.text, InvData.IsString, DecimalsNumber);
|
|
142
142
|
this.SetDataInCell(InvData.text, ColStart, this.Row);
|
|
143
143
|
this.MergeArray.push({
|
|
144
144
|
s: { r: this.Row, c: ColStart },
|
|
@@ -148,7 +148,7 @@ class VenBalanceXlsxFileService {
|
|
|
148
148
|
});
|
|
149
149
|
this.Row += 1;
|
|
150
150
|
}
|
|
151
|
-
static setInvoiceFinalRowInCell(Due) {
|
|
151
|
+
static setInvoiceFinalRowInCell(Due, DecimalsNumber) {
|
|
152
152
|
let InvoiceData = [
|
|
153
153
|
{
|
|
154
154
|
text: 'Total Due',
|
|
@@ -163,7 +163,7 @@ class VenBalanceXlsxFileService {
|
|
|
163
163
|
];
|
|
164
164
|
let ColStart = 3;
|
|
165
165
|
InvoiceData.forEach((InvData) => {
|
|
166
|
-
InvData.text = this.ConvertToString(InvData.text, InvData.IsString);
|
|
166
|
+
InvData.text = this.ConvertToString(InvData.text, InvData.IsString, DecimalsNumber);
|
|
167
167
|
this.SetDataInCell(InvData.text, ColStart, this.Row);
|
|
168
168
|
this.MergeArray.push({
|
|
169
169
|
s: { r: this.Row, c: ColStart },
|
|
@@ -173,9 +173,9 @@ class VenBalanceXlsxFileService {
|
|
|
173
173
|
});
|
|
174
174
|
this.Row += 1;
|
|
175
175
|
}
|
|
176
|
-
static setInvoiceDetailsInCell(MainData) {
|
|
176
|
+
static setInvoiceDetailsInCell(MainData, DecimalsNumber) {
|
|
177
177
|
MainData.forEach((Record) => {
|
|
178
|
-
this.setHeading1InCell(Record.Name);
|
|
178
|
+
this.setHeading1InCell(Record.Name, DecimalsNumber);
|
|
179
179
|
// this.MergeArray.push({
|
|
180
180
|
// s: { r: this.Row, c: ColStart },
|
|
181
181
|
// e: { r: this.Row, c: ColStart + InvData.ColRange - 1 },
|
|
@@ -183,15 +183,15 @@ class VenBalanceXlsxFileService {
|
|
|
183
183
|
// ColStart += InvData.ColRange;
|
|
184
184
|
this.setHeadingInCell();
|
|
185
185
|
Record.Bills.forEach((Invoice, index) => {
|
|
186
|
-
this.SetInvoiceDataInExcel(Invoice, index);
|
|
186
|
+
this.SetInvoiceDataInExcel(Invoice, index, DecimalsNumber);
|
|
187
187
|
if (Record.Bills.length === (index + 1)) {
|
|
188
|
-
this.setInvoiceFinalRowInCell(Record.Balance);
|
|
188
|
+
this.setInvoiceFinalRowInCell(Record.Balance, DecimalsNumber);
|
|
189
189
|
}
|
|
190
190
|
});
|
|
191
191
|
this.Row += 1;
|
|
192
192
|
});
|
|
193
193
|
}
|
|
194
|
-
static SetInvoiceDataInExcel(BillInfo, index) {
|
|
194
|
+
static SetInvoiceDataInExcel(BillInfo, index, DecimalsNumber) {
|
|
195
195
|
// BillInfo.CrDate = this.ConvertDateToReadableFormat(BillInfo.CrDate);
|
|
196
196
|
BillInfo.CrDate = this.ConvertDateToReadableFormat(BillInfo.CrDate);
|
|
197
197
|
let InvoiceData = [
|
|
@@ -203,7 +203,7 @@ class VenBalanceXlsxFileService {
|
|
|
203
203
|
];
|
|
204
204
|
let ColStart = 0;
|
|
205
205
|
InvoiceData.forEach((InvData) => {
|
|
206
|
-
InvData.text = this.ConvertToString(InvData.text, InvData.IsString);
|
|
206
|
+
InvData.text = this.ConvertToString(InvData.text, InvData.IsString, DecimalsNumber);
|
|
207
207
|
this.SetDataInCell(InvData.text, ColStart, this.Row);
|
|
208
208
|
this.MergeArray.push({
|
|
209
209
|
s: { r: this.Row, c: ColStart },
|
|
@@ -213,7 +213,7 @@ class VenBalanceXlsxFileService {
|
|
|
213
213
|
});
|
|
214
214
|
this.Row += 1;
|
|
215
215
|
}
|
|
216
|
-
static ConvertToString(Text, IsString) {
|
|
216
|
+
static ConvertToString(Text, IsString, DecimalsNumber) {
|
|
217
217
|
if (IsString) {
|
|
218
218
|
if (Text == null) {
|
|
219
219
|
Text = '';
|
|
@@ -225,7 +225,7 @@ class VenBalanceXlsxFileService {
|
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
227
|
if (typeof Text === 'number') {
|
|
228
|
-
return Number(tr_utils_1.TrUtils.FixedTo(Text));
|
|
228
|
+
return Number(tr_utils_1.TrUtils.FixedTo(Text, DecimalsNumber));
|
|
229
229
|
}
|
|
230
230
|
else {
|
|
231
231
|
return Text;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
export declare class POTotalsService {
|
|
2
|
-
static GetTotalsValue(ItemsList: any, IsIndependentTax: boolean, DetailedInfo: boolean, Disc: any, Perc: any, TaxCodes: any, WithItems: boolean): any;
|
|
2
|
+
static GetTotalsValue(ItemsList: any, IsIndependentTax: boolean, DetailedInfo: boolean, Disc: any, Perc: any, TaxCodes: any, WithItems: boolean, EntitySettings: any): any;
|
|
3
3
|
static CalculateItemValues(ItemsList: any): any;
|
|
4
4
|
static ResetItemValues(ItemsList: any): any;
|
|
5
5
|
static ResetItemValueIfInvalid(Item: any): any;
|
|
6
6
|
static GetItemDiscountedPrice(Price: any, Qty: any, Disc: any, DiscInPerc: boolean): any;
|
|
7
7
|
static GetItemTotalAfterDiscount(Price: any, Qty: any, Disc: any, DiscInPerc: boolean): number;
|
|
8
|
-
static GetFinalPODataForSave(ItemsList: any, IsIndependentTax: boolean, Disc: any, Perc: any, DetailedInfo: boolean): any;
|
|
8
|
+
static GetFinalPODataForSave(ItemsList: any, IsIndependentTax: boolean, Disc: any, Perc: any, DetailedInfo: boolean, DecimalsNumber: number): any;
|
|
9
9
|
static ResetRecordDiscountsIfInvalid(Disc: any, Perc: boolean, finalTotalsData: any, DetailedInfo: boolean): any;
|
|
10
|
-
static GetFinalTotalsData(finalTotalsData: any, ItemsList: any, IsIndependentTax: boolean, Disc: any, Perc: boolean, DetailedInfo: boolean): any;
|
|
10
|
+
static GetFinalTotalsData(finalTotalsData: any, ItemsList: any, IsIndependentTax: boolean, Disc: any, Perc: boolean, DetailedInfo: boolean, DecimalsNumber: number): any;
|
|
11
11
|
static GetSubTotal(ItemsList: any): any;
|
|
12
|
-
static GetDetailedTotalsData(finalTotalsData: any, IsIndependentTax: boolean, ItemsList: any, TaxCodes: any): any;
|
|
12
|
+
static GetDetailedTotalsData(finalTotalsData: any, IsIndependentTax: boolean, ItemsList: any, TaxCodes: any, DecimalsNumber: number): any;
|
|
13
13
|
static GetItemGSTTaxTotal(ItemsList: Array<any>): number[];
|
|
14
14
|
static GetItemDiscountedTotal(ItemsList: any): any;
|
|
15
15
|
static GetItemsTotalAfterDiscount(ItemsList: any): any;
|
|
16
16
|
static GetItemsTaxTotal(ItemsList: any, IsIndependentTax: boolean): any;
|
|
17
17
|
static GetTotalBasedOnTaxType(ItemsTaxAmount: number, ItemsList: any, IsIndependentTax: boolean, Discount: number, DiscInPerc: boolean): number;
|
|
18
|
-
static GetItemsTaxGrouping(ItemsList: any, TaxCodes: any): any[];
|
|
19
|
-
static GetTaxGroupingItemsByHSN(Items: any, TaxCodes: any): any[];
|
|
18
|
+
static GetItemsTaxGrouping(ItemsList: any, TaxCodes: any, DecimalsNumber: number): any[];
|
|
19
|
+
static GetTaxGroupingItemsByHSN(Items: any, TaxCodes: any, DecimalsNumber: number): any[];
|
|
20
20
|
static GetCombinedTaxPercentage(Items: any, TaxCodes: any): any;
|
|
21
21
|
static CompareItemsByHSN(Items: any, TaxCodes: any): any[];
|
|
22
|
-
static GetTaxGroupingInfoByHSN(FinalMatchedItems: any, TaxCodes: any): any[];
|
|
22
|
+
static GetTaxGroupingInfoByHSN(FinalMatchedItems: any, TaxCodes: any, DecimalsNumber: number): any[];
|
|
23
23
|
static GetGSTValueBasedOnTaxCode(TCode: any, argTaxCodes: any): any[];
|
|
24
24
|
}
|