Add a due date on the invoice pdf

Posted on May 23, 2012 by ext4mage There have been 0 comments

Want to add a date that is x days from invoice date to the invoice PDF

If you have a need to print a date to your invoice, order, shipping or creditmememo PDF, that is based on a variable date and then x days in the future. This is then a solution to do this in the HTML2PDF module text element.

Example:
Due date (invoice date + 14 days) - you can do this like this (formatted with data medium - look in help->formatting)

##format_date_medium date( 'Y-m-d H:i:s' , strtotime ( '+14 day' , strtotime ('{{invoice_data_created_at}}')))##
 
 

Related product:
  HTML2PDF extension


This post was posted in Guides and was tagged with html2pdf, magento, design, pdf layout