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

SF.net SVN: ledger-smb: [1312] trunk/bin



Revision: 1312
          http://svn.sourceforge.net/ledger-smb/?rev=1312&view=rev
Author:   einhverfr
Date:     2007-06-22 15:04:57 -0700 (Fri, 22 Jun 2007)

Log Message:
-----------
Removed additional reference to employees table.  Fixed handling of the dates when closed books are used

Modified Paths:
--------------
    trunk/bin/is.pl
    trunk/bin/pw.pl

Modified: trunk/bin/is.pl
===================================================================
--- trunk/bin/is.pl	2007-06-22 21:10:31 UTC (rev 1311)
+++ trunk/bin/is.pl	2007-06-22 22:04:57 UTC (rev 1312)
@@ -219,7 +219,7 @@
     $form->{paidaccounts} = 1 unless ( exists $form->{paidaccounts} );
 
     $form->{AR} = $form->{AR_1} unless $form->{id};
-
+    $form->{transdate} = $form->{current_date} if (!$form->{transdate});
     $form->{locked} =
       ( $form->{revtrans} )
       ? '1'

Modified: trunk/bin/pw.pl
===================================================================
--- trunk/bin/pw.pl	2007-06-22 21:10:31 UTC (rev 1311)
+++ trunk/bin/pw.pl	2007-06-22 22:04:57 UTC (rev 1312)
@@ -50,14 +50,15 @@
         $attr->{value} = $form->{$_};
         push @{$form->{hidden}}, $attr;
     }
-    my $template = Template->new(
+    my $template = LedgerSMB::Template->new(
         user => \%myconfig, 
         locale => $locale,
         path => 'UI',
-        template => 'get_password.html',
+        template => 'get_password',
         format => 'HTML'
     );
     $template->render($form);
+    $template->output('http');
     exit;
 }
 


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