From 90fb6995eedba7a1f204498e1d7897b6593b95aa Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Tue, 16 Apr 2013 10:34:15 +0200 Subject: [PATCH] Erzeugnis-Nummer eindeutig Fixt #2238 --- SL/TransNumber.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1