Name

MV_VALID_PROVINCE — (partly documented)

SYNOPSIS

{ }

DESCRIPTION

Allows you to supply an alternate string to override the standard province validation.

VARIABLE TYPE

Catalog variable

EXAMPLES

No examples are available at this time. We do consider this a problem and will try to supply some.

NOTES

AVAILABILITY

MV_VALID_PROVINCE is available in Interchange versions:

4.6.0-5.9.0 (git-head)

SOURCE

Interchange 5.9.0:

Source: lib/Vend/Order.pm
Line 1162 (context shows lines 1152-1166 in _state_province():1155)

$val =~ /^[ABCEGHJKLMNPRSTVXYabceghjklmnprstvxy]\d[A-Za-z]\d[A-Za-z]\d$/;
};

sub _state_province {
my($ref,$var,$val) = @_;
my $error;
if(length($val) != 2) {
  $error = 1;
}
else {
  my $pval  = $::Variable->{MV_VALID_PROVINCE}
        ? " $::Variable->{MV_VALID_PROVINCE} "
        : $state_template{CA};
  my $sval  = $::Variable->{MV_VALID_STATE}
        ? " $::Variable->{MV_VALID_STATE} "

Source: lib/Vend/Order.pm
Line 1197 (context shows lines 1187-1201 in _province():1195)

}
else {
  return (undef, $var,
    errmsg( $state_error{US}, $val )
  );
}
}

sub _province {
my($ref,$var,$val) = @_;
my $pval  = $::Variable->{MV_VALID_PROVINCE}
      ? " $::Variable->{MV_VALID_PROVINCE} "
      : $state_template{CA};
if( $val =~ /\S/ and $pval =~ /\s$val\s/i) {
  return (1, $var, '');

AUTHORS

Interchange Development Group

SEE ALSO

DocBook! Interchange!