add state helpers to invoice