Prevent Inventory Closing in case there are open transaction pertaining to that month

Hi,

Is there any possibility to prevent inventory closing if any transaction is in open state for that particular month?

Regards,

Burhan Ghee