Modified the way how the sale is written in the file