pub fn validate_total_field(
    i: String,
    amount_type: TotalAmountType
) -> Result<(), LineParseError>