X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=taxes%2Fdb%2Ftax_groups_db.inc;h=df48e0a1793d3b6a370825df7c7f4aaa0535cb8a;hb=4a66afcbed7fb883d00c1a6a807497ccfd181378;hp=5abe4333b969de031c5e3a95cec103c302387b61;hpb=a5242af68e65661edb7175412444dce536a7f311;p=fa-stable.git diff --git a/taxes/db/tax_groups_db.inc b/taxes/db/tax_groups_db.inc index 5abe4333..df48e0a1 100644 --- 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"); }