Fix line item quantity validation to be more precise