Fix get_dollars_receiving; #492

This includes a test suite.

Signed-off-by: Chad Whitacre <chad@zetaweb.com>