summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xLedgerSMB/Form.pm8
-rwxr-xr-xbin/aa.pl2
2 files changed, 4 insertions, 6 deletions
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm
index d582399a..b36f838f 100755
--- a/LedgerSMB/Form.pm
+++ b/LedgerSMB/Form.pm
@@ -2353,7 +2353,7 @@ sub create_links {
}
else {
- for (qw(current_date curr closedto revtrans)) {
+ for (qw(curr closedto revtrans)) {
$query = qq|
SELECT value FROM defaults
WHERE setting_key = '$_'|;
@@ -2365,15 +2365,13 @@ sub create_links {
if ( $_ eq 'curr' ) {
$self->{currencies} = $val;
}
- elsif ( $_ eq 'current_date' ) {
- $self->{transdate} = $val;
- }
else {
$self->{$_} = $val;
}
$sth->finish;
}
-
+
+ $self->{transdate} = $self->current_date;
if ( !$self->{"$self->{vc}_id"} ) {
$self->lastname_used( $myconfig, $dbh, $vc, $module );
}
diff --git a/bin/aa.pl b/bin/aa.pl
index f4e6c1b1..ee2e510e 100755
--- a/bin/aa.pl
+++ b/bin/aa.pl
@@ -573,7 +573,7 @@ qq|<textarea name=notes rows=$rows cols=50 wrap=soft>$form->{notes}</textarea>|;
</tr>
<tr>
<th align=right nowrap>| . $locale->text('Invoice Date') . qq|</th>
- <td><input name=transdate size=11 title="($myconfig{'dateformat'})" value=$form->{transdate}></td>
+ <td><input name=transdate size=11 title="($myconfig{'dateformat'})" value="$form->{transdate}"></td>
</tr>
<tr>
<th align=right nowrap>| . $locale->text('Due Date') . qq|</th>