Trigger invoice permissions

fixes http://manage.dimagi.com/default.asp?151033#840621