/** * @covers Acc_Ledger_Sold::insert * @todo Implement testInsert(). * @expectedException Exception */ public function testInsert() { $this->object->insert(array()); }
} $Ledger = new Acc_Ledger_Sold($cn, $_POST['p_jrn']); try { $Ledger->verify($_POST); } catch (Exception $e) { alert($e->getMessage()); $correct = 1; } if (!isset($correct)) { if (is_msie() == 0) { echo '<div style="position:absolute" class="content">'; } else { echo '<div class="content">'; } $Ledger = new Acc_Ledger_Sold($cn, $_POST['p_jrn']); $internal = $Ledger->insert($_POST); /* Save the predefined operation */ if (isset($_POST['opd_name']) && trim($_POST['opd_name']) != "") { $opd = new Pre_op_ven($cn); $opd->get_post(); $opd->save(); } /* Show button */ echo '<h1 style="float:right;margin-right:20%"> Enregistrement </h1>'; echo $Ledger->confirm($_POST, true); /* Show link for Invoice */ if (isset($Ledger->doc)) { echo '<h2>Document </h2>'; echo $Ledger->doc; } /* Save the additional information into jrn_info */