T999-develop: link invoice to a command

If you do not create the invoice from the order,
it can connect to a command by clicking "bind a command"
Merge pull request #1167 from PaulPoulain/999-develop

T999-develop: link invoice to a command