Invoice type defaulted for document attached to invoice

When manually adding a related document to an invoice, the document type defaults to Invoice if no 'Invoice' related document exists.