Improved journal trans: added currency support, tax and source document date. Allowed...
[fa-stable.git] / includes / ui / ui_input.inc
index de9c11531be3627497f88f81a3ae2d6db0f89c11..9ca13632a5fd7a149e7be85cae1183c981927bba 100644 (file)
@@ -37,6 +37,14 @@ function find_submit($prefix, $numeric=true)
     }
     return $numeric ? -1 : null;
 }
+/*
+       Helper function.
+       Returns true if input $name with $submit_on_change option set is subject to update.
+*/
+function input_changed($name)
+{
+       return isset($_POST['_'.$name.'_changed']);
+}
 
 //------------------------------------------------------------------------------
 //