update for inventories and sales orders