'; //---------------------------------------------------------------------------------------------------- start_form(); start_table("$table_style2 width=30%"); if ($selected_id != -1) { if ($Mode == 'Edit') { $myrow = get_sales_point($selected_id); $_POST['name'] = $myrow["pos_name"]; $_POST['location'] = $myrow["pos_location"]; $_POST['account'] = $myrow["pos_account"]; 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', 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'); end_table(1); submit_add_or_update_center($selected_id == -1, '', true); end_form(); end_page(); ?>