projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26f9b1a
)
Erzeugnis-Nummer eindeutig
author
Jan Büren
<jan@kivitendo-premium.de>
Tue, 16 Apr 2013 08:34:15 +0000
(10:34 +0200)
committer
Jan Büren
<jan@kivitendo-premium.de>
Tue, 16 Apr 2013 08:34:15 +0000
(10:34 +0200)
Fixt #2238
SL/TransNumber.pm
patch
|
blob
|
history
diff --git
a/SL/TransNumber.pm
b/SL/TransNumber.pm
index
210abc0
..
22d96cd
100644
(file)
--- 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;