shareneus 1.4.35 → 1.4.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accounting/counter-sales/auto-sales-receipt-pdf.service.d.ts +290 -0
- package/dist/{services → accounting/counter-sales}/auto-sales-receipt-pdf.service.js +26 -26
- package/dist/accounting/counter-sales/pos-receipt-pdf.d.ts +156 -0
- package/dist/{services → accounting/counter-sales}/pos-receipt-pdf.js +20 -20
- package/dist/accounting/counter-sales/sales-receipt-pdf.service.d.ts +272 -0
- package/dist/{services → accounting/counter-sales}/sales-receipt-pdf.service.js +28 -27
- package/dist/accounting/counter-sales/sales-receipt-print.service.d.ts +18 -0
- package/dist/{services → accounting/counter-sales}/sales-receipt-print.service.js +67 -67
- package/dist/accounting/credit-note/cn-print.service.d.ts +14 -0
- package/dist/{services → accounting/credit-note}/cn-print.service.js +37 -37
- package/dist/accounting/credit-note/credit-note-pdf.service.d.ts +272 -0
- package/dist/{services → accounting/credit-note}/credit-note-pdf.service.js +18 -18
- package/dist/accounting/credit-note/credit-note-totals.service.d.ts +25 -0
- package/dist/{services → accounting/credit-note}/credit-note-totals.service.js +32 -32
- package/dist/accounting/debit-note/debit-note-pdf.service.d.ts +331 -0
- package/dist/{services → accounting/debit-note}/debit-note-pdf.service.js +16 -16
- package/dist/accounting/debit-note/debit-note-print.service.d.ts +14 -0
- package/dist/{services → accounting/debit-note}/debit-note-print.service.js +37 -37
- package/dist/accounting/debit-note/debit-note-totals.service.d.ts +22 -0
- package/dist/{services → accounting/debit-note}/debit-note-totals.service.js +29 -29
- package/dist/accounting/invoice/hc-inv-pdf.service.d.ts +357 -0
- package/dist/{services → accounting/invoice}/hc-inv-pdf.service.js +44 -44
- package/dist/accounting/invoice/inv-pdf.service.d.ts +314 -0
- package/dist/{services → accounting/invoice}/inv-pdf.service.js +56 -56
- package/dist/accounting/invoice/inv-print.service.d.ts +16 -0
- package/dist/{services → accounting/invoice}/inv-print.service.js +63 -63
- package/dist/accounting/invoice/invoice-landscape-pdf.service.d.ts +416 -0
- package/dist/{services → accounting/invoice}/invoice-landscape-pdf.service.js +31 -31
- package/dist/accounting/invoice/invoice-letterhead-pdf.service.d.ts +323 -0
- package/dist/{services → accounting/invoice}/invoice-letterhead-pdf.service.js +56 -56
- package/dist/accounting/invoice/invoice-portrait-pdf.d.ts +275 -0
- package/dist/{services → accounting/invoice}/invoice-portrait-pdf.js +53 -53
- package/dist/accounting/invoice/invoice-total.service.d.ts +43 -0
- package/dist/{services → accounting/invoice}/invoice-total.service.js +79 -79
- package/dist/accounting/invoice/shared-inv-pdf.service.d.ts +303 -0
- package/dist/accounting/invoice/shared-inv-pdf.service.js +763 -0
- package/dist/accounting/payment-receive/payment-pdf.service.d.ts +618 -0
- package/dist/{services → accounting/payment-receive}/payment-pdf.service.js +5 -5
- package/dist/accounting/payment-receive/receipt-print.service.d.ts +4 -0
- package/dist/{services → accounting/payment-receive}/receipt-print.service.js +6 -6
- package/dist/accounting/payment-receive/reports/pdf/customer-balances-pdf.service.d.ts +228 -0
- package/dist/{services → accounting/payment-receive/reports/pdf}/customer-balances-pdf.service.js +8 -8
- package/dist/accounting/payment-receive/reports/pdf/payment-report-pdf.service.d.ts +228 -0
- package/dist/{services → accounting/payment-receive/reports/pdf}/payment-report-pdf.service.js +4 -4
- package/dist/aggregation/aggregation.d.ts +4 -0
- package/dist/aggregation/aggregation.js +13 -13
- package/dist/appointments/appointments/appointment-total.service.d.ts +25 -0
- package/dist/{services → appointments/appointments}/appointment-total.service.js +38 -38
- package/dist/appointments/consultations/consultation-fee-receipt.service.d.ts +318 -0
- package/dist/{services → appointments/consultations}/consultation-fee-receipt.service.js +17 -17
- package/dist/appointments/consultations/consultation-full-pdf.service.d.ts +207 -0
- package/dist/{services → appointments/consultations}/consultation-full-pdf.service.js +11 -11
- package/dist/appointments/consultations/consultation-letterhead-pdf.service.d.ts +266 -0
- package/dist/{services → appointments/consultations}/consultation-letterhead-pdf.service.js +16 -16
- package/dist/appointments/consultations/consultation-pdf.service.d.ts +306 -0
- package/dist/{services → appointments/consultations}/consultation-pdf.service.js +16 -16
- package/dist/enums/cache-enums.d.ts +33 -0
- package/dist/enums/code-enums.d.ts +266 -0
- package/dist/enums/enums.d.ts +329 -0
- package/dist/enums/industry-enums.d.ts +16 -0
- package/dist/excel-files/cust-balance-excel.service.d.ts +26 -0
- package/dist/excel-files/cust-balance-excel.service.js +5 -5
- package/dist/excel-files/expiring-drugs-excel.service.d.ts +24 -0
- package/dist/excel-files/expiring-drugs-excel.service.js +7 -7
- package/dist/excel-files/insurance-expire-excel.service.d.ts +23 -0
- package/dist/excel-files/insurance-expire-excel.service.js +4 -4
- package/dist/excel-files/invoice-wise-excel.service.d.ts +26 -0
- package/dist/excel-files/invoice-wise-excel.service.js +3 -3
- package/dist/excel-files/next-service-date-excel.service.d.ts +25 -0
- package/dist/excel-files/next-service-date-excel.service.js +5 -5
- package/dist/excel-files/payment-receive-excel.service.d.ts +25 -0
- package/dist/excel-files/payment-receive-excel.service.js +6 -6
- package/dist/excel-files/payments-made-excel.service.d.ts +25 -0
- package/dist/excel-files/payments-made-excel.service.js +6 -6
- package/dist/excel-files/repair-orders-excel.service.d.ts +24 -0
- package/dist/excel-files/repair-orders-excel.service.js +10 -10
- package/dist/excel-files/sales-by-service-details-excel.service.d.ts +0 -0
- package/dist/excel-files/sales-by-service-summary-excel.service.d.ts +24 -0
- package/dist/excel-files/sales-by-service-summary-excel.service.js +14 -14
- package/dist/excel-files/scheduled-drug-summary-excel.service.d.ts +24 -0
- package/dist/excel-files/scheduled-drug-summary-excel.service.js +8 -8
- package/dist/excel-files/scheduled-drugs-excel.service.d.ts +24 -0
- package/dist/excel-files/scheduled-drugs-excel.service.js +10 -10
- package/dist/excel-files/spares-issue-excel.service.d.ts +26 -0
- package/dist/excel-files/spares-issue-excel.service.js +14 -14
- package/dist/excel-files/stock-excel.service.d.ts +23 -0
- package/dist/excel-files/stock-excel.service.js +3 -3
- package/dist/excel-files/ven-balance-excel.service.d.ts +27 -0
- package/dist/excel-files/ven-balance-excel.service.js +3 -3
- package/dist/gst/excel/GSTR-RO-excel.service.d.ts +27 -0
- package/dist/{excel-files → gst/excel}/GSTR-RO-excel.service.js +3 -3
- package/dist/gst/excel/GSTR1-excel.service.d.ts +16 -0
- package/dist/{excel-files → gst/excel}/GSTR1-excel.service.js +7 -7
- package/dist/gst/excel/GSTR2-excel.service.d.ts +16 -0
- package/dist/{excel-files → gst/excel}/GSTR2-excel.service.js +6 -6
- package/dist/gst/excel/tally-sales-import.service.d.ts +27 -0
- package/dist/{excel-files → gst/excel}/tally-sales-import.service.js +3 -3
- package/dist/index.d.ts +124 -0
- package/dist/index.js +102 -102
- package/dist/inventory/items/issue-parts-pdf.service.d.ts +303 -0
- package/dist/{services → inventory/items}/issue-parts-pdf.service.js +45 -45
- package/dist/inventory/items/item-bar-code-label-pdf.d.ts +127 -0
- package/dist/{services → inventory/items}/item-bar-code-label-pdf.js +3 -3
- package/dist/inventory/items/item-detais-pdf.d.ts +121 -0
- package/dist/{services → inventory/items}/item-detais-pdf.js +1 -1
- package/dist/inventory/items/item-price-for-pricelist.d.ts +1 -0
- package/dist/{services → inventory/items}/item-price-for-pricelist.js +44 -50
- package/dist/inventory/items/reports/excel/item-wise-mout-details.d.ts +23 -0
- package/dist/{excel-files → inventory/items/reports/excel}/item-wise-mout-details.js +4 -4
- package/dist/inventory/items/reports/excel/item-wise-mout-summary.d.ts +23 -0
- package/dist/{excel-files → inventory/items/reports/excel}/item-wise-mout-summary.js +4 -4
- package/dist/inventory/items/reports/pdf/expiring-drugs-pdf.service.d.ts +49 -0
- package/dist/{services → inventory/items/reports/pdf}/expiring-drugs-pdf.service.js +6 -6
- package/dist/inventory/items/reports/pdf/item-wise-mout-details-pdf.d.ts +229 -0
- package/dist/{services → inventory/items/reports/pdf}/item-wise-mout-details-pdf.js +4 -4
- package/dist/inventory/items/reports/pdf/item-wise-mout-summary-pdf.d.ts +228 -0
- package/dist/{services → inventory/items/reports/pdf}/item-wise-mout-summary-pdf.js +3 -3
- package/dist/inventory/items/reports/pdf/reorder-point-pdf.service.d.ts +48 -0
- package/dist/{services → inventory/items/reports/pdf}/reorder-point-pdf.service.js +3 -3
- package/dist/inventory/material-out/mout-pdf.service.d.ts +324 -0
- package/dist/{services → inventory/material-out}/mout-pdf.service.js +19 -19
- package/dist/inventory/transfer-order/transfer-order-pdf.service.d.ts +48 -0
- package/dist/{services → inventory/transfer-order}/transfer-order-pdf.service.js +2 -2
- package/dist/purchases/payment-made/reports/pdf/vendor-balances-pdf.service.d.ts +227 -0
- package/dist/{services → purchases/payment-made/reports/pdf}/vendor-balances-pdf.service.js +7 -7
- package/dist/purchases/purchase-order/po-totals.service.d.ts +24 -0
- package/dist/{services → purchases/purchase-order}/po-totals.service.js +29 -29
- package/dist/purchases/purchase-order/purchase-order-pdf.service.d.ts +526 -0
- package/dist/{services → purchases/purchase-order}/purchase-order-pdf.service.js +42 -42
- package/dist/purchases/purchase-order/purchase-order-print.service.d.ts +8 -0
- package/dist/{services → purchases/purchase-order}/purchase-order-print.service.js +46 -46
- package/dist/purchases/purchase-order/purchase-order-totals.service.d.ts +23 -0
- package/dist/{services → purchases/purchase-order}/purchase-order-totals.service.js +55 -55
- package/dist/purchases/vendor-credit-note/vendor-credit-note-pdf.service.d.ts +491 -0
- package/dist/{services → purchases/vendor-credit-note}/vendor-credit-note-pdf.service.js +29 -29
- package/dist/purchases/vendor-credit-note/vendor-credit-note-print.service.d.ts +6 -0
- package/dist/{services → purchases/vendor-credit-note}/vendor-credit-note-print.service.js +31 -31
- package/dist/purchases/vendor-credit-note/vendor-credit-note-totals.service.d.ts +24 -0
- package/dist/{services → purchases/vendor-credit-note}/vendor-credit-note-totals.service.js +38 -38
- package/dist/purchases/vendor-debit-note/vendor-debit-note-pdf.service.d.ts +271 -0
- package/dist/{services → purchases/vendor-debit-note}/vendor-debit-note-pdf.service.js +18 -18
- package/dist/purchases/vendor-debit-note/vendor-debit-note-print.service.d.ts +14 -0
- package/dist/{services → purchases/vendor-debit-note}/vendor-debit-note-print.service.js +34 -34
- package/dist/purchases/vendor-debit-note/vendor-debit-note-totals.service.d.ts +22 -0
- package/dist/{services → purchases/vendor-debit-note}/vendor-debit-note-totals.service.js +31 -31
- package/dist/sales/delivery-challan/dc-landscape-pdf.service.d.ts +416 -0
- package/dist/{services → sales/delivery-challan}/dc-landscape-pdf.service.js +30 -30
- package/dist/sales/delivery-challan/dc-landscape-without-price-pdf.service.d.ts +400 -0
- package/dist/{services → sales/delivery-challan}/dc-landscape-without-price-pdf.service.js +26 -26
- package/dist/sales/delivery-challan/dc-without-price-pdf.service.d.ts +271 -0
- package/dist/{services → sales/delivery-challan}/dc-without-price-pdf.service.js +17 -17
- package/dist/sales/delivery-challan/delivery-challan-pdf.service.d.ts +269 -0
- package/dist/{services → sales/delivery-challan}/delivery-challan-pdf.service.js +18 -18
- package/dist/sales/delivery-challan/delivery-challan-print.service.d.ts +12 -0
- package/dist/{services → sales/delivery-challan}/delivery-challan-print.service.js +30 -30
- package/dist/sales/delivery-challan/delivery-challan-totals.d.ts +27 -0
- package/dist/{services → sales/delivery-challan}/delivery-challan-totals.js +33 -33
- package/dist/sales/reports/excel/analysis-excel.service.d.ts +23 -0
- package/dist/{excel-files → sales/reports/excel}/analysis-excel.service.js +4 -4
- package/dist/sales/reports/excel/category-wise-item-excel.service.d.ts +23 -0
- package/dist/{excel-files → sales/reports/excel}/category-wise-item-excel.service.js +10 -10
- package/dist/sales/reports/excel/cust-wise-sales-details.d.ts +25 -0
- package/dist/{excel-files → sales/reports/excel}/cust-wise-sales-details.js +5 -5
- package/dist/sales/reports/excel/cust-wise-sales-summary-excel.service.d.ts +24 -0
- package/dist/{excel-files → sales/reports/excel}/cust-wise-sales-summary-excel.service.js +5 -5
- package/dist/sales/reports/excel/item-wise-doctor-sale-excel.service.d.ts +24 -0
- package/dist/{excel-files → sales/reports/excel}/item-wise-doctor-sale-excel.service.js +7 -7
- package/dist/sales/reports/excel/items-wise-sales-excel.service.d.ts +24 -0
- package/dist/{excel-files → sales/reports/excel}/items-wise-sales-excel.service.js +10 -10
- package/dist/sales/reports/excel/manf-wise-sales-excel.service.d.ts +24 -0
- package/dist/{excel-files → sales/reports/excel}/manf-wise-sales-excel.service.js +4 -4
- package/dist/sales/reports/excel/operator-wise-details.d.ts +23 -0
- package/dist/{excel-files → sales/reports/excel}/operator-wise-details.js +4 -4
- package/dist/sales/reports/excel/operator-wise-summary.d.ts +23 -0
- package/dist/{excel-files → sales/reports/excel}/operator-wise-summary.js +4 -4
- package/dist/sales/reports/excel/sa-wise-labor-sales-excel.service.d.ts +23 -0
- package/dist/{excel-files → sales/reports/excel}/sa-wise-labor-sales-excel.service.js +6 -6
- package/dist/sales/reports/excel/sa-wise-part-sales-excel.service.d.ts +23 -0
- package/dist/{excel-files → sales/reports/excel}/sa-wise-part-sales-excel.service.js +6 -6
- package/dist/sales/reports/excel/sale-summary-excel.service.d.ts +25 -0
- package/dist/{excel-files → sales/reports/excel}/sale-summary-excel.service.js +3 -3
- package/dist/sales/reports/pdf/analysis-pdf.service.d.ts +228 -0
- package/dist/{services → sales/reports/pdf}/analysis-pdf.service.js +9 -9
- package/dist/sales/reports/pdf/category-wise-item-pdf.service.d.ts +228 -0
- package/dist/{services → sales/reports/pdf}/category-wise-item-pdf.service.js +7 -7
- package/dist/sales/reports/pdf/cust-wise-sales-details-pdf.service.d.ts +228 -0
- package/dist/{services → sales/reports/pdf}/cust-wise-sales-details-pdf.service.js +9 -9
- package/dist/sales/reports/pdf/cust-wise-sales-summary-pdf.service.d.ts +228 -0
- package/dist/{services → sales/reports/pdf}/cust-wise-sales-summary-pdf.service.js +8 -9
- package/dist/sales/reports/pdf/item-wise-doctor-sale-pdf.service.d.ts +228 -0
- package/dist/{services → sales/reports/pdf}/item-wise-doctor-sale-pdf.service.js +4 -4
- package/dist/sales/reports/pdf/item-wise-sales-pdf.service.d.ts +228 -0
- package/dist/{services → sales/reports/pdf}/item-wise-sales-pdf.service.js +7 -8
- package/dist/sales/reports/pdf/manf-wise-sales-pdf.service.d.ts +228 -0
- package/dist/{services → sales/reports/pdf}/manf-wise-sales-pdf.service.js +6 -6
- package/dist/sales/reports/pdf/operator-wise-details-pdf.service.d.ts +228 -0
- package/dist/{services → sales/reports/pdf}/operator-wise-details-pdf.service.js +9 -9
- package/dist/sales/reports/pdf/operator-wise-summary-pdf.d.ts +228 -0
- package/dist/{services → sales/reports/pdf}/operator-wise-summary-pdf.js +8 -8
- package/dist/sales/reports/pdf/sales-by-service-pdf.service.d.ts +228 -0
- package/dist/{services → sales/reports/pdf}/sales-by-service-pdf.service.js +7 -7
- package/dist/sales/reports/pdf/scheduled-drug-pdf.service.d.ts +228 -0
- package/dist/{services → sales/reports/pdf}/scheduled-drug-pdf.service.js +8 -8
- package/dist/sales/reports/pdf/scheduled-drug-summary-pdf.service.d.ts +228 -0
- package/dist/{services → sales/reports/pdf}/scheduled-drug-summary-pdf.service.js +5 -5
- package/dist/sales/sales/equipment-design-pdf.service.d.ts +121 -0
- package/dist/{services → sales/sales}/equipment-design-pdf.service.js +12 -12
- package/dist/sales/sales/pack-ship-pdf.service.d.ts +262 -0
- package/dist/{services → sales/sales}/pack-ship-pdf.service.js +5 -5
- package/dist/sales/sales/pack-ship-print.service.d.ts +11 -0
- package/dist/{services → sales/sales}/pack-ship-print.service.js +27 -27
- package/dist/sales/sales/sales-pdf.service.d.ts +275 -0
- package/dist/{services → sales/sales}/sales-pdf.service.js +25 -25
- package/dist/sales/sales/sales-print.service.d.ts +15 -0
- package/dist/{services → sales/sales}/sales-print.service.js +58 -58
- package/dist/sales/sales/sales-totals.service.d.ts +27 -0
- package/dist/{services → sales/sales}/sales-totals.service.js +34 -34
- package/dist/services/checklist-pdf.d.ts +57 -0
- package/dist/services/checklist-pdf.js +5 -5
- package/dist/services/checklists-pdf.d.ts +12 -0
- package/dist/services/checklists-pdf.js +1 -1
- package/dist/services/est.print-service.d.ts +64 -0
- package/dist/services/est.print-service.js +151 -151
- package/dist/services/next-service-date-pdf.service.d.ts +228 -0
- package/dist/services/next-service-date-pdf.service.js +2 -2
- package/dist/services/reports/insurance-expire-pdf.service.d.ts +227 -0
- package/dist/services/{insurance-expire-pdf.service.js → reports/insurance-expire-pdf.service.js} +2 -2
- package/dist/services/reports/repair-orders-pdf.service.d.ts +229 -0
- package/dist/services/{repair-orders-pdf.service.js → reports/repair-orders-pdf.service.js} +4 -4
- package/dist/services/ro-pdf.service.d.ts +1060 -0
- package/dist/services/ro-pdf.service.js +82 -82
- package/dist/services/ro-print-service.d.ts +45 -0
- package/dist/services/ro-print-service.js +88 -88
- package/dist/services/ro-totals.service.d.ts +65 -0
- package/dist/services/ro-totals.service.js +123 -123
- package/dist/services/separate-wo-print.service.d.ts +494 -0
- package/dist/services/separate-wo-print.service.js +10 -10
- package/dist/services/shared-inv-pdf.service.d.ts +303 -0
- package/dist/services/shared-inv-pdf.service.js +46 -46
- package/dist/services/technician-pdf.service.d.ts +221 -0
- package/dist/services/technician-pdf.service.js +11 -11
- package/dist/services/technician-print.service.d.ts +5 -0
- package/dist/services/technician-print.service.js +10 -10
- package/dist/shared/math-operations.d.ts +53 -0
- package/dist/shared/math-operations.js +184 -0
- package/dist/shared/shared-services/shared-pdf.service.d.ts +926 -0
- package/dist/{services → shared/shared-services}/shared-pdf.service.js +120 -120
- package/dist/shared/shared-services/shared-print.service.d.ts +49 -0
- package/dist/{services → shared/shared-services}/shared-print.service.js +68 -68
- package/dist/shared/util.d.ts +3 -0
- package/dist/shared/util.js +15 -0
- package/dist/tasks/meetings/meeting-pdf.d.ts +107 -0
- package/dist/{services → tasks/meetings}/meeting-pdf.js +15 -15
- package/dist/tasks/tasks/task-pdf.service.d.ts +127 -0
- package/dist/{services → tasks/tasks}/task-pdf.service.js +12 -12
- package/dist/tasks/tasks/task-reports-pdf.service.d.ts +94 -0
- package/dist/{services → tasks/tasks}/task-reports-pdf.service.js +11 -11
- package/dist/utils/my-date.d.ts +104 -0
- package/dist/{shared → utils}/my-date.js +31 -31
- package/dist/utils/tr-utils.d.ts +41 -0
- package/dist/{shared/utils.js → utils/tr-utils.js} +0 -8
- package/package.json +2 -1
- package/tsconfig.json +1 -0
|
@@ -0,0 +1,416 @@
|
|
|
1
|
+
export declare class DCLandscapePdfService {
|
|
2
|
+
FontSize: number;
|
|
3
|
+
static GetDeliveryChallanPrint(ROPrintData: any, numberofCopies: any, moreDiscDetails: boolean): {
|
|
4
|
+
info: {
|
|
5
|
+
title: string;
|
|
6
|
+
};
|
|
7
|
+
background: (currentPage: any, pageSize: any) => any;
|
|
8
|
+
header: (currentPage: any, pageCount: any) => {
|
|
9
|
+
text: string;
|
|
10
|
+
alignment: string;
|
|
11
|
+
marginRight: number;
|
|
12
|
+
fontSize: number;
|
|
13
|
+
marginTop: number;
|
|
14
|
+
};
|
|
15
|
+
pageMargins: number[];
|
|
16
|
+
pageOrientation: string;
|
|
17
|
+
content: any[];
|
|
18
|
+
styles: {
|
|
19
|
+
temp2header: {
|
|
20
|
+
fontSize: number;
|
|
21
|
+
bold: boolean;
|
|
22
|
+
alignment: string;
|
|
23
|
+
};
|
|
24
|
+
tableheader1: {
|
|
25
|
+
bold: boolean;
|
|
26
|
+
fontFamily: string;
|
|
27
|
+
margin: number[];
|
|
28
|
+
alignment: string;
|
|
29
|
+
};
|
|
30
|
+
header: {
|
|
31
|
+
fontSize: number;
|
|
32
|
+
bold: boolean;
|
|
33
|
+
alignment: string;
|
|
34
|
+
};
|
|
35
|
+
meetingHeader: {
|
|
36
|
+
fontSize: number;
|
|
37
|
+
bold: boolean;
|
|
38
|
+
};
|
|
39
|
+
Receiptheader: {
|
|
40
|
+
fontSize: number;
|
|
41
|
+
bold: boolean;
|
|
42
|
+
alignment: string;
|
|
43
|
+
margin: number[];
|
|
44
|
+
};
|
|
45
|
+
InlineHeader: {
|
|
46
|
+
fontSize: number;
|
|
47
|
+
bold: boolean;
|
|
48
|
+
alignment: string;
|
|
49
|
+
margin: number[];
|
|
50
|
+
};
|
|
51
|
+
TaskHeading: {
|
|
52
|
+
fontSize: number;
|
|
53
|
+
bold: boolean;
|
|
54
|
+
margin: number[];
|
|
55
|
+
};
|
|
56
|
+
lettersSize: {
|
|
57
|
+
fontSize: number;
|
|
58
|
+
margin: number[];
|
|
59
|
+
};
|
|
60
|
+
tablexample: {
|
|
61
|
+
margin: number[];
|
|
62
|
+
};
|
|
63
|
+
hedstyl: {
|
|
64
|
+
margin: number[];
|
|
65
|
+
};
|
|
66
|
+
header2: {
|
|
67
|
+
fontSize: number;
|
|
68
|
+
bold: boolean;
|
|
69
|
+
alignment: string;
|
|
70
|
+
margin: number[];
|
|
71
|
+
};
|
|
72
|
+
header1: {
|
|
73
|
+
fontSize: number;
|
|
74
|
+
bold: boolean;
|
|
75
|
+
alignment: string;
|
|
76
|
+
decoration: string;
|
|
77
|
+
margin: number[];
|
|
78
|
+
};
|
|
79
|
+
ws_adrs_center: {
|
|
80
|
+
fontSize: number;
|
|
81
|
+
alignment: string;
|
|
82
|
+
};
|
|
83
|
+
ws_adrs_center1: {
|
|
84
|
+
fontSize: number;
|
|
85
|
+
alignment: string;
|
|
86
|
+
};
|
|
87
|
+
ws_adrs_left: {
|
|
88
|
+
fontSize: number;
|
|
89
|
+
alignment: string;
|
|
90
|
+
};
|
|
91
|
+
ws_adrs_left1: {
|
|
92
|
+
fontSize: number;
|
|
93
|
+
alignment: string;
|
|
94
|
+
};
|
|
95
|
+
columnheader: {
|
|
96
|
+
margin: number[];
|
|
97
|
+
};
|
|
98
|
+
tableExample: {
|
|
99
|
+
margin: number[];
|
|
100
|
+
fontSize: number;
|
|
101
|
+
};
|
|
102
|
+
tableExamplemargin: {
|
|
103
|
+
margin: number[];
|
|
104
|
+
fontSize: number;
|
|
105
|
+
};
|
|
106
|
+
textcust: {
|
|
107
|
+
fontSize: number;
|
|
108
|
+
margin: number[];
|
|
109
|
+
};
|
|
110
|
+
column: {
|
|
111
|
+
margin: number[];
|
|
112
|
+
};
|
|
113
|
+
tableheader: {
|
|
114
|
+
bold: boolean;
|
|
115
|
+
fontSize: number;
|
|
116
|
+
margin: number[];
|
|
117
|
+
alignment: string;
|
|
118
|
+
};
|
|
119
|
+
tableheader2: {
|
|
120
|
+
fontSize: number;
|
|
121
|
+
margin: number[];
|
|
122
|
+
alignment: string;
|
|
123
|
+
opacity: number;
|
|
124
|
+
};
|
|
125
|
+
hed: {
|
|
126
|
+
fontSize: number;
|
|
127
|
+
bold: boolean;
|
|
128
|
+
};
|
|
129
|
+
hed2: {
|
|
130
|
+
fontSize: number;
|
|
131
|
+
};
|
|
132
|
+
TotalsStyles: {
|
|
133
|
+
marginTop: number;
|
|
134
|
+
lineHeight: number;
|
|
135
|
+
fontSize: number;
|
|
136
|
+
margin: number[];
|
|
137
|
+
};
|
|
138
|
+
colum1: {
|
|
139
|
+
fontSize: number;
|
|
140
|
+
lineHeight: number;
|
|
141
|
+
};
|
|
142
|
+
colum2: {
|
|
143
|
+
fontSize: number;
|
|
144
|
+
lineHeight: number;
|
|
145
|
+
margin: number[];
|
|
146
|
+
};
|
|
147
|
+
colum3: {
|
|
148
|
+
lineHeight: number;
|
|
149
|
+
};
|
|
150
|
+
Receiptheader1: {
|
|
151
|
+
fontSize: number;
|
|
152
|
+
bold: boolean;
|
|
153
|
+
alignment: string;
|
|
154
|
+
margin: number[];
|
|
155
|
+
};
|
|
156
|
+
Row1: {
|
|
157
|
+
fontSize: number;
|
|
158
|
+
margin: number[];
|
|
159
|
+
};
|
|
160
|
+
rowdata: {
|
|
161
|
+
margin: number[];
|
|
162
|
+
fontSize: number;
|
|
163
|
+
};
|
|
164
|
+
forCompany: {
|
|
165
|
+
margin: number[];
|
|
166
|
+
fontSize: string;
|
|
167
|
+
};
|
|
168
|
+
forCompany1: {
|
|
169
|
+
margin: number[];
|
|
170
|
+
fontSize: string;
|
|
171
|
+
};
|
|
172
|
+
Rupees: {
|
|
173
|
+
margin: number[];
|
|
174
|
+
fontSize: string;
|
|
175
|
+
};
|
|
176
|
+
Signature: {
|
|
177
|
+
margin: number[];
|
|
178
|
+
alignment: string;
|
|
179
|
+
fontSize: string;
|
|
180
|
+
};
|
|
181
|
+
withApp: {
|
|
182
|
+
alignment: string;
|
|
183
|
+
lineHeight: number;
|
|
184
|
+
};
|
|
185
|
+
withOutApp: {
|
|
186
|
+
alignment: string;
|
|
187
|
+
lineHeight: number;
|
|
188
|
+
};
|
|
189
|
+
Sign: {
|
|
190
|
+
fontSize: number;
|
|
191
|
+
margin: number[];
|
|
192
|
+
};
|
|
193
|
+
Sign1: {
|
|
194
|
+
fontSize: number;
|
|
195
|
+
margin: number[];
|
|
196
|
+
};
|
|
197
|
+
'margin-all': {
|
|
198
|
+
margin: number[];
|
|
199
|
+
};
|
|
200
|
+
'margin-top': {
|
|
201
|
+
margin: number[];
|
|
202
|
+
};
|
|
203
|
+
'margin-bottom': {
|
|
204
|
+
margin: number[];
|
|
205
|
+
};
|
|
206
|
+
fontSize: {
|
|
207
|
+
fontSize: number;
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
static GetFileName(ROPrintData: any): string;
|
|
212
|
+
static GetAddress(Entity: any): string;
|
|
213
|
+
static GetHeaderInfo(InvoicePDFData: any): any;
|
|
214
|
+
static GetBillofSupplyName(Settings: any): {
|
|
215
|
+
text: string | null;
|
|
216
|
+
alignment: string;
|
|
217
|
+
marginRight: number;
|
|
218
|
+
marginTop: number;
|
|
219
|
+
marginBottom: number;
|
|
220
|
+
fontSize: number;
|
|
221
|
+
width: string;
|
|
222
|
+
};
|
|
223
|
+
static CommonHeaderDetails(ROPrintData: any, text: any): ({
|
|
224
|
+
text: string;
|
|
225
|
+
alignment: string;
|
|
226
|
+
bold: boolean;
|
|
227
|
+
fontSize: number;
|
|
228
|
+
color?: undefined;
|
|
229
|
+
width?: undefined;
|
|
230
|
+
marginTop?: undefined;
|
|
231
|
+
style?: undefined;
|
|
232
|
+
table?: undefined;
|
|
233
|
+
layout?: undefined;
|
|
234
|
+
} | {
|
|
235
|
+
text: any;
|
|
236
|
+
color: string;
|
|
237
|
+
alignment: string;
|
|
238
|
+
width: number;
|
|
239
|
+
marginTop: number;
|
|
240
|
+
fontSize: number;
|
|
241
|
+
bold?: undefined;
|
|
242
|
+
style?: undefined;
|
|
243
|
+
table?: undefined;
|
|
244
|
+
layout?: undefined;
|
|
245
|
+
} | {
|
|
246
|
+
style: string;
|
|
247
|
+
table: {
|
|
248
|
+
widths: string[];
|
|
249
|
+
body: ({
|
|
250
|
+
stack: any[];
|
|
251
|
+
width: number;
|
|
252
|
+
marginLeft: number;
|
|
253
|
+
} | {
|
|
254
|
+
lineHeight: number;
|
|
255
|
+
fontSize: number;
|
|
256
|
+
table: {
|
|
257
|
+
body: any;
|
|
258
|
+
};
|
|
259
|
+
layout: string;
|
|
260
|
+
} | {
|
|
261
|
+
stack: ({
|
|
262
|
+
text: any;
|
|
263
|
+
alignment: string;
|
|
264
|
+
bold: boolean;
|
|
265
|
+
fontSize: number;
|
|
266
|
+
style?: undefined;
|
|
267
|
+
stack?: undefined;
|
|
268
|
+
} | {
|
|
269
|
+
text: string;
|
|
270
|
+
alignment: string;
|
|
271
|
+
style: string[];
|
|
272
|
+
bold?: undefined;
|
|
273
|
+
fontSize?: undefined;
|
|
274
|
+
stack?: undefined;
|
|
275
|
+
} | {
|
|
276
|
+
stack: any;
|
|
277
|
+
text?: undefined;
|
|
278
|
+
alignment?: undefined;
|
|
279
|
+
bold?: undefined;
|
|
280
|
+
fontSize?: undefined;
|
|
281
|
+
style?: undefined;
|
|
282
|
+
})[];
|
|
283
|
+
})[][];
|
|
284
|
+
};
|
|
285
|
+
layout: {
|
|
286
|
+
hLineWidth: (i: any, node: any) => number;
|
|
287
|
+
vLineWidth: (i: any, node: any) => number;
|
|
288
|
+
hLineColor: (i: any, node: any) => string;
|
|
289
|
+
vLineColor: (i: any, node: any) => string;
|
|
290
|
+
};
|
|
291
|
+
text?: undefined;
|
|
292
|
+
alignment?: undefined;
|
|
293
|
+
bold?: undefined;
|
|
294
|
+
fontSize?: undefined;
|
|
295
|
+
color?: undefined;
|
|
296
|
+
width?: undefined;
|
|
297
|
+
marginTop?: undefined;
|
|
298
|
+
})[];
|
|
299
|
+
static MainHeading(CName: any, Entity: any, Image: any, HColor: any, CopyName: any): any;
|
|
300
|
+
static GetAddresDetailsAndLogo(Entity: any, Image: any, AColor: any, HColor: any, text: any): any;
|
|
301
|
+
static GetMainHeaderDetails(Entity: any, HeaderName: any, Image: any, HColor: any, AColor: any, text: any): ({
|
|
302
|
+
columns: any;
|
|
303
|
+
} | {
|
|
304
|
+
canvas: {
|
|
305
|
+
type: string;
|
|
306
|
+
lineColor: string;
|
|
307
|
+
x1: number;
|
|
308
|
+
y1: number;
|
|
309
|
+
x2: number;
|
|
310
|
+
y2: number;
|
|
311
|
+
lineWidth: number;
|
|
312
|
+
}[];
|
|
313
|
+
})[];
|
|
314
|
+
static PreparesparePartsTable(ROPrintData: any): any;
|
|
315
|
+
static WithOutDiscountFieldTable(Parts: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any): any;
|
|
316
|
+
static GetWithOutDiscountFieldHeader1(permission: any, Body: any, ShowIGST: any, ShowDiscountColumn: any): any;
|
|
317
|
+
static GetWithOutDiscountFieldHeader2(permission: any, Body: any, ShowDiscountColumn: any): any;
|
|
318
|
+
static GetWithOutDiscountFieldHeader(permission: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ShowDiscountColumn: any): any;
|
|
319
|
+
static BuildTableBodyForLaborAndParts(Parts: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any): any;
|
|
320
|
+
static GetWithOutDiscAndTaxFieldHeader(Parts: any, ShowTaxColumn: any, PrintPartNo: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any): any;
|
|
321
|
+
static TaxTableWidths(PrintPartNo: any, ShowIGST: any, ShowDiscountColumn: any): (string | number)[];
|
|
322
|
+
static TaxDataTable(Parts: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any): {
|
|
323
|
+
style: string;
|
|
324
|
+
marginTop: number;
|
|
325
|
+
table: {
|
|
326
|
+
widths: (string | number)[];
|
|
327
|
+
body: any;
|
|
328
|
+
};
|
|
329
|
+
layout: {
|
|
330
|
+
hLineWidth: (i: any, node: any) => number;
|
|
331
|
+
vLineWidth: (i: any, node: any) => number;
|
|
332
|
+
hLineColor: (i: any, node: any) => string;
|
|
333
|
+
vLineColor: (i: any, node: any) => string;
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
static LayOutStyle(): {
|
|
337
|
+
hLineWidth: (i: any, node: any) => 0 | 0.7;
|
|
338
|
+
vLineWidth: (i: any, node: any) => number;
|
|
339
|
+
hLineColor: (i: any, node: any) => string;
|
|
340
|
+
vLineColor: (i: any, node: any) => string;
|
|
341
|
+
};
|
|
342
|
+
static ConsolidateDataTable(Parts: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any): {
|
|
343
|
+
style: string;
|
|
344
|
+
marginTop: number;
|
|
345
|
+
table: {
|
|
346
|
+
widths: number[];
|
|
347
|
+
body: any;
|
|
348
|
+
};
|
|
349
|
+
layout: {
|
|
350
|
+
hLineWidth: (i: any, node: any) => number;
|
|
351
|
+
vLineWidth: (i: any, node: any) => number;
|
|
352
|
+
hLineColor: (i: any, node: any) => string;
|
|
353
|
+
vLineColor: (i: any, node: any) => string;
|
|
354
|
+
};
|
|
355
|
+
};
|
|
356
|
+
static WidthForInsuranceOrNot(ShowDiscountColumn: any, PrintPartNo: boolean): (string | number)[];
|
|
357
|
+
static NoTaxDataTable(Parts: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any): {
|
|
358
|
+
style: string;
|
|
359
|
+
marginTop: number;
|
|
360
|
+
table: {
|
|
361
|
+
widths: (string | number)[];
|
|
362
|
+
body: any;
|
|
363
|
+
};
|
|
364
|
+
layout: {
|
|
365
|
+
hLineWidth: (i: any, node: any) => number;
|
|
366
|
+
vLineWidth: (i: any, node: any) => number;
|
|
367
|
+
hLineColor: (i: any, node: any) => string;
|
|
368
|
+
vLineColor: (i: any, node: any) => string;
|
|
369
|
+
};
|
|
370
|
+
};
|
|
371
|
+
static CommonTotalDetails(ROPrintData: any, index: any, numberofCopies: any, moreDiscDetails: boolean): any[];
|
|
372
|
+
static GetSignatures(CName: any, For: any, Type: any): {
|
|
373
|
+
columns: {
|
|
374
|
+
stack: ({
|
|
375
|
+
style: string;
|
|
376
|
+
text: (string | {
|
|
377
|
+
text: any;
|
|
378
|
+
bold: string;
|
|
379
|
+
})[];
|
|
380
|
+
} | {
|
|
381
|
+
columns: any[];
|
|
382
|
+
})[];
|
|
383
|
+
}[];
|
|
384
|
+
};
|
|
385
|
+
static CompanyName(CName: any): {
|
|
386
|
+
style: string;
|
|
387
|
+
text: (string | {
|
|
388
|
+
text: any;
|
|
389
|
+
bold: string;
|
|
390
|
+
})[];
|
|
391
|
+
};
|
|
392
|
+
static Authorizedsignature(): {
|
|
393
|
+
style: string;
|
|
394
|
+
text: string[];
|
|
395
|
+
};
|
|
396
|
+
static CustomerSignature(): {
|
|
397
|
+
style: string;
|
|
398
|
+
text: string[];
|
|
399
|
+
marginLeft: number;
|
|
400
|
+
};
|
|
401
|
+
static TotalDetails(ROPrintData: any, moreDiscDetails: boolean): {
|
|
402
|
+
style: string;
|
|
403
|
+
marginTop: number;
|
|
404
|
+
table: {
|
|
405
|
+
widths: string[];
|
|
406
|
+
heights: number[];
|
|
407
|
+
body: any[][];
|
|
408
|
+
};
|
|
409
|
+
layout: {
|
|
410
|
+
hLineWidth: (i: any, node: any) => number;
|
|
411
|
+
vLineWidth: (i: any, node: any) => number;
|
|
412
|
+
hLineColor: (i: any, node: any) => string;
|
|
413
|
+
vLineColor: (i: any, node: any) => string;
|
|
414
|
+
};
|
|
415
|
+
}[];
|
|
416
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DCLandscapePdfService = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
4
|
+
const shared_pdf_service_1 = require("../../shared/shared-services/shared-pdf.service");
|
|
5
|
+
const shared_print_service_1 = require("../../shared/shared-services/shared-print.service");
|
|
6
|
+
const my_date_1 = require("../../utils/my-date");
|
|
7
|
+
const tr_utils_1 = require("../../utils/tr-utils");
|
|
8
8
|
class DCLandscapePdfService {
|
|
9
9
|
constructor() {
|
|
10
10
|
this.FontSize = 8;
|
|
11
11
|
}
|
|
12
12
|
static GetDeliveryChallanPrint(ROPrintData, numberofCopies, moreDiscDetails) {
|
|
13
13
|
var contents = [];
|
|
14
|
-
if (
|
|
14
|
+
if (tr_utils_1.TrUtils.IsNull(numberofCopies) || numberofCopies.length === 0) {
|
|
15
15
|
contents.push(this.CommonHeaderDetails(ROPrintData, null), this.PreparesparePartsTable(ROPrintData), this.CommonTotalDetails(ROPrintData, null, numberofCopies, moreDiscDetails));
|
|
16
16
|
}
|
|
17
17
|
else {
|
|
@@ -42,7 +42,7 @@ class DCLandscapePdfService {
|
|
|
42
42
|
}
|
|
43
43
|
static GetFileName(ROPrintData) {
|
|
44
44
|
let fileName = ROPrintData.HeaderName;
|
|
45
|
-
if (!
|
|
45
|
+
if (!tr_utils_1.TrUtils.IsNull(ROPrintData.Product) && !tr_utils_1.TrUtils.IsEmpty(ROPrintData.Product.RegNo)) {
|
|
46
46
|
fileName = fileName + '-' + ROPrintData.Product.RegNo;
|
|
47
47
|
}
|
|
48
48
|
return fileName;
|
|
@@ -52,10 +52,10 @@ class DCLandscapePdfService {
|
|
|
52
52
|
}
|
|
53
53
|
static GetHeaderInfo(InvoicePDFData) {
|
|
54
54
|
let TaxInfo = [];
|
|
55
|
-
if (!
|
|
55
|
+
if (!tr_utils_1.TrUtils.IsEmpty(InvoicePDFData.Entity.GSTIN)) {
|
|
56
56
|
TaxInfo.push({ text: 'GSTIN : ' + InvoicePDFData.Entity.GSTIN, marginTop: 2, marginLeft: 5, alignment: 'left', fontSize: 9, width: 'auto' });
|
|
57
57
|
}
|
|
58
|
-
if (!
|
|
58
|
+
if (!tr_utils_1.TrUtils.IsEmpty(InvoicePDFData.Entity.DLNo)) {
|
|
59
59
|
TaxInfo.push({ text: 'D.L.NO : ' + InvoicePDFData.Entity.DLNo, marginTop: 2, marginLeft: 5, alignment: 'left', fontSize: 9, width: '*' });
|
|
60
60
|
}
|
|
61
61
|
TaxInfo.push(this.GetBillofSupplyName(InvoicePDFData.Settings));
|
|
@@ -129,19 +129,19 @@ class DCLandscapePdfService {
|
|
|
129
129
|
]
|
|
130
130
|
}
|
|
131
131
|
];
|
|
132
|
-
if (!
|
|
132
|
+
if (!tr_utils_1.TrUtils.IsNull(Image)) {
|
|
133
133
|
// Details.unshift({ text: '', width: 120 });
|
|
134
134
|
if (Entity.CName.length < 28) {
|
|
135
135
|
Details[0].stack[0].columns.push({ text: '', width: 140 });
|
|
136
136
|
}
|
|
137
|
-
if (!
|
|
137
|
+
if (!tr_utils_1.TrUtils.IsNull(text)) {
|
|
138
138
|
Details[0].stack.unshift({ text: text, color: 'grey', alignment: 'right', width: 100, marginBottom: -15, fontSize: 10 });
|
|
139
139
|
}
|
|
140
140
|
Details.unshift({ image: Image, width: 120, height: 80 });
|
|
141
141
|
}
|
|
142
142
|
else {
|
|
143
143
|
Details[0].stack[1].columns.unshift({ text: '', width: 130 });
|
|
144
|
-
if (!
|
|
144
|
+
if (!tr_utils_1.TrUtils.IsNull(text)) {
|
|
145
145
|
Details[0].stack.unshift({ text: text, color: 'grey', alignment: 'right', width: 100, marginBottom: -15, fontSize: 10 });
|
|
146
146
|
}
|
|
147
147
|
}
|
|
@@ -159,7 +159,7 @@ class DCLandscapePdfService {
|
|
|
159
159
|
let List = [];
|
|
160
160
|
if (ROPrintData.Entity.Body === 1) {
|
|
161
161
|
for (let i = 0; i < ROPrintData.PrintInfo.length; i++) {
|
|
162
|
-
if (
|
|
162
|
+
if (tr_utils_1.TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
|
|
163
163
|
ROPrintData.PrintInfo[i].Text = '';
|
|
164
164
|
}
|
|
165
165
|
// List.push(ROPrintData.PrintInfo[i].Text,
|
|
@@ -170,10 +170,10 @@ class DCLandscapePdfService {
|
|
|
170
170
|
else {
|
|
171
171
|
if (ROPrintData.Entity.Body === 2) {
|
|
172
172
|
for (let i = 0; i < ROPrintData.PrintInfo.length; i++) {
|
|
173
|
-
if (
|
|
173
|
+
if (tr_utils_1.TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
|
|
174
174
|
ROPrintData.PrintInfo[i].Text = '';
|
|
175
175
|
}
|
|
176
|
-
List.push(ROPrintData.PrintInfo[i].Text, this.WithOutDiscountFieldTable(
|
|
176
|
+
List.push(ROPrintData.PrintInfo[i].Text, this.WithOutDiscountFieldTable(tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Items), ROPrintData.ShowTaxColumn, ROPrintData.Entity.MPN, ROPrintData.Entity.Body, ROPrintData.ShowIGST, ROPrintData.ConsolidateGST, ROPrintData.ShowDiscountColumn));
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
else {
|
|
@@ -184,10 +184,10 @@ class DCLandscapePdfService {
|
|
|
184
184
|
}
|
|
185
185
|
else {
|
|
186
186
|
for (let i = 0; i < ROPrintData.PrintInfo.length; i++) {
|
|
187
|
-
if (
|
|
187
|
+
if (tr_utils_1.TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
|
|
188
188
|
ROPrintData.PrintInfo[i].Text = '';
|
|
189
189
|
}
|
|
190
|
-
List.push(ROPrintData.PrintInfo[i].Text, this.GetWithOutDiscAndTaxFieldHeader(
|
|
190
|
+
List.push(ROPrintData.PrintInfo[i].Text, this.GetWithOutDiscAndTaxFieldHeader(tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Items), ROPrintData.ShowTaxColumn, ROPrintData.Entity.MPN, ROPrintData.Entity.Body, ROPrintData.ShowIGST, ROPrintData.ConsolidateGST, ROPrintData.ShowDiscountColumn));
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
193
|
}
|
|
@@ -421,14 +421,14 @@ class DCLandscapePdfService {
|
|
|
421
421
|
Parts.forEach((part) => {
|
|
422
422
|
var dataRow = [];
|
|
423
423
|
columns.forEach((column) => {
|
|
424
|
-
if ((!
|
|
424
|
+
if ((!tr_utils_1.TrUtils.IsFixedZero(part[column.Field]) && !tr_utils_1.TrUtils.IsNull(part[column.Field]))
|
|
425
425
|
|| (column.text === 'Line Total' || column.text === 'Expiry')) {
|
|
426
426
|
if (part[column.Field] === 'Spare Parts') {
|
|
427
427
|
dataRow.push({ text: part[column.Field].toString(), marginLeft: 50, style: 'InlineHeader' });
|
|
428
428
|
}
|
|
429
429
|
else {
|
|
430
430
|
if (((column.Field === 'CGSTAmt' || column.Field === 'SGSTAmt' || column.Field === 'CGSTPerc' || column.Field === 'SGSTPerc' || column.Field === 'IGSTAmt' || column.Field === 'IGSTPerc')
|
|
431
|
-
&&
|
|
431
|
+
&& tr_utils_1.TrUtils.CheckInvalidSelect(part.TCode))) {
|
|
432
432
|
part[column.Field] = '';
|
|
433
433
|
dataRow.push({ text: part[column.Field].toString(), alignment: 'center' });
|
|
434
434
|
}
|
|
@@ -438,7 +438,7 @@ class DCLandscapePdfService {
|
|
|
438
438
|
|| column.Field === 'CGSTPerc' || column.Field === 'SGSTPerc' || column.Field === 'IGSTAmt' || column.Field === 'IGSTPerc') {
|
|
439
439
|
if (column.Field === 'Disc') {
|
|
440
440
|
if (column.type === 'percentage') {
|
|
441
|
-
if (!
|
|
441
|
+
if (!tr_utils_1.TrUtils.IsEmpty(part[column.Field])) {
|
|
442
442
|
dataRow.push({ text: part[column.Field].toString(), noWrap: true });
|
|
443
443
|
}
|
|
444
444
|
else {
|
|
@@ -446,7 +446,7 @@ class DCLandscapePdfService {
|
|
|
446
446
|
}
|
|
447
447
|
}
|
|
448
448
|
else {
|
|
449
|
-
if (!
|
|
449
|
+
if (!tr_utils_1.TrUtils.IsZero(part[column.Field])) {
|
|
450
450
|
dataRow.push({ text: part[column.Field].toString(), noWrap: true });
|
|
451
451
|
}
|
|
452
452
|
else {
|
|
@@ -456,7 +456,7 @@ class DCLandscapePdfService {
|
|
|
456
456
|
}
|
|
457
457
|
else {
|
|
458
458
|
if (column.Field === 'Batch') {
|
|
459
|
-
if (!
|
|
459
|
+
if (!tr_utils_1.TrUtils.IsNull(part[column.Field])) {
|
|
460
460
|
dataRow.push({ text: part[column.Field].BN, nowrap: true });
|
|
461
461
|
}
|
|
462
462
|
else {
|
|
@@ -464,7 +464,7 @@ class DCLandscapePdfService {
|
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
466
|
else if (column.Field === 'ExDate') {
|
|
467
|
-
if (!
|
|
467
|
+
if (!tr_utils_1.TrUtils.IsNull(part['Batch'])) {
|
|
468
468
|
dataRow.push({ text: my_date_1.MyDate.ConvertUTCDateToReadableExDate(part['Batch'].ExDt), nowrap: true });
|
|
469
469
|
}
|
|
470
470
|
else {
|
|
@@ -472,7 +472,7 @@ class DCLandscapePdfService {
|
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
474
|
else {
|
|
475
|
-
if (!
|
|
475
|
+
if (!tr_utils_1.TrUtils.IsZero(part[column.Field])) {
|
|
476
476
|
dataRow.push({ text: part[column.Field].toString(), alignment: 'right', nowrap: true });
|
|
477
477
|
}
|
|
478
478
|
else {
|
|
@@ -486,7 +486,7 @@ class DCLandscapePdfService {
|
|
|
486
486
|
if (column.Field === 'Desc') {
|
|
487
487
|
let DescData = [];
|
|
488
488
|
DescData.push(part[column.Field].toString());
|
|
489
|
-
if (!
|
|
489
|
+
if (!tr_utils_1.TrUtils.IsEmpty(part['EDesc'])) {
|
|
490
490
|
DescData.push({ text: part['EDesc'].toString(), color: 'grey' });
|
|
491
491
|
}
|
|
492
492
|
dataRow.push({ stack: DescData });
|
|
@@ -499,7 +499,7 @@ class DCLandscapePdfService {
|
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
501
|
else {
|
|
502
|
-
if (column.Field === 'SNo' && !
|
|
502
|
+
if (column.Field === 'SNo' && !tr_utils_1.TrUtils.IsNull(part.Desc)) {
|
|
503
503
|
part[column.Field] = SNo;
|
|
504
504
|
SNo = SNo + 1;
|
|
505
505
|
}
|
|
@@ -818,7 +818,7 @@ class DCLandscapePdfService {
|
|
|
818
818
|
// if (ROPrintData.Type !== 'Invoice') {
|
|
819
819
|
// CommonDetails.splice(2, 0, SharedPDFService.GetUnderLine());
|
|
820
820
|
// }
|
|
821
|
-
if (!
|
|
821
|
+
if (!tr_utils_1.TrUtils.IsNull(numberofCopies) && numberofCopies.length !== 0 && (index !== (numberofCopies.length - 1))) {
|
|
822
822
|
CommonDetails.push({ text: '', pageBreak: 'after' });
|
|
823
823
|
}
|
|
824
824
|
return CommonDetails;
|
|
@@ -855,12 +855,12 @@ class DCLandscapePdfService {
|
|
|
855
855
|
let totalDisc;
|
|
856
856
|
let totalTax;
|
|
857
857
|
if (!ROPrintData.Consolidate) {
|
|
858
|
-
totalTax =
|
|
859
|
-
if (
|
|
860
|
-
totalDisc =
|
|
858
|
+
totalTax = tr_utils_1.TrUtils.FixPriceValue(Number(0) + Number(ROPrintData.CustPartITax));
|
|
859
|
+
if (tr_utils_1.TrUtils.isTaxable(ROPrintData.Settings.Tax)) {
|
|
860
|
+
totalDisc = tr_utils_1.TrUtils.FixPriceValue(Number(0) + Number(ROPrintData.CustPartsDiscTotal));
|
|
861
861
|
}
|
|
862
862
|
else {
|
|
863
|
-
totalDisc =
|
|
863
|
+
totalDisc = tr_utils_1.TrUtils.FixPriceValue(Number(0) + Number(ROPrintData.CustPartsDiscTotal) + Number(ROPrintData.FixedDisc));
|
|
864
864
|
}
|
|
865
865
|
}
|
|
866
866
|
return [
|