Need to add branch filter and column in gross profit report

hi , i am working on branch filter issue. i am unable to update warehouse doctype(it is not a editable doctype) so it can be associated with branch doctype.
issue:-(Need Branch Filter on Gross Profit Report · Issue #39879 · frappe/erpnext · GitHub)