credit and debit to funding instrument rather than to customer fix

Fixes #776