Stock entry & Updation of stock after issuing the material

how to do stock entry? & how the stock is getting minus when we issue the material by referring to the BOM.