Ejemplo n.º 1
0
 if (isset($_REQUEST['cptId']) && $_REQUEST['cptId'] != '') {
     $oBe->cpt_id = $_REQUEST['cptId'];
 }
 $oBe->be_lbl = $_REQUEST['beLbl'];
 $oBe->be_date = $_REQUEST['beDate'];
 $oBe->be_fact_num = $_REQUEST['beFactNum'];
 $oBe->be_frais_douane = $_REQUEST['beFraisDouane'];
 $oBe->be_frais_bancaire = $_REQUEST['beFraisBancaire'];
 $oBe->be_frais_trans = $_REQUEST['beFraisTrans'];
 $oBe->be_com = $_REQUEST['beCom'];
 $oBe->be_info_trans = $_REQUEST['beInfoTrans'];
 $oBe->be_total = $_REQUEST['beTotal'];
 $oBe->be_mode_pai = $_REQUEST['beModePai'];
 $oBe->be_com_pai = $_REQUEST['beComPai'];
 //Insert du bon
 BonEntreeManager::addBonEntree($oBe);
 //On récupére l'id du bon d'entrée inséré
 $idBe = Connection::dernierId();
 //-----------------Gestion des lignes du formulaire-------------------------
 //Création des tableaux contenant toutes les informations
 //Un tableau par type de champs
 //Tableaux pour la table be_ligne
 $tBeligPu = $_REQUEST['beligPu'];
 $tBeligCuAchat = $_REQUEST['beligCuAchat'];
 $tBeligFb = $_REQUEST['beligFb'];
 $tBeligFt = $_REQUEST['beligFt'];
 $tBeligDd = $_REQUEST['beligDd'];
 $tBeligTaxe = $_REQUEST['beligTaxe'];
 //Tableaux pour la table ligne
 $tLigQte = $_REQUEST['ligQte'];
 $tLigComDep = $_REQUEST['ligComDep'];