[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[5841] branches/1.3



Revision: 5841
          http://sourceforge.net/p/ledger-smb/code/5841
Author:   einhverfr
Date:     2013-05-20 11:46:43 +0000 (Mon, 20 May 2013)
Log Message:
-----------
Fixing bug 811, dropdowns not respected in tax report

Modified Paths:
--------------
    branches/1.3/Changelog
    branches/1.3/bin/rp.pl

Modified: branches/1.3/Changelog
===================================================================
--- branches/1.3/Changelog	2013-05-20 11:45:15 UTC (rev 5840)
+++ branches/1.3/Changelog	2013-05-20 11:46:43 UTC (rev 5841)
@@ -14,6 +14,7 @@
 * Fixed user creation failing on some timezones with some datestyles (Chris T)
 * Added secondary partnumber ordering to eca history report (Chris T)
 * Fixed default_reportable not respected for invoices (Chris T, 799)
+* Fixed dropdowns not affecting date range in tax reports (Chris T, 811)
 
 Changelog for 1.3.32
 * Fixed em-dash handling for pdfs (Chris T)

Modified: branches/1.3/bin/rp.pl
===================================================================
--- branches/1.3/bin/rp.pl	2013-05-20 11:45:15 UTC (rev 5840)
+++ branches/1.3/bin/rp.pl	2013-05-20 11:46:43 UTC (rev 5841)
@@ -1667,6 +1667,11 @@
 
 
 sub generate_tax_report {
+    if ($form->{fromyear} and $form->{frommonth}){
+        ($form->{fromdate}, $form->{todate}) = $form->from_to(
+              $form->{fromyear}, $form->{frommonth}, $form->{interval}
+        );
+    }
     RP->tax_report( \%myconfig, $form );
 
     my %hiddens;

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.