First, set the parameter in Base Registers/MED/Parameters - tab Media invoices, by entering an account in the field: “Book with new posting: account”