X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/4247547d2a925ddad7006cae89e5f9f1fda7d469..55a2b610c7f5414345ac09e11afb9ac1120e51c7:/SL/Form.pm diff --git a/SL/Form.pm b/SL/Form.pm index 989a568cb..f94660648 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -3474,9 +3474,9 @@ sub calculate_arap { if ( $selected_tax ) { if ( $buysell eq 'sell' ) { - $self->{AR_amounts}{"tax_$i"} = $selected_tax->chart->accno unless $selected_tax->taxkey == 0; + $self->{AR_amounts}{"tax_$i"} = $selected_tax->chart->accno if defined $selected_tax->chart; } else { - $self->{AP_amounts}{"tax_$i"} = $selected_tax->chart->accno unless $selected_tax->taxkey == 0; + $self->{AP_amounts}{"tax_$i"} = $selected_tax->chart->accno if defined $selected_tax->chart; }; $self->{"taxkey_$i"} = $selected_tax->taxkey;