foreach my $column (@csv_columns) {
if (exists $column->{max_length} && $column->{kivi_datev_name} ne 'not yet implemented') {
# check max length
- die "Incorrect lenght of field" if length($row->{ $column->{kivi_datev_name} }) > $column->{max_length};
+ die "Incorrect length of field" if length($row->{ $column->{kivi_datev_name} }) > $column->{max_length};
}
if (exists $column->{valid_check} && $column->{kivi_datev_name} ne 'not yet implemented') {
# more checks, listed as user warnings
my $length_of_accounts = length(SL::DB::Manager::Chart->get_first(where => [charttype => 'A'])->accno) // 4;
my $default_curr = SL::DB::Default->get_default_currency;
- # datev metadata and the string lenght limits
+ # datev metadata and the string length limits
my %meta_datev;
my %meta_datev_to_valid_length = (
beraternr => 7,