summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2008-02-24 03:22:35 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2008-02-24 03:22:35 +0000
commit55c970993842bbd97c28443558452cf896a29e86 (patch)
treeb945b05a5ee600cac1880dd575865637f6b566a3
parent7fe1b078c4978aa1b76816458f6ed7baeb6786ec (diff)
Merging inventory report fix from branches/1.2
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@2082 4979c152-3d1c-0410-bac9-87ea11338e46
-rw-r--r--LedgerSMB/RP.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/LedgerSMB/RP.pm b/LedgerSMB/RP.pm
index 40bc3d08..9c937bf6 100644
--- a/LedgerSMB/RP.pm
+++ b/LedgerSMB/RP.pm
@@ -48,12 +48,12 @@ sub inventory_activity {
my $where = '';
if ( $form->{fromdate} ) {
$where .=
- "AND coalesce(ar.duedate, ap.duedate) >= "
+ "AND coalesce(ar.transdate, ap.transdate) >= "
. $dbh->quote( $form->{fromdate} );
}
if ( $form->{todate} ) {
$where .=
- "AND coalesce(ar.duedate, ap.duedate) < "
+ "AND coalesce(ar.transdate, ap.transdate) < "
. $dbh->quote( $form->{todate} ) . " ";
}
if ( $form->{partnumber} ) {