6a7614f78086963a7b8d3ddaf6880d578c87fcfb
[order_line_extra.git] / item_schedule.php
1
2 <?php
3 /**********************************************************************
4     Copyright (C) FrontAccounting, LLC.
5         Released under the terms of the GNU General Public License, GPL, 
6         as published by the Free Software Foundation, either version 3 
7         of the License, or (at your option) any later version.
8     This program is distributed in the hope that it will be useful,
9     but WITHOUT ANY WARRANTY; without even the implied warranty of
10     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
11     See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
12 ***********************************************************************/
13 $path_to_root = "../..";
14
15 include_once($path_to_root . "/includes/session.inc");
16 include_once($path_to_root . "/includes/ui/ui_lists.inc");
17 include_once($path_to_root . "/includes/ui/ui_globals.inc");
18 include_once($path_to_root . "/includes/ui/ui_input.inc");
19 include_once($path_to_root . "/reporting/includes/reporting.inc");
20
21 //include_once("includes/item_schedule.inc");
22
23 $page_security = 'SA_ORDERLINEX_EDIT';
24 add_access_extensions();
25
26 $_SESSION['page_title'] = _($help_context = "Item schedule");
27
28
29 $js = "";
30 page($_SESSION['page_title'], false, false, "", $js);
31
32 //---------------------------------------------------------------------------------------------
33
34 start_form();
35
36 start_table(TABLESTYLE_NOBORDER);
37 start_row();
38
39 if (isset($_GET['stock_id']))
40 {
41         $_POST['stock_id'] = $_GET['stock_id'];
42 }
43
44 if (!@$_GET['popup'])
45         start_form();
46
47 if (!isset($_POST['stock_id']))
48         $_POST['stock_id'] = get_global_stock_item();
49
50         stock_costable_items_list_cells(_("Item:"), 'stock_id', $_POST['stock_id']);
51
52 end_row();
53
54 end_table(1);
55
56 submit_center_first('Update', _("Update"), true, '', 'default', true);
57 submit_center_last('Cancel', _("Cancel"), true, '', 'cancel', true);
58
59         end_form();
60         end_page();
61 ?>