Purchase Order does not tracks what I have in stock already

Hi,
If I have a product in stock say “5х productA” and I have a Sales Order for “10х productA”, then when I make Purchase Order from the Sales Order, it orders 10x productA, but I would prefer it order only what is missed from the stock, in this case 10 minus 5 = 5x productA?
If there a way to make it work this way?

@Mikhail_Klemin

Sorry but this is feature is not available out of the box. Would you mind creating a github suggestion for the same.
Thanks