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

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



Revision: 2378
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=2378&view=rev
Author:   einhverfr
Date:     2008-10-24 22:03:29 +0000 (Fri, 24 Oct 2008)

Log Message:
-----------
Adds add_co_code and moves to RAISE EXCEPTION for errors which prevent going forward

Modified Paths:
--------------
    trunk/LedgerSMB/GL.pm
    trunk/UI/Contact/contact.css
    trunk/UI/Contact/contact.html
    trunk/scripts/drafts.pl

Modified: trunk/LedgerSMB/GL.pm
===================================================================
--- trunk/LedgerSMB/GL.pm	2008-10-22 20:29:16 UTC (rev 2377)
+++ trunk/LedgerSMB/GL.pm	2008-10-24 22:03:29 UTC (rev 2378)
@@ -564,6 +564,7 @@
         my $results = $sth->fetchall_hashref('setting_key');
         $form->{closedto} = $results->{'closedto'}->{'value'};
         $form->{revtrans} = $results->{'revtrans'}->{'value'};
+        #$form->{separate_duties} = $results->{'separate_duties'}->{'value'};
         $sth->finish;
 
         $query = qq|SELECT g.*, d.description AS department

Modified: trunk/UI/Contact/contact.css
===================================================================
--- trunk/UI/Contact/contact.css	2008-10-22 20:29:16 UTC (rev 2377)
+++ trunk/UI/Contact/contact.css	2008-10-24 22:03:29 UTC (rev 2378)
@@ -31,3 +31,29 @@
 div label {
 	margin-left: 1em;
 }
+
+/* This shouldnot go in SVN trunk */
+#company_div .note_contents {
+	display: none;
+}
+
+table {
+	width: 100%;
+}
+
+#credit-row { 
+	display: none;
+}
+
+#discount-gifi-row {
+	display: none;
+}
+
+#line-two {
+	display: none;
+}
+
+#line-three {
+	display: none;
+}
+

Modified: trunk/UI/Contact/contact.html
===================================================================
--- trunk/UI/Contact/contact.html	2008-10-22 20:29:16 UTC (rev 2377)
+++ trunk/UI/Contact/contact.html	2008-10-24 22:03:29 UTC (rev 2378)
@@ -234,6 +234,9 @@
 </div>
 <?lsmb END ?>
 </div>
+<?lsmb IF entity_id;
+INCLUDE 'rates_div.html';
+END -?>
 <?lsmb IF entity_id ?>
 <div id="credit_div">
 <div class="listtop"><strong>Accounts</strong></div>
@@ -545,6 +548,24 @@
 			type = "text",
 			size = "20"
 		} ?>
+		<!-- 
+			if the following button and script show up in svn 
+			/trunk, please remove them.  -CT -->
+		<script type="text/javascript">
+			function show_lines(){
+				var e;
+				e = document.getElementById('line-two');
+				e.style.display = 'inline';
+				e = document.getElementById('line-three');
+				e.style.display = 'inline';
+				e = document.getElementById('show-lines-button');
+				e.style.display = 'none';
+				return false;
+			}
+		</script>
+		<button onclick="javascript: return show_lines()" 
+			id="show-lines-button" type="button"><?lsmb text('Show More Lines') ?>
+		</button> <!-- end custom section -->
 	</div>
 	<div> 
 		<?lsmb PROCESS input element_data = {

Modified: trunk/scripts/drafts.pl
===================================================================
--- trunk/scripts/drafts.pl	2008-10-22 20:29:16 UTC (rev 2377)
+++ trunk/scripts/drafts.pl	2008-10-24 22:03:29 UTC (rev 2378)
@@ -11,7 +11,7 @@
     $request->{class_types} = [
 	{text => $request->{_locale}->text('AR'),  value => 'ar'},
 	{text => $request->{_locale}->text('AP'),  value => 'ap'},
-	{text => $request->{_locale}->text('GL'),  value => 'GL'},
+	{text => $request->{_locale}->text('GL'),  value => 'gl'},
     ];
     my $template = LedgerSMB::Template->new(
         user =>$request->{_user}, 


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