Inter Company Purchase Invoice

i am trying to make intercompany purchase invocie from sales invocie

Company A user make sales invocie to company B.

A new user who is user of both companies A & B make a draft purchase invocie in Company B.

Now when a user from company B tries to submit purchase invocie it gives error
that user is not to for teh company error is atatched.

Kindly mention that the user A and user B company

i did not understand by FMET?

Tell me the company mentioned in sales invoice and purchase invoice

sales invocie is made in first moon which has customer to al qamar

now purchase invocie is being made in Al qamar which has customer name from first moon

to al qamar represent customer al qamar electronics
from first moon reprents supplier first moon

Create user permission for user with only applicable for purchase invoice doctype

thank you its resolved