X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fmanage%2Fsales_types.php;h=05a3166adb8b0618d06b0d80f3590c226c9d132f;hb=231addc23887aa8b906dca18ea0b2a6fe63c3c39;hp=4365a78e417cdfafed2d4283abb3926df0bd5eb7;hpb=b61fe995e432d77ff3ff0b5850bb921920f3befb;p=fa-stable.git diff --git a/sales/manage/sales_types.php b/sales/manage/sales_types.php index 4365a78e..05a3166a 100644 --- a/sales/manage/sales_types.php +++ b/sales/manage/sales_types.php @@ -1,13 +1,13 @@ . + See the License here . ***********************************************************************/ $page_security = 14; $path_to_root="../.."; @@ -100,16 +100,19 @@ if ($Mode == 'Delete') if ($Mode == 'RESET') { $selected_id = -1; + $sav = get_post('show_inactive'); unset($_POST); + $_POST['show_inactive'] = $sav; } //---------------------------------------------------------------------------------------------------- -$result = get_all_sales_types(); +$result = get_all_sales_types(check_value('show_inactive')); start_form(); start_table("$table_style width=30%"); $th = array (_('Type Name'), _('Factor'), _('Tax Incl'), '',''); +inactive_control_column($th); table_header($th); $k = 0; $base_sales = get_base_sales_type(); @@ -125,18 +128,18 @@ while ($myrow = db_fetch($result)) if($myrow["id"] == $base_sales) $f = ""._('Base').""; label_cell($f); label_cell($myrow["tax_included"] ? _('Yes'):_('No'), 'align=center'); + inactive_control_cell($myrow["id"], $myrow["inactive"], 'sales_types', 'id'); edit_button_cell("Edit".$myrow['id'], _("Edit")); delete_button_cell("Delete".$myrow['id'], _("Delete")); end_row(); } - +inactive_control_row($th); end_table(); -end_form(); + display_note(_("Marked sales type is the company base pricelist for prices calculations."), 0, 0, "class='overduefg'"); //---------------------------------------------------------------------------------------------------- -start_form(); if (!isset($_POST['tax_included'])) $_POST['tax_included'] = 0; if (!isset($_POST['base'])) @@ -165,7 +168,7 @@ check_row(_("Tax included").':', 'tax_included', $_POST['tax_included']); end_table(1); -submit_add_or_update_center($selected_id == -1, '', true); +submit_add_or_update_center($selected_id == -1, '', 'both'); end_form();