Updated FA version string
[fa-stable.git] / manufacturing / work_order_entry.php
index 32ba8e8c52e67610131e1395d2d841ef54037136..c4d3dd5d1a64054dc5d6db0589ee7921faee10f2 100644 (file)
@@ -1,5 +1,14 @@
 <?php
-
+/**********************************************************************
+    Copyright (C) FrontAccounting, LLC.
+       Released under the terms of the GNU General Public License, GPL, 
+       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/gpl-3.0.html>.
+***********************************************************************/
 $page_security = 10;
 $path_to_root="..";
 
@@ -395,12 +404,11 @@ textarea_row(_("Memo:"), 'memo_', null, 40, 5);
 
 end_table(1);
 
-submit_add_or_update_center(!isset($selected_id), '', true);
-
 if (isset($selected_id))
 {
-       echo "<br><br><table align=center><tr>";
+       echo "<table align=center><tr>";
 
+       submit_cells('UPDATE_ITEM', _("Update"), '', _('Save changes to work order'), true);
        if (isset($_POST['released']))
        {
                submit_cells('close', _("Close This Work Order"),'','',true);
@@ -409,6 +417,10 @@ if (isset($selected_id))
 
        echo "</tr></table>";
 }
+else
+{
+       submit_center('ADD_ITEM', _("Add Workorder"), true, '', true);
+}
 
 end_form();
 end_page();