To be able to indicate the accounting accounts and cost centers we will go to System -> System Configuration

We will open the following window where we will press the  option 'Finance' in the left menu and later "Accounting Account" as indicated by the red square below.  Or in the case of "Cost Centers" the next highlighted tab.