Update from usntable branch.
[fa-stable.git] / sales / includes / db / credit_status_db.inc
index e60d8cfaf4fd6c25d292e9973542def65a2a2488..ab0ade98765ddc20d025cf07fb5ba723eaafb826 100644 (file)
@@ -25,10 +25,11 @@ function update_credit_status($status_id, $description, $disallow_invoicing)
        db_query($sql, "could not update credit status");                       
 }
 
-function get_all_credit_status()
+function get_all_credit_status($all=false)
 {
        $sql = "SELECT * FROM ".TB_PREF."credit_status";
-       
+       if (!$all) $sql .= " WHERE !inactive";
+
        return db_query($sql, "could not get all credit status");
 }