Jump to content

PDF invoive generator


Recommended Posts

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");
}



?>

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated