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

SF.net SVN: ledger-smb:[5837] trunk



Revision: 5837
          http://sourceforge.net/p/ledger-smb/code/5837
Author:   einhverfr
Date:     2013-05-20 09:37:00 +0000 (Mon, 20 May 2013)
Log Message:
-----------
Fixing bug 799, default_reportable checkboxes not being respected

Modified Paths:
--------------
    trunk/Changelog
    trunk/LedgerSMB/AA.pm
    trunk/bin/io.pl
    trunk/bin/ir.pl
    trunk/bin/is.pl

Modified: trunk/Changelog
===================================================================
--- trunk/Changelog	2013-05-20 08:24:19 UTC (rev 5836)
+++ trunk/Changelog	2013-05-20 09:37:00 UTC (rev 5837)
@@ -96,6 +96,7 @@
 * Fixed double-counting first date's balance on gl report (Chris T)
 * 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)
 
 Changelog for 1.3.32
 * Fixed em-dash handling for pdfs (Chris T)

Modified: trunk/LedgerSMB/AA.pm
===================================================================
--- trunk/LedgerSMB/AA.pm	2013-05-20 08:24:19 UTC (rev 5836)
+++ trunk/LedgerSMB/AA.pm	2013-05-20 09:37:00 UTC (rev 5837)
@@ -836,10 +836,11 @@
 			  b.discount AS tradediscount, 
 		          b.description AS business, 
 			  entity.control_code as entity_control_code,
-			  c.meta_number, ecl.*
+			  c.meta_number, ecl.*, ctf.default_reportable
 		     FROM entity_credit_account c
 		     JOIN entity ON (entity.id = c.entity_id)
 		LEFT JOIN business b ON (b.id = c.business_id)
+                LEFT JOIN country_tax_form ctf ON ctf.id = c.taxform_id
                 LEFT JOIN (SELECT coalesce(line_one, '')
                                || ' ' || coalesce(line_two, '') as address,
                                l.city, etl.credit_id

Modified: trunk/bin/io.pl
===================================================================
--- trunk/bin/io.pl	2013-05-20 08:24:19 UTC (rev 5836)
+++ trunk/bin/io.pl	2013-05-20 09:37:00 UTC (rev 5837)
@@ -348,7 +348,7 @@
 
         
         $taxchecked="";
-	if($form->{"taxformcheck_$i"})
+	if($form->{"taxformcheck_$i"} or ($i == $form->{rowcount} and $form->{default_reportable}))
 	{
 		$taxchecked="checked";
 

Modified: trunk/bin/ir.pl
===================================================================
--- trunk/bin/ir.pl	2013-05-20 08:24:19 UTC (rev 5836)
+++ trunk/bin/ir.pl	2013-05-20 09:37:00 UTC (rev 5837)
@@ -461,7 +461,7 @@
     $form->hide_form(
         qw(id title vc type terms creditlimit creditremaining closedto locked 
            shipped oldtransdate recurring reverse batch_id subtype form_id
-           separate_duties nextsub)
+           separate_duties nextsub default_reportable)
     );
 
     print qq|

Modified: trunk/bin/is.pl
===================================================================
--- trunk/bin/is.pl	2013-05-20 08:24:19 UTC (rev 5836)
+++ trunk/bin/is.pl	2013-05-20 09:37:00 UTC (rev 5837)
@@ -460,7 +460,7 @@
         qw(form_id id type printed emailed queued title vc terms discount 
            creditlimit creditremaining tradediscount business closedto locked 
            shipped oldtransdate recurring reverse batch_id subtype 
-           meta_number separate_duties nextsub)
+           meta_number separate_duties nextsub default_reportable)
     );
 
     if ($form->{notice}){

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