Locking for month end

There’s this FR already which might be relevant:
Stock Take - Freeze Stock while in process/until completed - Ideas & feature requests - Breww Community