Intercompany, invoice amount tax retention

Microsoft Dynamics AX 2009.

Hi, my english is not so good, sorry,

I have the company A and company B, company A creates a invoice, this invoice is created automatically for company B, this work correctly, the question here is, the company B needs to retain a amount tax from invoice, this retain is automatically, retaining this amount, AX throws an error in invoice register, because the amounts are not the same in company A and company B.

Exist some miss parameter?