How to make accounting entries when an enterprise decides to distribute profits to investors?

When an enterprise decides to distribute profits to investors, it should first make provision, and its accounting entries are as follows:

Borrow: profit distribution-extract profits payable,

Loan: profit payable,

Entries for profit distribution carried forward are as follows:

Borrow: profit distribution-undistributed profit,

Loan: profit distribution-withdrawal of profits payable,

When actually distributing profits, make the following accounting entries:

Borrow: profits payable,

Loan: Bank deposit (or cash on hand).