Hi, I ended up doing it in a different way, please check, that it works for you.
It now works in a more general way, allowing you to set other states too: http://github.com/kljohann/ledger/commit/2dff4dea3f27084c4daad5c6f89201eea7b4036b (I did not add a default mapping, the function is called LedgerSetTransactionState) Johann
