Refactoring transactions into costdetails table, due to internal concepts