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
|
@@ -465,22 +465,6 @@ export declare class SharedPDFService {
|
|
|
465
465
|
}[];
|
|
466
466
|
static CreateHSNTaxTable1(PartsTaxInfo: any, ShowAccParts: any, ShowIGST: any, ShowTaxColumn: any): any;
|
|
467
467
|
static CreateHSNTaxTable(PartsTaxInfo: any, ShowAccParts: any, ShowIGST: any, ShowTaxColumn: any): any;
|
|
468
|
-
static GetHCFinalTotalDetails(RecordData: any, BasicLaborTotal: any, OverAllMainLaborDiscount: any, LCGST: any, LSGST: any, LIGST: any, PIGST: any, ShowIGST: any, ShowTaxColumn: any, BasicPartsTotal: any, OverAllMainPartsDiscount: any, PCGST: any, PSGST: any, PartsTaxInfo: any, ShowAccParts: any, LaborAfterGST: any, PartsAfterGST: any, OverAllRecordDiscount: any, For: any, OverAllRecordTotal: any, Rounded: any, GrandTotal: any, ShowDetailedLaborTaxInfo: any, ShowDetailedPartTaxInfo: any, istaxable: boolean, LaborTotalTax: any, PartTotalTax: any, Consolidate: boolean, From: string, Adj: any, STotal: any, moreDiscDetails: boolean): {
|
|
469
|
-
columns: ({
|
|
470
|
-
style: string[];
|
|
471
|
-
lineHeight: number;
|
|
472
|
-
marginBottom: number;
|
|
473
|
-
width: string;
|
|
474
|
-
table: {
|
|
475
|
-
body: any;
|
|
476
|
-
};
|
|
477
|
-
layout: string;
|
|
478
|
-
} | {
|
|
479
|
-
text: string;
|
|
480
|
-
width: number;
|
|
481
|
-
})[];
|
|
482
|
-
marginLeft: number;
|
|
483
|
-
};
|
|
484
468
|
static GetFinalTotalDetails1(RecordData: any, BasicLaborTotal: any, OverAllMainLaborDiscount: any, LCGST: any, LSGST: any, LIGST: any, PIGST: any, ShowIGST: any, ShowTaxColumn: any, BasicPartsTotal: any, OverAllMainPartsDiscount: any, PCGST: any, PSGST: any, PartsTaxInfo: any, ShowAccParts: any, LaborAfterGST: any, PartsAfterGST: any, OverAllRecordDiscount: any, For: any, OverAllRecordTotal: any, Rounded: any, GrandTotal: any, ShowDetailedLaborTaxInfo: any, ShowDetailedPartTaxInfo: any, istaxable: boolean, LaborTotalTax: any, PartTotalTax: any, Consolidate: boolean, From: string, Adj: any, CustLaborTaxGroupDataByPerc: any, STotal: any, isAuto: boolean, moreDiscDetails: boolean): {
|
|
485
469
|
columns: ({
|
|
486
470
|
style: string[];
|
|
@@ -1536,40 +1536,42 @@ class SharedPDFService {
|
|
|
1536
1536
|
return [{}];
|
|
1537
1537
|
}
|
|
1538
1538
|
}
|
|
1539
|
-
static GetHCFinalTotalDetails(RecordData, BasicLaborTotal, OverAllMainLaborDiscount, LCGST, LSGST, LIGST, PIGST, ShowIGST, ShowTaxColumn
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1539
|
+
// static GetHCFinalTotalDetails(RecordData: any, BasicLaborTotal: any, OverAllMainLaborDiscount: any, LCGST: any, LSGST: any, LIGST: any, PIGST: any, ShowIGST: any, ShowTaxColumn: any,
|
|
1540
|
+
// BasicPartsTotal: any, OverAllMainPartsDiscount: any, PCGST: any, PSGST: any, PartsTaxInfo: any,
|
|
1541
|
+
// ShowAccParts: any, LaborAfterGST: any, PartsAfterGST: any, OverAllRecordDiscount: any, For: any,
|
|
1542
|
+
// OverAllRecordTotal: any, Rounded: any, GrandTotal: any, ShowDetailedLaborTaxInfo: any,
|
|
1543
|
+
// ShowDetailedPartTaxInfo: any, istaxable: boolean, LaborTotalTax: any, PartTotalTax: any, Consolidate: boolean, From: string, Adj: any, STotal: any, moreDiscDetails: boolean) {
|
|
1544
|
+
// let totalDisc: any;
|
|
1545
|
+
// let totalTax: any;
|
|
1546
|
+
// if (!Consolidate) {
|
|
1547
|
+
// totalTax = TrUtils.FixPriceValue(Number(LaborTotalTax) + Number(PartTotalTax));
|
|
1548
|
+
// if (istaxable) {
|
|
1549
|
+
// totalDisc = TrUtils.FixPriceValue(Number(OverAllMainLaborDiscount) + Number(OverAllMainPartsDiscount));
|
|
1550
|
+
// } else {
|
|
1551
|
+
// totalDisc = TrUtils.FixPriceValue(Number(OverAllMainLaborDiscount) + Number(OverAllMainPartsDiscount) + Number(OverAllRecordDiscount));
|
|
1552
|
+
// }
|
|
1553
|
+
// }
|
|
1554
|
+
// return {
|
|
1555
|
+
// columns: [
|
|
1556
|
+
// // this.GetTaxOnLabor(BasicLaborTotal, OverAllMainLaborDiscount, LCGST,
|
|
1557
|
+
// // LSGST, LIGST, ShowIGST, ShowTaxColumn, ShowDetailedLaborTaxInfo),
|
|
1558
|
+
// { text: '', width: 225 },
|
|
1559
|
+
// // {
|
|
1560
|
+
// // stack: [
|
|
1561
|
+
// // this.GetTaxOnParts(BasicPartsTotal, OverAllMainPartsDiscount, PCGST,
|
|
1562
|
+
// // PSGST, ShowAccParts, PIGST, ShowIGST, ShowTaxColumn, ShowDetailedPartTaxInfo, From),
|
|
1563
|
+
// // this.PartsTaxAmounts(PartsTaxInfo, ShowAccParts, ShowIGST,
|
|
1564
|
+
// // ShowTaxColumn)
|
|
1565
|
+
// // ]
|
|
1566
|
+
// // },
|
|
1567
|
+
// { text: '', width: 230 },
|
|
1568
|
+
// // this.GrandTotal(LaborAfterGST, PartsAfterGST, totalDisc, For, OverAllRecordTotal, Rounded, GrandTotal)
|
|
1569
|
+
// this.GrandTotal(RecordData, BasicLaborTotal, BasicPartsTotal, totalDisc, totalTax, For, OverAllRecordTotal, Rounded, GrandTotal, Adj, Consolidate, STotal, moreDiscDetails)
|
|
1570
|
+
// ]
|
|
1571
|
+
// // columnGap: 40
|
|
1572
|
+
// , marginLeft: 10
|
|
1573
|
+
// };
|
|
1574
|
+
// }
|
|
1573
1575
|
static GetFinalTotalDetails1(RecordData, BasicLaborTotal, OverAllMainLaborDiscount, LCGST, LSGST, LIGST, PIGST, ShowIGST, ShowTaxColumn, BasicPartsTotal, OverAllMainPartsDiscount, PCGST, PSGST, PartsTaxInfo, ShowAccParts, LaborAfterGST, PartsAfterGST, OverAllRecordDiscount, For, OverAllRecordTotal, Rounded, GrandTotal, ShowDetailedLaborTaxInfo, ShowDetailedPartTaxInfo, istaxable, LaborTotalTax, PartTotalTax, Consolidate, From, Adj, CustLaborTaxGroupDataByPerc, STotal, isAuto, moreDiscDetails) {
|
|
1574
1576
|
let totalDisc;
|
|
1575
1577
|
let totalTax;
|
|
@@ -22,6 +22,7 @@ class PrintSharedService {
|
|
|
22
22
|
// MyDate.UserTimeZone = EntityData.User.TZ;
|
|
23
23
|
let Entity = {};
|
|
24
24
|
Entity.User = EntityData.User;
|
|
25
|
+
Entity.DecimalsNumber = 2;
|
|
25
26
|
if (tr_utils_1.TrUtils.IsNull(tempEntity.Settings.Common)) {
|
|
26
27
|
tempEntity.Settings.Common = {};
|
|
27
28
|
}
|
package/dist/utils/tr-utils.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export declare class TrUtils {
|
|
2
|
-
static DecimalsNumber: number;
|
|
3
2
|
static IsNull(Value: any): boolean;
|
|
4
3
|
static IsEmpty(Value: any): boolean;
|
|
5
4
|
static IsZero(Value: any): boolean;
|
|
@@ -7,8 +6,8 @@ export declare class TrUtils {
|
|
|
7
6
|
static Stringify(RecordData: any): any;
|
|
8
7
|
static ConcatObjects(obj1: any, obj2: any): any;
|
|
9
8
|
static ConvertPercToVal(Discount: any, Total: any): number | null;
|
|
10
|
-
static FixedTo(value: any): number;
|
|
11
|
-
static FixPriceValue(Value: any): string;
|
|
9
|
+
static FixedTo(value: any, DecimalsNumber?: number): number;
|
|
10
|
+
static FixPriceValue(Value: any, DecimalsNumber?: number): string;
|
|
12
11
|
static SetValueToZeroIfNull(Value: any): any;
|
|
13
12
|
static SetPercToStringIfNull(Value: any): any;
|
|
14
13
|
static SetPercToTrueIfNull(Value: any): any;
|
package/dist/utils/tr-utils.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TrUtils = void 0;
|
|
4
|
+
const aggregation_1 = require("../aggregation/aggregation");
|
|
4
5
|
class TrUtils {
|
|
6
|
+
// static DecimalsNumber:number=2;
|
|
5
7
|
static IsNull(Value) {
|
|
6
8
|
return Value === null || typeof Value === 'undefined';
|
|
7
9
|
}
|
|
@@ -39,29 +41,29 @@ class TrUtils {
|
|
|
39
41
|
if (this.IsNull(Total)) {
|
|
40
42
|
Total = 0;
|
|
41
43
|
}
|
|
42
|
-
let value = this.FixedTo(((Total
|
|
44
|
+
let value = this.FixedTo((0, aggregation_1.division)((0, aggregation_1.multiply)(Total, Discount), 100));
|
|
43
45
|
if (isNaN(value)) {
|
|
44
46
|
value = 0;
|
|
45
47
|
}
|
|
46
48
|
return value;
|
|
47
49
|
}
|
|
48
50
|
}
|
|
49
|
-
static FixedTo(value) {
|
|
51
|
+
static FixedTo(value, DecimalsNumber = 2) {
|
|
50
52
|
if (this.IsNull(value)) {
|
|
51
53
|
value = 0;
|
|
52
54
|
}
|
|
53
55
|
value = Number(value);
|
|
54
|
-
let Result = value.toFixed(
|
|
56
|
+
let Result = value.toFixed(DecimalsNumber);
|
|
55
57
|
return Number(Result);
|
|
56
58
|
}
|
|
57
|
-
static FixPriceValue(Value) {
|
|
59
|
+
static FixPriceValue(Value, DecimalsNumber = 2) {
|
|
58
60
|
if (this.IsNull(Value)) {
|
|
59
61
|
Value = 0;
|
|
60
62
|
}
|
|
61
63
|
if (typeof Value === 'string') {
|
|
62
64
|
Value = Number(Value);
|
|
63
65
|
}
|
|
64
|
-
let Result = Value.toFixed(
|
|
66
|
+
let Result = Value.toFixed(DecimalsNumber);
|
|
65
67
|
return Result;
|
|
66
68
|
}
|
|
67
69
|
static SetValueToZeroIfNull(Value) {
|
|
@@ -90,4 +92,3 @@ class TrUtils {
|
|
|
90
92
|
}
|
|
91
93
|
}
|
|
92
94
|
exports.TrUtils = TrUtils;
|
|
93
|
-
TrUtils.DecimalsNumber = 2;
|