summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xLedgerSMB/Form.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm
index dce093c3..65923296 100755
--- a/LedgerSMB/Form.pm
+++ b/LedgerSMB/Form.pm
@@ -2234,11 +2234,9 @@ sub lastname_used {
$trans_id *= 1;
- my $DAYS = ($myconfig->{dbdriver} eq 'DB2') ? "DAYS" : "";
-
$query = qq|
SELECT ct.name AS $vc, a.curr AS currency, a.${vc}_id,
- current_date + ct.terms $DAYS AS duedate,
+ current_date + ct.terms AS duedate,
a.department_id, d.description AS department, ct.notes,
ct.curr AS currency
FROM $arap a