$sql.=' AND cf.fk_statut < 6';// We want alos status 5, we will keep them visible if dispatching is not yet finished (tested with function dolDispatchToDo).
$sql.=' AND cf.fk_statut < 6';// We want also status 5, we will keep them visible if dispatching is not yet finished (tested with function dolDispatchToDo).