Added error processing when receipt is already created