diff --git a/include/constant.php b/include/constant.php index 51eb05951..72e5a38ec 100644 --- a/include/constant.php +++ b/include/constant.php @@ -126,7 +126,7 @@ define ("JS_SHOW_TVA","" ); @@ -277,6 +277,17 @@ function cal() " ); + +define ("JS_TVA",""); // Sql string define ("SQL_LIST_ALL_INVOICE",""); define ("SQL_LIST_UNPAID_INVOICE"," where (jr_rapt is null or jr_rapt = '') and jr_valid = true "); diff --git a/include/form_input.php b/include/form_input.php index f4ca87154..9e8d22dfe 100644 --- a/include/form_input.php +++ b/include/form_input.php @@ -171,6 +171,26 @@ function InputType($p_label,$p_type,$p_name,$p_value,$p_viewonly=false,$p_list=n + } + // input type == js_tva + if ( strtolower($p_type)=="js_tva") { + if ( strlen(trim($p_label)) != 0 ) + $label="