From f612f63eaec658123e4752850c31b33e1865a2e5 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 9 Nov 2012 09:25:40 +0100 Subject: [PATCH] Debitoren-, Kreditorenbuchungen: K/L-Bemerkungen als Extra-Feld anzeigen, nicht in normale Bemerkungen kopieren Fixt #1858. --- bin/mozilla/ap.pl | 12 +++++------- bin/mozilla/ar.pl | 8 +------- locale/de/all | 2 ++ templates/webpages/ar/form_header.html | 3 +++ 4 files changed, 11 insertions(+), 14 deletions(-) diff --git a/bin/mozilla/ap.pl b/bin/mozilla/ap.pl index 732eaed5e..0654d860b 100644 --- a/bin/mozilla/ap.pl +++ b/bin/mozilla/ap.pl @@ -153,9 +153,6 @@ sub create_links { # build the popup menus $form->{taxincluded} = ($form->{id}) ? $form->{taxincluded} : "checked"; - # notes - $form->{notes} = $form->{intnotes} unless $form->{notes}; - # currencies $form->{defaultcurrency} = $form->get_default_currency(\%myconfig); @@ -287,6 +284,7 @@ sub form_header { } my $notes = qq||; + my $intnotes = qq||; my $department; $department = qq| @@ -627,6 +625,9 @@ $jsscript | . $locale->text('Notes') . qq| $notes + + | . $locale->text('Notes for vendor') . qq| + $intnotes @@ -929,7 +930,7 @@ sub update { $form->{exchangerate} = $form->{forex} if $form->{forex}; $form->{invdate} = $form->{transdate}; - my %saved_variables = map +( $_ => $form->{$_} ), qw(AP AP_amount_1 taxchart_1); + my %saved_variables = map +( $_ => $form->{$_} ), qw(AP AP_amount_1 taxchart_1 notes); my $vendor_changed = &check_name("vendor"); @@ -966,9 +967,6 @@ sub update { $form->{oldinvtotal} = $form->{invtotal}; $form->{oldtotalpaid} = $totalpaid; - # notes - $form->{notes} = $form->{intnotes} if $vendor_changed; - &display_form; $main::lxdebug->leave_sub(); diff --git a/bin/mozilla/ar.pl b/bin/mozilla/ar.pl index be080ea6a..80c87f966 100644 --- a/bin/mozilla/ar.pl +++ b/bin/mozilla/ar.pl @@ -161,9 +161,6 @@ sub create_links { $form->{oldcustomer} = "$form->{customer}--$form->{customer_id}"; $form->{rowcount} = 1; - # notes - $form->{notes} = $form->{intnotes} unless $form->{notes}; - # currencies $form->{defaultcurrency} = $form->get_default_currency(\%myconfig); @@ -617,13 +614,10 @@ sub update { $form->{invdate} = $form->{transdate}; - my %saved_variables = map +( $_ => $form->{$_} ), qw(AR AR_amount_1 taxchart_1 customer_id); + my %saved_variables = map +( $_ => $form->{$_} ), qw(AR AR_amount_1 taxchart_1 customer_id notes); &check_name("customer"); - # check_name loads customer notes into notes, but ar only knows intnotes, so copy them - $form->{notes} = $form->{intnotes} if $saved_variables{customer_id} != $form->{customer_id}; - $form->{AR} = $saved_variables{AR}; if ($saved_variables{AR_amount_1} =~ m/.--./) { map { $form->{$_} = $saved_variables{$_} } qw(AR_amount_1 taxchart_1); diff --git a/locale/de/all b/locale/de/all index 3060507a3..71e55d7da 100644 --- a/locale/de/all +++ b/locale/de/all @@ -1285,6 +1285,8 @@ $self->{texts} = { 'Notes' => 'Bemerkungen', 'Notes (translation for #1)' => 'Bemerkungen (Übersetzung für #1)', 'Notes (will appear on hard copy)' => 'Bemerkungen', + 'Notes for customer' => 'Bemerkungen beim Kunden', + 'Notes for vendor' => 'Bemerkungen beim Lieferanten', 'Nothing has been selected for removal.' => 'Es wurde nichts für eine Entnahme ausgewählt.', 'Nothing has been selected for transfer.' => 'Es wurde nichts zum Umlagern ausgewählt.', 'Nothing selected!' => 'Es wurde nichts ausgewählt!', diff --git a/templates/webpages/ar/form_header.html b/templates/webpages/ar/form_header.html index 363bb9d20..ea17d6ddc 100644 --- a/templates/webpages/ar/form_header.html +++ b/templates/webpages/ar/form_header.html @@ -171,6 +171,9 @@ [% 'Notes' | $T8 %] + + [% 'Notes for customer' | $T8 %] + -- 2.20.1