X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=gl%2Fmanage%2Fcurrencies.php;h=b14b79fde4c4e7a4114a73e008a51b93fd107812;hb=2b57e354f43e55afc49a4c776fa7023f58c99a62;hp=c040e173fe68b1a92d8b0a5e98c2bbb3967c158b;hpb=d9b4de9d7e9d3ba77f6ece752fd6cc988effd8f1;p=fa-stable.git diff --git a/gl/manage/currencies.php b/gl/manage/currencies.php index c040e173..b14b79fd 100644 --- a/gl/manage/currencies.php +++ b/gl/manage/currencies.php @@ -101,7 +101,7 @@ function check_can_delete() return false; } - if (key_in_foreign_table($curr, 'company', 'curr_default', true)) + if ($curr == get_company_pref('curr_default')) { display_error(_("Cannot delete this currency, because the company preferences uses this currency.")); return false;