When entering a direct invoice with a line of Miscellaneous type and without product code, the account is initialized by the purchase account of the supplier.
The tax code and the purchase type are initialized in that case, according to the information of the account used (account of the main general ledger).