Revision 5f1e9d7d
Von Tamino Steinert vor fast 2 Jahren hinzugefügt
SL/IR.pm | ||
---|---|---|
1716 | 1716 |
return $duedate; |
1717 | 1717 |
} |
1718 | 1718 |
|
1719 |
|
|
1720 |
sub get_taxes_dropdown { |
|
1721 |
my $transdate = $::form->{transdate} ? DateTime->from_kivitendo($::form->{transdate}) : DateTime->today_local; |
|
1722 |
my $deliverydate = $::form->{deliverydate} ? DateTime->from_kivitendo($::form->{deliverydate}) : undef; |
|
1723 |
my $item_deliverydate = $::form->{item_deliverydate} ? DateTime->from_kivitendo($::form->{item_deliverydate}) : undef; |
|
1724 |
|
|
1725 |
my @taxes = IO->get_active_taxes_for_chart($::form->{chart_id}, |
|
1726 |
$item_deliverydate // $deliverydate // $transdate); |
|
1727 |
my $html = $::form->parse_html_template("ir/update_taxes", { TAXES => \@taxes }); |
|
1728 |
|
|
1729 |
print $::form->ajax_response_header, $html; |
|
1730 |
} |
|
1731 |
|
|
1732 |
|
|
1733 | 1719 |
1; |
Auch abrufbar als: Unified diff
PurchaseInvoice: Entferne nicht genutzten Code