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,331 @@
|
|
|
1
|
+
export declare class DebitNotePdfService {
|
|
2
|
+
FontSize: number;
|
|
3
|
+
static GetInvoicePrint(ROPrintData: any, win: 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
|
+
content: any[];
|
|
17
|
+
styles: {
|
|
18
|
+
temp2header: {
|
|
19
|
+
fontSize: number;
|
|
20
|
+
bold: boolean;
|
|
21
|
+
alignment: string;
|
|
22
|
+
};
|
|
23
|
+
tableheader1: {
|
|
24
|
+
bold: boolean;
|
|
25
|
+
fontFamily: string;
|
|
26
|
+
margin: number[];
|
|
27
|
+
alignment: string;
|
|
28
|
+
};
|
|
29
|
+
header: {
|
|
30
|
+
fontSize: number;
|
|
31
|
+
bold: boolean;
|
|
32
|
+
alignment: string;
|
|
33
|
+
};
|
|
34
|
+
meetingHeader: {
|
|
35
|
+
fontSize: number;
|
|
36
|
+
bold: boolean;
|
|
37
|
+
};
|
|
38
|
+
Receiptheader: {
|
|
39
|
+
fontSize: number;
|
|
40
|
+
bold: boolean;
|
|
41
|
+
alignment: string;
|
|
42
|
+
margin: number[];
|
|
43
|
+
};
|
|
44
|
+
InlineHeader: {
|
|
45
|
+
fontSize: number;
|
|
46
|
+
bold: boolean;
|
|
47
|
+
alignment: string;
|
|
48
|
+
margin: number[];
|
|
49
|
+
};
|
|
50
|
+
TaskHeading: {
|
|
51
|
+
fontSize: number;
|
|
52
|
+
bold: boolean;
|
|
53
|
+
margin: number[];
|
|
54
|
+
};
|
|
55
|
+
lettersSize: {
|
|
56
|
+
fontSize: number;
|
|
57
|
+
margin: number[];
|
|
58
|
+
};
|
|
59
|
+
tablexample: {
|
|
60
|
+
margin: number[];
|
|
61
|
+
};
|
|
62
|
+
hedstyl: {
|
|
63
|
+
margin: number[];
|
|
64
|
+
};
|
|
65
|
+
header2: {
|
|
66
|
+
fontSize: number;
|
|
67
|
+
bold: boolean;
|
|
68
|
+
alignment: string;
|
|
69
|
+
margin: number[];
|
|
70
|
+
};
|
|
71
|
+
header1: {
|
|
72
|
+
fontSize: number;
|
|
73
|
+
bold: boolean;
|
|
74
|
+
alignment: string;
|
|
75
|
+
decoration: string;
|
|
76
|
+
margin: number[];
|
|
77
|
+
};
|
|
78
|
+
ws_adrs_center: {
|
|
79
|
+
fontSize: number;
|
|
80
|
+
alignment: string;
|
|
81
|
+
};
|
|
82
|
+
ws_adrs_center1: {
|
|
83
|
+
fontSize: number;
|
|
84
|
+
alignment: string;
|
|
85
|
+
};
|
|
86
|
+
ws_adrs_left: {
|
|
87
|
+
fontSize: number;
|
|
88
|
+
alignment: string;
|
|
89
|
+
};
|
|
90
|
+
ws_adrs_left1: {
|
|
91
|
+
fontSize: number;
|
|
92
|
+
alignment: string;
|
|
93
|
+
};
|
|
94
|
+
columnheader: {
|
|
95
|
+
margin: number[];
|
|
96
|
+
};
|
|
97
|
+
tableExample: {
|
|
98
|
+
margin: number[];
|
|
99
|
+
fontSize: number;
|
|
100
|
+
};
|
|
101
|
+
tableExamplemargin: {
|
|
102
|
+
margin: number[];
|
|
103
|
+
fontSize: number;
|
|
104
|
+
};
|
|
105
|
+
textcust: {
|
|
106
|
+
fontSize: number;
|
|
107
|
+
margin: number[];
|
|
108
|
+
};
|
|
109
|
+
column: {
|
|
110
|
+
margin: number[];
|
|
111
|
+
};
|
|
112
|
+
tableheader: {
|
|
113
|
+
bold: boolean;
|
|
114
|
+
fontSize: number;
|
|
115
|
+
margin: number[];
|
|
116
|
+
alignment: string;
|
|
117
|
+
};
|
|
118
|
+
tableheader2: {
|
|
119
|
+
fontSize: number;
|
|
120
|
+
margin: number[];
|
|
121
|
+
alignment: string;
|
|
122
|
+
opacity: number;
|
|
123
|
+
};
|
|
124
|
+
hed: {
|
|
125
|
+
fontSize: number;
|
|
126
|
+
bold: boolean;
|
|
127
|
+
};
|
|
128
|
+
hed2: {
|
|
129
|
+
fontSize: number;
|
|
130
|
+
};
|
|
131
|
+
TotalsStyles: {
|
|
132
|
+
marginTop: number;
|
|
133
|
+
lineHeight: number;
|
|
134
|
+
fontSize: number;
|
|
135
|
+
margin: number[];
|
|
136
|
+
};
|
|
137
|
+
colum1: {
|
|
138
|
+
fontSize: number;
|
|
139
|
+
lineHeight: number;
|
|
140
|
+
};
|
|
141
|
+
colum2: {
|
|
142
|
+
fontSize: number;
|
|
143
|
+
lineHeight: number;
|
|
144
|
+
margin: number[];
|
|
145
|
+
};
|
|
146
|
+
colum3: {
|
|
147
|
+
lineHeight: number;
|
|
148
|
+
};
|
|
149
|
+
Receiptheader1: {
|
|
150
|
+
fontSize: number;
|
|
151
|
+
bold: boolean;
|
|
152
|
+
alignment: string;
|
|
153
|
+
margin: number[];
|
|
154
|
+
};
|
|
155
|
+
Row1: {
|
|
156
|
+
fontSize: number;
|
|
157
|
+
margin: number[];
|
|
158
|
+
};
|
|
159
|
+
rowdata: {
|
|
160
|
+
margin: number[];
|
|
161
|
+
fontSize: number;
|
|
162
|
+
};
|
|
163
|
+
forCompany: {
|
|
164
|
+
margin: number[];
|
|
165
|
+
fontSize: string;
|
|
166
|
+
};
|
|
167
|
+
forCompany1: {
|
|
168
|
+
margin: number[];
|
|
169
|
+
fontSize: string;
|
|
170
|
+
};
|
|
171
|
+
Rupees: {
|
|
172
|
+
margin: number[];
|
|
173
|
+
fontSize: string;
|
|
174
|
+
};
|
|
175
|
+
Signature: {
|
|
176
|
+
margin: number[];
|
|
177
|
+
alignment: string;
|
|
178
|
+
fontSize: string;
|
|
179
|
+
};
|
|
180
|
+
withApp: {
|
|
181
|
+
alignment: string;
|
|
182
|
+
lineHeight: number;
|
|
183
|
+
};
|
|
184
|
+
withOutApp: {
|
|
185
|
+
alignment: string;
|
|
186
|
+
lineHeight: number;
|
|
187
|
+
};
|
|
188
|
+
Sign: {
|
|
189
|
+
fontSize: number;
|
|
190
|
+
margin: number[];
|
|
191
|
+
};
|
|
192
|
+
Sign1: {
|
|
193
|
+
fontSize: number;
|
|
194
|
+
margin: number[];
|
|
195
|
+
};
|
|
196
|
+
'margin-all': {
|
|
197
|
+
margin: number[];
|
|
198
|
+
};
|
|
199
|
+
'margin-top': {
|
|
200
|
+
margin: number[];
|
|
201
|
+
};
|
|
202
|
+
'margin-bottom': {
|
|
203
|
+
margin: number[];
|
|
204
|
+
};
|
|
205
|
+
fontSize: {
|
|
206
|
+
fontSize: number;
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
static GetFileName(ROPrintData: any): string;
|
|
211
|
+
static CommonHeaderDetails(ROPrintData: any): ({
|
|
212
|
+
canvas: {
|
|
213
|
+
type: string;
|
|
214
|
+
lineColor: string;
|
|
215
|
+
x1: number;
|
|
216
|
+
y1: number;
|
|
217
|
+
x2: number;
|
|
218
|
+
y2: number;
|
|
219
|
+
lineWidth: number;
|
|
220
|
+
}[];
|
|
221
|
+
} | {
|
|
222
|
+
style: string;
|
|
223
|
+
marginLeft: number;
|
|
224
|
+
columns: ({
|
|
225
|
+
stack: any[];
|
|
226
|
+
width: number;
|
|
227
|
+
marginLeft: number;
|
|
228
|
+
} | {
|
|
229
|
+
stack: any[];
|
|
230
|
+
width: number;
|
|
231
|
+
marginRight: number;
|
|
232
|
+
text?: undefined;
|
|
233
|
+
} | {
|
|
234
|
+
text: string;
|
|
235
|
+
width: number;
|
|
236
|
+
stack?: undefined;
|
|
237
|
+
marginRight?: undefined;
|
|
238
|
+
} | {
|
|
239
|
+
stack: {
|
|
240
|
+
lineHeight: number;
|
|
241
|
+
fontSize: number;
|
|
242
|
+
table: {
|
|
243
|
+
body: any;
|
|
244
|
+
};
|
|
245
|
+
layout: string;
|
|
246
|
+
}[];
|
|
247
|
+
width: number;
|
|
248
|
+
})[];
|
|
249
|
+
} | {
|
|
250
|
+
text: string;
|
|
251
|
+
fontSize: number;
|
|
252
|
+
bold: boolean;
|
|
253
|
+
margin: number[];
|
|
254
|
+
} | ({
|
|
255
|
+
columns: any;
|
|
256
|
+
} | {
|
|
257
|
+
canvas: {
|
|
258
|
+
type: string;
|
|
259
|
+
lineColor: string;
|
|
260
|
+
x1: number;
|
|
261
|
+
y1: number;
|
|
262
|
+
x2: number;
|
|
263
|
+
y2: number;
|
|
264
|
+
lineWidth: number;
|
|
265
|
+
}[];
|
|
266
|
+
})[])[];
|
|
267
|
+
static GetMainHeaderDetails(Entity: any, HeaderName: any, Image: any, HColor: any, AColor: any): ({
|
|
268
|
+
columns: any;
|
|
269
|
+
} | {
|
|
270
|
+
canvas: {
|
|
271
|
+
type: string;
|
|
272
|
+
lineColor: string;
|
|
273
|
+
x1: number;
|
|
274
|
+
y1: number;
|
|
275
|
+
x2: number;
|
|
276
|
+
y2: number;
|
|
277
|
+
lineWidth: number;
|
|
278
|
+
}[];
|
|
279
|
+
})[];
|
|
280
|
+
static PreparesparePartsTable(ROPrintData: any): any;
|
|
281
|
+
static WithOutDiscountFieldTable(Parts: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any): any;
|
|
282
|
+
static BuildTableBodyForLaborAndParts(Parts: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any): any;
|
|
283
|
+
static GetWithOutDiscountFieldHeader(permission: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any): any;
|
|
284
|
+
static GetWithOutDiscountFieldHeader1(permission: any, Body: any, ShowIGST: any, ShowDiscountColumn: any): any;
|
|
285
|
+
static GetWithOutDiscountFieldHeader2(permission: any, Body: any, ShowDiscountColumn: any): any;
|
|
286
|
+
static GetWithOutDiscAndTaxFieldHeader(Parts: any, ShowTaxColumn: any, PrintPartNo: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any): any;
|
|
287
|
+
static TaxTableWidths(PrintPartNo: any, ShowIGST: any, ShowDiscountColumn: any): (string | number)[];
|
|
288
|
+
static TaxDataTable(Parts: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any): {
|
|
289
|
+
style: string;
|
|
290
|
+
table: {
|
|
291
|
+
widths: (string | number)[];
|
|
292
|
+
body: any;
|
|
293
|
+
};
|
|
294
|
+
layout: {
|
|
295
|
+
hLineWidth: (i: any, node: any) => number;
|
|
296
|
+
vLineWidth: (i: any, node: any) => number;
|
|
297
|
+
hLineColor: (i: any, node: any) => string;
|
|
298
|
+
vLineColor: (i: any, node: any) => string;
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
static ConsolidateDataTable(Parts: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any): {
|
|
302
|
+
style: string;
|
|
303
|
+
table: {
|
|
304
|
+
widths: number[];
|
|
305
|
+
body: any;
|
|
306
|
+
};
|
|
307
|
+
layout: {
|
|
308
|
+
hLineWidth: (i: any, node: any) => number;
|
|
309
|
+
vLineWidth: (i: any, node: any) => number;
|
|
310
|
+
hLineColor: (i: any, node: any) => string;
|
|
311
|
+
vLineColor: (i: any, node: any) => string;
|
|
312
|
+
};
|
|
313
|
+
};
|
|
314
|
+
static WidthForInsuranceOrNot(ShowDiscountColumn: any, PrintPartNo: boolean): number[];
|
|
315
|
+
static NoTaxDataTable(Parts: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any): {
|
|
316
|
+
style: string;
|
|
317
|
+
table: {
|
|
318
|
+
widths: number[];
|
|
319
|
+
body: any;
|
|
320
|
+
};
|
|
321
|
+
layout: {
|
|
322
|
+
hLineWidth: (i: any, node: any) => number;
|
|
323
|
+
vLineWidth: (i: any, node: any) => number;
|
|
324
|
+
hLineColor: (i: any, node: any) => string;
|
|
325
|
+
vLineColor: (i: any, node: any) => string;
|
|
326
|
+
};
|
|
327
|
+
};
|
|
328
|
+
static buildTableForCustomerLabor(Parts: any, PrintPartNo: any, customerorInsurance: any): any;
|
|
329
|
+
static getSummaryHeaders(permission: boolean): any;
|
|
330
|
+
static CommonTotalDetails(ROPrintData: any, moreDiscDetails: boolean): any[];
|
|
331
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DebitNotePdfService = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
4
|
+
const shared_print_service_1 = require("../../shared/shared-services/shared-print.service");
|
|
5
|
+
const tr_utils_1 = require("../../utils/tr-utils");
|
|
6
|
+
const shared_pdf_service_1 = require("../../shared/shared-services/shared-pdf.service");
|
|
7
7
|
class DebitNotePdfService {
|
|
8
8
|
constructor() {
|
|
9
9
|
this.FontSize = 8;
|
|
@@ -31,7 +31,7 @@ class DebitNotePdfService {
|
|
|
31
31
|
}
|
|
32
32
|
static GetFileName(ROPrintData) {
|
|
33
33
|
let fileName = ROPrintData.HeaderName;
|
|
34
|
-
if (!
|
|
34
|
+
if (!tr_utils_1.TrUtils.IsNull(ROPrintData.Product) && !tr_utils_1.TrUtils.IsEmpty(ROPrintData.Product.RegNo)) {
|
|
35
35
|
fileName = fileName + '-' + ROPrintData.Product.RegNo;
|
|
36
36
|
}
|
|
37
37
|
return fileName;
|
|
@@ -56,7 +56,7 @@ class DebitNotePdfService {
|
|
|
56
56
|
let List = [];
|
|
57
57
|
if (ROPrintData.Entity.Body === 1) {
|
|
58
58
|
for (let i = 0; i < ROPrintData.PrintInfo.length; i++) {
|
|
59
|
-
if (
|
|
59
|
+
if (tr_utils_1.TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
|
|
60
60
|
ROPrintData.PrintInfo[i].Text = '';
|
|
61
61
|
}
|
|
62
62
|
;
|
|
@@ -65,10 +65,10 @@ class DebitNotePdfService {
|
|
|
65
65
|
else {
|
|
66
66
|
if (ROPrintData.Entity.Body === 2) {
|
|
67
67
|
for (let i = 0; i < ROPrintData.PrintInfo.length; i++) {
|
|
68
|
-
if (
|
|
68
|
+
if (tr_utils_1.TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
|
|
69
69
|
ROPrintData.PrintInfo[i].Text = '';
|
|
70
70
|
}
|
|
71
|
-
List.push(ROPrintData.PrintInfo[i].Text, this.WithOutDiscountFieldTable(
|
|
71
|
+
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));
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
else {
|
|
@@ -79,10 +79,10 @@ class DebitNotePdfService {
|
|
|
79
79
|
}
|
|
80
80
|
else {
|
|
81
81
|
for (let i = 0; i < ROPrintData.PrintInfo.length; i++) {
|
|
82
|
-
if (
|
|
82
|
+
if (tr_utils_1.TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
|
|
83
83
|
ROPrintData.PrintInfo[i].Text = '';
|
|
84
84
|
}
|
|
85
|
-
List.push(ROPrintData.PrintInfo[i].Text, this.GetWithOutDiscAndTaxFieldHeader(
|
|
85
|
+
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));
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
}
|
|
@@ -154,14 +154,14 @@ class DebitNotePdfService {
|
|
|
154
154
|
Parts.forEach((part) => {
|
|
155
155
|
var dataRow = [];
|
|
156
156
|
columns.forEach((column) => {
|
|
157
|
-
if ((!
|
|
157
|
+
if ((!tr_utils_1.TrUtils.IsFixedZero(part[column.Field]) && !tr_utils_1.TrUtils.IsNull(part[column.Field]))
|
|
158
158
|
|| (column.text === 'Line Total')) {
|
|
159
159
|
if (part[column.Field] === 'Spare Parts') {
|
|
160
160
|
dataRow.push({ text: part[column.Field].toString(), marginLeft: 50, style: 'InlineHeader' });
|
|
161
161
|
}
|
|
162
162
|
else {
|
|
163
163
|
if (((column.Field === 'CGSTAmt' || column.Field === 'SGSTAmt' || column.Field === 'CGSTPerc' || column.Field === 'SGSTPerc' || column.Field === 'IGSTAmt' || column.Field === 'IGSTPerc')
|
|
164
|
-
&&
|
|
164
|
+
&& tr_utils_1.TrUtils.CheckInvalidSelect(part.TCode))) {
|
|
165
165
|
part[column.Field] = '';
|
|
166
166
|
dataRow.push({ text: part[column.Field].toString(), alignment: 'center' });
|
|
167
167
|
}
|
|
@@ -171,7 +171,7 @@ class DebitNotePdfService {
|
|
|
171
171
|
|| column.Field === 'CGSTPerc' || column.Field === 'SGSTPerc' || column.Field === 'IGSTAmt' || column.Field === 'IGSTPerc' || column.text === 'Line Total') {
|
|
172
172
|
if (column.Field === 'Disc') {
|
|
173
173
|
if (column.type === 'percentage') {
|
|
174
|
-
if (!
|
|
174
|
+
if (!tr_utils_1.TrUtils.IsEmpty(part[column.Field])) {
|
|
175
175
|
dataRow.push({ text: part[column.Field].toString(), noWrap: true });
|
|
176
176
|
}
|
|
177
177
|
else {
|
|
@@ -179,7 +179,7 @@ class DebitNotePdfService {
|
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
else {
|
|
182
|
-
if (!
|
|
182
|
+
if (!tr_utils_1.TrUtils.IsZero(part[column.Field])) {
|
|
183
183
|
dataRow.push({ text: part[column.Field].toString(), noWrap: true });
|
|
184
184
|
}
|
|
185
185
|
else {
|
|
@@ -188,7 +188,7 @@ class DebitNotePdfService {
|
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
else {
|
|
191
|
-
if (!
|
|
191
|
+
if (!tr_utils_1.TrUtils.IsZero(part[column.Field])) {
|
|
192
192
|
dataRow.push({ text: part[column.Field].toString(), alignment: 'right', nowrap: true });
|
|
193
193
|
}
|
|
194
194
|
else {
|
|
@@ -555,7 +555,7 @@ class DebitNotePdfService {
|
|
|
555
555
|
Parts.forEach((part) => {
|
|
556
556
|
var dataRow = [];
|
|
557
557
|
columns.forEach((column) => {
|
|
558
|
-
if (!
|
|
558
|
+
if (!tr_utils_1.TrUtils.IsFixedZero(part[column.Field]) && !tr_utils_1.TrUtils.IsNull(part[column.Field])
|
|
559
559
|
|| column.text === 'Line Total') {
|
|
560
560
|
if (part[column.Field] === 'Spare Parts') {
|
|
561
561
|
dataRow.push({ text: part[column.Field].toString(), marginLeft: 50, style: 'InlineHeader' });
|
|
@@ -658,7 +658,7 @@ class DebitNotePdfService {
|
|
|
658
658
|
}
|
|
659
659
|
static CommonTotalDetails(ROPrintData, moreDiscDetails) {
|
|
660
660
|
let CommonDetails = [
|
|
661
|
-
shared_pdf_service_1.SharedPDFService.GetDebitTotalDetails(ROPrintData, ROPrintData.CustLaborTotalBeforeDisc, ROPrintData.CustLaborDiscTotal, ROPrintData.CustLaborCGST, ROPrintData.CustLaborSGST, ROPrintData.CustLaborIGST, ROPrintData.CustPartIGST, ROPrintData.ShowIGST, ROPrintData.ShowTaxColumn, ROPrintData.CustPartsTotalBeforeDisc, ROPrintData.CustPartsDiscTotal, ROPrintData.CustPartCGST, ROPrintData.CustPartSGST, ROPrintData.CustTaxGroupData, ROPrintData.ShowAccParts, ROPrintData.CustLaborAfterTax, ROPrintData.CustPartAfterTax, ROPrintData.FixedDisc, ROPrintData.For, ROPrintData.FixedTotal, ROPrintData.CustTotalRoundedBy, ROPrintData.CustRoundedTotal, ROPrintData.ShowTaxColumn, ROPrintData.ShowTaxColumn,
|
|
661
|
+
shared_pdf_service_1.SharedPDFService.GetDebitTotalDetails(ROPrintData, ROPrintData.CustLaborTotalBeforeDisc, ROPrintData.CustLaborDiscTotal, ROPrintData.CustLaborCGST, ROPrintData.CustLaborSGST, ROPrintData.CustLaborIGST, ROPrintData.CustPartIGST, ROPrintData.ShowIGST, ROPrintData.ShowTaxColumn, ROPrintData.CustPartsTotalBeforeDisc, ROPrintData.CustPartsDiscTotal, ROPrintData.CustPartCGST, ROPrintData.CustPartSGST, ROPrintData.CustTaxGroupData, ROPrintData.ShowAccParts, ROPrintData.CustLaborAfterTax, ROPrintData.CustPartAfterTax, ROPrintData.FixedDisc, ROPrintData.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, moreDiscDetails),
|
|
662
662
|
shared_pdf_service_1.SharedPDFService.DebitDueStatus(ROPrintData.Type, ROPrintData.Paid, ROPrintData.Due, ROPrintData.Sts),
|
|
663
663
|
shared_pdf_service_1.SharedPDFService.GetTemsAndConditions(ROPrintData.Entity.Terms),
|
|
664
664
|
shared_pdf_service_1.SharedPDFService.GetUnderLine(),
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare class DebitNotePrintService {
|
|
2
|
+
static GetDebitNotePrintInfo(OriginalInvoiceData: any, OriginalEntityData: any, image: any, IncludeGST: boolean, ConsolidateGST: boolean, TaxCodes: any, IsProforma: boolean, IsCustBillTo: boolean): any;
|
|
3
|
+
static GetPrintConditionsBasedOnInput(InvoicePrintData: any, IncludeGST: boolean, ConsolidateGST: boolean, SType: any, OriginalInvoiceData: any, IsProforma: boolean, IsBillTo: boolean): any;
|
|
4
|
+
static GetInvoiceTypeHeading(InvoicePrintData: any, OriginalInvoiceData: any, IncludeGST: boolean, ConsolidateGST: boolean, IsProforma: boolean, IsBillTo: boolean): any;
|
|
5
|
+
static GetInvoiceOtherDetailsForPrint(InvoicePrintData: any, OriginalInvoiceData: any, IsCustBillTo: boolean): any;
|
|
6
|
+
static GetItemsPrintInfo(Items: any, Consolidate: boolean, TaxCodes: any, LineTotal: string): any;
|
|
7
|
+
static ReverseItemsForInvoicePrint(argInvoiceData: any): any;
|
|
8
|
+
static PrepareFormatForInvoicePrint(InvoicePrintData: any, ROType: any, InvoiceStatus: any): any[];
|
|
9
|
+
static GetFormattedProductDataForPrint(OriginalInvoiceData: any, InvoicePrintData: any): any;
|
|
10
|
+
static GetBillNameForInvoicePrint(OriginalInvoiceData: any, InvoicePrintData: any, IsBillTo: boolean): any;
|
|
11
|
+
static GetCustomerDetails(OriginalInvoiceData: any): any;
|
|
12
|
+
static GetBillToName(Title: any, Name: string): string;
|
|
13
|
+
static GetPaymentsTotal(InvoicePayments: any, Total: number, InvoiceStatus: string): any;
|
|
14
|
+
}
|
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DebitNotePrintService = void 0;
|
|
4
|
-
const shared_print_service_1 = require("
|
|
4
|
+
const shared_print_service_1 = require("../../shared/shared-services/shared-print.service");
|
|
5
5
|
const debit_note_totals_service_1 = require("./debit-note-totals.service");
|
|
6
|
-
const code_enums_1 = require("
|
|
7
|
-
const
|
|
8
|
-
const enums_1 = require("
|
|
9
|
-
const my_date_1 = require("
|
|
10
|
-
const aggregation_1 = require("
|
|
6
|
+
const code_enums_1 = require("../../enums/code-enums");
|
|
7
|
+
const tr_utils_1 = require("../../utils/tr-utils");
|
|
8
|
+
const enums_1 = require("../../enums/enums");
|
|
9
|
+
const my_date_1 = require("../../utils/my-date");
|
|
10
|
+
const aggregation_1 = require("../../aggregation/aggregation");
|
|
11
11
|
class DebitNotePrintService {
|
|
12
12
|
static GetDebitNotePrintInfo(OriginalInvoiceData, OriginalEntityData, image, IncludeGST, ConsolidateGST, TaxCodes, IsProforma, IsCustBillTo) {
|
|
13
13
|
var _a, _b;
|
|
14
14
|
let InvoicePrintData = {};
|
|
15
|
-
let argInvoiceData =
|
|
15
|
+
let argInvoiceData = tr_utils_1.TrUtils.Stringify(OriginalInvoiceData);
|
|
16
16
|
if (!IncludeGST) {
|
|
17
17
|
argInvoiceData.Settings.Tax = 'NO';
|
|
18
18
|
}
|
|
19
19
|
InvoicePrintData.IsProforma = IsProforma;
|
|
20
|
-
InvoicePrintData.Settings =
|
|
20
|
+
InvoicePrintData.Settings = tr_utils_1.TrUtils.Stringify(argInvoiceData.Settings);
|
|
21
21
|
let SType;
|
|
22
|
-
if (!
|
|
22
|
+
if (!tr_utils_1.TrUtils.IsNull(argInvoiceData.SType)) {
|
|
23
23
|
SType = argInvoiceData.SType;
|
|
24
24
|
}
|
|
25
25
|
InvoicePrintData = this.GetPrintConditionsBasedOnInput(InvoicePrintData, IncludeGST, ConsolidateGST, SType, argInvoiceData, IsProforma, IsCustBillTo);
|
|
26
26
|
InvoicePrintData.Entity = shared_print_service_1.PrintSharedService.GetFormattedEntityDataForPrint(OriginalEntityData, "Invoice", OriginalInvoiceData);
|
|
27
27
|
InvoicePrintData = shared_print_service_1.PrintSharedService.GetEntityHeaderStyles(InvoicePrintData, OriginalEntityData, image);
|
|
28
28
|
InvoicePrintData = this.GetInvoiceOtherDetailsForPrint(InvoicePrintData, argInvoiceData, IsCustBillTo);
|
|
29
|
-
let IsTaxable = (IncludeGST &&
|
|
29
|
+
let IsTaxable = (IncludeGST && tr_utils_1.TrUtils.isTaxable(argInvoiceData.Settings.Tax)) ? true : false;
|
|
30
30
|
let finalTotalsData = debit_note_totals_service_1.DebitNoteTotalsService.GetTotalsValue(argInvoiceData.Items, IsTaxable, true, argInvoiceData.Disc, argInvoiceData.Perc, TaxCodes, true, argInvoiceData.Settings);
|
|
31
31
|
if (ConsolidateGST) {
|
|
32
32
|
finalTotalsData.CustLaborTotalBeforeDisc = finalTotalsData.CustLaborAfterTax;
|
|
33
33
|
finalTotalsData.CustPartsTotalBeforeDisc = finalTotalsData.CustPartAfterTax;
|
|
34
34
|
}
|
|
35
|
-
InvoicePrintData =
|
|
35
|
+
InvoicePrintData = tr_utils_1.TrUtils.ConcatObjects(InvoicePrintData, finalTotalsData);
|
|
36
36
|
InvoicePrintData.Items = this.GetItemsPrintInfo(InvoicePrintData.Items, ConsolidateGST, TaxCodes, (_b = (_a = OriginalEntityData.Entity.Settings) === null || _a === void 0 ? void 0 : _a.Acc) === null || _b === void 0 ? void 0 : _b.LTot);
|
|
37
37
|
argInvoiceData = this.ReverseItemsForInvoicePrint(argInvoiceData);
|
|
38
38
|
InvoicePrintData.PrintInfo = this.PrepareFormatForInvoicePrint(InvoicePrintData, code_enums_1.ROTypeEnum.Invoice, argInvoiceData.Sts);
|
|
39
39
|
InvoicePrintData = this.GetFormattedProductDataForPrint(argInvoiceData, InvoicePrintData);
|
|
40
40
|
InvoicePrintData = this.GetBillNameForInvoicePrint(argInvoiceData, InvoicePrintData, IsCustBillTo);
|
|
41
|
-
if (
|
|
41
|
+
if (tr_utils_1.TrUtils.IsNull(argInvoiceData.Payments)) {
|
|
42
42
|
argInvoiceData.Payments = [];
|
|
43
43
|
}
|
|
44
44
|
let PaymentData = this.GetPaymentsTotal(argInvoiceData.Payments, InvoicePrintData.Total, argInvoiceData.Sts);
|
|
45
45
|
InvoicePrintData.Due = PaymentData.Due;
|
|
46
46
|
InvoicePrintData.Paid = PaymentData.Paid;
|
|
47
|
-
if (!
|
|
47
|
+
if (!tr_utils_1.TrUtils.IsNull(PaymentData.Sts)) {
|
|
48
48
|
InvoicePrintData.Sts = PaymentData.Sts;
|
|
49
49
|
}
|
|
50
50
|
InvoicePrintData.Consolidate = ConsolidateGST;
|
|
@@ -58,11 +58,11 @@ class DebitNotePrintService {
|
|
|
58
58
|
InvoicePrintData.IncludeGST = IncludeGST;
|
|
59
59
|
InvoicePrintData.ConsolidateGST = ConsolidateGST;
|
|
60
60
|
InvoicePrintData.ShowAccParts = false;
|
|
61
|
-
InvoicePrintData.ShowIGST = (
|
|
61
|
+
InvoicePrintData.ShowIGST = (tr_utils_1.TrUtils.IsNull(SType) || (SType === 'Intra')) ? false : true;
|
|
62
62
|
InvoicePrintData.ShowTaxColumn = (IncludeGST && !ConsolidateGST) ? true : false;
|
|
63
63
|
// InvoicePrintData.ShowDiscountColumn = (!ForInsurance && !ConsolidateGST) ? true : false;
|
|
64
64
|
InvoicePrintData = this.GetInvoiceTypeHeading(InvoicePrintData, OriginalInvoiceData, IncludeGST, ConsolidateGST, IsProforma, IsBillTo);
|
|
65
|
-
InvoicePrintData.PrDate =
|
|
65
|
+
InvoicePrintData.PrDate = tr_utils_1.TrUtils.IsNull(OriginalInvoiceData.PrDate) ? '' : my_date_1.MyDate.ConvertUTCDateToReadable(OriginalInvoiceData.PrDate);
|
|
66
66
|
return InvoicePrintData;
|
|
67
67
|
}
|
|
68
68
|
static GetInvoiceTypeHeading(InvoicePrintData, OriginalInvoiceData, IncludeGST, ConsolidateGST, IsProforma, IsBillTo) {
|
|
@@ -99,24 +99,24 @@ class DebitNotePrintService {
|
|
|
99
99
|
let CTaxAmtPerItem = (0, aggregation_1.division)(Item.CGST, Item.Qty);
|
|
100
100
|
let STaxAmtPerItem = (0, aggregation_1.division)(Item.SGST, Item.Qty);
|
|
101
101
|
let ITaxAmtPerItem = (0, aggregation_1.division)(Item.IGST, Item.Qty);
|
|
102
|
-
Item.UnPr =
|
|
102
|
+
Item.UnPr = tr_utils_1.TrUtils.FixedTo((0, aggregation_1.addition)(AfterDiscForEach, CTaxAmtPerItem, STaxAmtPerItem, ITaxAmtPerItem));
|
|
103
103
|
}
|
|
104
104
|
else {
|
|
105
|
-
Item.UnPr =
|
|
105
|
+
Item.UnPr = tr_utils_1.TrUtils.FixPriceValue(Item.UnPr);
|
|
106
106
|
}
|
|
107
|
-
Item.CGSTAmt =
|
|
108
|
-
Item.SGSTAmt =
|
|
109
|
-
Item.IGSTAmt =
|
|
107
|
+
Item.CGSTAmt = tr_utils_1.TrUtils.FixPriceValue(Item.CGST);
|
|
108
|
+
Item.SGSTAmt = tr_utils_1.TrUtils.FixPriceValue(Item.SGST);
|
|
109
|
+
Item.IGSTAmt = tr_utils_1.TrUtils.FixPriceValue(Item.IGST);
|
|
110
110
|
Item.CGSTPerc = shared_print_service_1.PrintSharedService.GetCGSTValueBasedOnTaxCode(Item.TCode, TaxCodes);
|
|
111
111
|
Item.SGSTPerc = shared_print_service_1.PrintSharedService.GetSGSTValueBasedOnTaxCode(Item.TCode, TaxCodes);
|
|
112
112
|
Item.IGSTPerc = shared_print_service_1.PrintSharedService.GetIGSTValueBasedOnTaxCode(Item.TCode, TaxCodes);
|
|
113
113
|
if (LineTotal === 'AT') {
|
|
114
|
-
Item.LineTotal =
|
|
114
|
+
Item.LineTotal = tr_utils_1.TrUtils.FixPriceValue(Item.AfterPartTax);
|
|
115
115
|
}
|
|
116
116
|
else {
|
|
117
|
-
Item.LineTotal =
|
|
117
|
+
Item.LineTotal = tr_utils_1.TrUtils.FixPriceValue((0, aggregation_1.subtraction)(Item.UnAmt, Item.Disc));
|
|
118
118
|
}
|
|
119
|
-
if (!
|
|
119
|
+
if (!tr_utils_1.TrUtils.IsZero(Item.Qty) && !tr_utils_1.TrUtils.CheckInvalidSelect(Item.UoM)) {
|
|
120
120
|
Item.QtyAndUoM = Item.Qty + ' ' + Item.UoM;
|
|
121
121
|
}
|
|
122
122
|
});
|
|
@@ -136,15 +136,15 @@ class DebitNotePrintService {
|
|
|
136
136
|
return PrintInfo;
|
|
137
137
|
}
|
|
138
138
|
static GetFormattedProductDataForPrint(OriginalInvoiceData, InvoicePrintData) {
|
|
139
|
-
if (!
|
|
139
|
+
if (!tr_utils_1.TrUtils.IsNull(OriginalInvoiceData.Prod)) {
|
|
140
140
|
InvoicePrintData.Product = OriginalInvoiceData.Prod;
|
|
141
|
-
if (
|
|
141
|
+
if (tr_utils_1.TrUtils.IsNull(InvoicePrintData.Product.VIN)) {
|
|
142
142
|
InvoicePrintData.Product.VIN = '';
|
|
143
143
|
}
|
|
144
|
-
if (
|
|
144
|
+
if (tr_utils_1.TrUtils.IsNull(InvoicePrintData.Product.RegNo)) {
|
|
145
145
|
InvoicePrintData.Product.RegNo = '';
|
|
146
146
|
}
|
|
147
|
-
if (
|
|
147
|
+
if (tr_utils_1.TrUtils.IsNull(InvoicePrintData.Product.EngNo)) {
|
|
148
148
|
InvoicePrintData.Product.EngNo = '';
|
|
149
149
|
}
|
|
150
150
|
InvoicePrintData.MIn = OriginalInvoiceData.Prod.MIn;
|
|
@@ -158,17 +158,17 @@ class DebitNotePrintService {
|
|
|
158
158
|
Customer.Name = OriginalInvoiceData.BillTo.Name;
|
|
159
159
|
Customer.Adrs = [];
|
|
160
160
|
Customer.Cons = [];
|
|
161
|
-
if (!
|
|
161
|
+
if (!tr_utils_1.TrUtils.IsNull(OriginalInvoiceData.BillTo.Adrs)) {
|
|
162
162
|
Customer.Adrs.push(OriginalInvoiceData.BillTo.Adrs.A1);
|
|
163
|
-
if (!
|
|
163
|
+
if (!tr_utils_1.TrUtils.IsEmpty(OriginalInvoiceData.BillTo.Adrs.A2)) {
|
|
164
164
|
Customer.Adrs.push(OriginalInvoiceData.BillTo.Adrs.A2);
|
|
165
165
|
}
|
|
166
|
-
if (!
|
|
166
|
+
if (!tr_utils_1.TrUtils.IsEmpty(OriginalInvoiceData.BillTo.Adrs.Ct)) {
|
|
167
167
|
Customer.Adrs.push(OriginalInvoiceData.BillTo.Adrs.Ct);
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
Customer.GSTIN = OriginalInvoiceData.BillTo.GSTIN;
|
|
171
|
-
if (!
|
|
171
|
+
if (!tr_utils_1.TrUtils.IsEmpty(OriginalInvoiceData.BillTo.Ph)) {
|
|
172
172
|
Customer.Cons = [
|
|
173
173
|
{
|
|
174
174
|
Type: 'M',
|
|
@@ -187,7 +187,7 @@ class DebitNotePrintService {
|
|
|
187
187
|
let Customer = {};
|
|
188
188
|
Customer.Name = this.GetBillToName(OriginalInvoiceData.Cust.Title, OriginalInvoiceData.Cust.Name);
|
|
189
189
|
Customer.Cons = [];
|
|
190
|
-
if (!
|
|
190
|
+
if (!tr_utils_1.TrUtils.IsEmpty(OriginalInvoiceData.Cust.Ph)) {
|
|
191
191
|
Customer.Cons = [
|
|
192
192
|
{
|
|
193
193
|
Type: 'M',
|
|
@@ -197,9 +197,9 @@ class DebitNotePrintService {
|
|
|
197
197
|
}
|
|
198
198
|
Customer.GSTIN = OriginalInvoiceData.Cust.GSTIN;
|
|
199
199
|
Customer.Adrs = [];
|
|
200
|
-
if (!
|
|
200
|
+
if (!tr_utils_1.TrUtils.IsNull(OriginalInvoiceData.Cust.Adrs)) {
|
|
201
201
|
Customer.Adrs.push(OriginalInvoiceData.Cust.Adrs.A1);
|
|
202
|
-
if (!
|
|
202
|
+
if (!tr_utils_1.TrUtils.IsEmpty(OriginalInvoiceData.Cust.Adrs.A2)) {
|
|
203
203
|
Customer.Adrs.push(OriginalInvoiceData.Cust.Adrs.A2);
|
|
204
204
|
}
|
|
205
205
|
Customer.Adrs.push(OriginalInvoiceData.Cust.Adrs.Ct);
|
|
@@ -209,7 +209,7 @@ class DebitNotePrintService {
|
|
|
209
209
|
return Customer;
|
|
210
210
|
}
|
|
211
211
|
static GetBillToName(Title, Name) {
|
|
212
|
-
return
|
|
212
|
+
return tr_utils_1.TrUtils.IsEmpty(Title) ? Name : Title + ' ' + Name;
|
|
213
213
|
}
|
|
214
214
|
static GetPaymentsTotal(InvoicePayments, Total, InvoiceStatus) {
|
|
215
215
|
var i = 0;
|
|
@@ -222,7 +222,7 @@ class DebitNotePrintService {
|
|
|
222
222
|
Data.Due = 0;
|
|
223
223
|
}
|
|
224
224
|
else {
|
|
225
|
-
Data.Due =
|
|
225
|
+
Data.Due = tr_utils_1.TrUtils.FixedTo(Total - PaidTotal);
|
|
226
226
|
}
|
|
227
227
|
if (Data.Due < 0) {
|
|
228
228
|
Data.Due = 0;
|
|
@@ -230,7 +230,7 @@ class DebitNotePrintService {
|
|
|
230
230
|
if (Data.Due === 0) {
|
|
231
231
|
Data.Sts = enums_1.InvoiceStatusEnum.Closed;
|
|
232
232
|
}
|
|
233
|
-
Data.Paid =
|
|
233
|
+
Data.Paid = tr_utils_1.TrUtils.FixedTo(PaidTotal);
|
|
234
234
|
return Data;
|
|
235
235
|
}
|
|
236
236
|
}
|