From 6881b4bd6a669dd991b227ecf41c3e8662806595 Mon Sep 17 00:00:00 2001 From: Thomas Heck Date: Wed, 10 Oct 2012 15:43:57 +0200 Subject: [PATCH] =?utf8?q?Zahlungsbedingungen=20nicht=20unter=20Angebot/Au?= =?utf8?q?ftrag=20=C3=BCberschreiben.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit fixt #2015 --- bin/mozilla/is.pl | 4 +++- bin/mozilla/oe.pl | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/bin/mozilla/is.pl b/bin/mozilla/is.pl index 56162d543..b08e5dbe0 100644 --- a/bin/mozilla/is.pl +++ b/bin/mozilla/is.pl @@ -407,7 +407,9 @@ sub form_footer { my ($tax, $subtotal); $form->{taxaccounts_array} = [ split / /, $form->{taxaccounts} ]; + my $paymet_id = $::form->{payment_id}; IS->get_customer(\%myconfig, \%$form) if $form->{type} =~ /sales_(order|quotation)/; + $::form->{payment_id} = $paymet_id; if ( $form->{vc} eq 'customer' && !$form->{taxincluded_changed_by_user} ) { $form->{taxincluded} = defined($form->{taxincluded_checked}) ? $form->{taxincluded_checked} : $myconfig{taxincluded_checked}; @@ -519,7 +521,7 @@ sub update { map { $form->{"${_}_$i"} = $form->parse_amount(\%myconfig, $form->{"${_}_$i"}) } qw(paid exchangerate); if (!$form->{"forex_$i"}) { #read exchangerate from input field (not hidden) $form->{exchangerate} = $form->{"exchangerate_$i"}; - } + } $form->{"forex_$i"} = $form->check_exchangerate(\%myconfig, $form->{currency}, $form->{"datepaid_$i"}, 'buy'); $form->{"exchangerate_$i"} = $form->{"forex_$i"} if $form->{"forex_$i"}; } diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index 51b3c77ca..9508f736f 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -477,7 +477,9 @@ sub form_footer { $TMPL_VAR{notes} = qq||; $TMPL_VAR{intnotes} = qq||; - IS->get_customer(\%myconfig, \%$form) if $form->{type} =~ /sales_(order|quotation)/; + my $paymet_id = $::form->{payment_id}; + IS->get_customer(\%myconfig, $::form) if $form->{type} =~ /sales_(order|quotation)/; + $::form->{payment_id} = $paymet_id; if ( $form->{vc} eq 'customer' && !$form->{taxincluded_changed_by_user} ) { $form->{taxincluded} = defined($form->{taxincluded_checked}) ? $form->{taxincluded_checked} : $myconfig{taxincluded_checked}; @@ -779,7 +781,7 @@ sub orders { my @columns = ( "transdate", "reqdate", "id", $ordnumber, - "customernumber", + "customernumber", "name", "netamount", "tax", "amount", "curr", "employee", -- 2.20.1