From 1f7b3df842ee67a16cd889b36d09b332c571301a Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Sat, 19 Sep 2009 08:55:20 +0000 Subject: [PATCH] Eliminate PT_WORKORDER from payment_person_types_list --- CHANGELOG.txt | 4 ++++ includes/ui/ui_lists.inc | 8 +++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 1473ecd3..77c1e0ad 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -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 diff --git a/includes/ui/ui_lists.inc b/includes/ui/ui_lists.inc index be6004c6..9563cf08 100644 --- a/includes/ui/ui_lists.inc +++ b/includes/ui/ui_lists.inc @@ -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 ) ); } -- 2.30.2