Revision 5c95eda7
Von Jan Büren vor mehr als 4 Jahren hinzugefügt
bin/mozilla/ap.pl | ||
---|---|---|
468 | 468 |
setup_ap_display_form_action_bar(); |
469 | 469 |
|
470 | 470 |
$form->header(); |
471 |
|
|
472 |
my $transdate = $::form->{transdate} ? DateTime->from_kivitendo($::form->{transdate}) : DateTime->today_local; |
|
471 |
# get the correct date for tax |
|
472 |
my $transdate = $::form->{transdate} ? DateTime->from_kivitendo($::form->{transdate}) : DateTime->today_local; |
|
473 |
my $deliverydate = $::form->{deliverydate} ? DateTime->from_kivitendo($::form->{deliverydate}) : undef; |
|
474 |
my $taxdate = $deliverydate ? $deliverydate : $transdate; |
|
475 |
# helper for loop |
|
473 | 476 |
my $first_taxchart; |
474 | 477 |
|
475 | 478 |
for my $i (1 .. $form->{rowcount}) { |
... | ... | |
485 | 488 |
} |
486 | 489 |
my $amount_chart_id = $form->{"AP_amount_chart_id_$i"} || $default_ap_amount_chart_id; |
487 | 490 |
|
488 |
my @taxcharts = GL->get_active_taxes_for_chart($amount_chart_id, $transdate, $used_tax_id);
|
|
491 |
my @taxcharts = GL->get_active_taxes_for_chart($amount_chart_id, $taxdate, $used_tax_id);
|
|
489 | 492 |
foreach my $item (@taxcharts) { |
490 | 493 |
my $key = $item->id . "--" . $item->rate; |
491 | 494 |
$first_taxchart //= $item; |
Auch abrufbar als: Unified diff
Kreditoren- Debitorenbuchung: Lieferdatum für die Steuer berücksichtigen