Added portuguese translation.
[fa-stable.git] / admin / void_transaction.php
index d91c53d0923c470b619dc9f66813f9ed56fdfb73..6066d3ed338a570cf5761cddc0a98035814ead3e 100644 (file)
@@ -147,7 +147,7 @@ function voiding_controls()
        systypes_list_cells(_("Transaction Type:"), 'filterType', null, true);
        if (list_updated('filterType'))
                $selected_id = -1;
-
+               
        end_row();
     end_table(1);
     
@@ -163,9 +163,6 @@ function voiding_controls()
                _("GL") => array('insert'=>true, 'fun'=>'gl_view'),
                _("Select") => array('insert'=>true, 'fun'=>'select_link') 
        );
-       if(!$trans_ref) {
-               array_remove($cols, 1);
-       }
 
        $table =& new_db_pager('transactions', $sql, $cols);
        $table->width = "40%";
@@ -173,17 +170,17 @@ function voiding_controls()
 
        start_table(TABLESTYLE2);
 
-       //systypes_list_row(_("Transaction Type:"), "filterType", null, true);
-       
        if ($selected_id != -1)
        {
-               $_POST['trans_no'] = $selected_id;
+               hidden('trans_no', $selected_id);
                hidden('selected_id', $selected_id);
        }
        else
-               $_POST['trans_no'] = '';
-               
-    text_row(_("Transaction #:"), 'trans_no', null, 12, 12);
+       {
+               hidden('trans_no', '');
+               $_POST['memo_'] = '';
+       }       
+    label_row(_("Transaction #:"), ($selected_id==-1?'':$selected_id));
 
     date_row(_("Voiding Date:"), 'date_');