projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
flush_dir() and company_path() moved to current_uer.php file.
[fa-stable.git]
/
gl
/
manage
/
currencies.php
diff --git
a/gl/manage/currencies.php
b/gl/manage/currencies.php
index c040e173fe68b1a92d8b0a5e98c2bbb3967c158b..b14b79fde4c4e7a4114a73e008a51b93fd107812 100644
(file)
--- a/
gl/manage/currencies.php
+++ b/
gl/manage/currencies.php
@@
-101,7
+101,7
@@
function check_can_delete()
return false;
}
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;
{
display_error(_("Cannot delete this currency, because the company preferences uses this currency."));
return false;