What are the accounting entries for the company to borrow money from other companies?

If the loan agreement is signed directly, the entries are as follows:

Loans received:

Debit: bank deposit,

Credit: other payables.

Withdraw loan interest:

Borrow: financial expenses or projects under construction,

Credit: other payables.

Payment of loan interest and repayment of principal:

Debit: other payables,

Loan: bank deposit.

If the loan is entrusted by the bank, the entry is as follows:

Loans received:

Debit: bank deposit,

Loan: short-term loan or long-term loan.

Withdraw loan interest:

Borrow: financial expenses or projects under construction,

Loan: Interest payable.

Payment of loan interest:

Borrow: interest payable,

Loan: bank deposit.

Principal repayment:

Borrowing: short-term borrowing or long-term borrowing,

Loan: bank deposit.