Creating a detail code for the remission database