Now when working on multy company environmets the server action creates invioices with accounts belong to correct company based on contract company.