View Single Post
  #5 (permalink)  
Old September 18th, 2008, 07:19
ianlo ianlo is offline
Senior Member and Blogger
 
Join Date: Dec 2006
Location: Singapore
Posts: 152
Blog Entries: 5
Groans: 0
Groaned at 1 Time in 1 Post
Thanks: 5
Thanked 11 Times in 10 Posts
Rep Power: 3
ianlo is on a distinguished road
Send a message via AIM to ianlo Send a message via Skype™ to ianlo
Re: OTM Archiving For Invoices

Quote:
Originally Posted by medhas View Post
Hello Ian,

Have you been able to purge the invoices? We have a requirement too along the same lines..

Regards

Medhas
Hi Medhas,

Unfortunately, I have been busy with implementation and project work that I did not put any thought into this.

What I can say is that we would need to build custom tables to store the archived invoice data and run a script to move them from production to archive.

The FK relationships will be a huge pain because of the implicit relationship between invoices and shipments - i.e. what criteria should the invoice be archived, what happens when a shipment is archived but the invoice is not and what about credit / debit notes?

I have not wrapped my mind around this unfortunately... sorry.

Ian
Reply With Quote