From: Janusz Dobrowolski Date: Fri, 8 May 2009 10:27:19 +0000 (+0000) Subject: Transaction type selector for journal inquiry added. X-Git-Tag: v2.4.2~19^2~1399 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=852f1fbe86d5f5b029aef1f9f06a1fc9cb4d28ea;p=fa-stable.git Transaction type selector for journal inquiry added. --- 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";