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,22 @@
|
|
|
1
|
+
export declare class DebitNoteTotalsService {
|
|
2
|
+
static GetTotalsValue(PartsList: any, IsIndependentTax: boolean, DetailedInfo: boolean, Disc: any, Perc: string, TaxCodes: any, WithItems: boolean, Settings: any): any;
|
|
3
|
+
static CalculateLaborPartValues(PartsList: any, IsIndependentTax: boolean): any;
|
|
4
|
+
static ResetLaborPartValues(PartsList: any, IsIndependentTax: boolean): any;
|
|
5
|
+
static ResetLaborPartValueIfInvalid(Part: any): any;
|
|
6
|
+
static GetFinalRODataForSave(PartsList: any, IsIndependentTax: boolean, Disc: any, Perc: string, DetailedInfo: boolean, Settings: any): any;
|
|
7
|
+
static SetMainDiscountValues(Disc: string, Perc: string, finalTotalsData: any, DetailedInfo: boolean): any;
|
|
8
|
+
static GetFinalCustomerTotalsData(finalTotalsData: any, PartsList: any, IsIndependentTax: boolean, DetailedInfo: boolean): any;
|
|
9
|
+
static GetSubTotalFor(PartsList: any): any;
|
|
10
|
+
static GetPartsTotalAfterDiscount(PartsList: any): any;
|
|
11
|
+
static GetDetailedTotalsData(finalTotalsData: any, IsIndependentTax: boolean, PartsList: any, TaxCodes: any): any;
|
|
12
|
+
static GetPartDiscountedTotal(PartsList: any, isTaxable: boolean, finalTotalsData: any): any;
|
|
13
|
+
static GetPartsTaxTotalFor(PartsList: any, IsIndependentTax: boolean): any;
|
|
14
|
+
static GetCustomerTotalBasedOnTaxType(finalTotalsData: any, PartsTaxAmount: number, PartsList: any, IsIndependentTax: boolean): any;
|
|
15
|
+
static ItemsTotalAfterDiscount(PartsTotalAfterDisc: number, PartsTaxAmount: number, MainPDisc: number, PDiscInPerc: string): number;
|
|
16
|
+
static GetPartGSTTaxTotal(PartsList: any, IsIndependentTax: boolean): number[];
|
|
17
|
+
static GetTaxGroupingForPartsByHSN(Parts: any, TaxCodes: any): any[];
|
|
18
|
+
static GetCombinedTaxPercentage(Parts: any, TaxCodes: any): any;
|
|
19
|
+
static ComparePartsByHSN(Parts: any, TaxCodes: any): any[];
|
|
20
|
+
static GetTaxGroupingInfoByHSN(FinalMatchedParts: any, TaxCodes: any): any[];
|
|
21
|
+
static GetGSTValueBasedOnTaxCode(TCode: any, TaxCodes: any): any[];
|
|
22
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DebitNoteTotalsService = void 0;
|
|
4
|
-
const aggregation_1 = require("
|
|
5
|
-
const
|
|
4
|
+
const aggregation_1 = require("../../aggregation/aggregation");
|
|
5
|
+
const tr_utils_1 = require("../../utils/tr-utils");
|
|
6
6
|
class DebitNoteTotalsService {
|
|
7
7
|
static GetTotalsValue(PartsList, IsIndependentTax, DetailedInfo, Disc, Perc, TaxCodes, WithItems, Settings) {
|
|
8
8
|
// LPerc = TrUtils.SetPercToStringIfNull(LPerc);
|
|
9
9
|
// PPerc = TrUtils.SetPercToStringIfNull(PPerc);
|
|
10
|
-
Perc =
|
|
10
|
+
Perc = tr_utils_1.TrUtils.SetPercToStringIfNull(Perc);
|
|
11
11
|
// LDisc = TrUtils.SetValueToZeroIfNull(LDisc);
|
|
12
12
|
// PDisc = TrUtils.SetValueToZeroIfNull(PDisc);
|
|
13
|
-
Disc =
|
|
13
|
+
Disc = tr_utils_1.TrUtils.SetValueToZeroIfNull(Disc);
|
|
14
14
|
// opCodesList = this.CalculateLaborValues(opCodesList, IsIndependentTax);
|
|
15
15
|
PartsList = this.CalculateLaborPartValues(PartsList, IsIndependentTax);
|
|
16
16
|
let finalTotalsData = this.GetFinalRODataForSave(PartsList, IsIndependentTax, Disc, Perc, DetailedInfo, Settings);
|
|
@@ -46,12 +46,12 @@ class DebitNoteTotalsService {
|
|
|
46
46
|
return PartsList;
|
|
47
47
|
}
|
|
48
48
|
static ResetLaborPartValueIfInvalid(Part) {
|
|
49
|
-
Part.UnPr =
|
|
50
|
-
Part.Disc =
|
|
51
|
-
Part.RecDisc =
|
|
52
|
-
Part.CGST =
|
|
53
|
-
Part.SGST =
|
|
54
|
-
Part.IGST =
|
|
49
|
+
Part.UnPr = tr_utils_1.TrUtils.SetValueToZeroIfNull(Part.UnPr);
|
|
50
|
+
Part.Disc = tr_utils_1.TrUtils.SetValueToZeroIfNull(Part.Disc);
|
|
51
|
+
Part.RecDisc = tr_utils_1.TrUtils.SetValueToZeroIfNull(Part.RecDisc);
|
|
52
|
+
Part.CGST = tr_utils_1.TrUtils.SetValueToZeroIfNull(Part.CGST);
|
|
53
|
+
Part.SGST = tr_utils_1.TrUtils.SetValueToZeroIfNull(Part.SGST);
|
|
54
|
+
Part.IGST = tr_utils_1.TrUtils.SetValueToZeroIfNull(Part.IGST);
|
|
55
55
|
return Part;
|
|
56
56
|
}
|
|
57
57
|
static GetFinalRODataForSave(PartsList, IsIndependentTax, Disc, Perc, DetailedInfo, Settings) {
|
|
@@ -89,8 +89,8 @@ class DebitNoteTotalsService {
|
|
|
89
89
|
finalTotalsData.Round = (0, aggregation_1.subtraction)(Math.round(CustTotal), CustTotal);
|
|
90
90
|
finalTotalsData.Total = Math.round(CustTotal);
|
|
91
91
|
if (DetailedInfo) {
|
|
92
|
-
finalTotalsData.FixedSubTotal =
|
|
93
|
-
finalTotalsData.FixedTotal =
|
|
92
|
+
finalTotalsData.FixedSubTotal = tr_utils_1.TrUtils.FixedTo(CustomerAfterDiscTotals);
|
|
93
|
+
finalTotalsData.FixedTotal = tr_utils_1.TrUtils.FixedTo(CustTotal);
|
|
94
94
|
}
|
|
95
95
|
return finalTotalsData;
|
|
96
96
|
}
|
|
@@ -119,21 +119,21 @@ class DebitNoteTotalsService {
|
|
|
119
119
|
// finalTotalsData.CustLaborCGST = this.GetLaborCGSTTaxTotal(opCodesList, IsIndependentTax);
|
|
120
120
|
// finalTotalsData.CustLaborIGST = this.GetLaborIGSTTaxTotal(opCodesList, IsIndependentTax);
|
|
121
121
|
let TaxInfo = this.GetPartGSTTaxTotal(PartsList, IsIndependentTax);
|
|
122
|
-
finalTotalsData.CustPartITax =
|
|
123
|
-
finalTotalsData.CustPartCGST =
|
|
124
|
-
finalTotalsData.CustPartIGST =
|
|
125
|
-
finalTotalsData.CustPartSGST =
|
|
122
|
+
finalTotalsData.CustPartITax = tr_utils_1.TrUtils.SetValueToZeroIfNull(TaxInfo[3]);
|
|
123
|
+
finalTotalsData.CustPartCGST = tr_utils_1.TrUtils.SetValueToZeroIfNull(TaxInfo[0]);
|
|
124
|
+
finalTotalsData.CustPartIGST = tr_utils_1.TrUtils.SetValueToZeroIfNull(TaxInfo[2]);
|
|
125
|
+
finalTotalsData.CustPartSGST = tr_utils_1.TrUtils.SetValueToZeroIfNull(TaxInfo[1]);
|
|
126
126
|
// finalTotalsData.CustLaborAfterTax = addition(finalTotalsData.CustLaborITax , finalTotalsData.CustLaborTotalAfterDisc);
|
|
127
127
|
finalTotalsData.CustPartAfterTax = (0, aggregation_1.addition)(finalTotalsData.CustPartITax, finalTotalsData.CustPartsTotalAfterDisc);
|
|
128
128
|
finalTotalsData.CustTaxGroupData = this.GetTaxGroupingForPartsByHSN(PartsList, TaxCodes);
|
|
129
|
-
finalTotalsData.CustTotalRoundedBy =
|
|
130
|
-
finalTotalsData.CustRoundedTotal =
|
|
129
|
+
finalTotalsData.CustTotalRoundedBy = tr_utils_1.TrUtils.FixedTo(finalTotalsData.Round);
|
|
130
|
+
finalTotalsData.CustRoundedTotal = tr_utils_1.TrUtils.FixedTo(finalTotalsData.Total);
|
|
131
131
|
for (var key in finalTotalsData) {
|
|
132
132
|
if (key !== 'Total' && key !== 'SubTotal' &&
|
|
133
133
|
key !== 'LDisc' && key !== 'LPerc' && key !== 'PDisc' &&
|
|
134
134
|
key !== 'PPerc' && key !== 'Disc' && key !== 'Perc' && key !== 'Tax'
|
|
135
135
|
&& typeof finalTotalsData[key] === 'number') {
|
|
136
|
-
finalTotalsData[key] =
|
|
136
|
+
finalTotalsData[key] = tr_utils_1.TrUtils.FixPriceValue(finalTotalsData[key]);
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
return finalTotalsData;
|
|
@@ -142,7 +142,7 @@ class DebitNoteTotalsService {
|
|
|
142
142
|
let PartsDiscountedTotal = 0;
|
|
143
143
|
let overallPartDisc = 0;
|
|
144
144
|
if (!isTaxable) {
|
|
145
|
-
overallPartDisc =
|
|
145
|
+
overallPartDisc = tr_utils_1.TrUtils.SetValueToZeroIfNull(finalTotalsData.PDisc);
|
|
146
146
|
}
|
|
147
147
|
PartsList.forEach((Part) => {
|
|
148
148
|
PartsDiscountedTotal = (0, aggregation_1.addition)(PartsDiscountedTotal, Part.DiscountedPrice);
|
|
@@ -170,8 +170,8 @@ class DebitNoteTotalsService {
|
|
|
170
170
|
}
|
|
171
171
|
static ItemsTotalAfterDiscount(PartsTotalAfterDisc, PartsTaxAmount, MainPDisc, PDiscInPerc) {
|
|
172
172
|
let ItemsTotal = (0, aggregation_1.addition)(PartsTotalAfterDisc, PartsTaxAmount);
|
|
173
|
-
if (!
|
|
174
|
-
if (!
|
|
173
|
+
if (!tr_utils_1.TrUtils.IsZero(MainPDisc)) {
|
|
174
|
+
if (!tr_utils_1.TrUtils.IsEmpty(PDiscInPerc)) {
|
|
175
175
|
ItemsTotal = (0, aggregation_1.subtraction)(ItemsTotal, (0, aggregation_1.division)((0, aggregation_1.multiply)(ItemsTotal, Number(PDiscInPerc)), 100));
|
|
176
176
|
}
|
|
177
177
|
else {
|
|
@@ -203,13 +203,13 @@ class DebitNoteTotalsService {
|
|
|
203
203
|
}
|
|
204
204
|
static GetCombinedTaxPercentage(Parts, TaxCodes) {
|
|
205
205
|
Parts.forEach((Part) => {
|
|
206
|
-
if (
|
|
206
|
+
if (tr_utils_1.TrUtils.IsNull(Part.HSN)) {
|
|
207
207
|
Part.HSN = '';
|
|
208
208
|
}
|
|
209
209
|
let GSTValues = this.GetGSTValueBasedOnTaxCode(Part.TCode, TaxCodes);
|
|
210
|
-
Part.CGSTAmt =
|
|
211
|
-
Part.SGSTAmt =
|
|
212
|
-
Part.IGSTAmt =
|
|
210
|
+
Part.CGSTAmt = tr_utils_1.TrUtils.SetValueToZeroIfNull(GSTValues[0]);
|
|
211
|
+
Part.SGSTAmt = tr_utils_1.TrUtils.SetValueToZeroIfNull(GSTValues[1]);
|
|
212
|
+
Part.IGSTAmt = tr_utils_1.TrUtils.SetValueToZeroIfNull(GSTValues[2]);
|
|
213
213
|
Part.CombinedTaxPercentage = (0, aggregation_1.addition)(Part.CGSTAmt, Part.SGSTAmt, Part.IGSTAmt);
|
|
214
214
|
});
|
|
215
215
|
return Parts;
|
|
@@ -252,8 +252,8 @@ class DebitNoteTotalsService {
|
|
|
252
252
|
TaxAmount = (0, aggregation_1.addition)(TaxAmount, argMatchedGSTPart.SGST);
|
|
253
253
|
});
|
|
254
254
|
TaxInfo.HSN = HSN;
|
|
255
|
-
TaxInfo.TotalTaxableAmount =
|
|
256
|
-
TaxInfo.TotalTaxAmount =
|
|
255
|
+
TaxInfo.TotalTaxableAmount = tr_utils_1.TrUtils.FixPriceValue(TaxOnAmount);
|
|
256
|
+
TaxInfo.TotalTaxAmount = tr_utils_1.TrUtils.FixPriceValue(TaxAmount);
|
|
257
257
|
TaxInfo.ItemsCount = MatchedPart.length;
|
|
258
258
|
// let GSTValues: any[] = this.GetGSTValueBasedOnTaxCode(MatchedPart[0].TCode, TaxCodes);
|
|
259
259
|
// TaxInfo.CGST = GSTValues[0];
|
|
@@ -272,7 +272,7 @@ class DebitNoteTotalsService {
|
|
|
272
272
|
let CGST = 0;
|
|
273
273
|
let SGST = 0;
|
|
274
274
|
let IGST = 0;
|
|
275
|
-
if (
|
|
275
|
+
if (tr_utils_1.TrUtils.IsNull(TCode)) {
|
|
276
276
|
return [CGST, SGST, IGST];
|
|
277
277
|
}
|
|
278
278
|
let TCodeIndex = TaxCodes.findIndex((TaxCode) => {
|
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
export declare class HCInvoiceprintService {
|
|
2
|
+
FontSize: number;
|
|
3
|
+
static GetInvoicePrint(ROPrintData: any, numberofCopies: any, isotherIndustry: boolean, withPass: boolean, isAuto: boolean, size: any, moreDiscDetails: boolean): {
|
|
4
|
+
watermark: string | {
|
|
5
|
+
text: string;
|
|
6
|
+
opacity: number;
|
|
7
|
+
};
|
|
8
|
+
info: {
|
|
9
|
+
title: string;
|
|
10
|
+
};
|
|
11
|
+
background: (currentPage: any, pageSize: any) => any;
|
|
12
|
+
header: (currentPage: any, pageCount: any) => {
|
|
13
|
+
text: string;
|
|
14
|
+
alignment: string;
|
|
15
|
+
marginRight: number;
|
|
16
|
+
fontSize: number;
|
|
17
|
+
marginTop: number;
|
|
18
|
+
};
|
|
19
|
+
pageBreakBefore: (currentNode: any, followingNodesOnPage: any, nodesOnNextPage: any, previousNodesOnPage: any) => boolean;
|
|
20
|
+
pageMargins: number[];
|
|
21
|
+
pageSize: string;
|
|
22
|
+
content: any[];
|
|
23
|
+
styles: {
|
|
24
|
+
temp2header: {
|
|
25
|
+
fontSize: number;
|
|
26
|
+
bold: boolean;
|
|
27
|
+
alignment: string;
|
|
28
|
+
};
|
|
29
|
+
tableheader1: {
|
|
30
|
+
bold: boolean;
|
|
31
|
+
fontFamily: string;
|
|
32
|
+
margin: number[];
|
|
33
|
+
alignment: string;
|
|
34
|
+
};
|
|
35
|
+
header: {
|
|
36
|
+
fontSize: number;
|
|
37
|
+
bold: boolean;
|
|
38
|
+
alignment: string;
|
|
39
|
+
};
|
|
40
|
+
meetingHeader: {
|
|
41
|
+
fontSize: number;
|
|
42
|
+
bold: boolean;
|
|
43
|
+
};
|
|
44
|
+
Receiptheader: {
|
|
45
|
+
fontSize: number;
|
|
46
|
+
bold: boolean;
|
|
47
|
+
alignment: string;
|
|
48
|
+
margin: number[];
|
|
49
|
+
};
|
|
50
|
+
InlineHeader: {
|
|
51
|
+
fontSize: number;
|
|
52
|
+
bold: boolean;
|
|
53
|
+
alignment: string;
|
|
54
|
+
margin: number[];
|
|
55
|
+
};
|
|
56
|
+
TaskHeading: {
|
|
57
|
+
fontSize: number;
|
|
58
|
+
bold: boolean;
|
|
59
|
+
margin: number[];
|
|
60
|
+
};
|
|
61
|
+
lettersSize: {
|
|
62
|
+
fontSize: number;
|
|
63
|
+
margin: number[];
|
|
64
|
+
};
|
|
65
|
+
tablexample: {
|
|
66
|
+
margin: number[];
|
|
67
|
+
};
|
|
68
|
+
hedstyl: {
|
|
69
|
+
margin: number[];
|
|
70
|
+
};
|
|
71
|
+
header2: {
|
|
72
|
+
fontSize: number;
|
|
73
|
+
bold: boolean;
|
|
74
|
+
alignment: string;
|
|
75
|
+
margin: number[];
|
|
76
|
+
};
|
|
77
|
+
header1: {
|
|
78
|
+
fontSize: number;
|
|
79
|
+
bold: boolean;
|
|
80
|
+
alignment: string;
|
|
81
|
+
decoration: string;
|
|
82
|
+
margin: number[];
|
|
83
|
+
};
|
|
84
|
+
ws_adrs_center: {
|
|
85
|
+
fontSize: number;
|
|
86
|
+
alignment: string;
|
|
87
|
+
};
|
|
88
|
+
ws_adrs_center1: {
|
|
89
|
+
fontSize: number;
|
|
90
|
+
alignment: string;
|
|
91
|
+
};
|
|
92
|
+
ws_adrs_left: {
|
|
93
|
+
fontSize: number;
|
|
94
|
+
alignment: string;
|
|
95
|
+
};
|
|
96
|
+
ws_adrs_left1: {
|
|
97
|
+
fontSize: number;
|
|
98
|
+
alignment: string;
|
|
99
|
+
};
|
|
100
|
+
columnheader: {
|
|
101
|
+
margin: number[];
|
|
102
|
+
};
|
|
103
|
+
tableExample: {
|
|
104
|
+
margin: number[];
|
|
105
|
+
fontSize: number;
|
|
106
|
+
};
|
|
107
|
+
tableExamplemargin: {
|
|
108
|
+
margin: number[];
|
|
109
|
+
fontSize: number;
|
|
110
|
+
};
|
|
111
|
+
textcust: {
|
|
112
|
+
fontSize: number;
|
|
113
|
+
margin: number[];
|
|
114
|
+
};
|
|
115
|
+
column: {
|
|
116
|
+
margin: number[];
|
|
117
|
+
};
|
|
118
|
+
tableheader: {
|
|
119
|
+
bold: boolean;
|
|
120
|
+
fontSize: number;
|
|
121
|
+
margin: number[];
|
|
122
|
+
alignment: string;
|
|
123
|
+
};
|
|
124
|
+
tableheader2: {
|
|
125
|
+
fontSize: number;
|
|
126
|
+
margin: number[];
|
|
127
|
+
alignment: string;
|
|
128
|
+
opacity: number;
|
|
129
|
+
};
|
|
130
|
+
hed: {
|
|
131
|
+
fontSize: number;
|
|
132
|
+
bold: boolean;
|
|
133
|
+
};
|
|
134
|
+
hed2: {
|
|
135
|
+
fontSize: number;
|
|
136
|
+
};
|
|
137
|
+
TotalsStyles: {
|
|
138
|
+
marginTop: number;
|
|
139
|
+
lineHeight: number;
|
|
140
|
+
fontSize: number;
|
|
141
|
+
margin: number[];
|
|
142
|
+
};
|
|
143
|
+
colum1: {
|
|
144
|
+
fontSize: number;
|
|
145
|
+
lineHeight: number;
|
|
146
|
+
};
|
|
147
|
+
colum2: {
|
|
148
|
+
fontSize: number;
|
|
149
|
+
lineHeight: number;
|
|
150
|
+
margin: number[];
|
|
151
|
+
};
|
|
152
|
+
colum3: {
|
|
153
|
+
lineHeight: number;
|
|
154
|
+
};
|
|
155
|
+
Receiptheader1: {
|
|
156
|
+
fontSize: number;
|
|
157
|
+
bold: boolean;
|
|
158
|
+
alignment: string;
|
|
159
|
+
margin: number[];
|
|
160
|
+
};
|
|
161
|
+
Row1: {
|
|
162
|
+
fontSize: number;
|
|
163
|
+
margin: number[];
|
|
164
|
+
};
|
|
165
|
+
rowdata: {
|
|
166
|
+
margin: number[];
|
|
167
|
+
fontSize: number;
|
|
168
|
+
};
|
|
169
|
+
forCompany: {
|
|
170
|
+
margin: number[];
|
|
171
|
+
fontSize: string;
|
|
172
|
+
};
|
|
173
|
+
forCompany1: {
|
|
174
|
+
margin: number[];
|
|
175
|
+
fontSize: string;
|
|
176
|
+
};
|
|
177
|
+
Rupees: {
|
|
178
|
+
margin: number[];
|
|
179
|
+
fontSize: string;
|
|
180
|
+
};
|
|
181
|
+
Signature: {
|
|
182
|
+
margin: number[];
|
|
183
|
+
alignment: string;
|
|
184
|
+
fontSize: string;
|
|
185
|
+
};
|
|
186
|
+
withApp: {
|
|
187
|
+
alignment: string;
|
|
188
|
+
lineHeight: number;
|
|
189
|
+
};
|
|
190
|
+
withOutApp: {
|
|
191
|
+
alignment: string;
|
|
192
|
+
lineHeight: number;
|
|
193
|
+
};
|
|
194
|
+
Sign: {
|
|
195
|
+
fontSize: number;
|
|
196
|
+
margin: number[];
|
|
197
|
+
};
|
|
198
|
+
Sign1: {
|
|
199
|
+
fontSize: number;
|
|
200
|
+
margin: number[];
|
|
201
|
+
};
|
|
202
|
+
'margin-all': {
|
|
203
|
+
margin: number[];
|
|
204
|
+
};
|
|
205
|
+
'margin-top': {
|
|
206
|
+
margin: number[];
|
|
207
|
+
};
|
|
208
|
+
'margin-bottom': {
|
|
209
|
+
margin: number[];
|
|
210
|
+
};
|
|
211
|
+
fontSize: {
|
|
212
|
+
fontSize: number;
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
static GetMarginsBasedOnPaperSize(size: any): number[];
|
|
217
|
+
static GetWatermark(ROPrintData: any): "" | {
|
|
218
|
+
text: string;
|
|
219
|
+
opacity: number;
|
|
220
|
+
};
|
|
221
|
+
static GetFileName(ROPrintData: any): string;
|
|
222
|
+
static CommonHeaderDetails(ROPrintData: any, text: any, isotherIndustry: boolean): any[];
|
|
223
|
+
static CustomerAndVehicleDetailsAfterLine(): {
|
|
224
|
+
canvas: {
|
|
225
|
+
type: string;
|
|
226
|
+
lineColor: string;
|
|
227
|
+
x1: number;
|
|
228
|
+
y1: number;
|
|
229
|
+
x2: number;
|
|
230
|
+
y2: number;
|
|
231
|
+
lineWidth: number;
|
|
232
|
+
}[];
|
|
233
|
+
};
|
|
234
|
+
static GetMainHeaderDetails(Entity: any, HeaderName: any, Image: any, HColor: any, AColor: any, text: any): ({
|
|
235
|
+
columns: any;
|
|
236
|
+
} | {
|
|
237
|
+
canvas: {
|
|
238
|
+
type: string;
|
|
239
|
+
lineColor: string;
|
|
240
|
+
x1: number;
|
|
241
|
+
y1: number;
|
|
242
|
+
x2: number;
|
|
243
|
+
y2: number;
|
|
244
|
+
lineWidth: number;
|
|
245
|
+
}[];
|
|
246
|
+
})[];
|
|
247
|
+
static HeaderAfterLine(): {
|
|
248
|
+
canvas: {
|
|
249
|
+
type: string;
|
|
250
|
+
lineColor: string;
|
|
251
|
+
x1: number;
|
|
252
|
+
y1: number;
|
|
253
|
+
x2: number;
|
|
254
|
+
y2: number;
|
|
255
|
+
lineWidth: number;
|
|
256
|
+
}[];
|
|
257
|
+
};
|
|
258
|
+
static GetPrintType(type: any, RegNo: any): {
|
|
259
|
+
columns: ({
|
|
260
|
+
text: string;
|
|
261
|
+
width: number;
|
|
262
|
+
alignment?: undefined;
|
|
263
|
+
style?: undefined;
|
|
264
|
+
fontSize?: undefined;
|
|
265
|
+
} | {
|
|
266
|
+
text: any;
|
|
267
|
+
alignment: string;
|
|
268
|
+
style: string;
|
|
269
|
+
width?: undefined;
|
|
270
|
+
fontSize?: undefined;
|
|
271
|
+
} | {
|
|
272
|
+
text: string;
|
|
273
|
+
alignment: string;
|
|
274
|
+
width: number;
|
|
275
|
+
fontSize: number;
|
|
276
|
+
style?: undefined;
|
|
277
|
+
})[];
|
|
278
|
+
};
|
|
279
|
+
static PreparesparePartsTable(ROPrintData: any, isAuto: boolean): any;
|
|
280
|
+
static GetLaborPartsTableForView(Parts: any, Ops: any, PrintPartNo: any): any;
|
|
281
|
+
static WithOutDiscountFieldTable(Parts: any, Ops: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, isAuto: boolean): any;
|
|
282
|
+
static BuildTableBodyForLaborAndParts(Parts: any, Labor: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, isAuto: boolean): any;
|
|
283
|
+
static GetWithOutDiscAndTaxFieldHeader(Parts: any, Ops: any, ShowTaxColumn: any, PrintPartNo: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, isAuto: boolean): any;
|
|
284
|
+
static TaxTableWidths(PrintPartNo: any, ShowIGST: any, ShowDiscountColumn: any): number[];
|
|
285
|
+
static TaxDataTable(Parts: any, Ops: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, isAuto: boolean): {
|
|
286
|
+
style: string;
|
|
287
|
+
table: {
|
|
288
|
+
widths: number[];
|
|
289
|
+
body: any;
|
|
290
|
+
};
|
|
291
|
+
layout: {
|
|
292
|
+
hLineWidth: (i: any, node: any) => number;
|
|
293
|
+
vLineWidth: (i: any, node: any) => number;
|
|
294
|
+
hLineColor: (i: any, node: any) => string;
|
|
295
|
+
vLineColor: (i: any, node: any) => string;
|
|
296
|
+
};
|
|
297
|
+
};
|
|
298
|
+
static ConsolidateDataTable(Parts: any, Ops: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, isAuto: boolean): {
|
|
299
|
+
style: string;
|
|
300
|
+
table: {
|
|
301
|
+
widths: number[];
|
|
302
|
+
body: any;
|
|
303
|
+
};
|
|
304
|
+
layout: {
|
|
305
|
+
hLineWidth: (i: any, node: any) => number;
|
|
306
|
+
vLineWidth: (i: any, node: any) => number;
|
|
307
|
+
hLineColor: (i: any, node: any) => string;
|
|
308
|
+
vLineColor: (i: any, node: any) => string;
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
static NoTaxDataTable(Parts: any, Ops: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any, isAuto: boolean): {
|
|
312
|
+
style: string;
|
|
313
|
+
table: {
|
|
314
|
+
widths: number[];
|
|
315
|
+
body: any;
|
|
316
|
+
};
|
|
317
|
+
layout: {
|
|
318
|
+
hLineWidth: (i: any, node: any) => number;
|
|
319
|
+
vLineWidth: (i: any, node: any) => number;
|
|
320
|
+
hLineColor: (i: any, node: any) => string;
|
|
321
|
+
vLineColor: (i: any, node: any) => string;
|
|
322
|
+
};
|
|
323
|
+
};
|
|
324
|
+
static buildTableForCustomerLabor(Parts: any, Ops: any, PrintPartNo: any, customerorInsurance: any): any;
|
|
325
|
+
static getSummaryHeaders(permission: boolean): any;
|
|
326
|
+
static CommonTotalDetails(ROPrintData: any, index: any, numberofCopies: any, withPass: boolean, isAuto: boolean, moreDiscDetails: boolean): any[];
|
|
327
|
+
static InvoiceDueStatus(Type: any, Paid: any, Due: any, Status: any, isCounter: boolean): any;
|
|
328
|
+
static GetNumberInWords(TotalAmount: any): {
|
|
329
|
+
columns: ({
|
|
330
|
+
text: string;
|
|
331
|
+
fontSize: number;
|
|
332
|
+
width: number;
|
|
333
|
+
bold?: undefined;
|
|
334
|
+
} | {
|
|
335
|
+
text: string;
|
|
336
|
+
bold: boolean;
|
|
337
|
+
fontSize: number;
|
|
338
|
+
width: string;
|
|
339
|
+
})[];
|
|
340
|
+
};
|
|
341
|
+
static GetCustomerDetails(ROPrintData: any, isOtherIndustry: boolean): {
|
|
342
|
+
lineHeight: number;
|
|
343
|
+
fontSize: number;
|
|
344
|
+
table: {
|
|
345
|
+
body: any;
|
|
346
|
+
};
|
|
347
|
+
layout: string;
|
|
348
|
+
};
|
|
349
|
+
static GetVehicleDetails(Vehicle: any, isOtherIndustry: boolean): {
|
|
350
|
+
lineHeight: number;
|
|
351
|
+
fontSize: number;
|
|
352
|
+
table: {
|
|
353
|
+
body: any;
|
|
354
|
+
};
|
|
355
|
+
layout: string;
|
|
356
|
+
};
|
|
357
|
+
}
|