Skip to content

Commit

Permalink
Merge pull request #5141 from aspangaro/3.8-p3
Browse files Browse the repository at this point in the history
FIX: Accountancy - 3.8 - Chart of accounts are limited on only one country
  • Loading branch information
eldy committed May 5, 2016
2 parents 53386e2 + e6843a6 commit 06eeb0c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions htdocs/accountancy/admin/index.php
Expand Up @@ -208,10 +208,9 @@
print "<td>";
print '<select class="flat" name="chartofaccounts" id="chartofaccounts">';

$sql = "SELECT rowid, pcg_version, fk_pays, label, active";
$sql = "SELECT rowid, pcg_version, label, active";
$sql .= " FROM " . MAIN_DB_PREFIX . "accounting_system";
$sql .= " WHERE active = 1";
$sql .= " AND fk_pays = " . $mysoc->country_id;

dol_syslog('accountancy/admin/index.php:: $sql=' . $sql);
$resql = $db->query($sql);
Expand All @@ -227,7 +226,7 @@

print '<option value="' . $row[0] . '"';
print $conf->global->CHARTOFACCOUNTS == $row[0] ? ' selected' : '';
print '>' . $row[1] . ' - ' . $row[3] . '</option>';
print '>' . $row[1] . ' - ' . $row[2] . '</option>';

$i ++;
}
Expand Down

0 comments on commit 06eeb0c

Please sign in to comment.