projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c60c24
)
Zirkuläres Include TaxKey -> Chart -> TaxKey aufbrechen
author
Sven Schöling
<s.schoeling@linet-services.de>
Fri, 21 Jun 2013 08:30:41 +0000
(10:30 +0200)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Tue, 25 Jun 2013 12:22:32 +0000
(14:22 +0200)
SL/DB/Chart.pm
patch
|
blob
|
history
diff --git
a/SL/DB/Chart.pm
b/SL/DB/Chart.pm
index
70019c6
..
718d422
100644
(file)
--- a/
SL/DB/Chart.pm
+++ b/
SL/DB/Chart.pm
@@
-4,7
+4,6
@@
use strict;
use SL::DB::MetaSetup::Chart;
use SL::DB::Manager::Chart;
-use SL::DB::TaxKey;
__PACKAGE__->meta->add_relationships(taxkeys => { type => 'one to many',
class => 'SL::DB::TaxKey',
@@
-17,6
+16,7
@@
__PACKAGE__->meta->initialize;
sub get_active_taxkey {
my ($self, $date) = @_;
$date ||= DateTime->today_local;
+ require SL::DB::TaxKey;
return SL::DB::Manager::TaxKey->get_all(query => [ and => [ chart_id => $self->id,
startdate => { le => $date } ] ],
sort_by => "startdate DESC")->[0];