From: Moritz Bunkus Date: Wed, 3 Sep 2008 14:04:07 +0000 (+0000) Subject: Beim Anlegen des allerersten Beleges eines Typs dafür sorgen, dass vendor_id bzw... X-Git-Tag: release-2.6.0beta2~267 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=2868feee8fb33457e7562f02778186b5b5c1a2b6;p=kivitendo-erp.git Beim Anlegen des allerersten Beleges eines Typs dafür sorgen, dass vendor_id bzw. customer_id auch gesetzt werden. Andernfalls funktionieren Dinge wie Ansprechpartner-Drop-Down-Boxen nicht, oder es erscheinen später SQL-Fehler. --- diff --git a/SL/IR.pm b/SL/IR.pm index 936cc98fe..72a36ae57 100644 --- a/SL/IR.pm +++ b/SL/IR.pm @@ -866,7 +866,7 @@ sub get_vendor { } my $query = qq|SELECT - v.name AS vendor, v.creditlimit, v.terms, v.notes AS intnotes, + v.id AS vendor_id, v.name AS vendor, v.creditlimit, v.terms, v.notes AS intnotes, v.email, v.cc, v.bcc, v.language_id, v.payment_id, v.street, v.zipcode, v.city, v.country, v.taxzone_id, $duedate + COALESCE(pt.terms_netto, 0) AS duedate, diff --git a/SL/IS.pm b/SL/IS.pm index 9a338eb0b..7e52b2bea 100644 --- a/SL/IS.pm +++ b/SL/IS.pm @@ -1526,7 +1526,7 @@ sub get_customer { # get customer $query = qq|SELECT - c.name AS customer, c.discount, c.creditlimit, c.terms, + c.id AS customer_id, c.name AS customer, c.discount, c.creditlimit, c.terms, c.email, c.cc, c.bcc, c.language_id, c.payment_id, c.street, c.zipcode, c.city, c.country, c.notes AS intnotes, c.klass as customer_klass, c.taxzone_id, c.salesman_id,