Corrected issues with transaction errors. More refactoring of the detail items to make them an array.