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

SF.net SVN: ledger-smb:[5844] trunk/UI/Contact/divs/credit.html



Revision: 5844
          http://sourceforge.net/p/ledger-smb/code/5844
Author:   einhverfr
Date:     2013-05-20 13:57:50 +0000 (Mon, 20 May 2013)
Log Message:
-----------
Adding tax included to new interface.  This portion not portable to 1.3 (will commit portable portion separately

Modified Paths:
--------------
    trunk/UI/Contact/divs/credit.html

Modified: trunk/UI/Contact/divs/credit.html
===================================================================
--- trunk/UI/Contact/divs/credit.html	2013-05-20 13:01:12 UTC (rev 5843)
+++ trunk/UI/Contact/divs/credit.html	2013-05-20 13:57:50 UTC (rev 5844)
@@ -259,20 +259,36 @@
         <div class="listtop"><?lsmb text('Taxes') ?></div>
         <?lsmb FOR tx = all_taxes ?> 
         <div class="inputrow" id="taxrow-<?lsmb tx.chart_id ?>">
-        <span class="lable" id="txlabel-<?lsmb tx.chart_id ?>">
-            <?lsmb tx.accno ?>--<?lsmb tx.description ?></span>
-        <span class="input" id="txinput-<?lsmb tx.id ?>">
+        
             <?lsmb checked = "";  
                    IF credit_act.tax_ids.grep(tx.id).size == 1;
                        checked = "CHECKED";
                    END;
-                   INCLUDE input element_data = {
+                   INCLUDE input 
+                           element_data = {
+                           label =  tx.accno _ '--' _ tx.description
                            type = "checkbox"
                            checked = checked
                            name = "taxact_$tx.id"
                            value = tx.id
-                   } ?><span></div>
+                   } ?></div>
         <?lsmb END # FOR tx ?>
+        <div class="inputrow" id="taxincludedrow">
+            <?lsmb 
+
+               checked = '';
+               IF credit_act.taxinclude;
+                   checked='CHECKED';
+               END;
+               INCLUDE input
+                           element_data = {
+                                 label =  text('Tax Included') #'
+                                  type = "checkbox"
+                               checked = checked
+                                  name = "taxincluded"
+                                 value = '1'
+                            } 
+            ?> 
          </div>
 		<?lsmb IF credit_act.id;
 		INCLUDE button element_data = {

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