[0004212] Work Order Entry: fixed error when voided WO refence is reused.
[fa-stable.git] / gl / gl_budget.php
index 26c648621874831e2cd2c08514687682d41b56f6..6c2ad64b3fc66b6e05833fcf1554957bb78f5ef1 100644 (file)
@@ -46,7 +46,6 @@ if (isset($_POST['add']) || isset($_POST['delete']))
        else
                display_notification_centered(_("The Budget has been deleted."));
 
-       //meta_forward($_SERVER['PHP_SELF']);
        $Ajax->activate('budget_tbl');
 }
 if (isset($_POST['submit']) || isset($_POST['update']))
@@ -59,7 +58,7 @@ start_form();
 if (db_has_gl_accounts())
 {
        $dim = get_company_pref('use_dimension');
-       start_table($table_style2);
+       start_table(TABLESTYLE2);
        fiscalyears_list_row(_("Fiscal Year:"), 'fyear', null);
        gl_all_accounts_list_row(_("Account Code:"), 'account', null);
        if (!isset($_POST['dim1']))
@@ -71,7 +70,7 @@ if (db_has_gl_accounts())
                dimensions_list_row(_("Dimension")." 1", 'dim1', $_POST['dim1'], true, null, false, 1);
                dimensions_list_row(_("Dimension")." 2", 'dim2', $_POST['dim2'], true, null, false, 2);
        }
-       else if ($dim == 1)
+       elseif ($dim == 1)
        {
                dimensions_list_row(_("Dimension"), 'dim1', $_POST['dim1'], true, null, false, 1);
                hidden('dim2', 0);
@@ -84,7 +83,7 @@ if (db_has_gl_accounts())
        submit_row('submit', _("Get"), true, '', '', true);
        end_table(1);
        div_start('budget_tbl');
-       start_table($table_style2);
+       start_table(TABLESTYLE2);
        $showdims = (($dim == 1 && $_POST['dim1'] == 0) ||
                ($dim == 2 && $_POST['dim1'] == 0 && $_POST['dim2'] == 0));
        if ($showdims)
@@ -140,4 +139,3 @@ end_form();
 
 end_page();
 
-?>