From 852f1fbe86d5f5b029aef1f9f06a1fc9cb4d28ea Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Fri, 8 May 2009 10:27:19 +0000 Subject: [PATCH] Transaction type selector for journal inquiry added. --- includes/ui/ui_lists.inc | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/includes/ui/ui_lists.inc b/includes/ui/ui_lists.inc index 6362fe74..acdd3d1b 100644 --- a/includes/ui/ui_lists.inc +++ b/includes/ui/ui_lists.inc @@ -1872,6 +1872,32 @@ function systypes_list_cells($label, $name, $value=null, $submit_on_change=false return $str; } +function journal_types_list_cells($label, $name, $value=null, $submit_on_change=false) +{ + global $systypes_array; + + if ($label != null) + echo "$label\n"; + echo ""; + + $items = array(); + foreach ($systypes_array as $key=>$type) + // exclude orders and dimensions + if (!in_array($key, array(18,26,30,40))) + $items[$key] = $type['name']; + + $str = array_selector($name, $value, $items, + array( + 'spec_option'=> _("All"), + 'spec_id' => -1, + 'select_submit'=> $submit_on_change, + 'async' => false + ) + ); + echo "\n"; + return $str; +} + function systypes_list_row($label, $name, $value=null, $submit_on_change=false) { echo "\n"; -- 2.30.2