X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fmanage%2Fsales_groups.php;h=3fa4cc47913a64aac1981d47e8fbb73a2c3f565d;hb=850b2dc645b7e16d6b2f5a5e10cac03d8956180c;hp=1e16577969381461a2e3e19809c76644dca70cec;hpb=72c7510d29d26a0ede9cc23ad052b0ed156b1aaf;p=fa-stable.git diff --git a/sales/manage/sales_groups.php b/sales/manage/sales_groups.php index 1e165779..3fa4cc47 100644 --- a/sales/manage/sales_groups.php +++ b/sales/manage/sales_groups.php @@ -1,6 +1,14 @@ . +***********************************************************************/ $page_security = 3; $path_to_root="../.."; include($path_to_root . "/includes/session.inc"); @@ -49,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) @@ -78,7 +86,7 @@ $sql = "SELECT * FROM ".TB_PREF."groups ORDER BY description"; $result = db_query($sql,"could not get groups"); start_form(); -start_table("$table_style width=40%"); +start_table("$table_style width=30%"); $th = array(_("Group Name"), "", ""); table_header($th); $k = 0; @@ -90,7 +98,7 @@ while ($myrow = db_fetch($result)) label_cell($myrow["description"]); edit_button_cell("Edit".$myrow["id"], _("Edit")); - edit_button_cell("Delete".$myrow["id"], _("Delete")); + delete_button_cell("Delete".$myrow["id"], _("Delete")); end_row(); } @@ -103,7 +111,7 @@ echo '
'; start_form(); -start_table("$table_style2 width=40%"); +start_table($table_style2); if ($selected_id != -1) { @@ -123,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();