From: Jan Büren Date: Thu, 9 Nov 2017 12:59:28 +0000 (+0100) Subject: DATEV::CSV Feld Umsatz strikter beschreiben X-Git-Tag: release-3.5.4~632 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=abca15a1ae55d18c6f8b7a8d48586da11c3f0719;p=kivitendo-erp.git DATEV::CSV Feld Umsatz strikter beschreiben Hier der genaue DATEV-Wortlaut: "Muss immer ein positiver Wert sein." => 0 verbieten. --- diff --git a/SL/DATEV/CSV.pm b/SL/DATEV/CSV.pm index 3d81e6274..6d6594582 100644 --- a/SL/DATEV/CSV.pm +++ b/SL/DATEV/CSV.pm @@ -22,7 +22,7 @@ my @kivitendo_to_datev = ( max_length => 13, type => 'Value', required => 1, - input_check => sub { my ($input) = @_; return (looks_like_number($input) && length($input) <= 13) }, + input_check => sub { my ($input) = @_; return (looks_like_number($input) && length($input) <= 13 && $input > 0) }, formatter => \&_format_amount, valid_check => sub { my ($check) = @_; return ($check =~ m/^\d{1,10}(\,\d{1,2})?$/) }, },