From a74d7fafa1ecbaf1f786ed7fdc85dc757ce4955f Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 27 Dec 2010 14:23:15 +0100 Subject: [PATCH] Fehlermeldung ausgeben, wenn Kunde/Lieferant mit "EU mit UStID" aber ohne UStID gespeichert werden soll MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fix für Bug 1406. --- locale/de/all | 1 + templates/webpages/ct/form_footer.html | 26 +++++++++++++++++--------- templates/webpages/ct/form_header.html | 6 ++++-- 3 files changed, 22 insertions(+), 11 deletions(-) diff --git a/locale/de/all b/locale/de/all index 604fad4d7..6d631eaa9 100644 --- a/locale/de/all +++ b/locale/de/all @@ -1214,6 +1214,7 @@ $self->{texts} = { 'Please enter the login for the new user.' => 'Bitte geben Sie das Login für den neuen Benutzer ein.', 'Please enter the name of the database that will be used as the template for the new database:' => 'Bitte geben Sie den Namen der Datenbank an, die als Vorlage für die neue Datenbank benutzt wird:', 'Please enter the name of the dataset you want to restore the backup in.' => 'Bitte geben Sie den Namen der Datenbank ein, in der Sie die Sicherung wiederherstellen wollen.', + 'Please enter the sales tax identification number.' => 'Bitte geben Sie die Umsatzsteueridentifikationsnummer an.', 'Please enter the taxnumber in the administration menu user preferences' => 'Bitte bei den Einstellungen des aktuellen Benutzers im Administrationsmodul angeben.', 'Please enter values' => 'Bitte Werte eingeben', 'Please insert object dimensions below.' => 'Bitte geben Sie die Abmessungen unten ein', diff --git a/templates/webpages/ct/form_footer.html b/templates/webpages/ct/form_footer.html index 0fc528913..4ea8a4247 100644 --- a/templates/webpages/ct/form_footer.html +++ b/templates/webpages/ct/form_footer.html @@ -1,6 +1,6 @@ [%- USE T8 %] [% USE HTML %] - +[% USE LxERP %] @@ -9,19 +9,19 @@
- - + + [%- IF is_customer %] - + [%- ELSE %] - + [%- END %] - - + + [%- IF is_customer %] - + [%- ELSE %] - + [%- END %] [%- IF id AND is_orphaned %] @@ -46,6 +46,14 @@ maintab.setselectedClassTarget("link"); //"link" or "linkparent" maintab.init(); + function check_taxzone_and_ustid() { + if (($('#taxzone_id').attr('value') == '1') && ($('#ustid').attr('value') == '')) { + alert('[% LxERP.t8('Please enter the sales tax identification number.') %]'); + return false; + } + return true; + } + --> diff --git a/templates/webpages/ct/form_header.html b/templates/webpages/ct/form_header.html index 4ca08157b..ea7354712 100644 --- a/templates/webpages/ct/form_header.html +++ b/templates/webpages/ct/form_header.html @@ -1,5 +1,7 @@ [%- USE T8 %] [% USE HTML %][% USE LxERP %] +[% USE L %] +[% L.javascript_tag('jquery') %]
[% title %]
@@ -184,7 +186,7 @@ [% 'sales tax identification number' | $T8 %] - + [%- IF is_customer %] [% 'our vendor number at customer' | $T8 %] @@ -260,6 +262,7 @@ [%- INCLUDE generic/multibox.html name = 'taxzone_id', + id = 'taxzone_id', DATA = ALL_TAXZONES, show_empty = 0, id_key = 'id', @@ -657,7 +660,6 @@ -