44 $display_operation=
false;
46 if (
$cn->get_value(
"select do_enable from document_option where document_type_id=$1 and do_code = $2",
47 [$p_document_type,
'detail_operation'])==
'1')
49 $display_operation=
true;
51 return $display_operation;
61 $display_operation=
false;
63 if (
$cn->get_value(
"select do_enable from document_option where document_type_id=$1 and do_code = $2",
64 [$p_document_type,
'followup_comment'])==
'1')
66 $display_operation=
true;
68 return $display_operation;
79 $option_operation =
$cn->get_value(
"select do_option from document_option where document_type_id=$1 "
80 .
" and do_code = $2",
81 [$p_document_type,
'detail_operation']);
82 return $option_operation;
95 if (
$cn->get_value(
"select do_enable from document_option where document_type_id=$1 and do_code = $2",
96 [$p_document_type,
'contact_multiple'])==
'1')
113 if (
$cn->get_value(
"select do_enable from document_option where document_type_id=$1 and do_code = $2",
114 [$p_document_type,
'make_invoice'])==
'1')
130 if (
$cn->get_value(
"select do_enable from document_option where document_type_id=$1 and do_code = $2",
131 [$p_document_type,
'make_feenote'])==
'1')
146 $cnt=
$cn->get_value(
"select count(*) from action_gestion_comment where ag_id=$1",[
$p_id]);
147 if ($cnt == 0 )
return true;
161 $option_operation =
$cn->get_value(
"select do_option from document_option where document_type_id=$1 "
162 .
" and do_code = $2",
163 [$p_document_type,
'followup_comment']);
164 return $option_operation;
177 if (
$cn->get_value(
"select do_enable from document_option where document_type_id=$1 and do_code = $2",
178 [$p_document_type,
'editable_description'])==
'1')
195 if (
$cn->get_value(
"select do_enable from document_option where document_type_id=$1 and do_code = $2",
196 [$p_document_type,
'videoconf_server'])==
'1')
212 $option_operation =
$cn->get_value(
"select do_option from document_option where document_type_id=$1 "
213 .
" and do_code = $2",
214 [$p_document_type,
'videoconf_server']);
215 return $option_operation;
in follow-up , you have action which can be set with different options depending of the type of docum...
static is_enable_make_feenote($p_document_type)
returns true if the operation_detail is enable, otherwise false
static is_enable_editable_description($p_document_type)
returns true if it is possible to edit the description , otherwise false
static is_enable_make_invoice($p_document_type)
returns true if the operation_detail is enable, otherwise false
static can_add_comment($p_id)
Returns true if we can add a comment , or false if it is not possible.
static option_video_conf($p_document_type)
returns the videoconf server
static is_enable_video_conf($p_document_type)
returns true there is a videoconf enable
static is_enable_contact_multiple($p_document_type)
returns true if the operation_detail is enable, otherwise false
static option_operation_detail($p_document_type)
returns option from the operation_detail
static option_comment($p_document_type)
returns option from the operation_detail
static is_enable_comment($p_document_type)
returns true if comment are available otherwise false
static is_enable_operation_detail($p_document_type)
returns true if the operation_detail is enable, otherwise false