X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FOE.pm;h=9adbee2eb9782443e4958461808f0aabe16865da;hb=78c8b931b0081dc5c082615c6dac24b7d8f6ff7f;hp=d3b1313cc02ee99f4f6257318d8e8db09e2e4e84;hpb=9c63c1600059dca1ca295e264413e911da3d15bf;p=kivitendo-erp.git 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);