EekBoek
view release on metacpan or search on metacpan
lib/EB/Report/Journal.pm view on Meta::CPAN
$rep->add({ _style => 'total',
desc => __x("Totaal {pfx}", pfx => $pfx),
deb => numfmt($totd),
crd => numfmt($totc),
});
$rep->finish;
}
my %dbk_desc;
sub _dbk_desc {
$dbk_desc{$_[0]} ||= $dbh->lookup($_[0],
qw(Dagboeken dbk_id dbk_desc =));
}
my %dbk_type;
sub _dbk_type {
$dbk_type{$_[0]} ||= $dbh->lookup($_[0],
qw(Dagboeken dbk_id dbk_type =));
}
my %acc_desc;
sub _acc_desc {
return '' unless $_[0];
$acc_desc{$_[0]} ||= $dbh->lookup($_[0],
qw(Accounts acc_id acc_desc =));
}
my %acc_type;
sub _acc_type {
return '' unless $_[0];
$acc_type{$_[0]} ||= $dbh->lookup($_[0],
qw(Accounts acc_id acc_debcrd =));
}
package EB::Report::Journal::Text;
use EB;
use base qw(EB::Report::Reporter::Text);
use strict;
sub new {
my ($class, $opts) = @_;
$class->SUPER::new($opts->{STYLE}, $opts->{LAYOUT});
}
# Style mods.
sub style {
my ($self, $row, $cell) = @_;
my $style_data = {
_style => { skip_after => 1,
cancel_skip => 1,
},
desc => { indent => 2 },
bsk => { indent => 2 },
};
my $stylesheet = {
data => $style_data,
cdata => $style_data,
ddata => $style_data,
total => {
_style => { line_before => 1 },
# desc => { excess => 2 },
},
};
$cell = "_style" unless defined($cell);
return $stylesheet->{$row}->{$cell};
}
package EB::Report::Journal::Html;
use EB;
use base qw(EB::Report::Reporter::Html);
use strict;
sub new {
my ($class, $opts) = @_;
$class->SUPER::new($opts->{STYLE}, $opts->{LAYOUT});
}
package EB::Report::Journal::Csv;
use EB;
use base qw(EB::Report::Reporter::Csv);
sub new {
my ($class, $opts) = @_;
$class->SUPER::new($opts->{STYLE}, $opts->{LAYOUT});
}
1;
( run in 1.100 second using v1.01-cache-2.11-cpan-cdf2f3d4e48 )