How stock entry is created from sales order

hello community .
I know that you can create a sales order then sales invoice then payment entry , but how exactly creating stock entries work here ? thank you

@bahaou Kindly share the requirement that exactly what you are trying to achieve.

If you’re using Sales Invoices and/or Delivery Notes, you generally don’t need to use Stock Entries.

In very general terms, Stock Entries are to stock transactions what Journal Entries are to accounting transactions. They’re both the “generic” ledger entry documents.