Commission from Vendor

Hi Forum,
I have a scenario where, company create PO then PR and then deliver goods to customer. And customer directly pay to the vendor. Company prepare commission invoice to vendor to receive commission from vendor with reference to all the purchase and sales services company done. Can you please advise any way to handle such scenario in ERPNext?
Thanks!
Best Regards,
Amol