edit qnty and sum generation