pyrateby Posted April 5, 2019 Share Posted April 5, 2019 Hello, I have the following code in invoicepdf.tpl how can I make the three lines of text appear only if the invoice is paid? # Generation Date $pdf->SetFont($pdfFont, '', 8); $pdf->Ln(5); $pdf->Cell(180, 4, Lang::trans('invoicepdfgenerated') . ' ' . getTodaysDate(1), '', '', 'C'); $pdf->Ln(5); if($status="Paid"){ $pdf->MultiCell(180,4,'Factura emisa de: Iordache Catalin-Alexandru CNP 1780217090149. Acest document are valoare fiscală si poate fi inregistrat in contabilitate',1,'C'); $pdf->Ln(3); $pdf->MultiCell(180,4,'HostExpres.Ro - Servicii Web - SC Web Hosting Expres S.R.L @ 2019 ',1,'C'); $pdf->Ln(3); $pdf->MultiCell(180,4,'Nota: Aceasta factura este valabila fara stampila si semnatura, cf. art. 319 din L227/2015 privind Codul fiscal si pct. 98 din Normele de aplicare.',1,'C'); } $endpage = $pdf->GetPage(); # Notes if ($notes) { $pdf->Ln(5); $pdf->SetFont('freesans','',8); $pdf->MultiCell(170,5,$_LANG["invoicesnotes"].": $notes"); } ?> 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted April 8, 2019 Share Posted April 8, 2019 On 05/04/2019 at 12:49, pyrateby said: I have the following code in invoicepdf.tpl how can I make the three lines of text appear only if the invoice is paid? change the = to == (or even ===) if($status=="Paid"){ 0 Quote Link to comment Share on other sites More sharing options...
pyrateby Posted April 11, 2019 Author Share Posted April 11, 2019 Thank you, i fix the problem 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.