projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ParseFilter kann jetzt alle Rose Filter.
[kivitendo-erp.git]
/
SL
/
DB
/
Chart.pm
diff --git
a/SL/DB/Chart.pm
b/SL/DB/Chart.pm
index
42cd6c9
..
70019c6
100644
(file)
--- a/
SL/DB/Chart.pm
+++ b/
SL/DB/Chart.pm
@@
-3,6
+3,7
@@
package SL::DB::Chart;
use strict;
use SL::DB::MetaSetup::Chart;
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',
use SL::DB::TaxKey;
__PACKAGE__->meta->add_relationships(taxkeys => { type => 'one to many',
@@
-12,12
+13,11
@@
__PACKAGE__->meta->add_relationships(taxkeys => { type => 'one to many',
);
__PACKAGE__->meta->initialize;
);
__PACKAGE__->meta->initialize;
-__PACKAGE__->meta->make_manager_class;
sub get_active_taxkey {
my ($self, $date) = @_;
$date ||= DateTime->today_local;
sub get_active_taxkey {
my ($self, $date) = @_;
$date ||= DateTime->today_local;
- return SL::DB::Manager::TaxKey->get_all(
where
=> [ and => [ chart_id => $self->id,
+ return SL::DB::Manager::TaxKey->get_all(
query
=> [ and => [ chart_id => $self->id,
startdate => { le => $date } ] ],
sort_by => "startdate DESC")->[0];
}
startdate => { le => $date } ] ],
sort_by => "startdate DESC")->[0];
}