summaryrefslogtreecommitdiff
path: root/LedgerSMB/AA.pm
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB/AA.pm')
-rwxr-xr-xLedgerSMB/AA.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/LedgerSMB/AA.pm b/LedgerSMB/AA.pm
index 92816650..f1606153 100755
--- a/LedgerSMB/AA.pm
+++ b/LedgerSMB/AA.pm
@@ -619,6 +619,10 @@ sub transactions {
$form->{open} = $form->{closed} = 0;
}
}
+ if ($form->{partsid}){
+ $where .= " AND a.id IN (select trans_id FROM invoice
+ WHERE parts_id = $form->{partsid})";
+ }
for (qw(ponumber shipvia notes)) {
if ($form->{$_}) {