Stock Inventory Data Structure

Need help for Database structure, which use for Stock Inventory based on Sales, Purchase Invoice