Minor fixes in voiding transactions
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Fri, 16 Apr 2010 09:42:59 +0000 (09:42 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Fri, 16 Apr 2010 09:42:59 +0000 (09:42 +0000)
CHANGELOG.txt
admin/void_transaction.php

index c13a8fb7bfd05ee184827c5cca490cce25410038..903df7b9b309f551143218e1a7d9a432ed28873e 100644 (file)
@@ -19,6 +19,10 @@ Legend:
 ! -> Note
 $ -> Affected files
 
+16-Apr-2010 Joe Hunt
+# Minor fixes in voiding transactions
+$ /admin/void_transaction.php
+
 15-Apr-2010 Joe Hunt
 ! Added an alternative way of presenting tax included on invoices.
   This is done by setting a global variabel $alternative_tax_include_on_docs = 1.
index d91c53d0923c470b619dc9f66813f9ed56fdfb73..7eee558c46e4768576465bf949f6877749ae854b 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);
     
@@ -173,17 +173,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_');