projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
File: POD-Korrektur: File-Typen sind singular
[kivitendo-erp.git]
/
SL
/
DB
/
Helper
/
IBANValidation.pm
diff --git
a/SL/DB/Helper/IBANValidation.pm
b/SL/DB/Helper/IBANValidation.pm
index
651b2e6
..
bc4cbf4
100644
(file)
--- a/
SL/DB/Helper/IBANValidation.pm
+++ b/
SL/DB/Helper/IBANValidation.pm
@@
-6,7
+6,7
@@
use Algorithm::CheckDigits ();
use Carp;
use SL::Locale::String qw(t8);
use Carp;
use SL::Locale::String qw(t8);
-my $_validat
e
r;
+my $_validat
o
r;
my %_countries = (
AT => { len => 20, name => t8('Austria') },
BE => { len => 16, name => t8('Belgium') },
my %_countries = (
AT => { len => 20, name => t8('Austria') },
BE => { len => 16, name => t8('Belgium') },
@@
-29,9
+29,9
@@
sub _validate {
return () unless length($iban);
return () unless length($iban);
- $_validat
e
r //= Algorithm::CheckDigits::CheckDigits('iban');
+ $_validat
o
r //= Algorithm::CheckDigits::CheckDigits('iban');
- return ($::locale->text("The value '#1' is not a valid IBAN.", $iban)) if !$_validat
e
r->is_valid($iban);
+ return ($::locale->text("The value '#1' is not a valid IBAN.", $iban)) if !$_validat
o
r->is_valid($iban);
my $country = $_countries{substr($iban, 0, 2)};
my $country = $_countries{substr($iban, 0, 2)};
@@
-82,12
+82,12
@@
SL::DB::Helper::IBANValidation - Mixin for validating IBAN attributes
return @errors;
}
return @errors;
}
-This mixin provides a function C<validate_ibans> that returns a
n
list
+This mixin provides a function C<validate_ibans> that returns a list
of error messages, one for each attribute that fails the IBAN
validation. If all attributes are valid or empty then an empty list
is returned.
of error messages, one for each attribute that fails the IBAN
validation. If all attributes are valid or empty then an empty list
is returned.
-The names of attributes to check can be given as a import list to the
+The names of attributes to check can be given as a
n
import list to the
mixin package. If no attributes are given the single attribute C<iban>
is used.
mixin package. If no attributes are given the single attribute C<iban>
is used.