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:
9e33e9d
)
Nicht verhindern, dass bei neuem Artikel Artikelnummer manuell vergeben wird
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Thu, 9 Jun 2011 13:36:55 +0000
(15:36 +0200)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Thu, 9 Jun 2011 13:36:55 +0000
(15:36 +0200)
SL/IC.pm
patch
|
blob
|
history
diff --git
a/SL/IC.pm
b/SL/IC.pm
index
bbf4753
..
8dc673b
100644
(file)
--- a/
SL/IC.pm
+++ b/
SL/IC.pm
@@
-359,7
+359,7
@@
sub save {
return 3;
}
- $form->{partnumber} = $trans_number->create_unique;
+ $form->{partnumber}
||
= $trans_number->create_unique;
($form->{id}) = selectrow_query($form, $dbh, qq|SELECT nextval('id')|);
do_query($form, $dbh, qq|INSERT INTO parts (id, partnumber, unit) VALUES (?, ?, '')|, $form->{id}, $form->{partnumber});