shareneus 1.4.94 → 1.4.96
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/credit-note/credit-note-totals.service.d.ts +3 -1
- package/dist/accounting/credit-note/credit-note-totals.service.js +51 -4
- package/dist/index.d.ts +3 -0
- package/dist/index.js +7 -1
- package/dist/sales-receive/sales-receive-pdf.service.d.ts +272 -0
- package/dist/sales-receive/sales-receive-pdf.service.js +578 -0
- package/dist/sales-receive/sales-receive-print.service.d.ts +13 -0
- package/dist/sales-receive/sales-receive-print.service.js +187 -0
- package/dist/sales-receive/sales-receive-totals.service.d.ts +27 -0
- package/dist/sales-receive/sales-receive-totals.service.js +376 -0
- package/package.json +1 -1
|
@@ -9,6 +9,8 @@ export declare class CreditNoteTotalsService {
|
|
|
9
9
|
static GetSubTotalFor(LaborList: any, PartsList: any): any;
|
|
10
10
|
static GetPartsTotalAfterDiscount(PartsList: any): any;
|
|
11
11
|
static GetDetailedTotalsData(finalTotalsData: any, IsIndependentTax: boolean, opCodesList: any, PartsList: any, TaxCodes: any, DecimalsNumber?: number): any;
|
|
12
|
+
static GetTaxGroupingForPartsByPerc(Parts: any, TaxCodes: any, DecimalsNumber: any): any[];
|
|
13
|
+
static ComparePartsByPerc(Parts: any, TaxCodes: any): any[];
|
|
12
14
|
static GetPartDiscountedTotal(PartsList: any, isTaxable: boolean, finalTotalsData: any): any;
|
|
13
15
|
static GetPartsTaxTotalFor(PartsList: any, IsIndependentTax: boolean): any;
|
|
14
16
|
static GetCustomerTotalBasedOnTaxType(finalTotalsData: any, LaborTaxAmount: number, PartsTaxAmount: number, LaborList: any, PartsList: any, IsIndependentTax: boolean): any;
|
|
@@ -20,6 +22,6 @@ export declare class CreditNoteTotalsService {
|
|
|
20
22
|
static GetTaxGroupingForPartsByHSN(Parts: any, TaxCodes: any, DecimalsNumber: number): any[];
|
|
21
23
|
static GetCombinedTaxPercentage(Parts: any, TaxCodes: any): any;
|
|
22
24
|
static ComparePartsByHSN(Parts: any, TaxCodes: any): any[];
|
|
23
|
-
static GetTaxGroupingInfoByHSN(FinalMatchedParts: any, TaxCodes: any, DecimalsNumber:
|
|
25
|
+
static GetTaxGroupingInfoByHSN(FinalMatchedParts: any, TaxCodes: any, DecimalsNumber: any): any[];
|
|
24
26
|
static GetGSTValueBasedOnTaxCode(TCode: any, TaxCodes: any): any[];
|
|
25
27
|
}
|
|
@@ -126,6 +126,7 @@ class CreditNoteTotalsService {
|
|
|
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(tr_utils_1.TrUtils.Stringify(PartsList), TaxCodes, DecimalsNumber);
|
|
129
|
+
finalTotalsData.CustTaxGroupDataByPerc = this.GetTaxGroupingForPartsByPerc(PartsList, TaxCodes, DecimalsNumber);
|
|
129
130
|
finalTotalsData.CustTotalRoundedBy = tr_utils_1.TrUtils.FixedTo(finalTotalsData.Round, DecimalsNumber);
|
|
130
131
|
finalTotalsData.CustRoundedTotal = tr_utils_1.TrUtils.FixedTo(finalTotalsData.Total, DecimalsNumber);
|
|
131
132
|
for (var key in finalTotalsData) {
|
|
@@ -138,6 +139,43 @@ class CreditNoteTotalsService {
|
|
|
138
139
|
}
|
|
139
140
|
return finalTotalsData;
|
|
140
141
|
}
|
|
142
|
+
static GetTaxGroupingForPartsByPerc(Parts, TaxCodes, DecimalsNumber) {
|
|
143
|
+
Parts = this.GetCombinedTaxPercentage(tr_utils_1.TrUtils.Stringify(Parts), TaxCodes);
|
|
144
|
+
// Parts = this.ResetPartsHSNIfInvalid(Parts);
|
|
145
|
+
let FinalMatchedParts = this.ComparePartsByPerc(Parts, TaxCodes);
|
|
146
|
+
return this.GetTaxGroupingInfoByHSN(FinalMatchedParts, TaxCodes, DecimalsNumber);
|
|
147
|
+
}
|
|
148
|
+
static ComparePartsByPerc(Parts, TaxCodes) {
|
|
149
|
+
let FinalMatchedParts = [];
|
|
150
|
+
Parts === null || Parts === void 0 ? void 0 : Parts.forEach((Part) => {
|
|
151
|
+
let MatchedPartsBasedOnHSN = Parts.filter((argPart) => {
|
|
152
|
+
let PartFound = false;
|
|
153
|
+
FinalMatchedParts.forEach((FinalArgParts) => {
|
|
154
|
+
let PartIndex = FinalArgParts.findIndex((FinalArgPart) => {
|
|
155
|
+
return FinalArgPart._id === argPart._id;
|
|
156
|
+
});
|
|
157
|
+
if (PartIndex !== -1) {
|
|
158
|
+
PartFound = true;
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
// let argGSTValues: any[] = this.GetGSTValueBasedOnTaxCode(argPart.TCode, TaxCodes);
|
|
162
|
+
// let argCGST = argGSTValues[0];
|
|
163
|
+
// let argSGST = argGSTValues[1];
|
|
164
|
+
// let argIGST = argGSTValues[2];
|
|
165
|
+
// let partGSTValues: any[] = this.GetGSTValueBasedOnTaxCode(Part.TCode, TaxCodes);
|
|
166
|
+
// let partCGST = partGSTValues[0];
|
|
167
|
+
// let partSGST = partGSTValues[1];
|
|
168
|
+
// let partIGST = partGSTValues[2];
|
|
169
|
+
return (!PartFound) &&
|
|
170
|
+
(argPart.CGSTAmt === Part.CGSTAmt) && (argPart.IGSTAmt === Part.IGSTAmt) &&
|
|
171
|
+
(argPart.SGSTAmt === Part.SGSTAmt);
|
|
172
|
+
});
|
|
173
|
+
if (MatchedPartsBasedOnHSN.length !== 0) {
|
|
174
|
+
FinalMatchedParts.push(MatchedPartsBasedOnHSN);
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
return FinalMatchedParts;
|
|
178
|
+
}
|
|
141
179
|
static GetPartDiscountedTotal(PartsList, isTaxable, finalTotalsData) {
|
|
142
180
|
let PartsDiscountedTotal = 0;
|
|
143
181
|
let overallPartDisc = 0;
|
|
@@ -278,15 +316,24 @@ class CreditNoteTotalsService {
|
|
|
278
316
|
let TaxInfo = {};
|
|
279
317
|
let TaxOnAmount = 0;
|
|
280
318
|
let TaxAmount = 0;
|
|
319
|
+
let CGSTAmt = 0;
|
|
320
|
+
let SGSTAmt = 0;
|
|
321
|
+
let IGSTAmt = 0;
|
|
281
322
|
let HSN = MatchedPart[0].HSN;
|
|
282
323
|
TaxInfo.CombinedTaxPercentage = MatchedPart[0].CombinedTaxPercentage;
|
|
283
324
|
MatchedPart.forEach((argMatchedGSTPart) => {
|
|
284
|
-
TaxOnAmount = (0, aggregation_1.addition)(TaxOnAmount, argMatchedGSTPart.AfterPartDisc);
|
|
285
|
-
TaxAmount = (0, aggregation_1.addition)(TaxAmount, argMatchedGSTPart.CGST);
|
|
286
|
-
TaxAmount = (0, aggregation_1.addition)(TaxAmount, argMatchedGSTPart.IGST);
|
|
287
|
-
TaxAmount = (0, aggregation_1.addition)(TaxAmount, argMatchedGSTPart.SGST);
|
|
325
|
+
TaxOnAmount = (0, aggregation_1.addition)(TaxOnAmount, tr_utils_1.TrUtils.FixedTo(argMatchedGSTPart.AfterPartDisc, DecimalsNumber));
|
|
326
|
+
TaxAmount = (0, aggregation_1.addition)(TaxAmount, tr_utils_1.TrUtils.FixedTo(argMatchedGSTPart.CGST, DecimalsNumber));
|
|
327
|
+
TaxAmount = (0, aggregation_1.addition)(TaxAmount, tr_utils_1.TrUtils.FixedTo(argMatchedGSTPart.IGST, DecimalsNumber));
|
|
328
|
+
TaxAmount = (0, aggregation_1.addition)(TaxAmount, tr_utils_1.TrUtils.FixedTo(argMatchedGSTPart.SGST, DecimalsNumber));
|
|
329
|
+
CGSTAmt = (0, aggregation_1.addition)(CGSTAmt, tr_utils_1.TrUtils.FixedTo(argMatchedGSTPart.CGST, DecimalsNumber));
|
|
330
|
+
SGSTAmt = (0, aggregation_1.addition)(SGSTAmt, tr_utils_1.TrUtils.FixedTo(argMatchedGSTPart.SGST, DecimalsNumber));
|
|
331
|
+
IGSTAmt = (0, aggregation_1.addition)(IGSTAmt, tr_utils_1.TrUtils.FixedTo(argMatchedGSTPart.IGST, DecimalsNumber));
|
|
288
332
|
});
|
|
289
333
|
TaxInfo.HSN = HSN;
|
|
334
|
+
TaxInfo.CGSTAmt = CGSTAmt;
|
|
335
|
+
TaxInfo.SGSTAmt = SGSTAmt;
|
|
336
|
+
TaxInfo.IGSTAmt = IGSTAmt;
|
|
290
337
|
TaxInfo.TotalTaxableAmount = tr_utils_1.TrUtils.FixPriceValue(TaxOnAmount, DecimalsNumber);
|
|
291
338
|
TaxInfo.TotalTaxAmount = tr_utils_1.TrUtils.FixPriceValue(TaxAmount, DecimalsNumber);
|
|
292
339
|
TaxInfo.ItemsCount = MatchedPart.length;
|
package/dist/index.d.ts
CHANGED
|
@@ -123,6 +123,9 @@ export { ItemBarCodeLabelPdf } from './inventory/items/item-bar-code-label-pdf';
|
|
|
123
123
|
export { HSNSummaryExcelService } from "./gst/excel/hsn-summary";
|
|
124
124
|
export { HSNSummaryPDFService } from "./gst/pdf/hsn-summary-pdf";
|
|
125
125
|
export { AdjustmentDrugPDFService } from './inventory/items/adjustment-pdf.service';
|
|
126
|
+
export { SalesReceivePdfService } from "./sales-receive/sales-receive-pdf.service";
|
|
127
|
+
export { SalesReceivePrintService } from "./sales-receive/sales-receive-print.service";
|
|
128
|
+
export { SalesReceiveTotalsService } from "./sales-receive/sales-receive-totals.service";
|
|
126
129
|
export { GetItemPriceForPriceList } from "./inventory/items/item-price-for-pricelist";
|
|
127
130
|
export { CalcItemFinalSalePrice } from "./inventory/items/item-price-for-pricelist";
|
|
128
131
|
export { IsNotNull, IsNull } from "./shared/util";
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DebitNotePdfService = exports.DCWithoutPricePdfService = exports.DCLandscapeWithoutPricePdfService = exports.DCLandscapePdfService = exports.CustomerBalancesService = exports.SalesByCustomerPDFService = exports.CustWiseSalesDetailsService = exports.CreditNoteTotalsService = exports.CreditNotePdfService = exports.ConsultationPDFService = exports.ConsultationFullPrintService = exports.ConsultationFeeReceiptPrintService = exports.CNPrintService = exports.ChecklistsPDFService = exports.CheckListPrintService = exports.CategoryWiseItemPDFService = exports.SalesReceiptprintService = exports.AppointmentTotalsService = exports.AnalysisPDFService = exports.VenBalanceXlsxFileService = exports.TallySalesImportXlsxFileService = exports.StockXlsxFileService = exports.IssueSparesXlsxFileService = exports.ScheduledDrugXlsxFileService = exports.ScheduledDrugSummaryXlsxFileService = exports.SalesByServiceSummaryXlsxFileService = exports.SummaryXlsxFileService = exports.ServiceAdvisorWisePartXlsxFileService = exports.ServiceAdvisorWiseLaborXlsxFileService = exports.RepairOrdersXlsxFileService = exports.PaymentsMadeXlsxFileService = exports.PaymentReceiveXlsxFileService = exports.OperatorWiseSummaryXlsxFileService = exports.OperatorWiseDetailsXlsxFileService = exports.ManfWiseSalesXlsxFileService = exports.ItemsWiseSalesXlsxFileService = exports.ItemWiseMOSummaryXlsxFileService = exports.ItemWiseMODetailsXlsxFileService = exports.ItemWiseDoctorSaleXlsxFileService = exports.InvoicesWiseXlsxFileService = exports.InsuranceExpireXlsxFileService = exports.GSTR2ExcelService = exports.GSTR1ExcelService = exports.GSTROXlsxFileService = exports.ExpiringDrugsXlsxFileService = exports.SalesByCustomerXlsxFileService = exports.CustWiseSalesXlsxFileService = exports.CustBalanceXlsxFileService = exports.CategoryWiseItemXlsxFileService = exports.AnalysisXlsxFileService = void 0;
|
|
4
4
|
exports.SharedPDFService = exports.SharedInvoiceprintService = exports.WOPrintService = exports.ScheduledDrugSummaryPDFService = exports.ScheduledDrugPDFService = exports.SalesTotalsService = exports.SaleReceiptPrintService = exports.SalesReceiptpdfService = exports.SalesPrintService = exports.SalesPdfService = exports.SalesByServiceSummaryPDF = exports.ROTotalsService = exports.ROPrintService = exports.RoprintService = exports.RepairOrdersReportsPDFService = exports.ReorderPointPDFService = exports.ReceiptPrintService = exports.PurchaseOrderPDFService = exports.PurchaseOrderTotalsService = exports.PurchaseOrderPrintService = exports.PosReceiptPrintService = exports.POTotalsService = exports.PaymentsReportPDFService = exports.ReceiptPDFService = exports.PackShipPrintService = exports.PackShipPDFService = exports.OperatorWiseSalesSummaryPDF = exports.OperatorWiseSalesDetailsPDF = exports.MaterialOutprintService = exports.MeetingPdfService = exports.ManfWiseSalesService = exports.ItemWiseSalesPDFService = exports.ItemWiseMOSummaryPDF = exports.ItemWiseMODetailsPDF = exports.ItemWiseDoctorSalePDFService = exports.ItemDetaisPdf = exports.IssuePartsprintService = exports.InvoiceTotalsService = exports.InvoiceLandscapePdfService = exports.InvPrintService = exports.InvoiceprintService = exports.InsuranceExpirePDF = exports.ExpiringDrugPDFService = exports.EstPrintService = exports.EquipmentDesignPdf = exports.DeliveryChallanTotalsService = exports.DeliveryChallanPrintService = exports.DeliveryChallanPdfService = exports.DebitNoteTotalsService = exports.DebitNotePrintService = void 0;
|
|
5
|
-
exports.GetAgeString = exports.IsNull = exports.IsNotNull = exports.CalcItemFinalSalePrice = exports.GetItemPriceForPriceList = exports.AdjustmentDrugPDFService = exports.HSNSummaryPDFService = exports.HSNSummaryExcelService = exports.ItemBarCodeLabelPdf = exports.NextServiceDatePDFService = exports.NextServiceDateXlsxFileService = exports.ConsultationLetterHeadPDFService = exports.InvoiceLetterheadPdfService = exports.HCInvoiceprintService = exports.InvoicePortraitPrintService = exports.MyDate = exports.TrUtils = exports.VendorDebitNoteTotalsService = exports.VendorDebitNotePrintService = exports.VendorDebitNotePdfService = exports.VendorCreditNoteTotalsService = exports.VendorCreditNotePrintService = exports.VendorCreditNotePDFService = exports.VendorBalancesService = exports.TransferOrderPrintService = exports.TechnicianPrintService = exports.TechnicianpdfService = exports.TaskReportsPDfService = exports.TaskPDfService = exports.PrintSharedService = void 0;
|
|
5
|
+
exports.GetAgeString = exports.IsNull = exports.IsNotNull = exports.CalcItemFinalSalePrice = exports.GetItemPriceForPriceList = exports.SalesReceiveTotalsService = exports.SalesReceivePrintService = exports.SalesReceivePdfService = exports.AdjustmentDrugPDFService = exports.HSNSummaryPDFService = exports.HSNSummaryExcelService = exports.ItemBarCodeLabelPdf = exports.NextServiceDatePDFService = exports.NextServiceDateXlsxFileService = exports.ConsultationLetterHeadPDFService = exports.InvoiceLetterheadPdfService = exports.HCInvoiceprintService = exports.InvoicePortraitPrintService = exports.MyDate = exports.TrUtils = exports.VendorDebitNoteTotalsService = exports.VendorDebitNotePrintService = exports.VendorDebitNotePdfService = exports.VendorCreditNoteTotalsService = exports.VendorCreditNotePrintService = exports.VendorCreditNotePDFService = exports.VendorBalancesService = exports.TransferOrderPrintService = exports.TechnicianPrintService = exports.TechnicianpdfService = exports.TaskReportsPDfService = exports.TaskPDfService = exports.PrintSharedService = void 0;
|
|
6
6
|
var analysis_excel_service_1 = require("./accounting/invoice/reports/excel/analysis-excel.service");
|
|
7
7
|
Object.defineProperty(exports, "AnalysisXlsxFileService", { enumerable: true, get: function () { return analysis_excel_service_1.AnalysisXlsxFileService; } });
|
|
8
8
|
var category_wise_item_excel_service_1 = require("./accounting/invoice/reports/excel/category-wise-item-excel.service");
|
|
@@ -253,6 +253,12 @@ var hsn_summary_pdf_1 = require("./gst/pdf/hsn-summary-pdf");
|
|
|
253
253
|
Object.defineProperty(exports, "HSNSummaryPDFService", { enumerable: true, get: function () { return hsn_summary_pdf_1.HSNSummaryPDFService; } });
|
|
254
254
|
var adjustment_pdf_service_1 = require("./inventory/items/adjustment-pdf.service");
|
|
255
255
|
Object.defineProperty(exports, "AdjustmentDrugPDFService", { enumerable: true, get: function () { return adjustment_pdf_service_1.AdjustmentDrugPDFService; } });
|
|
256
|
+
var sales_receive_pdf_service_1 = require("./sales-receive/sales-receive-pdf.service");
|
|
257
|
+
Object.defineProperty(exports, "SalesReceivePdfService", { enumerable: true, get: function () { return sales_receive_pdf_service_1.SalesReceivePdfService; } });
|
|
258
|
+
var sales_receive_print_service_1 = require("./sales-receive/sales-receive-print.service");
|
|
259
|
+
Object.defineProperty(exports, "SalesReceivePrintService", { enumerable: true, get: function () { return sales_receive_print_service_1.SalesReceivePrintService; } });
|
|
260
|
+
var sales_receive_totals_service_1 = require("./sales-receive/sales-receive-totals.service");
|
|
261
|
+
Object.defineProperty(exports, "SalesReceiveTotalsService", { enumerable: true, get: function () { return sales_receive_totals_service_1.SalesReceiveTotalsService; } });
|
|
256
262
|
var item_price_for_pricelist_1 = require("./inventory/items/item-price-for-pricelist");
|
|
257
263
|
Object.defineProperty(exports, "GetItemPriceForPriceList", { enumerable: true, get: function () { return item_price_for_pricelist_1.GetItemPriceForPriceList; } });
|
|
258
264
|
var item_price_for_pricelist_2 = require("./inventory/items/item-price-for-pricelist");
|
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
export declare class SalesReceivePdfService {
|
|
2
|
+
FontSize: number;
|
|
3
|
+
static GetSalesReceivePrint(SRPrintData: 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: number;
|
|
166
|
+
};
|
|
167
|
+
forCompany1: {
|
|
168
|
+
margin: number[];
|
|
169
|
+
fontSize: number;
|
|
170
|
+
};
|
|
171
|
+
Rupees: {
|
|
172
|
+
margin: number[];
|
|
173
|
+
fontSize: number;
|
|
174
|
+
};
|
|
175
|
+
Signature: {
|
|
176
|
+
margin: number[];
|
|
177
|
+
alignment: string;
|
|
178
|
+
fontSize: number;
|
|
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(SRPrintData: any): string;
|
|
211
|
+
static CommonHeaderDetails(SRPrintData: any): any[];
|
|
212
|
+
static GetMainHeaderDetails(Entity: any, HeaderName: any, Image: any, HColor: any, AColor: any): ({
|
|
213
|
+
columns: any;
|
|
214
|
+
} | {
|
|
215
|
+
canvas: {
|
|
216
|
+
type: string;
|
|
217
|
+
lineColor: string;
|
|
218
|
+
x1: number;
|
|
219
|
+
y1: number;
|
|
220
|
+
x2: number;
|
|
221
|
+
y2: number;
|
|
222
|
+
lineWidth: number;
|
|
223
|
+
}[];
|
|
224
|
+
})[];
|
|
225
|
+
static PreparesparePartsTable(SRPrintData: any): any;
|
|
226
|
+
static GetLaborPartsTableForView(Parts: any, Ops: any, PrintPartNo: any): any;
|
|
227
|
+
static WithOutDiscountFieldTable(Parts: any, Ops: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any): any;
|
|
228
|
+
static BuildTableBodyForLaborAndParts(Parts: any, Labor: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any): any;
|
|
229
|
+
static GetWithOutDiscAndTaxFieldHeader(Parts: any, Ops: any, ShowTaxColumn: any, PrintPartNo: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any): any;
|
|
230
|
+
static TaxDataTable(Parts: any, Ops: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any): {
|
|
231
|
+
style: string;
|
|
232
|
+
table: {
|
|
233
|
+
widths: (string | number)[];
|
|
234
|
+
body: any;
|
|
235
|
+
};
|
|
236
|
+
layout: {
|
|
237
|
+
hLineWidth: (i: any, node: any) => number;
|
|
238
|
+
vLineWidth: (i: any, node: any) => number;
|
|
239
|
+
hLineColor: (i: any, node: any) => string;
|
|
240
|
+
vLineColor: (i: any, node: any) => string;
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
static ConsolidateDataTable(Parts: any, Ops: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any): {
|
|
244
|
+
style: string;
|
|
245
|
+
table: {
|
|
246
|
+
widths: number[];
|
|
247
|
+
body: any;
|
|
248
|
+
};
|
|
249
|
+
layout: {
|
|
250
|
+
hLineWidth: (i: any, node: any) => number;
|
|
251
|
+
vLineWidth: (i: any, node: any) => number;
|
|
252
|
+
hLineColor: (i: any, node: any) => string;
|
|
253
|
+
vLineColor: (i: any, node: any) => string;
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
static NoTaxDataTable(Parts: any, Ops: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any): {
|
|
257
|
+
style: string;
|
|
258
|
+
table: {
|
|
259
|
+
widths: number[];
|
|
260
|
+
body: any;
|
|
261
|
+
};
|
|
262
|
+
layout: {
|
|
263
|
+
hLineWidth: (i: any, node: any) => number;
|
|
264
|
+
vLineWidth: (i: any, node: any) => number;
|
|
265
|
+
hLineColor: (i: any, node: any) => string;
|
|
266
|
+
vLineColor: (i: any, node: any) => string;
|
|
267
|
+
};
|
|
268
|
+
};
|
|
269
|
+
static buildTableForCustomerLabor(Parts: any, Ops: any, PrintPartNo: any, customerorInsurance: any): any;
|
|
270
|
+
static getSummaryHeaders(permission: boolean): any;
|
|
271
|
+
static CommonTotalDetails(SRPrintData: any, moreDiscDetails: boolean): any[];
|
|
272
|
+
}
|