'Reposition elements after removing the line

I have some accounting report's summary with such rows: vat, net, total. How can I reposition some row after another was removed because it was empty?

For example, if vat is empty, I set 'Remove line when blank' and 'Blank when null' - this will remove the line from the template. But I need to reposition the net and total rows.

How can I do that?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source