ickevin Posted May 27, 2011 Share Posted May 27, 2011 Hi Experts, I have problem adding invoice transaction list into pdfinvoice.tpl (which can be found in viewinvoice.tpl). Attached picture is the result that doesn't show any of the transactions done. Following my coding :- #################### Transaction Table ########################## $pdf->SetDrawColor(200); $pdf->SetFont('helvetica','B',10); $pdf->SetFillColor(239); $pdf->Cell(40,7,$_LANG["invoicestransdate"],1,0,'C','1'); $pdf->Cell(50,7,$_LANG["invoicestransgateway"],1,0,'C','1'); $pdf->Cell(50,7,$_LANG["invoicestransid"],1,0,'C','1'); $pdf->Cell(40,7,$_LANG["invoicestransamount"],1,0,'C','1'); $pdf->Ln(); $pdf->SetFont('helvetica','',10); foreach ($transactions AS $transaction) { $rowcount = $pdf->getNumLines($transaction['gateway'], 40); $pdf->MultiCell(40,$rowcount * 5,$transaction['date'],1,'C',0,0); $pdf->MultiCell(50,$rowcount * 5,$transaction['gateway'],1,'C',0,0); $pdf->MultiCell(50,$rowcount * 5,$transaction['transid'],1,'C',0,0); $pdf->MultiCell(40,$rowcount * 5,$transaction['amount'],1,'C',0,0); $pdf->Ln(); } #################### Transaction Table ########################## Please assist. Thanks in advance! 0 Quote Link to comment Share on other sites More sharing options...
ickevin Posted May 30, 2011 Author Share Posted May 30, 2011 Hi Appreciate any assistance.... Thanks in advance 0 Quote Link to comment Share on other sites More sharing options...
equipc Posted June 1, 2011 Share Posted June 1, 2011 This has been added in the last release ... If you use a version prior to v4.5.1 , the $transactions array is not available in the PDF file. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.