Accounting entries for several scenarios of cash on delivery, ticket on delivery, and payment on delivery. Please help how to write

Question 1:

At the end of the month, debit: raw materials (at valuation)

credit: prepayment (at valuation)

When the invoice arrives in the next month: the valuation entry made at the end of the month is eliminated with a red letter,

debit: raw materials (at valuation)

credit: prepayment (at valuation)

At the same time, according to the actual price of the invoice,

borrow: raw materials

credit: prepayment (at valuation)

At the same time, the actual price on the invoice is also eliminated with a red letter.

Borrow: Raw Materials

Tax Payable - VAT Payable (Incoming)

Credit: Bank Deposits

Question 2:

Upon receipt of the goods,

Borrow: Raw Materials

Tax Payable - VAT Payable (Incoming)

Credit: Accounts Payable - **

When paying for the goods,

Borrow: Accounts Payable - **

Credit: Bank Deposit

Question 3:

The invoice arrives,

When the goods arrive:

Borrow: Raw Materials

Taxes Payable - VAT Payable (In)

Credit: Prepayment

Bank Deposit (When the prepayment is insufficient to cover the payment, make up for the payment with the bank deposit)

Question 5:

No account is taken of the prepayment. p>

No accounting treatment.

Question 6:

At the end of the month,

Borrow: Raw Materials (at valuation)

Credit: Accounts Payable (at valuation)

When the invoice arrives in the next month:

Eliminate the valuation entry made at the end of the month with a red letter,

Borrow: Raw Materials (at valuation)

Credit: Accounts Payable (at valuation)

At the same time, make a new entry at the end of the month.

At the same time, according to the actual price on the invoice,

Debit: Raw Materials

Taxes Payable - VAT Payable (In)

Credit: Bank Deposits