Topic: i need make Sale store and purchases products program

Sale store and purchases products program contains classified and the products and the customer and to users and management.
We want to form a summary of the sales amount and the amount of purchases and how many products remain in the store in addition to the form of the report purchases and sales.
When we sell goods give me a red light
Purchase gives me the green light in the table Gride.