From: Moritz Bunkus Date: Mon, 18 Dec 2017 12:41:12 +0000 (+0100) Subject: Revert "DATEV: Umsatz von 0 zulassen" X-Git-Tag: release-3.5.4~570 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=28550377f37c6bb63c86cb1460b233b042b29dfc;p=kivitendo-erp.git Revert "DATEV: Umsatz von 0 zulassen" This reverts commit f7a1243e53114c1917ea0836a5839ed0918553b4. --- diff --git a/SL/DATEV/CSV.pm b/SL/DATEV/CSV.pm index 18389fe2e..c06ee7040 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 >= 0) }, + 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})?$/) }, },