There is an upgrade desk in Doha airport, where you can arrange upgrades for the flights from Doha. Prices are usually quite good if there are seats available. Earnings will remain as with the original booking class.
Outstations are more spotty, and I have never succeeded in buying a discounted upgrade. They have always only offered me a re-calculation of the fare in to J.