summaryrefslogtreecommitdiff
path: root/LedgerSMB/AM.pm
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB/AM.pm')
-rwxr-xr-xLedgerSMB/AM.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/LedgerSMB/AM.pm b/LedgerSMB/AM.pm
index 751b015f..dfc16c19 100755
--- a/LedgerSMB/AM.pm
+++ b/LedgerSMB/AM.pm
@@ -1698,6 +1698,7 @@ sub closebooks {
else {
$val = 0;
}
+ $val = undef if ($_ eq 'closedto' and $val == 0);
$sth->execute( $val, $_ );
}