From 0acf0e35540578a0802d660ede4f338afc0a6aa5 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 26 Mar 2007 08:20:05 +0000 Subject: [PATCH] Bei Kunden-/Lieferantentypen das Feld "Vertreter" ausblenden. --- SL/AM.pm | 13 ++++++------- bin/mozilla/am.pl | 9 +-------- locale/de/am | 1 - locale/de/ct | 6 ------ 4 files changed, 7 insertions(+), 22 deletions(-) diff --git a/SL/AM.pm b/SL/AM.pm index 109fead5c..8696cba0d 100644 --- a/SL/AM.pm +++ b/SL/AM.pm @@ -506,7 +506,7 @@ sub business { # connect to database my $dbh = $form->dbconnect($myconfig); - my $query = qq|SELECT id, description, discount, customernumberinit, salesman + my $query = qq|SELECT id, description, discount, customernumberinit FROM business ORDER BY 2|; @@ -533,7 +533,7 @@ sub get_business { my $dbh = $form->dbconnect($myconfig); my $query = - qq|SELECT b.description, b.discount, b.customernumberinit, b.salesman + qq|SELECT b.description, b.discount, b.customernumberinit FROM business b WHERE b.id = ?|; my $sth = $dbh->prepare($query); @@ -559,20 +559,19 @@ sub save_business { my $dbh = $form->dbconnect($myconfig); my @values = ($form->{description}, $form->{discount}, - $form->{customernumberinit}, $form->{salesman} ? 't' : 'f'); + $form->{customernumberinit}); # id is the old record if ($form->{id}) { $query = qq|UPDATE business SET description = ?, discount = ?, - customernumberinit = ?, - salesman = ? + customernumberinit = ? WHERE id = ?|; push(@values, $form->{id}); } else { $query = qq|INSERT INTO business - (description, discount, customernumberinit, salesman) - VALUES (?, ?, ?, ?)|; + (description, discount, customernumberinit) + VALUES (?, ?, ?)|; } do_query($form, $dbh, $query, @values); diff --git a/bin/mozilla/am.pl b/bin/mozilla/am.pl index 276a2dafe..0ce8c2ee6 100644 --- a/bin/mozilla/am.pl +++ b/bin/mozilla/am.pl @@ -1115,9 +1115,7 @@ sub list_business { $discount = $form->format_amount(\%myconfig, $ref->{discount} * 100); $description = - ($ref->{salesman}) - ? "$ref->{description}" - : "$ref->{description}"; + $ref->{description}; $column_data{description} = qq|{script}?action=edit_business&id=$ref->{id}&path=$form->{path}&login=$form->{login}&password=$form->{password}&callback=$callback>$description|; $column_data{discount} = qq|$discount|; @@ -1167,7 +1165,6 @@ sub business_header { $lxdebug->enter_sub(); $form->{title} = $locale->text("$form->{title} Business"); - $form->{salesman} = "checked" if $form->{salesman}; # $locale->text('Add Business') # $locale->text('Edit Business') @@ -1203,10 +1200,6 @@ sub business_header { | . $locale->text('Customernumberinit') . qq| {customernumberinit}> - - | . $locale->text('Salesman') . qq| - {salesman}> -
diff --git a/locale/de/am b/locale/de/am index 1f86f2740..fa81dff81 100644 --- a/locale/de/am +++ b/locale/de/am @@ -222,7 +222,6 @@ $self->{texts} = { 'SAVED' => 'Gespeichert', 'SAVED FOR DUNNING' => 'Gespeichert', 'SCREENED' => 'Angezeigt', - 'Salesman' => 'Verkäufer/in', 'Save' => 'Speichern', 'Screen' => 'Bildschirm', 'Select a Customer' => 'Endkunde auswählen', diff --git a/locale/de/ct b/locale/de/ct index 5930113bc..a212c02f6 100644 --- a/locale/de/ct +++ b/locale/de/ct @@ -25,7 +25,6 @@ $self->{texts} = { 'Credit Limit' => 'Kreditlimit', 'Customer Number' => 'Kundennummer', 'Customer deleted!' => 'Kunde gelöscht!', - 'Customer not on file or locked!' => 'Dieser Kunde existiert nicht oder ist gesperrt.', 'Customer saved!' => 'Kunde gespeichert!', 'Customers' => 'Kunden', 'DELETED' => 'Gelöscht', @@ -110,7 +109,6 @@ $self->{texts} = { 'Select a part' => 'Artikel auswählen', 'Select a project' => 'Projekt auswählen', 'Select an employee' => 'Angestellten auswählen', - 'Select from one of the names below' => 'Wählen Sie einen der untenstehenden Namen', 'Shipping Address' => 'Lieferadresse', 'Steuersatz' => 'Steuersatz', 'Street' => 'Straße', @@ -129,7 +127,6 @@ $self->{texts} = { 'Variable' => 'Variable', 'Vendor Number' => 'Lieferantennummer', 'Vendor deleted!' => 'Lieferant gelöscht!', - 'Vendor not on file or locked!' => 'Dieser Lieferant existiert nicht oder ist gesperrt.', 'Vendor saved!' => 'Lieferant gespeichert!', 'Vendors' => 'Lieferanten', 'Zipcode' => 'PLZ', @@ -156,7 +153,6 @@ $self->{subs} = { 'add_transaction' => 'add_transaction', 'build_std_url' => 'build_std_url', 'calculate_qty' => 'calculate_qty', - 'check_salesman' => 'check_salesman', 'continue' => 'continue', 'delete' => 'delete', 'delivery_customer_selection' => 'delivery_customer_selection', @@ -174,7 +170,6 @@ $self->{subs} = { 'project_selection_internal' => 'project_selection_internal', 'reformat_numbers' => 'reformat_numbers', 'restore_form' => 'restore_form', - 'salesman_selected' => 'salesman_selected', 'save' => 'save', 'save_and_ap_transaction' => 'save_and_ap_transaction', 'save_and_ar_transaction' => 'save_and_ar_transaction', @@ -190,7 +185,6 @@ $self->{subs} = { 'select_employee_internal' => 'select_employee_internal', 'select_part' => 'select_part', 'select_part_internal' => 'select_part_internal', - 'select_salesman' => 'select_salesman', 'set_longdescription' => 'set_longdescription', 'show_history' => 'show_history', 'update' => 'update', -- 2.20.1