Orders section updated

checking availability of products when order, date of order, more
cheking of variables, active and completed orders.