Commission deducted from Sales receipt

SUGGESTED

Hi.

We carry out work for a Lettings Agent who are paid commission @ 12.5% on all works they have referred to us.

We invoice for the works carried out plus vat. e.g. £298.00 + vat £59.60 = Total Invoice £357.60

The lettings Agent pays the invoice minus the 12.5% commission on the full value of the invoice e.g. £312.90 so a difference of £44.70 (commission £37.25 + vat £7.45 = £44.70

So obviously when I allocate the receipt to the invoice I have an outstanding amount of £44.70 on their account.

How do I rectify this? Is there a VAT issue with this too? Will I have to do an entry which breaks down the commission and VAT?

Struggling to get my head around this so would appreciate some help.