A document date describes the business document. A posting date controls when the ledger entry affects the books. You can know the right document and amount yet still post into the wrong reporting period. Use explicit allowed dates when the close process requires a fixed boundary.
In this model, Allow Posting From and Allow Posting To apply to the company and include both boundary dates. A separate closed-through date can still prevent posting inside that window. Real Business Central also supports user-specific posting dates and other configuration. Those overrides are outside the local model. The exercises distinguish an intended company window from a broader date range that happens to let today's transaction through.