Don't ask for tax when its percentage is zero
authorJoey Schulze <joey@infodrom.org>
Thu, 13 Dec 2007 18:14:07 +0000 (18:14 +0000)
committerJoey Schulze <joey@infodrom.org>
Thu, 13 Dec 2007 18:14:07 +0000 (18:14 +0000)
src/InfoCon/buch/infocon

index d314ba7..95326b6 100755 (executable)
@@ -282,6 +282,11 @@ sub buchung_input
            } elsif ($fieldname[$i] eq "Description") {
                $attribs->{completion_entry_function} = $attribs->{list_completion_function};
                $attribs->{completion_word} = \@descriptions;
+           } elsif ($fieldname[$i] eq "Tax assigned") {
+               if ($input[$i-1] == 0) {
+                   $input[$i++] = 0;
+                   next;
+               }
            } else {
                $attribs->{completion_word} = undef;
            }