I factored my invoice - how do I record their fee deduction?

I factored my invoice - how do I record their fee deduction?

Hi 

I work with 2 factoring companies.

Company A deducts 2% off my invoice before sending me the remaining balance and they do send me an invoice to show the 2%. 

Company B deducts 10% off my invoice before sending me the remaining balance and they do not send me an invoice to show the 10% deduction. 

Because of this, I currently have uncategorised deposits that do not match the sales invoice amounts. What is the best way to handle this situation for both companies?