X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/6dce043fdd2d1f8104dbfb11b55823aab499fe01..7d2455cfca23b7b55fe8a23fb5ea353b23750e60:/SL/IS.pm diff --git a/SL/IS.pm b/SL/IS.pm index 484dcb9d0..9c4f50b1a 100644 --- a/SL/IS.pm +++ b/SL/IS.pm @@ -348,8 +348,6 @@ sub customer_details { $contact = "and cp.cp_id = $form->{cp_id}"; } - $taxincluded = $form->{taxincluded}; - # get rest for the customer my $query = qq|SELECT ct.*, cp.*, ct.notes as customernotes FROM customer ct @@ -359,9 +357,10 @@ sub customer_details { $sth->execute || $form->dberror($query); $ref = $sth->fetchrow_hashref(NAME_lc); - map { $form->{$_} = $ref->{$_} } keys %$ref; - $form->{taxincluded} = $taxincluded; + # remove id and taxincluded before copy back + delete @$ref{qw(id taxincluded)}; + map { $form->{$_} = $ref->{$_} } keys %$ref; $sth->finish; $dbh->disconnect;