action_opportunite
Fonction pour l'ajout du motif de perte de l'opportunité et le changement de statut
function fwa_TS_NOOA_OPPORTUNITE_action_add_comment_perte_opportunite(){
global $navi_id_obje;
global $navi_id_type;
$isRaisonPerte = fwk7_var_getpost('raisonPerte§defPerte','','','');
$raisonPerte_att = fwp7_param_template_att_get_number('',$navi_id_type,'motif_perte');
$data = array();
$data[$raisonPerte_att]=$isRaisonPerte;
$data['id_work']=fwp7_param_template_wrk_get_number('', $navi_id_type, 'statut_perdu');;
fwc7_modify_att_edit('',$navi_id_type,$navi_id_obje,$data);
}
↩️ Returns
(void)