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,49 @@
|
|
|
1
|
+
export declare class PrintSharedService {
|
|
2
|
+
static GetEntityHeaderStyles(PDFData: any, Entity: any, image: any): any;
|
|
3
|
+
static GetFormattedEntityDataForPrint(argEntityData: any, RecordType: string, OriginalData: any): any;
|
|
4
|
+
static GetEntityContactDetails(EntityInfo: any): string;
|
|
5
|
+
static GetEntityEmailDetails(EntityInfo: any): string;
|
|
6
|
+
static GetVehicleFromServiceAndFormatData(originalvehicledata: any): any;
|
|
7
|
+
static GetVehicleDataForPrint(vehicle: any): any;
|
|
8
|
+
static GetCustomerFromServiceAndFormatData(originalcustomerdata: any): any;
|
|
9
|
+
static GetCustomerDataForROEstPrint(customer: any): any;
|
|
10
|
+
static GetAddress(Address: any): any[];
|
|
11
|
+
static AddingComaAsaLastLetter(Stmt: string): string;
|
|
12
|
+
static GetCustomerDataForTechnicianPrint(customer: any): {
|
|
13
|
+
Name: string;
|
|
14
|
+
GSTIN: any;
|
|
15
|
+
Adrs: any[];
|
|
16
|
+
};
|
|
17
|
+
static GetCGSTValueBasedOnTaxCode(TCode: any, argTaxCodes: any): number;
|
|
18
|
+
static GetSGSTValueBasedOnTaxCode(TCode: any, argTaxCodes: any): number;
|
|
19
|
+
static GetIGSTValueBasedOnTaxCode(TCode: any, argTaxCodes: any): number;
|
|
20
|
+
static CheckItemIndexWithDisc(RecordInfo: any): number;
|
|
21
|
+
static GetWithOutDiscountFieldHeader(permission: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ShowDiscountColumn: any): any;
|
|
22
|
+
static GetWithOutDiscountFieldHeader1(permission: any, Body: any, ShowIGST: any, ShowDiscountColumn: any): any;
|
|
23
|
+
static GetWithOutDiscountFieldHeaderSharedInv(permission: any, Body: any, ShowDiscountColumn: any): any;
|
|
24
|
+
static GetWithOutDiscountFieldHeader2(permission: any, Body: any, ShowDiscountColumn: any): any;
|
|
25
|
+
static GetReceiptWithOutDiscountFieldHeader(permission: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ShowDiscountColumn: any): any;
|
|
26
|
+
static GetReceiptWithOutDiscountFieldHeader1(permission: any, Body: any, ShowIGST: any, ShowDiscountColumn: any): any;
|
|
27
|
+
static GetReceiptWithOutDiscountFieldHeader2(permission: any, Body: any, ShowDiscountColumn: any): any;
|
|
28
|
+
static TaxReceiptTableWidths(PrintPartNo: any, ShowIGST: any, ShowDiscountColumn: any): number[];
|
|
29
|
+
static TaxTableWidths(PrintPartNo: any, ShowIGST: any, ShowDiscountColumn: any): (string | number)[];
|
|
30
|
+
static WidthForInsuranceOrNot(ShowDiscountColumn: any, PrintPartNo: boolean): number[];
|
|
31
|
+
static LayOutStyle1(): {
|
|
32
|
+
hLineWidth: (i: any, node: any) => number;
|
|
33
|
+
vLineWidth: (i: any, node: any) => number;
|
|
34
|
+
hLineColor: (i: any, node: any) => string;
|
|
35
|
+
vLineColor: (i: any, node: any) => string;
|
|
36
|
+
};
|
|
37
|
+
static LayOutStyle(): {
|
|
38
|
+
hLineWidth: (i: any, node: any) => number;
|
|
39
|
+
vLineWidth: (i: any, node: any) => number;
|
|
40
|
+
hLineColor: (i: any, node: any) => string;
|
|
41
|
+
vLineColor: (i: any, node: any) => string;
|
|
42
|
+
};
|
|
43
|
+
static LayOutStyleanother(): {
|
|
44
|
+
hLineWidth: (i: any, node: any) => number;
|
|
45
|
+
vLineWidth: (i: any, node: any) => number;
|
|
46
|
+
hLineColor: (i: any, node: any) => "black" | "gray";
|
|
47
|
+
vLineColor: (i: any, node: any) => "black" | "gray";
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PrintSharedService = void 0;
|
|
4
|
-
const my_date_1 = require("
|
|
5
|
-
const
|
|
4
|
+
const my_date_1 = require("../../utils/my-date");
|
|
5
|
+
const tr_utils_1 = require("../../utils/tr-utils");
|
|
6
6
|
class PrintSharedService {
|
|
7
7
|
static GetEntityHeaderStyles(PDFData, Entity, image) {
|
|
8
8
|
PDFData.Image = image;
|
|
@@ -11,26 +11,26 @@ class PrintSharedService {
|
|
|
11
11
|
return PDFData;
|
|
12
12
|
}
|
|
13
13
|
static GetFormattedEntityDataForPrint(argEntityData, RecordType, OriginalData) {
|
|
14
|
-
let EntityData =
|
|
14
|
+
let EntityData = tr_utils_1.TrUtils.Stringify(argEntityData);
|
|
15
15
|
let tempEntity = EntityData.Entity;
|
|
16
|
-
if (!
|
|
17
|
-
tempEntity.Address =
|
|
16
|
+
if (!tr_utils_1.TrUtils.IsNull(tempEntity.Address) && tempEntity.Address.length !== 0) {
|
|
17
|
+
tempEntity.Address = tr_utils_1.TrUtils.Stringify(tempEntity.Address[0]);
|
|
18
18
|
}
|
|
19
|
-
if (
|
|
19
|
+
if (tr_utils_1.TrUtils.IsNull(EntityData.User.TZ)) {
|
|
20
20
|
EntityData.User.TZ = 'Asia/Calcutta';
|
|
21
21
|
}
|
|
22
22
|
my_date_1.MyDate.UserTimeZone = EntityData.User.TZ;
|
|
23
23
|
let Entity = {};
|
|
24
|
-
if (
|
|
24
|
+
if (tr_utils_1.TrUtils.IsNull(tempEntity.Settings.Common)) {
|
|
25
25
|
tempEntity.Settings.Common = {};
|
|
26
26
|
}
|
|
27
|
-
if (
|
|
27
|
+
if (tr_utils_1.TrUtils.IsNull(tempEntity.Settings.Common.Tax)) {
|
|
28
28
|
tempEntity.Settings.Common.Tax = {};
|
|
29
29
|
}
|
|
30
|
-
if (
|
|
30
|
+
if (tr_utils_1.TrUtils.IsNull(tempEntity.Settings.Acc)) {
|
|
31
31
|
tempEntity.Settings.Acc = {};
|
|
32
32
|
}
|
|
33
|
-
if (!
|
|
33
|
+
if (!tr_utils_1.TrUtils.IsNull(tempEntity.Settings.Acc) && !tr_utils_1.TrUtils.IsNull(tempEntity.Settings.Acc.Banks)) {
|
|
34
34
|
let Bank = tempEntity.Settings.Acc.Banks.filter((bank) => {
|
|
35
35
|
return bank.Def;
|
|
36
36
|
});
|
|
@@ -39,61 +39,61 @@ class PrintSharedService {
|
|
|
39
39
|
Entity.PrUPI = tempEntity.Settings.Acc.PrUPI;
|
|
40
40
|
Entity.UPI = tempEntity.Settings.Acc.UPI;
|
|
41
41
|
}
|
|
42
|
-
if (
|
|
42
|
+
if (tr_utils_1.TrUtils.IsNull(tempEntity.Settings.Common.Tax.GSTIN)) {
|
|
43
43
|
Entity.GSTIN = '';
|
|
44
44
|
}
|
|
45
45
|
else {
|
|
46
46
|
Entity.GSTIN = tempEntity.Settings.Common.Tax.GSTIN;
|
|
47
47
|
}
|
|
48
|
-
if (
|
|
48
|
+
if (tr_utils_1.TrUtils.IsNull(tempEntity.Settings.Common.DLNo)) {
|
|
49
49
|
Entity.DLNo = '';
|
|
50
50
|
}
|
|
51
51
|
else {
|
|
52
52
|
Entity.DLNo = tempEntity.Settings.Common.DLNo;
|
|
53
53
|
}
|
|
54
|
-
if (
|
|
54
|
+
if (tr_utils_1.TrUtils.IsNull(tempEntity.Settings.Common.RegNo)) {
|
|
55
55
|
Entity.RegNo = '';
|
|
56
56
|
}
|
|
57
57
|
else {
|
|
58
58
|
Entity.RegNo = tempEntity.Settings.Common.RegNo;
|
|
59
59
|
}
|
|
60
|
-
if (
|
|
60
|
+
if (tr_utils_1.TrUtils.IsNull(tempEntity.Settings.Common.Tax.GSTType)) {
|
|
61
61
|
Entity.GSTType = '';
|
|
62
62
|
}
|
|
63
63
|
else {
|
|
64
64
|
Entity.GSTType = tempEntity.Settings.Common.Tax.GSTType;
|
|
65
65
|
}
|
|
66
|
-
if (
|
|
66
|
+
if (tr_utils_1.TrUtils.IsNull(tempEntity.Settings.Common.Tax.TIN)) {
|
|
67
67
|
Entity.TIN = '';
|
|
68
68
|
}
|
|
69
69
|
else {
|
|
70
70
|
Entity.TIN = tempEntity.Settings.Common.Tax.TIN;
|
|
71
71
|
}
|
|
72
|
-
if (
|
|
72
|
+
if (tr_utils_1.TrUtils.IsNull(tempEntity.Settings.Common.Tax.CIN)) {
|
|
73
73
|
Entity.CIN = '';
|
|
74
74
|
}
|
|
75
75
|
else {
|
|
76
76
|
Entity.CIN = tempEntity.Settings.Common.Tax.CIN;
|
|
77
77
|
}
|
|
78
|
-
if (
|
|
78
|
+
if (tr_utils_1.TrUtils.IsNull(tempEntity.Settings.Common.Tax.GST)) {
|
|
79
79
|
Entity.GST = '';
|
|
80
80
|
}
|
|
81
81
|
else {
|
|
82
82
|
Entity.GST = tempEntity.Settings.Common.Tax.GST;
|
|
83
83
|
}
|
|
84
|
-
if (
|
|
84
|
+
if (tr_utils_1.TrUtils.IsNull(tempEntity.Settings.Common.Tax.CST)) {
|
|
85
85
|
Entity.CST = '';
|
|
86
86
|
}
|
|
87
87
|
else {
|
|
88
88
|
Entity.CST = tempEntity.Settings.Common.Tax.CST;
|
|
89
89
|
}
|
|
90
|
-
if (
|
|
90
|
+
if (tr_utils_1.TrUtils.IsNull(tempEntity.Settings.Common.Tax.PAN)) {
|
|
91
91
|
Entity.PAN = '';
|
|
92
92
|
}
|
|
93
93
|
else {
|
|
94
94
|
Entity.PAN = tempEntity.Settings.Common.Tax.PAN;
|
|
95
95
|
}
|
|
96
|
-
if (!
|
|
96
|
+
if (!tr_utils_1.TrUtils.IsNull(tempEntity.Phone2) && !tr_utils_1.TrUtils.IsNull(tempEntity.Phone2.No)) {
|
|
97
97
|
Entity.Phone2 = tempEntity.Phone2.No;
|
|
98
98
|
}
|
|
99
99
|
else {
|
|
@@ -106,38 +106,38 @@ class PrintSharedService {
|
|
|
106
106
|
Entity.City = tempEntity.Address.Ct;
|
|
107
107
|
Entity.PIN = tempEntity.Address.Pin;
|
|
108
108
|
let Email = this.GetEntityEmailDetails(tempEntity);
|
|
109
|
-
if (!
|
|
109
|
+
if (!tr_utils_1.TrUtils.IsEmpty(Email)) {
|
|
110
110
|
Entity.Email = Email;
|
|
111
111
|
}
|
|
112
112
|
Entity.Phone = this.GetEntityContactDetails(tempEntity);
|
|
113
|
-
if (
|
|
113
|
+
if (tr_utils_1.TrUtils.IsNull(tempEntity.Settings.Common.PrOptions)) {
|
|
114
114
|
tempEntity.Settings.Common.PrOptions = {};
|
|
115
115
|
}
|
|
116
116
|
// if (RecordType === "Work Order" || RecordType === "Estimate") {
|
|
117
|
-
if (
|
|
117
|
+
if (tr_utils_1.TrUtils.IsNull(tempEntity.Settings.Service)) {
|
|
118
118
|
tempEntity.Settings.Service = {};
|
|
119
119
|
}
|
|
120
|
-
if (
|
|
120
|
+
if (tr_utils_1.TrUtils.IsNull(tempEntity.Settings.Service.PrMPN)) {
|
|
121
121
|
tempEntity.Settings.Service.PrMPN = false;
|
|
122
122
|
}
|
|
123
123
|
Entity.MPN = tempEntity.Settings.Service.PrMPN;
|
|
124
|
-
if (
|
|
124
|
+
if (tr_utils_1.TrUtils.IsNull(tempEntity.Settings.Acc)) {
|
|
125
125
|
tempEntity.Settings.Acc = {};
|
|
126
126
|
}
|
|
127
|
-
if (
|
|
127
|
+
if (tr_utils_1.TrUtils.IsNull(tempEntity.Settings.Acc.Round)) {
|
|
128
128
|
tempEntity.Settings.Service.Round = false;
|
|
129
129
|
}
|
|
130
130
|
Entity.Round = tempEntity.Settings.Acc.Round;
|
|
131
131
|
// }else{
|
|
132
132
|
// Entity.MPN = false;
|
|
133
133
|
// }
|
|
134
|
-
if (
|
|
134
|
+
if (tr_utils_1.TrUtils.IsNull(tempEntity.Settings.Common.PrOptions.Header)) {
|
|
135
135
|
tempEntity.Settings.Common.PrOptions.Header = 1;
|
|
136
136
|
}
|
|
137
|
-
if (
|
|
137
|
+
if (tr_utils_1.TrUtils.IsNull(tempEntity.Settings.Common.PrOptions.Wmark)) {
|
|
138
138
|
tempEntity.Settings.Common.PrOptions.Wmark = false;
|
|
139
139
|
}
|
|
140
|
-
if (
|
|
140
|
+
if (tr_utils_1.TrUtils.IsNull(tempEntity.Settings.Common.PrOptions.Body)) {
|
|
141
141
|
tempEntity.Settings.PrOptions.Body = 1;
|
|
142
142
|
}
|
|
143
143
|
Entity.Header = tempEntity.Settings.Common.PrOptions.Header;
|
|
@@ -146,20 +146,20 @@ class PrintSharedService {
|
|
|
146
146
|
Entity.FootText = tempEntity.Settings.Common.PrOptions.FootText;
|
|
147
147
|
Entity.Body = 3;
|
|
148
148
|
if (RecordType === "Invoice") {
|
|
149
|
-
Entity.Terms =
|
|
149
|
+
Entity.Terms = tr_utils_1.TrUtils.IsEmpty(OriginalData.TC) ? EntityData.Entity.Settings.Acc.ITerms : OriginalData.TC;
|
|
150
150
|
}
|
|
151
151
|
else if (RecordType === "Work Order") {
|
|
152
|
-
Entity.Terms =
|
|
152
|
+
Entity.Terms = tr_utils_1.TrUtils.IsEmpty(OriginalData.TC) ? EntityData.Entity.Settings.Service.WTerms : OriginalData.TC;
|
|
153
153
|
}
|
|
154
154
|
else if (RecordType === "Estimate") {
|
|
155
|
-
Entity.Terms =
|
|
155
|
+
Entity.Terms = tr_utils_1.TrUtils.IsEmpty(OriginalData.TC) ? EntityData.Entity.Settings.Service.ETerms : OriginalData.TC;
|
|
156
156
|
// Entity.Terms = "Estimate Terms";
|
|
157
157
|
}
|
|
158
158
|
else if (RecordType === "SalesOrder") {
|
|
159
|
-
Entity.Terms =
|
|
159
|
+
Entity.Terms = tr_utils_1.TrUtils.IsEmpty(OriginalData.TC) ? "Sales Order Terms" : OriginalData.TC;
|
|
160
160
|
}
|
|
161
161
|
else if (RecordType === "Sales Estimate") {
|
|
162
|
-
Entity.Terms =
|
|
162
|
+
Entity.Terms = tr_utils_1.TrUtils.IsEmpty(OriginalData.TC) ? "Estimate Terms" : OriginalData.TC;
|
|
163
163
|
}
|
|
164
164
|
else {
|
|
165
165
|
Entity.Terms = "";
|
|
@@ -169,17 +169,17 @@ class PrintSharedService {
|
|
|
169
169
|
static GetEntityContactDetails(EntityInfo) {
|
|
170
170
|
let Phone = '';
|
|
171
171
|
// console.log('EntityInfo', TrUtils.Stringify(EntityInfo));
|
|
172
|
-
if (!
|
|
172
|
+
if (!tr_utils_1.TrUtils.IsNull(EntityInfo.Phone1) && !tr_utils_1.TrUtils.IsNull(EntityInfo.Phone1.No)) {
|
|
173
173
|
if (EntityInfo.Phone1.PrHead) {
|
|
174
174
|
Phone += EntityInfo.Phone1.No;
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
|
-
if (!
|
|
177
|
+
if (!tr_utils_1.TrUtils.IsNull(EntityInfo.Phone2) && !tr_utils_1.TrUtils.IsNull(EntityInfo.Phone2.No)) {
|
|
178
178
|
if (EntityInfo.Phone2.PrHead) {
|
|
179
179
|
Phone += ' , ' + EntityInfo.Phone2.No;
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
|
-
if (!
|
|
182
|
+
if (!tr_utils_1.TrUtils.IsNull(EntityInfo.Phone3) && !tr_utils_1.TrUtils.IsNull(EntityInfo.Phone3.No)) {
|
|
183
183
|
if (EntityInfo.Phone3.PrHead) {
|
|
184
184
|
Phone += ' , ' + EntityInfo.Phone3.No;
|
|
185
185
|
}
|
|
@@ -188,12 +188,12 @@ class PrintSharedService {
|
|
|
188
188
|
}
|
|
189
189
|
static GetEntityEmailDetails(EntityInfo) {
|
|
190
190
|
let Email = '';
|
|
191
|
-
if (!
|
|
191
|
+
if (!tr_utils_1.TrUtils.IsEmpty(EntityInfo.EMail1) && !tr_utils_1.TrUtils.IsEmpty(EntityInfo.EMail1.Email)) {
|
|
192
192
|
if (EntityInfo.EMail1.PrHead) {
|
|
193
193
|
Email += EntityInfo.EMail1.Email;
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
if (!
|
|
196
|
+
if (!tr_utils_1.TrUtils.IsEmpty(EntityInfo.EMail2) && !tr_utils_1.TrUtils.IsEmpty(EntityInfo.EMail2.Email)) {
|
|
197
197
|
if (EntityInfo.EMail2.PrHead) {
|
|
198
198
|
Email += ' , ' + EntityInfo.EMail2.Email;
|
|
199
199
|
}
|
|
@@ -201,7 +201,7 @@ class PrintSharedService {
|
|
|
201
201
|
return Email;
|
|
202
202
|
}
|
|
203
203
|
static GetVehicleFromServiceAndFormatData(originalvehicledata) {
|
|
204
|
-
let Vehicle =
|
|
204
|
+
let Vehicle = tr_utils_1.TrUtils.Stringify(originalvehicledata);
|
|
205
205
|
let FormattedVehicleData = this.GetVehicleDataForPrint(Vehicle);
|
|
206
206
|
return FormattedVehicleData;
|
|
207
207
|
}
|
|
@@ -212,19 +212,19 @@ class PrintSharedService {
|
|
|
212
212
|
Vehicle.Make = vehicle.Make;
|
|
213
213
|
Vehicle.Model = vehicle.Model;
|
|
214
214
|
Vehicle.Var = vehicle.Var;
|
|
215
|
-
if (!
|
|
215
|
+
if (!tr_utils_1.TrUtils.IsNull(vehicle.VIN)) {
|
|
216
216
|
Vehicle.VIN = vehicle.VIN;
|
|
217
217
|
}
|
|
218
218
|
else {
|
|
219
219
|
Vehicle.VIN = '';
|
|
220
220
|
}
|
|
221
|
-
if (!
|
|
221
|
+
if (!tr_utils_1.TrUtils.IsEmpty(vehicle.EngNo)) {
|
|
222
222
|
Vehicle.EngNo = vehicle.EngNo;
|
|
223
223
|
}
|
|
224
224
|
else {
|
|
225
225
|
Vehicle.EngNo = '';
|
|
226
226
|
}
|
|
227
|
-
if (!
|
|
227
|
+
if (!tr_utils_1.TrUtils.IsEmpty(vehicle.DDate)) {
|
|
228
228
|
Vehicle.DDate = my_date_1.MyDate.ConvertUTCDateToReadable(vehicle.DDate);
|
|
229
229
|
}
|
|
230
230
|
else {
|
|
@@ -233,7 +233,7 @@ class PrintSharedService {
|
|
|
233
233
|
return Vehicle;
|
|
234
234
|
}
|
|
235
235
|
static GetCustomerFromServiceAndFormatData(originalcustomerdata) {
|
|
236
|
-
let Customer =
|
|
236
|
+
let Customer = tr_utils_1.TrUtils.Stringify(originalcustomerdata);
|
|
237
237
|
let FormattedCustData = this.GetCustomerDataForROEstPrint(Customer);
|
|
238
238
|
return FormattedCustData;
|
|
239
239
|
}
|
|
@@ -250,21 +250,21 @@ class PrintSharedService {
|
|
|
250
250
|
],
|
|
251
251
|
Adrs: this.GetAddress(customer.Adrs)
|
|
252
252
|
};
|
|
253
|
-
if (!
|
|
253
|
+
if (!tr_utils_1.TrUtils.IsNull(customer.Adrs)) {
|
|
254
254
|
Customer.Pin = customer.Adrs.Pin;
|
|
255
255
|
}
|
|
256
256
|
return Customer;
|
|
257
257
|
}
|
|
258
258
|
static GetAddress(Address) {
|
|
259
259
|
let Adrs = [];
|
|
260
|
-
if (!
|
|
261
|
-
if (!
|
|
260
|
+
if (!tr_utils_1.TrUtils.IsNull(Address)) {
|
|
261
|
+
if (!tr_utils_1.TrUtils.IsEmpty(Address.A1)) {
|
|
262
262
|
Adrs.push(this.AddingComaAsaLastLetter(Address.A1));
|
|
263
263
|
}
|
|
264
|
-
if (!
|
|
264
|
+
if (!tr_utils_1.TrUtils.IsEmpty(Address.A2)) {
|
|
265
265
|
Adrs.push(this.AddingComaAsaLastLetter(Address.A2));
|
|
266
266
|
}
|
|
267
|
-
if (!
|
|
267
|
+
if (!tr_utils_1.TrUtils.IsEmpty(Address.Ct)) {
|
|
268
268
|
Adrs.push(this.AddingComaAsaLastLetter(Address.Ct));
|
|
269
269
|
}
|
|
270
270
|
// if (!TrUtils.IsEmpty(Address.Pin)) {
|
|
@@ -276,7 +276,7 @@ class PrintSharedService {
|
|
|
276
276
|
static AddingComaAsaLastLetter(Stmt) {
|
|
277
277
|
// console.log(Stmt, Stmt.slice(-1));
|
|
278
278
|
// console.log(Stmt.slice(-1) !== ',');
|
|
279
|
-
if (!
|
|
279
|
+
if (!tr_utils_1.TrUtils.IsNull(Stmt) && Stmt.slice(-1) !== ',') {
|
|
280
280
|
Stmt = Stmt + ', ';
|
|
281
281
|
}
|
|
282
282
|
else {
|
|
@@ -293,19 +293,19 @@ class PrintSharedService {
|
|
|
293
293
|
return Customer;
|
|
294
294
|
}
|
|
295
295
|
static GetCGSTValueBasedOnTaxCode(TCode, argTaxCodes) {
|
|
296
|
-
if (
|
|
296
|
+
if (tr_utils_1.TrUtils.IsNull(TCode)) {
|
|
297
297
|
return 0;
|
|
298
298
|
}
|
|
299
|
-
let TaxCodes =
|
|
299
|
+
let TaxCodes = tr_utils_1.TrUtils.Stringify(argTaxCodes);
|
|
300
300
|
let TCodeIndex = TaxCodes.findIndex((TaxCode) => {
|
|
301
301
|
return TaxCode._id === Number(TCode);
|
|
302
302
|
});
|
|
303
303
|
if (TCodeIndex !== -1) {
|
|
304
|
-
if (
|
|
304
|
+
if (tr_utils_1.TrUtils.IsNull(TaxCodes[TCodeIndex].CGST)) {
|
|
305
305
|
return 0;
|
|
306
306
|
}
|
|
307
307
|
else {
|
|
308
|
-
return
|
|
308
|
+
return tr_utils_1.TrUtils.FixedTo(TaxCodes[TCodeIndex].CGST);
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
311
|
else {
|
|
@@ -313,19 +313,19 @@ class PrintSharedService {
|
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
315
|
static GetSGSTValueBasedOnTaxCode(TCode, argTaxCodes) {
|
|
316
|
-
if (
|
|
316
|
+
if (tr_utils_1.TrUtils.IsNull(TCode)) {
|
|
317
317
|
return 0;
|
|
318
318
|
}
|
|
319
|
-
let TaxCodes =
|
|
319
|
+
let TaxCodes = tr_utils_1.TrUtils.Stringify(argTaxCodes);
|
|
320
320
|
let TCodeIndex = TaxCodes.findIndex((TaxCode) => {
|
|
321
321
|
return TaxCode._id === Number(TCode);
|
|
322
322
|
});
|
|
323
323
|
if (TCodeIndex !== -1) {
|
|
324
|
-
if (
|
|
324
|
+
if (tr_utils_1.TrUtils.IsNull(TaxCodes[TCodeIndex].SGST)) {
|
|
325
325
|
return 0;
|
|
326
326
|
}
|
|
327
327
|
else {
|
|
328
|
-
return
|
|
328
|
+
return tr_utils_1.TrUtils.FixedTo(TaxCodes[TCodeIndex].SGST);
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
331
|
else {
|
|
@@ -333,19 +333,19 @@ class PrintSharedService {
|
|
|
333
333
|
}
|
|
334
334
|
}
|
|
335
335
|
static GetIGSTValueBasedOnTaxCode(TCode, argTaxCodes) {
|
|
336
|
-
if (
|
|
336
|
+
if (tr_utils_1.TrUtils.IsNull(TCode)) {
|
|
337
337
|
return 0;
|
|
338
338
|
}
|
|
339
|
-
let TaxCodes =
|
|
339
|
+
let TaxCodes = tr_utils_1.TrUtils.Stringify(argTaxCodes);
|
|
340
340
|
let TCodeIndex = TaxCodes.findIndex((TaxCode) => {
|
|
341
341
|
return TaxCode._id === Number(TCode);
|
|
342
342
|
});
|
|
343
343
|
if (TCodeIndex !== -1) {
|
|
344
|
-
if (
|
|
344
|
+
if (tr_utils_1.TrUtils.IsNull(TaxCodes[TCodeIndex].IGST)) {
|
|
345
345
|
return 0;
|
|
346
346
|
}
|
|
347
347
|
else {
|
|
348
|
-
return
|
|
348
|
+
return tr_utils_1.TrUtils.FixedTo(TaxCodes[TCodeIndex].IGST);
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
351
|
else {
|
|
@@ -355,24 +355,24 @@ class PrintSharedService {
|
|
|
355
355
|
static CheckItemIndexWithDisc(RecordInfo) {
|
|
356
356
|
let DiscItem = RecordInfo.PrintInfo.findIndex((PrintInfo) => {
|
|
357
357
|
let LaborDiscItem = -1;
|
|
358
|
-
if (!
|
|
358
|
+
if (!tr_utils_1.TrUtils.IsNull(PrintInfo.Ops)) {
|
|
359
359
|
LaborDiscItem = PrintInfo.Ops.findIndex((Labor) => {
|
|
360
|
-
if (!
|
|
360
|
+
if (!tr_utils_1.TrUtils.IsZero(Labor.Disc)) {
|
|
361
361
|
return Labor;
|
|
362
362
|
}
|
|
363
363
|
});
|
|
364
364
|
}
|
|
365
365
|
let PartDiscItem = -1;
|
|
366
|
-
if (!
|
|
366
|
+
if (!tr_utils_1.TrUtils.IsNull(PrintInfo.Parts)) {
|
|
367
367
|
PartDiscItem = PrintInfo.Parts.findIndex((Part) => {
|
|
368
|
-
if (!
|
|
368
|
+
if (!tr_utils_1.TrUtils.IsZero(Part.Disc)) {
|
|
369
369
|
return Part;
|
|
370
370
|
}
|
|
371
371
|
});
|
|
372
372
|
}
|
|
373
|
-
else if (!
|
|
373
|
+
else if (!tr_utils_1.TrUtils.IsNull(PrintInfo.Items)) {
|
|
374
374
|
PartDiscItem = PrintInfo.Items.findIndex((Item) => {
|
|
375
|
-
return !
|
|
375
|
+
return !tr_utils_1.TrUtils.IsZero(Item.Disc);
|
|
376
376
|
});
|
|
377
377
|
}
|
|
378
378
|
if (LaborDiscItem !== -1 || PartDiscItem !== -1) {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetNumber = GetNumber;
|
|
4
|
+
exports.IsNull = IsNull;
|
|
5
|
+
exports.IsNotNull = IsNotNull;
|
|
6
|
+
function GetNumber(value, defaultValue = 0) {
|
|
7
|
+
return (value == undefined || value == null || isNaN(value)) ? defaultValue : Number(value);
|
|
8
|
+
}
|
|
9
|
+
function IsNull(value) {
|
|
10
|
+
// return value === null || typeof value === 'undefined';
|
|
11
|
+
return value === null || value === undefined;
|
|
12
|
+
}
|
|
13
|
+
function IsNotNull(value) {
|
|
14
|
+
return !IsNull(value);
|
|
15
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
export declare class MeetingPdfService {
|
|
2
|
+
static BodySize: number;
|
|
3
|
+
static MeetingPrintData(meetingData: any, isAgendata: boolean): void;
|
|
4
|
+
static HeadingforMeeting(isAgendata: any): {
|
|
5
|
+
text: string;
|
|
6
|
+
alignment: string;
|
|
7
|
+
bold: boolean;
|
|
8
|
+
fontSize: number;
|
|
9
|
+
};
|
|
10
|
+
static HeaderContent(meetingData: any, isAgendata: boolean, Images: any): {
|
|
11
|
+
columns: {
|
|
12
|
+
stack: ({
|
|
13
|
+
text: string;
|
|
14
|
+
alignment: string;
|
|
15
|
+
bold: boolean;
|
|
16
|
+
fontSize: number;
|
|
17
|
+
} | {
|
|
18
|
+
text: string;
|
|
19
|
+
style: string[];
|
|
20
|
+
width: string;
|
|
21
|
+
marginTop: number;
|
|
22
|
+
alignment: string;
|
|
23
|
+
})[];
|
|
24
|
+
}[];
|
|
25
|
+
width: string;
|
|
26
|
+
marginBottom: number;
|
|
27
|
+
} | {
|
|
28
|
+
columns: ({
|
|
29
|
+
stack: ({
|
|
30
|
+
text: string;
|
|
31
|
+
alignment: string;
|
|
32
|
+
bold: boolean;
|
|
33
|
+
fontSize: number;
|
|
34
|
+
} | {
|
|
35
|
+
text: string;
|
|
36
|
+
style: string[];
|
|
37
|
+
width: string;
|
|
38
|
+
marginTop: number;
|
|
39
|
+
alignment: string;
|
|
40
|
+
})[];
|
|
41
|
+
} | {
|
|
42
|
+
image: any;
|
|
43
|
+
width: number;
|
|
44
|
+
})[];
|
|
45
|
+
marginBottom: number;
|
|
46
|
+
width?: undefined;
|
|
47
|
+
};
|
|
48
|
+
static imageExists(image_url: any): boolean;
|
|
49
|
+
static Header(meetingData: any, isAgendata: boolean): {
|
|
50
|
+
stack: ({
|
|
51
|
+
text: string;
|
|
52
|
+
alignment: string;
|
|
53
|
+
bold: boolean;
|
|
54
|
+
fontSize: number;
|
|
55
|
+
} | {
|
|
56
|
+
text: string;
|
|
57
|
+
style: string[];
|
|
58
|
+
width: string;
|
|
59
|
+
marginTop: number;
|
|
60
|
+
alignment: string;
|
|
61
|
+
})[];
|
|
62
|
+
};
|
|
63
|
+
static GetMeetingDetails(meetingData: any, isAgendata: boolean): {
|
|
64
|
+
stack: {
|
|
65
|
+
fontSize: number;
|
|
66
|
+
lineHeight: number;
|
|
67
|
+
margin: number;
|
|
68
|
+
table: {
|
|
69
|
+
body: any;
|
|
70
|
+
};
|
|
71
|
+
layout: string;
|
|
72
|
+
}[];
|
|
73
|
+
};
|
|
74
|
+
static GetMeetingTimeDetails(MeetingData: any, isAgendata: boolean): {
|
|
75
|
+
fontSize: number;
|
|
76
|
+
lineHeight: number;
|
|
77
|
+
margin: number;
|
|
78
|
+
table: {
|
|
79
|
+
body: any;
|
|
80
|
+
};
|
|
81
|
+
layout: string;
|
|
82
|
+
};
|
|
83
|
+
static getPresentMembers(Members: any): string;
|
|
84
|
+
static getAbsentMembers(Members: any): string;
|
|
85
|
+
static getDateAndTime(MeetingData: any): string;
|
|
86
|
+
static getParticipantsMembers(Members: any): string;
|
|
87
|
+
static GetOptionalMembers(Members: any): string;
|
|
88
|
+
static getCCMembers(Members: any): string;
|
|
89
|
+
static getCCMembersAndOptionalAbsent(Members: any): string;
|
|
90
|
+
static GetDetails(data: any): {
|
|
91
|
+
fontSize: number;
|
|
92
|
+
lineHeight: number;
|
|
93
|
+
margin: number;
|
|
94
|
+
table: {
|
|
95
|
+
body: any;
|
|
96
|
+
};
|
|
97
|
+
layout: string;
|
|
98
|
+
};
|
|
99
|
+
static GetDetailsTable(data: any): any;
|
|
100
|
+
static GetTopicsAndSubTopicsAndItemsList(meetingData: any, items: any, isAgendata: boolean): any;
|
|
101
|
+
static TopicsItemView(item: any, meetingData: any, tpcs: any): void;
|
|
102
|
+
static GetDescrption(Item: any, MeetingData: any): any;
|
|
103
|
+
static GetDueDate(Item: any, MeetingData: any): string | null;
|
|
104
|
+
static getAssignee(Item: any, MeetingData: any): string;
|
|
105
|
+
static GetTypeOfItem(type: any): "Task" | "Desc" | "Note";
|
|
106
|
+
static GetColorsBasedOnType(type: any): "#b30000" | "blue" | "green";
|
|
107
|
+
}
|