summaryrefslogtreecommitdiff
path: root/LedgerSMB/AA.pm
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB/AA.pm')
-rw-r--r--LedgerSMB/AA.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/LedgerSMB/AA.pm b/LedgerSMB/AA.pm
index 649856a1..c539a34a 100644
--- a/LedgerSMB/AA.pm
+++ b/LedgerSMB/AA.pm
@@ -70,8 +70,6 @@ sub post_transaction {
# connect to database
my $dbh = $form->{dbh};
- $form->{invnumber} = $form->update_defaults( $myconfig, $invnumber )
- unless $form->{invnumber};
my $query;
my $sth;
@@ -94,6 +92,8 @@ sub post_transaction {
$ml = -1;
$invnumber = "vinumber";
}
+ $form->{invnumber} = $form->update_defaults( $myconfig, $invnumber )
+ unless $form->{invnumber};
if ( $form->{currency} eq $form->{defaultcurrency} ) {
$form->{exchangerate} = 1;