Revision 5b4ef61a
SL/Form.pm | ||
---|---|---|
3356 | 3356 |
my $tax_id = $self->{"tax_id_$i"}; |
3357 | 3357 |
|
3358 | 3358 |
my $selected_tax = SL::DB::Manager::Tax->find_by(id => "$tax_id"); |
3359 |
|
|
3360 |
if ( $selected_tax && $selected_tax->taxkey ne '94') { |
|
3361 |
|
|
3359 |
if ( $selected_tax && !$selected_tax->reverse_charge_chart_id) { |
|
3362 | 3360 |
if ( $buysell eq 'sell' ) { |
3363 | 3361 |
$self->{AR_amounts}{"tax_$i"} = $selected_tax->chart->accno if defined $selected_tax->chart; |
3364 | 3362 |
} else { |
... | ... | |
3369 | 3367 |
$self->{"taxrate_$i"} = $selected_tax->rate; |
3370 | 3368 |
}; |
3371 | 3369 |
|
3372 |
$self->{"taxkey_$i"} = $selected_tax->taxkey if $selected_tax->taxkey eq '94';
|
|
3370 |
$self->{"taxkey_$i"} = $selected_tax->taxkey if ($selected_tax && $selected_tax->reverse_charge_chart_id);
|
|
3373 | 3371 |
|
3374 | 3372 |
($self->{"amount_$i"}, $self->{"tax_$i"}) = $self->calculate_tax($self->{"amount_$i"},$self->{"taxrate_$i"},$taxincluded,$roundplaces); |
3375 | 3373 |
|
Auch abrufbar als: Unified diff
Kreditorenbuchung reverse charge auch für Steuerschlüssel 18 und 19