fix to auto_increment the return id's
Implemented the functionality to process returns