X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/b60e2ebf8314f691ec60e38bb8a2c37d917b61cb..df005c490a2d6a9b7e50ea44fc7557e39ce7d6ca:/SL/OE.pm diff --git a/SL/OE.pm b/SL/OE.pm index d3b1313cc..9adbee2eb 100644 --- a/SL/OE.pm +++ b/SL/OE.pm @@ -83,7 +83,8 @@ sub transactions { qq|WHERE (o.quotation = ?) |; push(@values, $quotation); - my ($null, $department_id) = split /--/, $form->{department}; + my ($null, $split_department_id) = split /--/, $form->{department}; + my $department_id = $form->{department_id} || $split_department_id; if ($department_id) { $query .= qq| AND o.department_id = ?|; push(@values, $department_id);