X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=SL%2FAR.pm;h=11333cef00e64e42169cd417dd264d1a1d9242af;hb=a111d6e8e4071fd81d7406e7f3849d6ad28726fd;hp=fe3e4431bcde45d1bc799ab7931b7b883ecab734;hpb=ee9f9f9aa4c3b9d5d20ab10a45c12bcaa6aa78d0;p=kivitendo-erp.git diff --git a/SL/AR.pm b/SL/AR.pm index fe3e4431b..11333cef0 100644 --- a/SL/AR.pm +++ b/SL/AR.pm @@ -446,6 +446,11 @@ sub ar_transactions { $where .= " AND c.name ILIKE ?"; push(@values, $form->like($form->{customer})); } + if ($form->{business_id}) { + my $business_id = $form->{business_id}; + $where .= " AND c.business_id = ?"; + push(@values, $business_id); + } if ($form->{department_id}) { my $department_id = $form->{department_id}; $where .= " AND a.department_id = ?";