Hi,
Well, it's possible to override the whole function with a system plugin implementing a function of the same name.
However, I would rather recommend you do a normal plugin of the group "hikashop" and implement the onBeforeOrderNumberGenerate(&$data, &$result) and / or the onBeforeInvoiceNumberGenerate(&$data, &$result) events.
In $data, you'll have the information of the order and you can just set in $result whatever you want and it will become the order / invoice number.
If you want to know how to make a plugin, you can read the two first parts of the page
www.hikashop.com/support/documentation/6...mentation.html#intro
and use the link to the Joomla documentation which goes in depth about creating plugins for Joomla.