unset($output[$curmodule][$label]);// throw all ref number who are not in ($fac_supp_N_arr) array
}
}
}
elseif($curmodule=="order")
{
if(!is_array($ar_modules_secure[$curmodule]['socref'])){unset($output[$curmodule]);continue;}// throw all ref number who are not in ($fac_invoice_arr) array
unset($output[$curmodule][$label]);// throw all ref number who are not in ($ref_order_arr) array
}
}
}
elseif($curmodule=="order_supplier")
{
if(!is_array($ar_modules_secure[$curmodule]['socref'])){unset($output[$curmodule]);continue;}// throw all ref number who are not in ($fac_invoice_arr) array
unset($output[$curmodule][$label]);// throw all ref number who are not in ($ref_order_supp_arr) array
}
}
}
elseif($curmodule=="propal")
{
if(!is_array($ar_modules_secure[$curmodule]['socref'])){unset($output[$curmodule]);continue;}// throw all ref number who are not in ($fac_invoice_arr) array
unset($output[$curmodule][$label]);// throw all ref number who are not in ($ref_propal_arr) array
}
}
}
elseif($curmodule=="contract")
{
if(!is_array($ar_modules_secure[$curmodule]['socref'])){unset($output[$curmodule]);continue;}// throw all ref number who are not in ($fac_invoice_arr) array
unset($output[$curmodule][$label]);// throw all ref number who are not in ($ref_contract_arr) array
}
}
}
elseif($curmodule=="dolimail")
{
if(!is_array($ar_modules_secure[$curmodule]['socref'])){unset($output[$curmodule]);continue;}// throw all ref number who are not in ($fac_invoice_arr) array