projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixes in sales reports to use debtor_trans.tax_included field instead of trans_tax_de...
[fa-stable.git]
/
gl
/
manage
/
gl_accounts.php
diff --git
a/gl/manage/gl_accounts.php
b/gl/manage/gl_accounts.php
index c47abcc8409fe41381a064165f632ab5c9a68609..0ce1d5da8e385b5a4a0b7253354df5b151b6fef8 100644
(file)
--- a/
gl/manage/gl_accounts.php
+++ b/
gl/manage/gl_accounts.php
@@
-111,7
+111,7
@@
function can_delete($selected_account)
if ($selected_account == "")
return false;
if ($selected_account == "")
return false;
- if (key_in_foreign_table($selected_account, 'gl_trans', 'account'
, true
))
+ if (key_in_foreign_table($selected_account, 'gl_trans', 'account'))
{
display_error(_("Cannot delete this account because transactions have been created using this account."));
return false;
{
display_error(_("Cannot delete this account because transactions have been created using this account."));
return false;
@@
-123,7
+123,7
@@
function can_delete($selected_account)
return false;
}
return false;
}
- if (key_in_foreign_table($selected_account, 'bank_accounts', 'account_code'
, true))
+ if (key_in_foreign_table($selected_account, 'bank_accounts', 'account_code'
))
{
display_error(_("Cannot delete this account because it is used by a bank account."));
return false;
{
display_error(_("Cannot delete this account because it is used by a bank account."));
return false;