/**
  * @covers Acc_Ledger_Purchase::verify
  * @todo   Implement testVerify().
  * @expectedException Exception
  */
 public function testVerify()
 {
     $this->object->verify(array());
 }
예제 #2
0
    $('modele_div_id').hide();
show_tab(a_tab,'facturation_div_id');
</script>
<?php 
        echo '</div>';
        return;
        return;
    }
}
//------------------------------
/* Record the invoice */
//------------------------------
if (isset($_POST['record'])) {
    $Ledger = new Acc_Ledger_Purchase($cn, $_POST['p_jrn']);
    try {
        $Ledger->verify($_POST);
    } catch (Exception $e) {
        alert($e->getMessage());
        $p_msg = $e->getMessage();
        $correct = 1;
    }
    // record the invoice
    if (!isset($correct)) {
        echo '<div class="content">';
        $Ledger = new Acc_Ledger_Purchase($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_ach($cn);
            $opd->get_post();
            $opd->save();