edited orders, fixed inventory update