From c4d0fd51427befedf4070911143a113c7307a0ff Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 9 Jun 2011 15:36:55 +0200 Subject: [PATCH] Nicht verhindern, dass bei neuem Artikel Artikelnummer manuell vergeben wird --- SL/IC.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/IC.pm b/SL/IC.pm index bbf475310..8dc673bca 100644 --- 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}); -- 2.20.1