Extend company_address() field's function in Sales Invoice

Dear Community,

I am writing to seek your assistance in overriding/extending the function for the company_address field in the Sales Invoice Doctype. I am trying to accomplish this task using the “doctype_js” hook, but I have encountered an issue where my custom function runs first, followed by the company_address() function in the “sales_common.js” file. As a result, the function in the “sales_common.js” file overrides my custom function.

Could anyone kindly suggest a solution to this problem?

Thank you.