Damn, I forgot another occurrence of the hardcoded table name sales
authorJoey Schulze <joey@infodrom.org>
Fri, 1 Feb 2002 09:57:32 +0000 (09:57 +0000)
committerJoey Schulze <joey@infodrom.org>
Fri, 1 Feb 2002 09:57:32 +0000 (09:57 +0000)
src/InfoCon/buch/infocon

index 8feed84..c634977 100755 (executable)
@@ -246,7 +246,7 @@ sub buchung_input
            $input[6] *= -1 if ($input[6] > 0);
        }
 
            $input[6] *= -1 if ($input[6] > 0);
        }
 
-       $query = sprintf ("INSERT INTO sales VALUES (%d,'%s','%s','%s',%8.2f,%8.2f,%8.2f,%d)",
+       $query = sprintf ("INSERT INTO $table VALUES (%d,'%s','%s','%s',%8.2f,%8.2f,%8.2f,%d)",
                          &get_next_nr(), &date_to_string($input[0]), $input[1], $input[2], $input[4],
                          $input[5], $input[6], $input[7]);
        $sth = $dbh->do($query);
                          &get_next_nr(), &date_to_string($input[0]), $input[1], $input[2], $input[4],
                          $input[5], $input[6], $input[7]);
        $sth = $dbh->do($query);