Eliminate PT_WORKORDER from payment_person_types_list
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Sat, 19 Sep 2009 08:55:20 +0000 (08:55 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Sat, 19 Sep 2009 08:55:20 +0000 (08:55 +0000)
CHANGELOG.txt
includes/ui/ui_lists.inc

index 1473ecd3b2098454808e4cc1a3f08af4a4be877f..77c1e0ada8800f510a0d0c8ec7f2c7d2d679941f 100644 (file)
@@ -19,6 +19,10 @@ Legend:
 ! -> Note
 $ -> Affected files
 
+19-Sep-2009 Joe Hunt
+# Eliminate PT_WORKORDER from payment_person_types_list
+$ /includes/ui/ui_lists.inc
+
 18-Sep-2009 Janusz Dobrowolski
 + Added currency default bank accounts used in reporting instead of manual account selector.
 $ /gl/includes/db/gl_db_bank_accounts.inc
index be6004c6d5a67c9ab27b9363a1b88e8fde1476cb..9563cf08d5a49334868004e69d674b51226f1a2f 100644 (file)
@@ -1681,7 +1681,13 @@ function payment_person_types_list($name, $selected_id=null, $submit_on_change=f
 {
        global $payment_person_types;
 
-       return array_selector($name, $selected_id, $payment_person_types, 
+       $items = array();
+       foreach ($payment_person_types as $key=>$type)
+       {
+               if ($key != PT_WORKORDER)
+                       $items[$key] = $type;
+       }               
+       return array_selector($name, $selected_id, $items, 
                array( 'select_submit'=> $submit_on_change ) );
 }