Revision 96717bed
Von Sven Schöling vor mehr als 10 Jahren hinzugefügt
SL/DB/Chart.pm | ||
---|---|---|
16 | 16 |
sub get_active_taxkey { |
17 | 17 |
my ($self, $date) = @_; |
18 | 18 |
$date ||= DateTime->today_local; |
19 |
|
|
20 |
my $cache = $::request->{cache}{chart}{$date}; |
|
21 |
if ($cache->{$self->id}) { |
|
22 |
return $cache->{$self->id}; |
|
23 |
} |
|
24 |
|
|
19 | 25 |
require SL::DB::TaxKey; |
20 | 26 |
return SL::DB::Manager::TaxKey->get_all(query => [ and => [ chart_id => $self->id, |
21 | 27 |
startdate => { le => $date } ] ], |
Auch abrufbar als: Unified diff
PriceTaxCalculator: chart->taxkey lookup vorberechnen