How does shelf life work?`

If the days exceed the number of shelf life days? Transactions on that item should be restricted?
So i created stock of a batched item with shelf life as 1 day
And created a delivery note against it after a day .It worked.
Ideally it shouldn’t have.

Stock Ledger