summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-06-22 22:04:57 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-06-22 22:04:57 +0000
commit5b13adc06e2518157c89b574526e09358420b2bc (patch)
tree71aadc5b415f29b1330d13bbe978b0da6f9245de
parent6b19fa8dc91616a8eace6b76eae2b70b976823ff (diff)
Removed additional reference to employees table. Fixed handling of the dates when closed books are used
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1312 4979c152-3d1c-0410-bac9-87ea11338e46
-rw-r--r--bin/is.pl2
-rw-r--r--bin/pw.pl5
2 files changed, 4 insertions, 3 deletions
diff --git a/bin/is.pl b/bin/is.pl
index 4d68dde8..3f8f6daa 100644
--- a/bin/is.pl
+++ b/bin/is.pl
@@ -219,7 +219,7 @@ qq|<option value="$_->{description}--$_->{id}">$_->{description}\n|;
$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'
diff --git a/bin/pw.pl b/bin/pw.pl
index 99020906..bfa96c84 100644
--- a/bin/pw.pl
+++ b/bin/pw.pl
@@ -50,14 +50,15 @@ sub getpassword {
$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;
}