Skip to content

Commit

Permalink
Update api_setup.class.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ptibogxiv committed May 6, 2019
1 parent 80ed080 commit 96cc4f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/api/class/api_setup.class.php
Expand Up @@ -474,7 +474,7 @@ public function getListOfCurrencies($multicurrency = 0, $sortfield = "code_iso",
$sql.= " WHERE t.active = ".$active;
if (!empty($multicurrency)) {
$sql.= " AND m.entity IN (".getEntity('multicurrency').")";
if (!empty($multicurrency) && $multicurrecny != 2) $sql.= " AND cr.date_sync = (SELECT MAX(cr2.date_sync) FROM ".MAIN_DB_PREFIX."multicurrency_rate AS cr2 WHERE cr2.fk_multicurrency = m.rowid)";
if (!empty($multicurrency) && $multicurrency != 2) $sql.= " AND cr.date_sync = (SELECT MAX(cr2.date_sync) FROM ".MAIN_DB_PREFIX."multicurrency_rate AS cr2 WHERE cr2.fk_multicurrency = m.rowid)";
}

// Add sql filters
Expand Down

0 comments on commit 96cc4f7

Please sign in to comment.