calculate total by scanning item, then calculate.