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

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



Revision: 6458
          http://sourceforge.net/p/ledger-smb/code/6458
Author:   einhverfr
Date:     2014-01-14 08:45:49 +0000 (Tue, 14 Jan 2014)
Log Message:
-----------
fixing date display for validto dates.

Modified Paths:
--------------
    trunk/LedgerSMB/AM.pm
    trunk/UI/am-taxes.html

Modified: trunk/LedgerSMB/AM.pm
===================================================================
--- trunk/LedgerSMB/AM.pm	2014-01-14 05:46:07 UTC (rev 6457)
+++ trunk/LedgerSMB/AM.pm	2014-01-14 08:45:49 UTC (rev 6458)
@@ -1082,7 +1082,7 @@
 
     my $query = qq|
 		  SELECT c.id, c.accno, c.description, 
-		         t.rate * 100 AS rate, t.taxnumber, t.validto,
+		         t.rate * 100 AS rate, t.taxnumber, t.validto::date,
 			 t.minvalue, t.pass, m.taxmodulename
 		    FROM chart c
 		    LEFT JOIN

Modified: trunk/UI/am-taxes.html
===================================================================
--- trunk/UI/am-taxes.html	2014-01-14 05:46:07 UTC (rev 6457)
+++ trunk/UI/am-taxes.html	2014-01-14 08:45:49 UTC (rev 6458)
@@ -19,10 +19,27 @@
 <?lsmb FOREACH row IN rows; i = loop.count ?>
 	<tr>
 	  <th align="right"><?lsmb row.0 ?></th>
-	  <td><input name="taxrate_<?lsmb i ?>" size="6" value="<?lsmb form.item("taxrate_$i") ?>" /></td>
-	  <td><input name="minvalue_<?lsmb i ?>" size="6" value="<?lsmb form.item("minvalue_$i") ?>" /></td>
-	  <td><input name="taxnumber_<?lsmb i ?>" value="<?lsmb form.item("taxnumber_$i") ?>" /></td>
-	  <td><input class="date" id="validto-<?lsmb i ?>" name="validto_<?lsmb i ?>" size="11" value="<?lsmb form.item("validto_$i") ?>" title="<?lsmb user.dateformat ?>" /></td>
+          <td><?lsmb PROCESS input element_data = {
+               name = "taxrate_" _ i
+               size = 6
+              value = form.item("taxrate_$i")
+          } ?></td>
+          <td><?lsmb PROCESS input element_data = {
+               name = "minvalue_" _ i
+               size = 6
+              value = form.item("minvalue_$i")
+          } ?></td>
+          <td><?lsmb PROCESS input element_data = {
+               name = "taxnumber_" _ i
+               size = 6
+              value = form.item("taxnumber_$i")
+          } ?></td>
+          <td><?lsmb PROCESS input element_data = {
+               name = "validto_" _ i
+               size = 10
+              value = form.item("validto_$i")
+              class = "date"
+          } ?></td>
 	  <td><input name="pass_<?lsmb i ?>" size="6" value="<?lsmb form.item("pass_$i") ?>" /></td>
 	  <td><?lsmb PROCESS select element_data=row.1 ?></td>
 	</tr>

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