*** empty log message ***
[fa-stable.git] / sales / includes / db / branches_db.inc
index 2c4eb5228a32840fa70597394c6ea10296ec3d09..fb709542a0b0660071badeaf20da1ef74256d51f 100644 (file)
@@ -34,4 +34,11 @@ function get_branch_name($branch_id)
        return $myrow[0];
 }
 
+function get_cust_branches_from_group($group_no)
+{
+       $sql = "SELECT branch_code, debtor_no FROM ".TB_PREF."cust_branch 
+               WHERE group_no = '$group_no'";
+
+       return db_query($sql,"could not retreive branches for group " . $group_no);
+}
 ?>
\ No newline at end of file