branchId to code