Files
geo/backend/dist/services/pdf.service.d.ts
2026-02-04 00:11:19 +05:00

55 lines
1.3 KiB
TypeScript
Executable File

interface EstimateItem {
orderNumber: number;
workName: string;
justification?: string | null;
basePrice: any;
quantity: any;
unit?: string | null;
coef1?: any;
coef2?: any;
coef3?: any;
totalPrice: any;
sectionType: string;
}
interface EstimateTotal {
orderNumber: number;
label: string;
description?: string | null;
resultValue: any;
}
interface Estimate {
number: string;
direction: {
name: string;
shortName: string;
};
objectName: string;
customer: string;
executor: string;
items: EstimateItem[];
totals: EstimateTotal[];
totalFieldWorks?: any;
totalOfficeWorks?: any;
totalLaboratory?: any;
subtotal?: any;
totalWithoutVat?: any;
vatRate?: any;
vatAmount?: any;
totalWithVat?: any;
}
export declare class PdfService {
/** Resolve path to @fontsource/pt-sans/files (tries require.resolve, then cwd). */
private getFontPaths;
/** Read font buffer from first path that exists. */
private readFontBuffer;
generateEstimatePdf(estimate: Estimate): Promise<Buffer>;
private addHeader;
private addItemsTable;
private addItemRow;
private addTotals;
private addFooter;
private formatNumber;
private formatCurrency;
}
export {};
//# sourceMappingURL=pdf.service.d.ts.map