import { TrUtils } from "../../utils/tr-utils"; import { PurchaseOrderPrintService } from "../purchase-order/purchase-order-print.service"; import { CreateBillPDFService } from "./bill-pdf/bill-pdf.service"; export function GetBillPDF(billData: any, entityData: any, headerConfig:any, printConfig:any, taxCodes: any, image: any = null) { const printConfigData: any = TrUtils.ConcatObjects( TrUtils.Stringify(headerConfig), TrUtils.Stringify(printConfig) ); const invoicePrintData: any = PurchaseOrderPrintService.GetDataForPurchaseOrderPrint(billData, entityData, image, billData.BFrom, taxCodes, false); let invPrint: any; // if (options.ConsolidateGST || !options.ShowGST) { // invPrint = GetInvoicePrint(invoicePrintData, numberofCopies, withPass, options.Size, options.MoreDiscDetails, options.Orientation); // } else { invPrint = CreateBillPDFService(invoicePrintData, printConfigData); // } return invPrint; }