projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added inactive records support.
[fa-stable.git]
/
taxes
/
db
/
tax_groups_db.inc
diff --git
a/taxes/db/tax_groups_db.inc
b/taxes/db/tax_groups_db.inc
index 5abe4333b969de031c5e3a95cec103c302387b61..df48e0a1793d3b6a370825df7c7f4aaa0535cb8a 100644
(file)
--- a/
taxes/db/tax_groups_db.inc
+++ b/
taxes/db/tax_groups_db.inc
@@
-47,9
+47,10
@@
function update_tax_group($id, $name, $tax_shipping, $taxes, $rates)
commit_transaction();
}
-function get_all_tax_groups()
+function get_all_tax_groups(
$all=false
)
{
$sql = "SELECT * FROM ".TB_PREF."tax_groups";
+ if (!$all) $sql .= " WHERE !inactive";
return db_query($sql, "could not get all tax group");
}