From: Jan Büren Date: Tue, 16 Apr 2013 08:34:15 +0000 (+0200) Subject: Erzeugnis-Nummer eindeutig X-Git-Tag: release-3.1.0beta1~494^2~3 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=90fb6995eedba7a1f204498e1d7897b6593b95aa;p=kivitendo-erp.git Erzeugnis-Nummer eindeutig Fixt #2238 --- diff --git a/SL/TransNumber.pm b/SL/TransNumber.pm index 210abc091..22d96cd3f 100644 --- a/SL/TransNumber.pm +++ b/SL/TransNumber.pm @@ -70,7 +70,7 @@ sub _get_filters { $filters{trans_number} = "partnumber"; $filters{numberfield} = $type eq 'service' ? 'servicenumber' : 'articlenumber'; $filters{table} = "parts"; - $filters{where} = 'COALESCE(inventory_accno_id, 0) ' . ($type eq 'service' ? '=' : '<>') . ' 0'; + $filters{where} = $type =~/assembly/ ? 'assembly ' : 'COALESCE(inventory_accno_id, 0) ' . ($type eq 'service' ? '=' : '<>') . ' 0'; } return %filters;