/**
  * @covers Acc_Ledger_Sold::verify
  * @todo   Implement testVerify().
  * @expectedException Exception
  */
 public function testVerify()
 {
     $this->object->verify(array());
 }
Example #2
0
        echo '</div>';
        return;
    }
}
//------------------------------
/* Record the invoice */
//------------------------------
if (isset($_POST['record'])) {
    // Check privilege
    if ($g_user->check_jrn($_REQUEST['p_jrn']) != 'W') {
        NoAccess();
        exit - 1;
    }
    $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);