summaryrefslogtreecommitdiff
path: root/LedgerSMB/AA.pm
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2008-01-30 20:25:16 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2008-01-30 20:25:16 +0000
commit4815ab592f3bfc992f25c0ea6c25929fbfa0ab4b (patch)
tree39821fbac0795a59093df6117fb32f13506df73e /LedgerSMB/AA.pm
parent49f36d0388f7eb8633736e145646907fe72bae86 (diff)
Correcting date range dropdown issues in AP Outstanding report.
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@2066 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'LedgerSMB/AA.pm')
-rw-r--r--LedgerSMB/AA.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/LedgerSMB/AA.pm b/LedgerSMB/AA.pm
index 3e112e11..0834d255 100644
--- a/LedgerSMB/AA.pm
+++ b/LedgerSMB/AA.pm
@@ -746,10 +746,12 @@ sub transactions {
$table = 'ap';
$buysell = 'sell';
}
+ $form->{db_dateformat} = $myconfig->{dateformat};
( $form->{transdatefrom}, $form->{transdateto} ) =
$form->from_to( $form->{year}, $form->{month}, $form->{interval} )
- if $form->{year} && $form->{month};
+ if (($form->{year} && $form->{month}) &&
+ (!$form->{transdatefrom} && !$form->{transdateto}));
my @paidargs = ();
if ( $form->{outstanding} ) {