X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FVK.pm;h=6d7df707a26850458bcf88063081aaa408333988;hb=51a0ea44fe475a940f9300326d3a29a44db123fe;hp=cc49cb412395093570261b56cc9b5ba50f30fb8a;hpb=14a2c687b4458d903ff212103ca24cf32c239dd1;p=kivitendo-erp.git diff --git a/SL/VK.pm b/SL/VK.pm index cc49cb412..6d7df707a 100644 --- a/SL/VK.pm +++ b/SL/VK.pm @@ -110,7 +110,10 @@ sub invoice_transactions { if ($form->{customer_id}) { $where .= " AND ar.customer_id = ?"; push(@values, $form->{customer_id}); - }; + } elsif ($form->{customer}) { + $where .= " AND ct.name ILIKE ?"; + push(@values, $form->like($form->{customer})); + } if ($form->{customernumber}) { $where .= qq| AND ct.customernumber = ? |; push(@values, $form->{customernumber});