Under Code section 754, but must be elected on a timely basis by the partnershp. On the partnership level the accounting for this is a abit messy. Your question, is not basic, is reasonable unlike many ignorant or lazy others, so called tax prepares. Hint: its all done on the partnership level.