Damn, I forgot another occurrence of the hardcoded table name sales
[infodrom.org/service.infodrom.org] / src / InfoCon / buch / infocon
index 8feed84..c634977 100755 (executable)
@@ -246,7 +246,7 @@ sub buchung_input
            $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);