I had a sale for a cap gain (Partnership income) in 2017, but the cash was received in Jan 2018. Do I record the cap gain in 2017 or 2018 for tax purposes?