commandes
🔧 fwl_TS_NOOA_lowcode_autoif_cooperative_hors_sap
Si la coopérative est de type "Hors sap" on cache les champs requis pour la création de facture
function fwl_TS_NOOA_lowcode_autoif_cooperative_hors_sap($id_type,$id_obje){
$coop_attribute = fwp7_param_template_att_get_number("",$id_type,"cooperative");
$id_cooperative = fwc7_data_att_getvals('', $id_type, $id_obje, $coop_attribute)["RAW_SOURCE"];
$infoCooperative = fwc7_data_objet_att('', 175, $id_cooperative);
$att_type_cooperative = fwp7_param_template_att_get_number('', 175, 'type_cooperative');
if ($infoCooperative[$att_type_cooperative] == "hors_sap"){
return 1;
}else{
return 0;
}
// ... (truncated)
↩️ Returns
(int)