function _validerNomenclature(&$PDOdb, $id_assetOF, $fk_product, $fk_of_line, $fk_nomenclature, $qty)
{
    // Récupération de l'OF
    $of = new TAssetOF();
    $of->load($PDOdb, $id_assetOF);
    // Récupération de la ligne OF
    $line = new TAssetOFLine();
    $line->load($PDOdb, $fk_of_line);
    if (!empty($qty)) {
        $line->qty = $qty;
    }
    $line->fk_nomenclature = $fk_nomenclature;
    $line->nomenclature_valide = 1;
    $of->addProductComposition($PDOdb, $fk_product, $line->qty, $fk_of_line, $fk_nomenclature);
    $of->addWorkstation($PDOdb, $fk_product, $fk_nomenclature);
    if ($of->fk_assetOf_parent) {
        _validerOFLigneParent($PDOdb, $of, $fk_nomenclature, $line);
    }
    $of->save($PDOdb);
    $line->save($PDOdb);
}