Better layout in Form setup
[fa-stable.git] / manufacturing / work_order_add_finished.php
index 545b694b97794256cfcfb877ceed0b70e82948c9..ea4af88402b5da3bf48fcf511ccbeb70b5b46082 100644 (file)
@@ -1,5 +1,14 @@
 <?php
-
+/**********************************************************************
+    Copyright (C) FrontAccounting, LLC.
+       Released under the terms of the GNU Affero General Public License,
+       AGPL, as published by the Free Software Foundation, either version 
+       3 of the License, or (at your option) any later version.
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
+    See the License here <http://www.gnu.org/licenses/agpl-3.0.html>.
+***********************************************************************/
 $page_security = 10;
 $path_to_root="..";
 include_once($path_to_root . "/includes/session.inc");
@@ -30,7 +39,7 @@ if (isset($_GET['AddedID']))
 
        display_note(_("The manufacturing process has been entered."));
 
-       hyperlink_no_params("search_work_orders.php", _("Select another Work Order to Process"));
+       hyperlink_no_params("search_work_orders.php", _("Select another &Work Order to Process"));
 
        end_page();
        exit;
@@ -146,7 +155,7 @@ if (!isset($_POST['quantity']) || $_POST['quantity'] == '')
 
 start_table();
 
-ref_row(_("Reference:"), 'ref', references::get_next(29));
+ref_row(_("Reference:"), 'ref', '', references::get_next(29));
 
 if (!isset($_POST['ProductionType']))
        $_POST['ProductionType'] = 1;
@@ -154,7 +163,7 @@ if (!isset($_POST['ProductionType']))
 yesno_list_row(_("Type:"), 'ProductionType', $_POST['ProductionType'],
        _("Produce Finished Items"), _("Return Items to Work Order"));
 
-text_row(_("Quantity:"), 'quantity', $_POST['quantity'], 13, 15);
+small_qty_row(_("Quantity:"), 'quantity', null, null, null, get_qty_dec($wo_details["stock_id"]));
 
 date_row(_("Date:"), 'date_');
 
@@ -162,8 +171,8 @@ textarea_row(_("Memo:"), 'memo_', null, 40, 3);
 
 end_table(1);
 
-submit_center_first('Process', _("Process"));
-submit_center_last('ProcessAndClose', _("Process And Close Order"));
+submit_center_first('Process', _("Process"), '', true);
+submit_center_last('ProcessAndClose', _("Process And Close Order"), '', true);
 
 end_form();