How to deal with the profit account handed in by the branch?

When paying the management fee,

Borrow: management fee-superior management fee,

Loans: bank deposits,

When profits are turned over for withdrawal,

Borrow: profit distribution-undistributed profit,

Loan: profits payable-profits paid to the head office,

After handing it in,

Borrow: profits payable-profits paid to the head office,

Loan: bank deposit.