[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[6484] trunk/LedgerSMB/Report
- Subject: SF.net SVN: ledger-smb:[6484] trunk/LedgerSMB/Report
- From: ..hidden..
- Date: Thu, 16 Jan 2014 13:30:34 +0000
Revision: 6484
http://sourceforge.net/p/ledger-smb/code/6484
Author: einhverfr
Date: 2014-01-16 13:30:31 +0000 (Thu, 16 Jan 2014)
Log Message:
-----------
Fixing omitted account descriptions when comparison range includes more accounts.
Modified Paths:
--------------
trunk/LedgerSMB/Report/Balance_Sheet.pm
trunk/LedgerSMB/Report/PNL.pm
Modified: trunk/LedgerSMB/Report/Balance_Sheet.pm
===================================================================
--- trunk/LedgerSMB/Report/Balance_Sheet.pm 2014-01-16 12:59:48 UTC (rev 6483)
+++ trunk/LedgerSMB/Report/Balance_Sheet.pm 2014-01-16 13:30:31 UTC (rev 6484)
@@ -178,6 +178,7 @@
}
push @{$old_sheet->{$type}->{lines}},
{account_number => $line->{account_number},
+ account_desc => $line->{account_desc},
balance => '---' } unless $found;
}
}
Modified: trunk/LedgerSMB/Report/PNL.pm
===================================================================
--- trunk/LedgerSMB/Report/PNL.pm 2014-01-16 12:59:48 UTC (rev 6483)
+++ trunk/LedgerSMB/Report/PNL.pm 2014-01-16 13:30:31 UTC (rev 6484)
@@ -159,7 +159,8 @@
my $new_ad = $new_pnl->account_data;
for my $cat (qw(I E)){
for my $k (keys %{$new_ad->{$cat}}){
- $old_ad->{$cat}->{$k} ||= 0;
+ $old_ad->{$cat}->{$k}->{main}->{account_description}
+ ||= $new_ad->{$cat}->{$k}->{main}->{account_description};
}
}
push @$comparisons, {from_date => $new_pnl->from_date,
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits