In my situation I download these transactions electronically; Suspect you would have to implement both the buy share quantity & the dividend income as two separate transactions. If you want to show reinvestment of dividends you would have to edit the buy transaction and convert it to reinvest dividends (dividend/# of shares & QM calculates the price/share). Then delete the dividend income transaction & you s/b good to go. Hope this helps.
After creating a new transaction, put your cursor in the Type column and click the little up/down arrow icon. This will let you choose the Reinvest Dividends transaction type. From there, just fill in the fields. If for some reason the Type field is not showing, enable it via menu View > Columns.