X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fmanage%2Fsales_points.php;h=ac949c08733460a81496bdd072b5558d366d4cdd;hb=18ccf94f0421e7693bc40e177732a3f937b54d1a;hp=fabb2fea96b1a4aaba5e59206af444ae2f87316a;hpb=ab79693b43787b7b91a696a56d6287d87cfebdc1;p=fa-stable.git diff --git a/sales/manage/sales_points.php b/sales/manage/sales_points.php index fabb2fea..ac949c08 100644 --- a/sales/manage/sales_points.php +++ b/sales/manage/sales_points.php @@ -1,10 +1,19 @@ . +***********************************************************************/ $page_security = 15; $path_to_root="../.."; include_once($path_to_root . "/includes/session.inc"); -page(_("Sales Types")); +page(_("POS settings")); include_once($path_to_root . "/includes/ui.inc"); include_once($path_to_root . "/sales/includes/db/sales_points_db.inc"); @@ -86,7 +95,7 @@ while ($myrow = db_fetch($result)) label_cell($myrow["location_name"], ""); label_cell($myrow["bank_account_name"], ""); edit_button_cell("Edit".$myrow['id'], _("Edit")); - edit_button_cell("Delete".$myrow['id'], _("Delete")); + delete_button_cell("Delete".$myrow['id'], _("Delete")); end_row(); } @@ -97,7 +106,7 @@ echo '
'; start_form(); -start_table("$table_style2 width=30%"); +start_table($table_style2); if ($selected_id != -1) { @@ -108,15 +117,15 @@ if ($selected_id != -1) $_POST['name'] = $myrow["pos_name"]; $_POST['location'] = $myrow["pos_location"]; $_POST['account'] = $myrow["pos_account"]; - $_POST['credit_sale'] = $myrow["credit_sale"]; - $_POST['cash_sale'] = $myrow["cash_sale"]; + if ($myrow["credit_sale"]) $_POST['credit_sale'] = 1; + if ($myrow["cash_sale"]) $_POST['cash_sale'] = 1; } hidden('selected_id', $selected_id); } text_row_ex(_("Point of Sale Name").':', 'name', 20, 30); -check_row(_('Allowed credit sale'), 'credit', null); -check_row(_('Allowed cash sale'), 'cash', null); +check_row(_('Allowed credit sale'), 'credit', check_value('credit_sale')); +check_row(_('Allowed cash sale'), 'cash', check_value('cash_sale')); locations_list_row(_("POS location").':', 'location'); cash_accounts_list_row(_("Default cash account").':', 'account');