summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--LedgerSMB/AM.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/LedgerSMB/AM.pm b/LedgerSMB/AM.pm
index 09de5f6b..cb710b15 100644
--- a/LedgerSMB/AM.pm
+++ b/LedgerSMB/AM.pm
@@ -1698,6 +1698,7 @@ sub closebooks {
else {
$val = 0;
}
+ $val = undef if ($_ == 'closedto' and $val = 0);
$sth->execute( $val, $_ );
}