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

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



Revision: 6016
          http://sourceforge.net/p/ledger-smb/code/6016
Author:   einhverfr
Date:     2013-09-13 15:21:20 +0000 (Fri, 13 Sep 2013)
Log Message:
-----------
better error handling for missing years in tax form reports

Modified Paths:
--------------
    branches/1.3/Changelog
    branches/1.3/scripts/taxform.pl

Modified: branches/1.3/Changelog
===================================================================
--- branches/1.3/Changelog	2013-09-13 15:19:45 UTC (rev 6015)
+++ branches/1.3/Changelog	2013-09-13 15:21:20 UTC (rev 6016)
@@ -13,6 +13,7 @@
 * Fixed on hold throwing http 500 errors (Chris T and Nick P, 872)
 * Fixed on hold not available for ar/ap transactions (Chris T, 838)
 * Fixed single payments screen confusing (Chris T, 856)
+* Fixed confusing error on tax form reports (Chris T, 883)
 
 
 Changelog for 1.3.34

Modified: branches/1.3/scripts/taxform.pl
===================================================================
--- branches/1.3/scripts/taxform.pl	2013-09-13 15:19:45 UTC (rev 6015)
+++ branches/1.3/scripts/taxform.pl	2013-09-13 15:21:20 UTC (rev 6016)
@@ -128,6 +128,13 @@
     
     
     my ($request) = @_;
+    if (!$request->{begin_year}){
+        $request->error($request->{_locale}->text('Beginning year required'));
+    }
+    if (!$request->{end_year}){
+        $request->error($request->{_locale}->text('Ending year required'));
+    }
+        
     if (!$request->{format}){
        $request->{format} = 'HTML';
     }

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


------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits