DATEV: Umsatz von 0 zulassen
authorMoritz Bunkus <m.bunkus@linet-services.de>
Fri, 15 Dec 2017 09:51:17 +0000 (10:51 +0100)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Fri, 15 Dec 2017 10:55:11 +0000 (11:55 +0100)
SL/DATEV/CSV.pm

index 5c1e7ec..6ac460c 100644 (file)
@@ -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})?$/) },
                             },