adjust balance of invoice even if credit line is inactive

fixes http://manage.dimagi.com/default.asp?145837#830514