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

Setting custom Invoice # or attach new attribute to Invoice
 
ags83
Jr. Member
 
Total Posts:  1
Joined:  2012-12-17
 

Hi,

I am a magento newbie and attempting an integration with an accounting application.  When an order is placed the details will be sent to the accounting application, it will create it’s own invoice and return that invoice number and then we will need to create a magento invoice using that ID. 

We need to use that invoice id for the magento invoice so I need to somehow override the Invoice number, or if need be could create a new attribute to store the 2nd ID that would also need to show up on the invoice grid.

Any help would be much appreciated . Thanks.

 
Magento Community Magento Community
Magento Community
Magento Community
 
TreInnova
Guru
 
Avatar
Total Posts:  465
Joined:  2009-02-20
Fano
 

Hi ,
you can create a custom module that install a new attribute to sales object :

<?php
$installer 
$this;
$installer->startSetup();

$installer->addAttribute("invoice""external_id", array("type"=>"varchar"));
$installer->endSetup();
I attach a sample module that create this attribute.
Regards ,
filippo
File Attachments
Treinnova_Invoiceattibute.zip  (File Size: 3KB - Downloads: 13)
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top