Originally Posted by
WineCountryUA
Operating carrier and it's fare class determines earning. Ticketing / marketing carrier does not matter
And, to be explicit on this note, it is possible that the operating fare class differs from the marketing fare class. In this case - a B fare on NH/LH - that's probably not the case but it can in other scenarios.