How to record cash advance of shareholder and recording of payment
That will depend on the structure of your chart of accounts and legal form of organization. It will also depend on whether this was a loan or a withdrawal of capital in some form. So you need to furnish more information.
Regardless of the other specific information, you will record the transaction with a payment form.