Go to Setup | Company | Enable Features and check the A/P, ACCOUNTING, and ACCOUNTING PERIODS checkboxes on the Accounting tab and the PURCHASE ORDERS checkbox on the Transactions tab:
Enabling features