summaryrefslogtreecommitdiff
path: root/LedgerSMB/AA.pm
diff options
context:
space:
mode:
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} ) {