[IMP] Unfinished method to compute commission payment based on invoices
[IMP] Minor changes to make the commission works for invoices