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

SF.net SVN: ledger-smb:[4165] branches/1.3/bin/io.pl



Revision: 4165
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=4165&view=rev
Author:   tshvr
Date:     2011-12-08 09:00:24 +0000 (Thu, 08 Dec 2011)
Log Message:
-----------
enable new_item on sales invoice if language set in print option

Modified Paths:
--------------
    branches/1.3/bin/io.pl

Modified: branches/1.3/bin/io.pl
===================================================================
--- branches/1.3/bin/io.pl	2011-12-08 08:56:41 UTC (rev 4164)
+++ branches/1.3/bin/io.pl	2011-12-08 09:00:24 UTC (rev 4165)
@@ -741,9 +741,11 @@
 
 sub new_item {
 
-    if ( $form->{language_code} && $form->{"description_$form->{rowcount}"} ) {
-        $form->error( $locale->text('Translation not on file!') );
-    }
+    #print STDERR localtime()." HV io.pl new_item \$form->{rowcount}=$form->{rowcount} \$form->{language_code}=$form->{language_code} description=".$form->{"description_$form->{rowcount}"}."\n";
+    #HV commented out,ohterwise unable to bring in new article on Sales Invoice if $printops->{lang} set. What was the meaning of this code?
+    #if ( $form->{language_code} && $form->{"description_$form->{rowcount}"} ) {
+        #$form->error( $locale->text('Translation not on file!') );
+    #}
 
     # change callback
     $form->{old_callback} = $form->escape( $form->{callback}, 1 );

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