Skip to content

Commit

Permalink
FIX : PR Returns
Browse files Browse the repository at this point in the history
  • Loading branch information
atm-adrien committed Sep 18, 2024
1 parent 539ef93 commit d6eab79
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions htdocs/accountancy/journal/bankjournal.php
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,6 @@
if (is_array($links) && count($links) > 0) {
// Test if entry is for a social contribution, salary or expense report.
// In such a case, we will ignore the bank url line for user
$is_exp = false;
$is_sc = false;
$is_salary = false;
$is_expensereport = false;
Expand All @@ -359,7 +358,7 @@

// Now loop on each link of record in bank (code similar to bankentries_list.php)
foreach ($links as $key => $val) {
if ($links[$key]['type'] == 'user' && !$is_sc && !$is_salary && !$is_exp) {
if ($links[$key]['type'] == 'user' && !$is_sc && !$is_salary && !$is_expensereport) {
// We must avoid as much as possible this "continue". If we want to jump to next loop, it means we don't want to process
// the case the link is user (often because managed by hard coded code into another link), and we must avoid this.
continue;
Expand Down

0 comments on commit d6eab79

Please sign in to comment.