From b5a87c8f56bb1c372a90c4d8a2a890bfc57f632a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Wed, 7 Nov 2012 15:35:31 +0100 Subject: [PATCH] =?utf8?q?Zus=C3=A4tzliche=20Debuginfo=20bei=20Waren=20mit?= =?utf8?q?=20doppelter=20Nummer.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bin/mozilla/ic.pl | 5 +++++ locale/de/all | 1 + templates/webpages/ic/form_header.html | 2 ++ 3 files changed, 8 insertions(+) diff --git a/bin/mozilla/ic.pl b/bin/mozilla/ic.pl index 20c670ca3..b86623b51 100644 --- a/bin/mozilla/ic.pl +++ b/bin/mozilla/ic.pl @@ -38,6 +38,7 @@ use List::MoreUtils qw(any); use SL::AM; use SL::CVar; use SL::IC; +use SL::Helper::Flash; use SL::ReportGenerator; #use SL::PE; @@ -1585,6 +1586,10 @@ sub form_header { IC->retrieve_buchungsgruppen(\%myconfig, $form); @{ $form->{BUCHUNGSGRUPPEN} } = grep { $_->{id} eq $form->{buchungsgruppen_id} || ($form->{id} && $form->{orphaned}) || !$form->{id} } @{ $form->{BUCHUNGSGRUPPEN} }; + if (!SL::TransNumber->new(number => $form->{partnumber}, type => $form->{item}, id => $form->{id})->is_unique) { + flash('info', $::locale->text('This partnumber is not unique. You should change it.')); + } + # use JavaScript Calendar or not (yes!) $form->{jsscript} = 1; diff --git a/locale/de/all b/locale/de/all index db5ff2c52..4b212931e 100644 --- a/locale/de/all +++ b/locale/de/all @@ -2057,6 +2057,7 @@ $self->{texts} = { 'This option controls the inventory system.' => 'Dieser Parameter legt die Warenbuchungsmethode fest.', 'This option controls the method used for profit determination.' => 'Dieser Parameter legt die Berechnungsmethode für die Gewinnermittlung fest.', 'This option controls the posting and calculation behavior for the accounting method.' => 'Dieser Parameter steuert die Buchungs- und Berechnungsmethoden für die Versteuerungsart.', + 'This partnumber is not unique. You should change it.' => 'Diese Artikelnummer ist nicht eindeutig. Bitte wählen Sie eine andere.', 'This transaction has to be split into several transactions manually.' => 'Diese Buchung muss manuell in mehrere Buchungen aufgeteilt werden.', 'This update will change the nature the onhand of goods is tracked.' => 'Dieses update ändert die Art und Weise wie Lagermengen gezält werden.', 'This upgrade script tries to map all existing parts in the database to the newly created Buchungsgruppen.' => 'Dieses Upgradescript versucht, bei allen bestehenden Artikeln neu erstellte Buchungsgruppen zuzuordnen.', diff --git a/templates/webpages/ic/form_header.html b/templates/webpages/ic/form_header.html index 4beaf5ead..01185cc2b 100644 --- a/templates/webpages/ic/form_header.html +++ b/templates/webpages/ic/form_header.html @@ -6,6 +6,8 @@

[% title %] [% HTML.escape(partnumber) %] [% HTML.escape(description) %]

+[% PROCESS 'common/flash.html' %] +
-- 2.20.1