Magento – Adding Custom Input Field in Order Invoice

magento-1.7

I am trying to add new input field in sales > order > invoice . This would be like my reference number. This custom input field should be show in sales > order >invoice & sales > invoice & when print invoice this custom field need to get showed , New custom grid need to get added , I am currently working with this :

Jquery

Can some one let me know how i need to proceed for this .

Custom field in admin panel should look like this : http://i.stack.imgur.com/BaEbb.jpg

Best Answer

It's lot of work to do. However, I will try to add some relevant link for you to guide you to right direction.

Follow these great tutorials:

  1. Custom field in order page
  2. Creating Custom grid - Once you add a new table/attribute (in 1) then can add this field to appear in custom grid

In order to add these fields in invoices, you will need to rewrite few phtml and block classes. Learn rewriting classes here.

To be able to add this field in print invoice (pdf invoice), you will need to learn magento pdf functions. You can learn here.

It's lot of work. Hope it will help and good luck.