projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Update from usntable branch.
[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 2c0b6b0220206c0288f7b2cf80606f282ced972f..392ec8cbbec5528c1a49234df3658742d0d8f1e9 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");
}