OK ...
A classic example from the Christian tradition of '
almsdeeds".
Working around Aquinas's argument, in Scripture we have:
1: 'Redeem thou thy
sins with
alms' Daniel 4:24, and I would see that as almsgiving to 'work off' or balance the negative effects of karma?
2: 'Do not forget to do
good and to impart, for by such
sacrifices God's favour is obtained' Hebrews 13:16, in this example, I would see the idea of doing good to accrue good? Also, I would add, to be a channel of good into the world.
On a mechanical sense, I can see this.
A offends B. B is in a position to harm A. A does something to repair the broken relationship with B, and by so doing, balance is restored.
A makes gifts to B, because A sees B is in need. Come the day, C makes gifts to B, because C sees the chance to reward B for his gifts to A.
The intent bit comes in this way:
A gives alms to the poor, because he wishes to alleviate the suffering of the poor.
A gives alms to the poor, not for the sake of the poor, but because he wants to be seen to be virtuous by his contemporaries.
Same action, different intention.
Does the action accrue good karma even when the intention is bad? The poor benefit, either way.