Skip to content

Commit

Permalink
CIVIQBO-105 Remove incorrect accounts_needs_update condition on invoi…
Browse files Browse the repository at this point in the history
…cePull.
  • Loading branch information
agileware-fj authored and agileware-dev committed Oct 16, 2023
1 parent b057ce6 commit 4bf559d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions CRM/Civiquickbooks/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -958,14 +958,12 @@ protected function findPullContributions($params, $limit) {
->addWhere('accounts_invoice_id', 'IS NOT NULL')
->addWhere('accounts_data', 'IS NOT NULL')
->addWhere('error_data', 'IS NULL')
->addOrderBy('error_data', 'ASC')
->setLimit($limit);

if (isset($params['contribution_id'])) {
$accountInvoices->addWhere('contribution_id', '=', $params['contribution_id']);
}
else {
$accountInvoices->addWhere('accounts_needs_update', '=', TRUE);
}

return $accountInvoices->execute()->getArrayCopy();
}

Expand Down

0 comments on commit 4bf559d

Please sign in to comment.