Jump to content

Customizing invoice PDF


Recommended Posts

Hi,

 

I have added 'Date Paid' and 'Payment Method' to my invoice PDFs using this

 

$pdf->SetFont('helvetica','B',15);

$pdf->SetFillColor(239);

$pdf->Cell(0,8,$invoiceprefix.$invoicenum,0,1,'L','1');

$pdf->SetFont('helvetica','',10);

$pdf->Cell(0,6,$_LANG["invoicesdatecreated"].': '.$datecreated.'',0,1,'L','1');

$pdf->Cell(0,6,$_LANG["invoicesdatedue"].': '.$duedate.'',0,1,'L','1');

$pdf->Cell(0,6,$_LANG["invoicesdatepaid"].': '.$datepaid.'',0,1,'L','1');

$pdf->Cell(0,6,$_LANG["invoicespaymentmethod"].': '.$paymentmethod.'',0,1,'L','1');

 

and adding to the lang file

 

It works fine EXCEPT

 

how do I remove the 'time' element of the 'Date Paid'

 

and

 

The 'Date Paid' shows even if the invoice has not yet been paid (it shows 00.00.00etc, see attached). It needs to only show if the invoice has been paid.

 

Pleae advise

 

Thanks

invoice.JPG

Edited by Kenya Webhosting
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