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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare class ManfWiseSalesService {
|
|
2
|
-
static GetManfWiseSalePrint(InvoicesData: any,
|
|
2
|
+
static GetManfWiseSalePrint(InvoicesData: any, EntityData: any, isPhar: boolean, isHC: boolean, isSale: boolean, HeaderName: any, searchValue: any): {
|
|
3
3
|
info: {
|
|
4
4
|
title: string;
|
|
5
5
|
};
|
|
@@ -205,9 +205,9 @@ export declare class ManfWiseSalesService {
|
|
|
205
205
|
};
|
|
206
206
|
};
|
|
207
207
|
};
|
|
208
|
-
static GetInvoiceDataTable(InvoicesData: any, isPhar: boolean, isHC: boolean, isSale: boolean): any;
|
|
208
|
+
static GetInvoiceDataTable(InvoicesData: any, isPhar: boolean, isHC: boolean, isSale: boolean, DecimalsNumber: number): any;
|
|
209
209
|
static getTableWidths(isSale: any): (string | number)[];
|
|
210
|
-
static GetItemsTable(InvoiceData: any, isPhar: boolean, isHC: boolean, isSale: boolean): {
|
|
210
|
+
static GetItemsTable(InvoiceData: any, isPhar: boolean, isHC: boolean, isSale: boolean, DecimalsNumber: number): {
|
|
211
211
|
style: string;
|
|
212
212
|
marginTop: number;
|
|
213
213
|
marginBottom: number;
|
|
@@ -223,6 +223,6 @@ export declare class ManfWiseSalesService {
|
|
|
223
223
|
vLineColor: (i: any, node: any) => string;
|
|
224
224
|
};
|
|
225
225
|
};
|
|
226
|
-
static BuildTableBodyForLaborAndParts(InvoiceData: any, isPhar: boolean, isHC: boolean, isSale: boolean): any;
|
|
226
|
+
static BuildTableBodyForLaborAndParts(InvoiceData: any, isPhar: boolean, isHC: boolean, isSale: boolean, DecimalsNumber: number): any;
|
|
227
227
|
static GetHeaderNames(isPhar: boolean, isHC: boolean, isSale: boolean): any;
|
|
228
228
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ManfWiseSalesService = void 0;
|
|
4
|
+
const aggregation_1 = require("../../../../aggregation/aggregation");
|
|
4
5
|
const shared_pdf_service_1 = require("../../../../shared/shared-pdf.service");
|
|
5
6
|
const tr_utils_1 = require("../../../../utils/tr-utils");
|
|
6
7
|
class ManfWiseSalesService {
|
|
7
|
-
static GetManfWiseSalePrint(InvoicesData,
|
|
8
|
+
static GetManfWiseSalePrint(InvoicesData, EntityData, isPhar, isHC, isSale, HeaderName, searchValue) {
|
|
8
9
|
var dd = {
|
|
9
10
|
info: {
|
|
10
11
|
title: 'ManfWiseSale',
|
|
@@ -14,19 +15,19 @@ class ManfWiseSalesService {
|
|
|
14
15
|
},
|
|
15
16
|
pageMargins: [10, 15, 10, 15],
|
|
16
17
|
content: [
|
|
17
|
-
{ text: '' +
|
|
18
|
+
{ text: '' + EntityData.DName + '', style: ['header'] },
|
|
18
19
|
{ text: HeaderName, alignment: 'center', fontSize: 15, bold: true },
|
|
19
20
|
shared_pdf_service_1.SharedPDFService.GetSearchValueDetails(searchValue),
|
|
20
|
-
this.GetInvoiceDataTable(InvoicesData, isPhar, isHC, isSale),
|
|
21
|
+
this.GetInvoiceDataTable(InvoicesData, isPhar, isHC, isSale, EntityData.Settings.DecimalsNumber),
|
|
21
22
|
],
|
|
22
23
|
styles: shared_pdf_service_1.SharedPDFService.GetStyles()
|
|
23
24
|
};
|
|
24
25
|
return dd;
|
|
25
26
|
}
|
|
26
|
-
static GetInvoiceDataTable(InvoicesData, isPhar, isHC, isSale) {
|
|
27
|
+
static GetInvoiceDataTable(InvoicesData, isPhar, isHC, isSale, DecimalsNumber) {
|
|
27
28
|
let Data = [];
|
|
28
29
|
// InvoicesData.forEach((invoice: any) => {
|
|
29
|
-
Data.push(this.GetItemsTable(InvoicesData, isPhar, isHC, isSale));
|
|
30
|
+
Data.push(this.GetItemsTable(InvoicesData, isPhar, isHC, isSale, DecimalsNumber));
|
|
30
31
|
// });
|
|
31
32
|
return Data;
|
|
32
33
|
}
|
|
@@ -38,7 +39,7 @@ class ManfWiseSalesService {
|
|
|
38
39
|
return [22, '*', 25, 35, 50, 50, 50, 80];
|
|
39
40
|
}
|
|
40
41
|
}
|
|
41
|
-
static GetItemsTable(InvoiceData, isPhar, isHC, isSale) {
|
|
42
|
+
static GetItemsTable(InvoiceData, isPhar, isHC, isSale, DecimalsNumber) {
|
|
42
43
|
// InvoicesData.forEach((InvoiceData: any) => {
|
|
43
44
|
return {
|
|
44
45
|
style: 'tableExample',
|
|
@@ -47,7 +48,7 @@ class ManfWiseSalesService {
|
|
|
47
48
|
table: {
|
|
48
49
|
widths: this.getTableWidths(isSale),
|
|
49
50
|
headerRows: 1,
|
|
50
|
-
body: this.BuildTableBodyForLaborAndParts(InvoiceData, isPhar, isHC, isSale)
|
|
51
|
+
body: this.BuildTableBodyForLaborAndParts(InvoiceData, isPhar, isHC, isSale, DecimalsNumber)
|
|
51
52
|
// body:[['fsdfsdf','asfafdas','asdasdas','asdasdasd','asddass']]
|
|
52
53
|
},
|
|
53
54
|
layout: {
|
|
@@ -70,7 +71,7 @@ class ManfWiseSalesService {
|
|
|
70
71
|
};
|
|
71
72
|
// });
|
|
72
73
|
}
|
|
73
|
-
static BuildTableBodyForLaborAndParts(InvoiceData, isPhar, isHC, isSale) {
|
|
74
|
+
static BuildTableBodyForLaborAndParts(InvoiceData, isPhar, isHC, isSale, DecimalsNumber) {
|
|
74
75
|
let body = this.GetHeaderNames(isPhar, isHC, isSale);
|
|
75
76
|
// let Row: any = [{ text: InvoiceData.Name, alignment: 'left', colSpan: isHC ? 5 : 8, bold: true, fontSize: 12 }, {}, {}, {}, {}];
|
|
76
77
|
// if (!isHC) {
|
|
@@ -111,13 +112,13 @@ class ManfWiseSalesService {
|
|
|
111
112
|
dataRow.push({ text: invoice.Qty, alignment: 'right' });
|
|
112
113
|
// if(!isHC){
|
|
113
114
|
dataRow.push({ text: invoice.OfQty, alignment: 'right' });
|
|
114
|
-
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.UnAmt), alignment: 'right' });
|
|
115
|
-
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Disc), alignment: 'right' });
|
|
116
|
-
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Tax), alignment: 'right' });
|
|
115
|
+
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.UnAmt, DecimalsNumber), alignment: 'right' });
|
|
116
|
+
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Disc, DecimalsNumber), alignment: 'right' });
|
|
117
|
+
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Tax, DecimalsNumber), alignment: 'right' });
|
|
117
118
|
// dataRow.push({ text: TrUtils.IsNull(invoice.Prod) ? '' : invoice.Prod?.Model + ' ' + invoice.Prod?.Var });
|
|
118
119
|
// }
|
|
119
120
|
// dataRow.push({ text: invoice.BFrom.Name, alignment: 'left', style: ['headerstyle'], });
|
|
120
|
-
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.UnAmt
|
|
121
|
+
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue((0, aggregation_1.addition)(invoice.UnAmt, invoice.Tax), DecimalsNumber), alignment: 'right', style: ['headerstyle'], });
|
|
121
122
|
// dataRow.push({ text: TrUtils.FixPriceValue(invoice.Due), alignment: 'right', style: ['headerstyle'], });
|
|
122
123
|
body.push(dataRow);
|
|
123
124
|
// if (InvoiceData.Invoices.length === (index + 1)) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare class OperatorWiseSalesDetailsPDF {
|
|
2
|
-
static GetOperatorWiseSalesDetailsPrint(InvoicesData: any,
|
|
2
|
+
static GetOperatorWiseSalesDetailsPrint(InvoicesData: any, EntityData: any, isPhar: boolean, isHC: boolean, isSale: boolean, searchValue: any): {
|
|
3
3
|
info: {
|
|
4
4
|
title: string;
|
|
5
5
|
};
|
|
@@ -205,9 +205,9 @@ export declare class OperatorWiseSalesDetailsPDF {
|
|
|
205
205
|
};
|
|
206
206
|
};
|
|
207
207
|
};
|
|
208
|
-
static GetInvoiceDataTable(InvoicesData: any, isPhar: boolean, isHC: boolean): any;
|
|
208
|
+
static GetInvoiceDataTable(InvoicesData: any, isPhar: boolean, isHC: boolean, DecimalsNumber: number): any;
|
|
209
209
|
static getTableWidths(isHC: any): (string | number)[];
|
|
210
|
-
static GetItemsTable(InvoiceData: any, isPhar: boolean, isHC: boolean): {
|
|
210
|
+
static GetItemsTable(InvoiceData: any, isPhar: boolean, isHC: boolean, DecimalsNumber: number): {
|
|
211
211
|
style: string;
|
|
212
212
|
marginTop: number;
|
|
213
213
|
marginBottom: number;
|
|
@@ -223,6 +223,6 @@ export declare class OperatorWiseSalesDetailsPDF {
|
|
|
223
223
|
vLineColor: (i: any, node: any) => string;
|
|
224
224
|
};
|
|
225
225
|
};
|
|
226
|
-
static BuildTableBodyForLaborAndParts(InvoiceData: any, isPhar: boolean, isHC: boolean): any;
|
|
226
|
+
static BuildTableBodyForLaborAndParts(InvoiceData: any, isPhar: boolean, isHC: boolean, DecimalsNumber: number): any;
|
|
227
227
|
static GetHeaderNames(isPhar: boolean, isHC: boolean): any;
|
|
228
228
|
}
|
|
@@ -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 OperatorWiseSalesDetailsPDF {
|
|
8
|
-
static GetOperatorWiseSalesDetailsPrint(InvoicesData,
|
|
8
|
+
static GetOperatorWiseSalesDetailsPrint(InvoicesData, EntityData, isPhar, isHC, isSale, searchValue) {
|
|
9
9
|
// console.log('isSale', isSale);
|
|
10
10
|
var dd = {
|
|
11
11
|
info: {
|
|
@@ -16,19 +16,19 @@ class OperatorWiseSalesDetailsPDF {
|
|
|
16
16
|
},
|
|
17
17
|
pageMargins: [10, 15, 10, 15],
|
|
18
18
|
content: [
|
|
19
|
-
{ text: '' +
|
|
19
|
+
{ text: '' + EntityData.DName + '', style: ['header'] },
|
|
20
20
|
{ text: isSale ? 'Operator Wise Sales Details' : 'Doctor Wise Sales Details', alignment: 'center', fontSize: 15, bold: true },
|
|
21
21
|
shared_pdf_service_1.SharedPDFService.GetSearchValueDetails(searchValue),
|
|
22
|
-
this.GetInvoiceDataTable(InvoicesData, isPhar, isHC),
|
|
22
|
+
this.GetInvoiceDataTable(InvoicesData, isPhar, isHC, 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, isPhar, isHC) {
|
|
28
|
+
static GetInvoiceDataTable(InvoicesData, isPhar, isHC, DecimalsNumber) {
|
|
29
29
|
let Data = [];
|
|
30
30
|
// InvoicesData.forEach((invoice: any) => {
|
|
31
|
-
Data.push(this.GetItemsTable(InvoicesData, isPhar, isHC));
|
|
31
|
+
Data.push(this.GetItemsTable(InvoicesData, isPhar, isHC, DecimalsNumber));
|
|
32
32
|
// });
|
|
33
33
|
return Data;
|
|
34
34
|
}
|
|
@@ -39,7 +39,7 @@ class OperatorWiseSalesDetailsPDF {
|
|
|
39
39
|
return [25, 40, 70, '*', 40, 40, 50, 50, 50, 60];
|
|
40
40
|
// }
|
|
41
41
|
}
|
|
42
|
-
static GetItemsTable(InvoiceData, isPhar, isHC) {
|
|
42
|
+
static GetItemsTable(InvoiceData, isPhar, isHC, DecimalsNumber) {
|
|
43
43
|
return {
|
|
44
44
|
style: 'tableExample',
|
|
45
45
|
marginTop: 3,
|
|
@@ -47,7 +47,7 @@ class OperatorWiseSalesDetailsPDF {
|
|
|
47
47
|
table: {
|
|
48
48
|
widths: this.getTableWidths(isHC),
|
|
49
49
|
headerRows: 1,
|
|
50
|
-
body: this.BuildTableBodyForLaborAndParts(InvoiceData, isPhar, isHC)
|
|
50
|
+
body: this.BuildTableBodyForLaborAndParts(InvoiceData, isPhar, isHC, DecimalsNumber)
|
|
51
51
|
},
|
|
52
52
|
layout: {
|
|
53
53
|
hLineWidth: function (i, node) {
|
|
@@ -65,7 +65,7 @@ class OperatorWiseSalesDetailsPDF {
|
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
|
-
static BuildTableBodyForLaborAndParts(InvoiceData, isPhar, isHC) {
|
|
68
|
+
static BuildTableBodyForLaborAndParts(InvoiceData, isPhar, isHC, DecimalsNumber) {
|
|
69
69
|
let body = this.GetHeaderNames(isPhar, isHC);
|
|
70
70
|
InvoiceData.forEach((invoice, index) => {
|
|
71
71
|
let dataRow = [];
|
|
@@ -73,12 +73,12 @@ class OperatorWiseSalesDetailsPDF {
|
|
|
73
73
|
dataRow.push({ text: invoice.Code, style: ['headerstyle'], });
|
|
74
74
|
dataRow.push({ text: my_date_1.MyDate.ConvertUTCDateToReadable(invoice.CrDate) });
|
|
75
75
|
dataRow.push({ text: invoice.Name });
|
|
76
|
-
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.SubTotal), alignment: 'right' });
|
|
77
|
-
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Disc), alignment: 'right' });
|
|
78
|
-
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Tax), alignment: 'right' });
|
|
79
|
-
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Adjust), alignment: 'right' });
|
|
80
|
-
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Round), alignment: 'right' });
|
|
81
|
-
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Total), alignment: 'right', style: ['headerstyle'], });
|
|
76
|
+
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.SubTotal, DecimalsNumber), alignment: 'right' });
|
|
77
|
+
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Disc, DecimalsNumber), alignment: 'right' });
|
|
78
|
+
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Tax, DecimalsNumber), alignment: 'right' });
|
|
79
|
+
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Adjust, DecimalsNumber), alignment: 'right' });
|
|
80
|
+
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Round, DecimalsNumber), alignment: 'right' });
|
|
81
|
+
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Total, DecimalsNumber), alignment: 'right', style: ['headerstyle'], });
|
|
82
82
|
body.push(dataRow);
|
|
83
83
|
});
|
|
84
84
|
return body;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare class OperatorWiseSalesSummaryPDF {
|
|
2
|
-
static GetOperatorWiseSalesSummaryPrint(InvoicesData: any,
|
|
2
|
+
static GetOperatorWiseSalesSummaryPrint(InvoicesData: any, EntityData: any, isPhar: boolean, isHC: boolean, HeaderName: any, searchValue: any): {
|
|
3
3
|
info: {
|
|
4
4
|
title: string;
|
|
5
5
|
};
|
|
@@ -205,9 +205,9 @@ export declare class OperatorWiseSalesSummaryPDF {
|
|
|
205
205
|
};
|
|
206
206
|
};
|
|
207
207
|
};
|
|
208
|
-
static GetInvoiceDataTable(InvoicesData: any, isPhar: boolean, isHC: boolean): any;
|
|
208
|
+
static GetInvoiceDataTable(InvoicesData: any, isPhar: boolean, isHC: boolean, DecimalsNumber: number): any;
|
|
209
209
|
static getTableWidths(isHC: any): (string | number)[];
|
|
210
|
-
static GetItemsTable(InvoiceData: any, isPhar: boolean, isHC: boolean): {
|
|
210
|
+
static GetItemsTable(InvoiceData: any, isPhar: boolean, isHC: boolean, DecimalsNumber: number): {
|
|
211
211
|
style: string;
|
|
212
212
|
marginTop: number;
|
|
213
213
|
marginBottom: number;
|
|
@@ -223,6 +223,6 @@ export declare class OperatorWiseSalesSummaryPDF {
|
|
|
223
223
|
vLineColor: (i: any, node: any) => string;
|
|
224
224
|
};
|
|
225
225
|
};
|
|
226
|
-
static BuildTableBodyForLaborAndParts(InvoiceData: any, isPhar: boolean, isHC: boolean): any;
|
|
226
|
+
static BuildTableBodyForLaborAndParts(InvoiceData: any, isPhar: boolean, isHC: boolean, DecimalsNumber: number): any;
|
|
227
227
|
static GetHeaderNames(isPhar: boolean, isHC: boolean): any;
|
|
228
228
|
}
|
|
@@ -4,7 +4,7 @@ exports.OperatorWiseSalesSummaryPDF = void 0;
|
|
|
4
4
|
const shared_pdf_service_1 = require("../../../../shared/shared-pdf.service");
|
|
5
5
|
const tr_utils_1 = require("../../../../utils/tr-utils");
|
|
6
6
|
class OperatorWiseSalesSummaryPDF {
|
|
7
|
-
static GetOperatorWiseSalesSummaryPrint(InvoicesData,
|
|
7
|
+
static GetOperatorWiseSalesSummaryPrint(InvoicesData, EntityData, isPhar, isHC, HeaderName, searchValue) {
|
|
8
8
|
var dd = {
|
|
9
9
|
info: {
|
|
10
10
|
title: 'OperatorWiseSummary',
|
|
@@ -14,19 +14,19 @@ class OperatorWiseSalesSummaryPDF {
|
|
|
14
14
|
},
|
|
15
15
|
pageMargins: [10, 15, 10, 15],
|
|
16
16
|
content: [
|
|
17
|
-
{ text: '' +
|
|
17
|
+
{ text: '' + EntityData.DName + '', style: ['header'] },
|
|
18
18
|
{ text: HeaderName, alignment: 'center', fontSize: 15, bold: true },
|
|
19
19
|
shared_pdf_service_1.SharedPDFService.GetSearchValueDetails(searchValue),
|
|
20
|
-
this.GetInvoiceDataTable(InvoicesData, isPhar, isHC),
|
|
20
|
+
this.GetInvoiceDataTable(InvoicesData, isPhar, isHC, EntityData.Settings.DecimalsNumber),
|
|
21
21
|
],
|
|
22
22
|
styles: shared_pdf_service_1.SharedPDFService.GetStyles()
|
|
23
23
|
};
|
|
24
24
|
return dd;
|
|
25
25
|
}
|
|
26
|
-
static GetInvoiceDataTable(InvoicesData, isPhar, isHC) {
|
|
26
|
+
static GetInvoiceDataTable(InvoicesData, isPhar, isHC, DecimalsNumber) {
|
|
27
27
|
let Data = [];
|
|
28
28
|
// InvoicesData.forEach((invoice: any) => {
|
|
29
|
-
Data.push(this.GetItemsTable(InvoicesData, isPhar, isHC));
|
|
29
|
+
Data.push(this.GetItemsTable(InvoicesData, isPhar, isHC, DecimalsNumber));
|
|
30
30
|
// });
|
|
31
31
|
return Data;
|
|
32
32
|
}
|
|
@@ -37,7 +37,7 @@ class OperatorWiseSalesSummaryPDF {
|
|
|
37
37
|
return [25, '*', 40, 40, 40, 50, 50, 50, 80];
|
|
38
38
|
// }
|
|
39
39
|
}
|
|
40
|
-
static GetItemsTable(InvoiceData, isPhar, isHC) {
|
|
40
|
+
static GetItemsTable(InvoiceData, isPhar, isHC, DecimalsNumber) {
|
|
41
41
|
return {
|
|
42
42
|
style: 'tableExample',
|
|
43
43
|
marginTop: 3,
|
|
@@ -45,7 +45,7 @@ class OperatorWiseSalesSummaryPDF {
|
|
|
45
45
|
table: {
|
|
46
46
|
widths: this.getTableWidths(isHC),
|
|
47
47
|
headerRows: 1,
|
|
48
|
-
body: this.BuildTableBodyForLaborAndParts(InvoiceData, isPhar, isHC)
|
|
48
|
+
body: this.BuildTableBodyForLaborAndParts(InvoiceData, isPhar, isHC, DecimalsNumber)
|
|
49
49
|
},
|
|
50
50
|
layout: {
|
|
51
51
|
hLineWidth: function (i, node) {
|
|
@@ -63,7 +63,7 @@ class OperatorWiseSalesSummaryPDF {
|
|
|
63
63
|
}
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
|
-
static BuildTableBodyForLaborAndParts(InvoiceData, isPhar, isHC) {
|
|
66
|
+
static BuildTableBodyForLaborAndParts(InvoiceData, isPhar, isHC, DecimalsNumber) {
|
|
67
67
|
let body = this.GetHeaderNames(isPhar, isHC);
|
|
68
68
|
InvoiceData.forEach((invoice, index) => {
|
|
69
69
|
let dataRow = [];
|
|
@@ -72,12 +72,12 @@ class OperatorWiseSalesSummaryPDF {
|
|
|
72
72
|
dataRow.push({ text: invoice.Count, alignment: 'right' });
|
|
73
73
|
// dataRow.push({ text: invoice.Qty, alignment: 'right' });
|
|
74
74
|
// dataRow.push({ text: invoice.OfQty, alignment: 'right' });
|
|
75
|
-
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.SubTotal), alignment: 'right' });
|
|
76
|
-
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Disc), alignment: 'right' });
|
|
77
|
-
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Tax), alignment: 'right' });
|
|
78
|
-
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Adjust), alignment: 'right' });
|
|
79
|
-
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Round), alignment: 'right' });
|
|
80
|
-
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Total), alignment: 'right', style: ['headerstyle'], });
|
|
75
|
+
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.SubTotal, DecimalsNumber), alignment: 'right' });
|
|
76
|
+
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Disc, DecimalsNumber), alignment: 'right' });
|
|
77
|
+
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Tax, DecimalsNumber), alignment: 'right' });
|
|
78
|
+
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Adjust, DecimalsNumber), alignment: 'right' });
|
|
79
|
+
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Round, DecimalsNumber), alignment: 'right' });
|
|
80
|
+
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Total, DecimalsNumber), alignment: 'right', style: ['headerstyle'], });
|
|
81
81
|
body.push(dataRow);
|
|
82
82
|
});
|
|
83
83
|
return body;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare class SalesByServiceSummaryPDF {
|
|
2
|
-
static GetSalesbyServiceSummaryPrint(InvoicesData: any,
|
|
2
|
+
static GetSalesbyServiceSummaryPrint(InvoicesData: any, EntityData: any, HeaderName: any, searchValue: any, ForService: boolean): {
|
|
3
3
|
info: {
|
|
4
4
|
title: string;
|
|
5
5
|
};
|
|
@@ -205,9 +205,9 @@ export declare class SalesByServiceSummaryPDF {
|
|
|
205
205
|
};
|
|
206
206
|
};
|
|
207
207
|
};
|
|
208
|
-
static GetInvoiceDataTable(InvoicesData: any, ForService: boolean): any;
|
|
208
|
+
static GetInvoiceDataTable(InvoicesData: any, ForService: boolean, DecimalsNumber: number): any;
|
|
209
209
|
static getTableWidths(ForService: boolean): (string | number)[];
|
|
210
|
-
static GetItemsTable(InvoiceData: any, ForService: boolean): {
|
|
210
|
+
static GetItemsTable(InvoiceData: any, ForService: boolean, DecimalsNumber: number): {
|
|
211
211
|
style: string;
|
|
212
212
|
marginTop: number;
|
|
213
213
|
marginBottom: number;
|
|
@@ -223,6 +223,6 @@ export declare class SalesByServiceSummaryPDF {
|
|
|
223
223
|
vLineColor: (i: any, node: any) => string;
|
|
224
224
|
};
|
|
225
225
|
};
|
|
226
|
-
static BuildTableBodyForLaborAndParts(InvoiceData: any, ForService: boolean): any;
|
|
226
|
+
static BuildTableBodyForLaborAndParts(InvoiceData: any, ForService: boolean, DecimalsNumber: number): any;
|
|
227
227
|
static GetHeaderNames(ForService: boolean): any;
|
|
228
228
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SalesByServiceSummaryPDF = void 0;
|
|
4
|
+
const aggregation_1 = require("../../../../aggregation/aggregation");
|
|
4
5
|
const shared_pdf_service_1 = require("../../../../shared/shared-pdf.service");
|
|
5
6
|
const tr_utils_1 = require("../../../../utils/tr-utils");
|
|
6
7
|
class SalesByServiceSummaryPDF {
|
|
7
|
-
static GetSalesbyServiceSummaryPrint(InvoicesData,
|
|
8
|
+
static GetSalesbyServiceSummaryPrint(InvoicesData, EntityData, HeaderName, searchValue, ForService) {
|
|
8
9
|
var dd = {
|
|
9
10
|
info: {
|
|
10
11
|
title: 'SaleByServiceSummary',
|
|
@@ -14,19 +15,19 @@ class SalesByServiceSummaryPDF {
|
|
|
14
15
|
},
|
|
15
16
|
pageMargins: [10, 15, 10, 15],
|
|
16
17
|
content: [
|
|
17
|
-
{ text: '' +
|
|
18
|
+
{ text: '' + EntityData.DName + '', style: ['header'] },
|
|
18
19
|
{ text: HeaderName, alignment: 'center', fontSize: 15, bold: true },
|
|
19
20
|
shared_pdf_service_1.SharedPDFService.GetSearchValueDetails(searchValue),
|
|
20
|
-
this.GetInvoiceDataTable(InvoicesData, ForService),
|
|
21
|
+
this.GetInvoiceDataTable(InvoicesData, ForService, EntityData.Settings.DecimalsNumber),
|
|
21
22
|
],
|
|
22
23
|
styles: shared_pdf_service_1.SharedPDFService.GetStyles()
|
|
23
24
|
};
|
|
24
25
|
return dd;
|
|
25
26
|
}
|
|
26
|
-
static GetInvoiceDataTable(InvoicesData, ForService) {
|
|
27
|
+
static GetInvoiceDataTable(InvoicesData, ForService, DecimalsNumber) {
|
|
27
28
|
let Data = [];
|
|
28
29
|
// InvoicesData.forEach((invoice: any) => {
|
|
29
|
-
Data.push(this.GetItemsTable(InvoicesData, ForService));
|
|
30
|
+
Data.push(this.GetItemsTable(InvoicesData, ForService, DecimalsNumber));
|
|
30
31
|
// });
|
|
31
32
|
return Data;
|
|
32
33
|
}
|
|
@@ -38,7 +39,7 @@ class SalesByServiceSummaryPDF {
|
|
|
38
39
|
return [25, '*', 40, 40, 60, 55, 60, 70, 70];
|
|
39
40
|
}
|
|
40
41
|
}
|
|
41
|
-
static GetItemsTable(InvoiceData, ForService) {
|
|
42
|
+
static GetItemsTable(InvoiceData, ForService, DecimalsNumber) {
|
|
42
43
|
return {
|
|
43
44
|
style: 'tableExample',
|
|
44
45
|
marginTop: 3,
|
|
@@ -46,7 +47,7 @@ class SalesByServiceSummaryPDF {
|
|
|
46
47
|
table: {
|
|
47
48
|
widths: this.getTableWidths(ForService),
|
|
48
49
|
headerRows: 1,
|
|
49
|
-
body: this.BuildTableBodyForLaborAndParts(InvoiceData, ForService)
|
|
50
|
+
body: this.BuildTableBodyForLaborAndParts(InvoiceData, ForService, DecimalsNumber)
|
|
50
51
|
},
|
|
51
52
|
layout: {
|
|
52
53
|
hLineWidth: function (i, node) {
|
|
@@ -64,7 +65,7 @@ class SalesByServiceSummaryPDF {
|
|
|
64
65
|
}
|
|
65
66
|
};
|
|
66
67
|
}
|
|
67
|
-
static BuildTableBodyForLaborAndParts(InvoiceData, ForService) {
|
|
68
|
+
static BuildTableBodyForLaborAndParts(InvoiceData, ForService, DecimalsNumber) {
|
|
68
69
|
let body = this.GetHeaderNames(ForService);
|
|
69
70
|
InvoiceData.forEach((invoice, index) => {
|
|
70
71
|
let dataRow = [];
|
|
@@ -76,11 +77,11 @@ class SalesByServiceSummaryPDF {
|
|
|
76
77
|
dataRow.push({ text: invoice.Qty, alignment: 'right' });
|
|
77
78
|
// dataRow.push({ text: invoice.Qty, alignment: 'right' });
|
|
78
79
|
// dataRow.push({ text: invoice.OfQty, alignment: 'right' });
|
|
79
|
-
dataRow.push({ text: ForService ? tr_utils_1.TrUtils.FixPriceValue(invoice.Amt) : tr_utils_1.TrUtils.FixPriceValue(invoice.UnAmt), alignment: 'right' });
|
|
80
|
-
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Disc), alignment: 'right' });
|
|
81
|
-
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Tax), alignment: 'right' });
|
|
82
|
-
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.NetAmt
|
|
83
|
-
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.AvgPr), alignment: 'right' });
|
|
80
|
+
dataRow.push({ text: ForService ? tr_utils_1.TrUtils.FixPriceValue(invoice.Amt, DecimalsNumber) : tr_utils_1.TrUtils.FixPriceValue(invoice.UnAmt, DecimalsNumber), alignment: 'right' });
|
|
81
|
+
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Disc, DecimalsNumber), alignment: 'right' });
|
|
82
|
+
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Tax, DecimalsNumber), alignment: 'right' });
|
|
83
|
+
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue((0, aggregation_1.addition)(invoice.NetAmt, invoice.Tax), DecimalsNumber), alignment: 'right' });
|
|
84
|
+
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.AvgPr, DecimalsNumber), alignment: 'right' });
|
|
84
85
|
body.push(dataRow);
|
|
85
86
|
});
|
|
86
87
|
return body;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare class ScheduledDrugPDFService {
|
|
2
|
-
static GetScheduledDrugPrint(InvoicesData: any,
|
|
2
|
+
static GetScheduledDrugPrint(InvoicesData: any, EntityData: any, searchValue: any): {
|
|
3
3
|
info: {
|
|
4
4
|
title: string;
|
|
5
5
|
};
|
|
@@ -205,9 +205,9 @@ export declare class ScheduledDrugPDFService {
|
|
|
205
205
|
};
|
|
206
206
|
};
|
|
207
207
|
};
|
|
208
|
-
static GetInvoiceDataTable(InvoicesData: any): any;
|
|
208
|
+
static GetInvoiceDataTable(InvoicesData: any, DecimalsNumber: number): any;
|
|
209
209
|
static getTableWidths(): (string | number)[];
|
|
210
|
-
static GetItemsTable(InvoiceData: any): {
|
|
210
|
+
static GetItemsTable(InvoiceData: any, DecimalsNumber: number): {
|
|
211
211
|
style: string;
|
|
212
212
|
marginTop: number;
|
|
213
213
|
marginBottom: number;
|
|
@@ -223,6 +223,6 @@ export declare class ScheduledDrugPDFService {
|
|
|
223
223
|
vLineColor: (i: any, node: any) => string;
|
|
224
224
|
};
|
|
225
225
|
};
|
|
226
|
-
static BuildTableBodyForLaborAndParts(InvoiceData: any): any;
|
|
226
|
+
static BuildTableBodyForLaborAndParts(InvoiceData: any, DecimalsNumber: number): any;
|
|
227
227
|
static GetHeaderNames(): any;
|
|
228
228
|
}
|
|
@@ -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 ScheduledDrugPDFService {
|
|
8
|
-
static GetScheduledDrugPrint(InvoicesData,
|
|
8
|
+
static GetScheduledDrugPrint(InvoicesData, EntityData, searchValue) {
|
|
9
9
|
var dd = {
|
|
10
10
|
info: {
|
|
11
11
|
title: 'ScheduledDrugs',
|
|
@@ -15,19 +15,19 @@ class ScheduledDrugPDFService {
|
|
|
15
15
|
},
|
|
16
16
|
pageMargins: [10, 15, 10, 15],
|
|
17
17
|
content: [
|
|
18
|
-
{ text: '' +
|
|
18
|
+
{ text: '' + EntityData.DName + '', style: ['header'] },
|
|
19
19
|
{ text: 'Schedule Wise Drug Sales', alignment: 'center', fontSize: 15, bold: true },
|
|
20
20
|
shared_pdf_service_1.SharedPDFService.GetSearchValueDetails(searchValue),
|
|
21
|
-
this.GetInvoiceDataTable(InvoicesData),
|
|
21
|
+
this.GetInvoiceDataTable(InvoicesData, EntityData.Settings.DecimalsNumber),
|
|
22
22
|
],
|
|
23
23
|
styles: shared_pdf_service_1.SharedPDFService.GetStyles()
|
|
24
24
|
};
|
|
25
25
|
return dd;
|
|
26
26
|
}
|
|
27
|
-
static GetInvoiceDataTable(InvoicesData) {
|
|
27
|
+
static GetInvoiceDataTable(InvoicesData, DecimalsNumber) {
|
|
28
28
|
let Data = [];
|
|
29
29
|
// InvoicesData.forEach((invoice: any) => {
|
|
30
|
-
Data.push(this.GetItemsTable(InvoicesData));
|
|
30
|
+
Data.push(this.GetItemsTable(InvoicesData, DecimalsNumber));
|
|
31
31
|
// });
|
|
32
32
|
return Data;
|
|
33
33
|
}
|
|
@@ -38,7 +38,7 @@ class ScheduledDrugPDFService {
|
|
|
38
38
|
return [22, 50, 50, '*', '*', '*', 40, 40, 25, 40, 40];
|
|
39
39
|
// }
|
|
40
40
|
}
|
|
41
|
-
static GetItemsTable(InvoiceData) {
|
|
41
|
+
static GetItemsTable(InvoiceData, DecimalsNumber) {
|
|
42
42
|
// InvoicesData.forEach((InvoiceData: any) => {
|
|
43
43
|
return {
|
|
44
44
|
style: 'tableExample',
|
|
@@ -47,7 +47,7 @@ class ScheduledDrugPDFService {
|
|
|
47
47
|
table: {
|
|
48
48
|
widths: this.getTableWidths(),
|
|
49
49
|
headerRows: 1,
|
|
50
|
-
body: this.BuildTableBodyForLaborAndParts(InvoiceData)
|
|
50
|
+
body: this.BuildTableBodyForLaborAndParts(InvoiceData, DecimalsNumber)
|
|
51
51
|
// body:[['fsdfsdf','asfafdas','asdasdas','asdasdasd','asddass']]
|
|
52
52
|
},
|
|
53
53
|
layout: {
|
|
@@ -70,7 +70,7 @@ class ScheduledDrugPDFService {
|
|
|
70
70
|
};
|
|
71
71
|
// });
|
|
72
72
|
}
|
|
73
|
-
static BuildTableBodyForLaborAndParts(InvoiceData) {
|
|
73
|
+
static BuildTableBodyForLaborAndParts(InvoiceData, DecimalsNumber) {
|
|
74
74
|
let body = this.GetHeaderNames();
|
|
75
75
|
// let Row: any = [{ text: InvoiceData.Name, alignment: 'left', colSpan: isHC ? 5 : 8, bold: true, fontSize: 12 }, {}, {}, {}, {}];
|
|
76
76
|
// if (!isHC) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare class ScheduledDrugSummaryPDFService {
|
|
2
|
-
static GetScheduledDrugPrint(InvoicesData: any,
|
|
2
|
+
static GetScheduledDrugPrint(InvoicesData: any, EntityData: any, searchValue: any): {
|
|
3
3
|
info: {
|
|
4
4
|
title: string;
|
|
5
5
|
};
|
|
@@ -205,9 +205,9 @@ export declare class ScheduledDrugSummaryPDFService {
|
|
|
205
205
|
};
|
|
206
206
|
};
|
|
207
207
|
};
|
|
208
|
-
static GetInvoiceDataTable(InvoicesData: any): any;
|
|
208
|
+
static GetInvoiceDataTable(InvoicesData: any, DecimalsNumber: number): any;
|
|
209
209
|
static getTableWidths(): (string | number)[];
|
|
210
|
-
static GetItemsTable(InvoiceData: any): {
|
|
210
|
+
static GetItemsTable(InvoiceData: any, DecimalsNumber: number): {
|
|
211
211
|
style: string;
|
|
212
212
|
marginTop: number;
|
|
213
213
|
marginBottom: number;
|
|
@@ -223,6 +223,6 @@ export declare class ScheduledDrugSummaryPDFService {
|
|
|
223
223
|
vLineColor: (i: any, node: any) => string;
|
|
224
224
|
};
|
|
225
225
|
};
|
|
226
|
-
static BuildTableBodyForLaborAndParts(InvoiceData: any): any;
|
|
226
|
+
static BuildTableBodyForLaborAndParts(InvoiceData: any, DecimalsNumber: number): any;
|
|
227
227
|
static GetHeaderNames(): any;
|
|
228
228
|
}
|
|
@@ -4,7 +4,8 @@ exports.ScheduledDrugSummaryPDFService = void 0;
|
|
|
4
4
|
const shared_pdf_service_1 = require("../../../../shared/shared-pdf.service");
|
|
5
5
|
const tr_utils_1 = require("../../../../utils/tr-utils");
|
|
6
6
|
class ScheduledDrugSummaryPDFService {
|
|
7
|
-
static GetScheduledDrugPrint(InvoicesData,
|
|
7
|
+
static GetScheduledDrugPrint(InvoicesData, EntityData, searchValue) {
|
|
8
|
+
var _a;
|
|
8
9
|
var dd = {
|
|
9
10
|
info: {
|
|
10
11
|
title: 'ScheduledDrugSummary',
|
|
@@ -14,19 +15,19 @@ class ScheduledDrugSummaryPDFService {
|
|
|
14
15
|
},
|
|
15
16
|
pageMargins: [10, 15, 10, 15],
|
|
16
17
|
content: [
|
|
17
|
-
{ text: '' +
|
|
18
|
+
{ text: '' + EntityData.DName + '', style: ['header'] },
|
|
18
19
|
{ text: 'Schedule Wise Drug Sales', alignment: 'center', fontSize: 15, bold: true },
|
|
19
20
|
shared_pdf_service_1.SharedPDFService.GetSearchValueDetails(searchValue),
|
|
20
|
-
this.GetInvoiceDataTable(InvoicesData),
|
|
21
|
+
this.GetInvoiceDataTable(InvoicesData, (_a = EntityData.Settings) === null || _a === void 0 ? void 0 : _a.DecimalsNumber),
|
|
21
22
|
],
|
|
22
23
|
styles: shared_pdf_service_1.SharedPDFService.GetStyles()
|
|
23
24
|
};
|
|
24
25
|
return dd;
|
|
25
26
|
}
|
|
26
|
-
static GetInvoiceDataTable(InvoicesData) {
|
|
27
|
+
static GetInvoiceDataTable(InvoicesData, DecimalsNumber) {
|
|
27
28
|
let Data = [];
|
|
28
29
|
// InvoicesData.forEach((invoice: any) => {
|
|
29
|
-
Data.push(this.GetItemsTable(InvoicesData));
|
|
30
|
+
Data.push(this.GetItemsTable(InvoicesData, DecimalsNumber));
|
|
30
31
|
// });
|
|
31
32
|
return Data;
|
|
32
33
|
}
|
|
@@ -37,7 +38,7 @@ class ScheduledDrugSummaryPDFService {
|
|
|
37
38
|
return [25, '*', 40, 40, 40];
|
|
38
39
|
// }
|
|
39
40
|
}
|
|
40
|
-
static GetItemsTable(InvoiceData) {
|
|
41
|
+
static GetItemsTable(InvoiceData, DecimalsNumber) {
|
|
41
42
|
// InvoicesData.forEach((InvoiceData: any) => {
|
|
42
43
|
return {
|
|
43
44
|
style: 'tableExample',
|
|
@@ -46,7 +47,7 @@ class ScheduledDrugSummaryPDFService {
|
|
|
46
47
|
table: {
|
|
47
48
|
widths: this.getTableWidths(),
|
|
48
49
|
headerRows: 1,
|
|
49
|
-
body: this.BuildTableBodyForLaborAndParts(InvoiceData)
|
|
50
|
+
body: this.BuildTableBodyForLaborAndParts(InvoiceData, DecimalsNumber)
|
|
50
51
|
// body:[['fsdfsdf','asfafdas','asdasdas','asdasdasd','asddass']]
|
|
51
52
|
},
|
|
52
53
|
layout: {
|
|
@@ -69,7 +70,7 @@ class ScheduledDrugSummaryPDFService {
|
|
|
69
70
|
};
|
|
70
71
|
// });
|
|
71
72
|
}
|
|
72
|
-
static BuildTableBodyForLaborAndParts(InvoiceData) {
|
|
73
|
+
static BuildTableBodyForLaborAndParts(InvoiceData, DecimalsNumber) {
|
|
73
74
|
let body = this.GetHeaderNames();
|
|
74
75
|
// let Row: any = [{ text: InvoiceData.Name, alignment: 'left', colSpan: isHC ? 5 : 8, bold: true, fontSize: 12 }, {}, {}, {}, {}];
|
|
75
76
|
// if (!isHC) {
|
|
@@ -124,9 +125,9 @@ class ScheduledDrugSummaryPDFService {
|
|
|
124
125
|
// if(!isHC){
|
|
125
126
|
// dataRow.push({ text: batchdata });
|
|
126
127
|
// dataRow.push({ text: batchExdate });
|
|
127
|
-
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Qty), alignment: 'right' });
|
|
128
|
-
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.NetAmt), alignment: 'right' });
|
|
129
|
-
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Tax), alignment: 'right' });
|
|
128
|
+
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Qty, DecimalsNumber), alignment: 'right' });
|
|
129
|
+
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.NetAmt, DecimalsNumber), alignment: 'right' });
|
|
130
|
+
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(invoice.Tax, DecimalsNumber), alignment: 'right' });
|
|
130
131
|
// dataRow.push({ text: TrUtils.FixPriceValue(invoice.Total), alignment: 'right' });
|
|
131
132
|
// dataRow.push({ text: TrUtils.IsNull(invoice.Prod) ? '' : invoice.Prod?.Model + ' ' + invoice.Prod?.Var });
|
|
132
133
|
// }
|
|
@@ -671,7 +671,7 @@ class SharedInvoiceprintService {
|
|
|
671
671
|
let CommonDetails = [
|
|
672
672
|
shared_pdf_service_1.SharedPDFService.GetFinalTotalDetails(ROPrintData, ROPrintData.CustLaborTotalAfterDisc, ROPrintData.CustLaborDiscTotal, ROPrintData.CustLaborCGST, ROPrintData.CustLaborSGST, ROPrintData.CustLaborIGST, ROPrintData.CustPartIGST, ROPrintData.ShowIGST, ROPrintData.ShowTaxColumn, ROPrintData.CustPartsTotalAfterDisc, ROPrintData.CustPartsDiscTotal, ROPrintData.CustPartCGST, ROPrintData.CustPartSGST, ROPrintData.CustTaxGroupData, ROPrintData.ShowAccParts, ROPrintData.CustLaborAfterTax, ROPrintData.CustPartAfterTax, ROPrintData.FixedDisc, ROPrintData.For, ROPrintData.FixedTotal, ROPrintData.CustTotalRoundedBy, ROPrintData.CustRoundedTotal, ROPrintData.ShowTaxColumn, ROPrintData.ShowTaxColumn, tr_utils_1.TrUtils.isTaxable(ROPrintData.Settings.Tax), ROPrintData.CustLaborITax, ROPrintData.CustPartITax, ROPrintData.Consolidate, ROPrintData.From, ROPrintData.Adj, ROPrintData.STotal, moreDiscDetails),
|
|
673
673
|
this.GetNumberInWords(ROPrintData.CustRoundedTotal),
|
|
674
|
-
shared_pdf_service_1.SharedPDFService.InvoiceDueStatus(ROPrintData.Type, ROPrintData.Paid, ROPrintData.Due, ROPrintData.Sts, ROPrintData.isCountersale),
|
|
674
|
+
shared_pdf_service_1.SharedPDFService.InvoiceDueStatus(ROPrintData.Type, ROPrintData.Paid, ROPrintData.Due, ROPrintData.Sts, ROPrintData.isCountersale, ROPrintData.Entity.DecimalsNumber),
|
|
675
675
|
shared_pdf_service_1.SharedPDFService.GetTemsAndConditions(ROPrintData.Entity.Terms),
|
|
676
676
|
shared_pdf_service_1.SharedPDFService.GetBankDetials(ROPrintData.Entity.Bank, ROPrintData.Entity.PrBank),
|
|
677
677
|
shared_pdf_service_1.SharedPDFService.GetUnderLine(),
|