How to make accounting entries for the discount of fixed assets purchased for the construction of fixed assets?

Fixed assets purchased for the construction of fixed assets meet the definition and recognition conditions of fixed assets, and should be recognized as "fixed assets" separately, instead of being incorporated into the subject of "construction in progress" for the construction of fixed assets. The entry value is confirmed according to the actually paid price and the first customs declaration fee, and the discount occurred at the time of purchase is regarded as the entry cost according to the discount amount and the first customs declaration fee.

When the purchased fixed assets need to be installed and actually purchased,

Borrow: engineering materials -XX equipment

Taxes payable-VAT payable (input tax)

Loans: bank deposits

Borrow: Construction in progress -XX equipment

Loan: engineering materials

After installation

Borrow: fixed assets

Loan: Construction in progress.

If installation is not required

Borrow: fixed assets

Taxes payable-VAT payable (input tax)

Loans: bank deposits