Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Invoide Date and footer into PDF
 
seiya
Sr. Member
 
Total Posts:  85
Joined:  2008-05-25
Vienna
 

How can i add the Invoice date and footer to the Invoice PDF ?

The PDF shows only the Order Date and non footer.

hope anyone knows what i mean.

thanks
seiya

 
Magento Community Magento Community
Magento Community
Magento Community
 
cooper
Sr. Member
 
Total Posts:  104
Joined:  2008-03-31
 

Yes the invoice date is a legal requirement for French Invoice for example....

Any news?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Discovery
Enthusiast
 
Total Posts:  767
Joined:  2007-12-29
 

Open /var/www/html/app/code/core/Mage/Sales/Model/Order/Pdf/Invoice.php

You should have a line like:

$page->drawText(Mage::helper(’sales’)->__(’Invoice Number: ‘) . $invoice->getIncrementId(), 35, 790, ‘UTF-8’);

Add something somewhat like this after it:

$page->drawText(Mage::helper(’sales’)->__(’Invoice Date: ‘) . Mage::helper(’core’)->formatDate($invoice->getCreatedAtStoreDate(), ‘medium’, false), 285, 760, ‘UTF-8’);

Simple.

 
Magento Community Magento Community
Magento Community
Magento Community
 
cooper
Sr. Member
 
Total Posts:  104
Joined:  2008-03-31
 

It works!

Many thanks Discovery for your hep!  wink

 
Magento Community Magento Community
Magento Community
Magento Community
 
nederbragt
Jr. Member
 
Total Posts:  1
Joined:  2008-04-27
Amsterdam, Netherlands
 

Thanks for the code, it works for me very fine. grin

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top