X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fmanage%2Fsales_groups.php;h=3fa4cc47913a64aac1981d47e8fbb73a2c3f565d;hb=bf5873e7f5925d0f616743fce771873a4b7cecdf;hp=f2c4126f35d708625f0c78602d4dc8aeaa961dfc;hpb=b61fe995e432d77ff3ff0b5850bb921920f3befb;p=fa-stable.git diff --git a/sales/manage/sales_groups.php b/sales/manage/sales_groups.php index f2c4126f..3fa4cc47 100644 --- a/sales/manage/sales_groups.php +++ b/sales/manage/sales_groups.php @@ -1,13 +1,13 @@ . + See the License here . ***********************************************************************/ $page_security = 3; $path_to_root="../.."; @@ -57,7 +57,7 @@ if ($Mode == 'Delete') // PREVENT DELETES IF DEPENDENT RECORDS IN 'debtors_master' - $sql= "SELECT COUNT(*) FROM ".TB_PREF."debtors_master WHERE group_no='$selected_id'"; + $sql= "SELECT COUNT(*) FROM ".TB_PREF."cust_branch WHERE group_no='$selected_id'"; $result = db_query($sql,"check failed"); $myrow = db_fetch_row($result); if ($myrow[0] > 0) @@ -131,7 +131,7 @@ text_row_ex(_("Group Name:"), 'description', 30); end_table(1); -submit_add_or_update_center($selected_id == -1, '', true); +submit_add_or_update_center($selected_id == -1, '', 'both'); end_form();