Payment terms types list added
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Mon, 21 Jun 2010 17:09:30 +0000 (17:09 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Mon, 21 Jun 2010 17:09:30 +0000 (17:09 +0000)
includes/ui/ui_lists.inc

index 0ddf0c34f6dad80ce61af1721c539cf6cfe73697..0e515e3c7a307d3f2019d0beda9ee2a17790b7b0 100644 (file)
@@ -2254,4 +2254,16 @@ function crm_category_types_list_row($label, $name, $selected_id=null, $filter=a
        echo "</td></tr>\n";
 }
 
+function payment_type_list_row($label, $name, $selected_id=null, $submit_on_change=false)
+{
+       global $pterm_types;
+       
+       echo "<tr><td class='label'>$label</td><td>";
+       echo array_selector($name, $selected_id, $pterm_types, 
+               array( 
+                       'select_submit'=> $submit_on_change
+               ) );
+       echo "</td></tr>\n";
+}
+
 ?>
\ No newline at end of file