If it booked into P, you're paying the fare difference (however little it may be depending on your original fare), not a TOD offer, so the P fare earnings apply. If it booked into PN, ZN, or in some really rare cases, R, then the original fare class earnings apply.