Re: shareholders distribution
you are actually reinventing a "general ledger" or "nominal ledger", as part of a double entry bookkeeping system.
you just need suitable accounts for the dividends.
profit/expense account for "dividends" and balance sheet account for "dividends payable"
you need to have a reasonable understanding of double entry, though.
Gemma was my dog
if a poster helps you, please click the scales at the bottom left of this posting, or use the thanks button alongside.