From deb816a503a07c3d900e2205cef70d9978d8d840 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 5 Feb 2007 10:58:21 +0000 Subject: [PATCH] =?utf8?q?Falsche=20Reihenfolge=20der=20Queries=20beim=20L?= =?utf8?q?=C3=B6schen=20von=20Zahlungskonditionen.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/AM.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SL/AM.pm b/SL/AM.pm index 866cf7ab7..a0a15899c 100644 --- a/SL/AM.pm +++ b/SL/AM.pm @@ -1464,11 +1464,11 @@ sub delete_payment { # connect to database my $dbh = $form->dbconnect_noauto($myconfig); - my $query = qq|DELETE FROM payment_terms WHERE id = ?|; + my $query = + qq|DELETE FROM translation_payment_terms WHERE payment_terms_id = ?|; do_query($form, $dbh, $query, $form->{"id"}); - $query = - qq|DELETE FROM translation_payment_terms WHERE payment_terms_id = ?|; + $query = qq|DELETE FROM payment_terms WHERE id = ?|; do_query($form, $dbh, $query, $form->{"id"}); $dbh->commit(); -- 2.20.1