X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FIR.pm;h=5c243a4682c96d49ddb9823dc62e28dd0960ffe1;hb=4a648176621310d6b0c099c7f7af2d5a8ecf0890;hp=f6cf8b6a0ab05e0ff811c6f3010f444b36eda491;hpb=0576299f2aa98125991c4ffcd2f75073ea583d7d;p=kivitendo-erp.git diff --git a/SL/IR.pm b/SL/IR.pm index f6cf8b6a0..5c243a468 100644 --- a/SL/IR.pm +++ b/SL/IR.pm @@ -337,7 +337,6 @@ sub post_invoice { if ($form->{"projectnumber_$i"}) { $project_id = $form->{"projectnumber_$i"}; } - print(STDERR $project_id, " Project_id\n"); $deliverydate = ($form->{"deliverydate_$i"}) ? qq|'$form->{"deliverydate_$i"}'| @@ -353,7 +352,6 @@ sub post_invoice { '$form->{"unit_$i"}', $deliverydate, (SELECT id FROM project WHERE projectnumber = '$project_id'), '$form->{"serialnumber_$i"}')|; $dbh->do($query) || $form->dberror($query); - print(STDERR $query, "\n\n"); } } @@ -1135,8 +1133,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 +1144,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;