Tying transactions to plans