X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FIR.pm;h=0d23b45ef8a49db32d3aa6b8c80cf4268c853fff;hb=8961864f7c8e4233907f13773adda9c88c39776c;hp=f6cf8b6a0ab05e0ff811c6f3010f444b36eda491;hpb=ee072e4f077213bf6f8792ca8f0a1afebbb6282f;p=kivitendo-erp.git diff --git a/SL/IR.pm b/SL/IR.pm index f6cf8b6a0..0d23b45ef 100644 --- a/SL/IR.pm +++ b/SL/IR.pm @@ -1135,8 +1135,6 @@ sub vendor_details { $contact = "and cp.cp_id = $form->{cp_id}"; } - $taxincluded = $form->{taxincluded}; - # get rest for the vendor # fax and phone and email as vendor* my $query = @@ -1148,9 +1146,10 @@ sub vendor_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;