X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fmanage%2Fsales_points.php;h=915911c384c08fe9c4f29bd2c2360c9cb9dced2c;hb=777422e8d5a3ba188e7420719e33322098075313;hp=f4f886d4b77a160dd552eb675b09fd1276a90739;hpb=86e4d1627183fb4d97fe145a5dd33b43b03284ee;p=fa-stable.git diff --git a/sales/manage/sales_points.php b/sales/manage/sales_points.php index f4f886d4..915911c3 100644 --- a/sales/manage/sales_points.php +++ b/sales/manage/sales_points.php @@ -9,11 +9,11 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License here . ***********************************************************************/ -$page_security = 15; -$path_to_root="../.."; +$page_security = 'SA_POSSETUP'; +$path_to_root = "../.."; include_once($path_to_root . "/includes/session.inc"); -page(_("POS settings")); +page(_($help_context = "POS settings")); include_once($path_to_root . "/includes/ui.inc"); include_once($path_to_root . "/sales/includes/db/sales_points_db.inc"); @@ -78,17 +78,20 @@ if ($Mode == 'Delete') if ($Mode == 'RESET') { $selected_id = -1; + $sav = get_post('show_inactive'); unset($_POST); + $_POST['show_inactive'] = $sav; } //---------------------------------------------------------------------------------------------------- -$result = get_all_sales_points(); +$result = get_all_sales_points(check_value('show_inactive')); start_form(); start_table("$table_style"); $th = array (_('POS Name'), _('Credit sale'), _('Cash sale'), _('Location'), _('Default account'), '',''); +inactive_control_column($th); table_header($th); $k = 0; @@ -100,18 +103,16 @@ while ($myrow = db_fetch($result)) label_cell($myrow['cash_sale'] ? _('Yes') : _('No')); label_cell($myrow["location_name"], ""); label_cell($myrow["bank_account_name"], ""); + inactive_control_cell($myrow["id"], $myrow["inactive"], "sales_pos", 'id'); edit_button_cell("Edit".$myrow['id'], _("Edit")); delete_button_cell("Delete".$myrow['id'], _("Delete")); end_row(); } -end_table(); -end_form(); -echo '
'; +inactive_control_row($th); +end_table(1); //---------------------------------------------------------------------------------------------------- -start_form(); - $cash = db_has_cash_accounts(); if (!$cash) display_note(_("To have cash POS first define at least one cash bank account.")); @@ -147,7 +148,7 @@ if($cash) { locations_list_row(_("POS location").':', 'location'); end_table(1); -submit_add_or_update_center($selected_id == -1, '', true); +submit_add_or_update_center($selected_id == -1, '', 'both'); end_form();