projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
0001503: Request - fee account included in bank account table
[fa-stable.git]
/
taxes
/
item_tax_types.php
diff --git
a/taxes/item_tax_types.php
b/taxes/item_tax_types.php
index 4f93fa59076df1e7e99f4f79d470f8a76a0438c3..ce94cfe4e5c7d0a1603b22ea30bdaa10f2dc2090 100644
(file)
--- a/
taxes/item_tax_types.php
+++ b/
taxes/item_tax_types.php
@@
-77,6
+77,11
@@
function can_delete($selected_id)
display_error(_("Cannot delete this item tax type because items have been created referring to it."));
return false;
}
display_error(_("Cannot delete this item tax type because items have been created referring to it."));
return false;
}
+ if (key_in_foreign_table($selected_id, 'stock_category', 'dflt_tax_type'))
+ {
+ display_error(_("Cannot delete this item tax type because item categories have been created referring to it."));
+ return false;
+ }
return true;
}
return true;
}