X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fis.pl;h=b08e5dbe0a176f7494cc34b47e3ac09e631fb644;hb=09a8d6876080e8b3ee6f0570b7d60ce447d5e0eb;hp=56162d5439f2968d31ff39f0dcf137c394c5d27e;hpb=ecf1e7ec32290b1614a414086f04485a987c5f98;p=kivitendo-erp.git 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"}; }