]> wagnertech.de Git - kivitendo-erp.git/commitdiff
vendornotes auch als notes Form Variable
authorMartin Helmling martin.helmling@octosoft.eu <martin.helmling@octosoft.eu>
Mon, 13 Jun 2016 11:38:14 +0000 (13:38 +0200)
committerMartin Helmling martin.helmling@octosoft.eu <martin.helmling@octosoft.eu>
Mon, 13 Jun 2016 11:38:14 +0000 (13:38 +0200)
Wie in SL/IS.pm ( c0ed7d2fa ) werden hier die notes doppelt zurückgegeben.

fixup durch löschen von notes vor kopieren

Auch hier kann es passieren dass die notes von Dokumenten z.B. Rechnung durch die
notes des Lieferanten (Kunden) in den Forms-Variablen überschrieben werden,
dann beim Drucken der falsche Text in der (LateX) Rechnung landet.

SL/IR.pm

index 620fa184748dcc480488648fc35ee2a7c45c0f3b..90dbbab96c115752bffd6f7b9c1c49fe347275c6 100644 (file)
--- a/SL/IR.pm
+++ b/SL/IR.pm
@@ -1465,8 +1465,8 @@ sub vendor_details {
        LIMIT 1|;
   my $ref = selectfirst_hashref_query($form, $dbh, $query, $form->{vendor_id}, @values);
 
-  # remove id and taxincluded before copy back
-  delete @$ref{qw(id taxincluded)};
+  # remove id,notes (double of vendornotes) and taxincluded before copy back
+  delete @$ref{qw(id taxincluded notes)};
 
   @wanted_vars = grep({ $_ } @wanted_vars);
   if (scalar(@wanted_vars) > 0) {