Skip to content

Commit

Permalink
Fix Balance Sheet & Income Tax comparisons report by periods
Browse files Browse the repository at this point in the history
  • Loading branch information
ylavoie committed Apr 21, 2024
1 parent d959551 commit 52ab207
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
7 changes: 7 additions & 0 deletions lib/LedgerSMB/Report/Balance_Sheet.pm
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ Boolean, true if it is a gifi report.

has gifi => (is => 'rw', isa => 'Bool');

=item from_date
=item to_date
Dates come from LedgerSMB::Report::Dates
=cut

=item legacy_hierarchy
Boolean, true if the regular hierarchies need to be ignored,
Expand Down
7 changes: 7 additions & 0 deletions lib/LedgerSMB/Report/PNL.pm
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ Boolean, true if it is a gifi report.

has gifi => (is => 'rw', isa => 'Bool');

=item from_date
=item to_date
Dates come from LedgerSMB::Report::Dates
=cut

=item legacy_hierarchy
Boolean, true if the regular hierarchies need to be ignored,
Expand Down
3 changes: 1 addition & 2 deletions lib/LedgerSMB/Scripts/pnl.pm
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,8 @@ sub generate_income_statement {
$rpt = LedgerSMB::Report::PNL::Income_Statement->new(
%$request,
formatter_options => $request->formatter_options,
from_date => $request->parse_date( $request->{from_date} ),
to_date => $request->parse_date( $request->{to_date} ),
column_path_prefix => [ 0 ]);
#die np $rpt;
$rpt->run_report($request);

for my $key (qw(from_month from_year from_date to_date interval)) {
Expand Down
2 changes: 0 additions & 2 deletions lib/LedgerSMB/Scripts/reports.pm
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,6 @@ sub generate_balance_sheet {
my $rpt = LedgerSMB::Report::Balance_Sheet->new(
%$request,
formatter_options => $request->formatter_options,
from_date => $request->parse_date( $request->{from_date} ),
to_date => $request->parse_date( $request->{to_date} ),
column_path_prefix => [ 0 ]);
$rpt->run_report($request);

Expand Down

0 comments on commit 52ab207

Please sign in to comment.