Allow allocating credit notes.

Fixes issue #83.