From f7a1243e53114c1917ea0836a5839ed0918553b4 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 15 Dec 2017 10:51:17 +0100 Subject: [PATCH] DATEV: Umsatz von 0 zulassen --- SL/DATEV/CSV.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/DATEV/CSV.pm b/SL/DATEV/CSV.pm index 5c1e7ec44..6ac460c44 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})?$/) }, }, -- 2.20.1