Purchase Target for company ERPNEXT

Hello,

We have one company ( A ), and we have a subsidiary company ( B ).
Now we want that company B must Buy a certain amount of stock from company (A) in 3 month, If not send a notification to a user.

How to achieve this?