/** * @covers Acc_Ledger_Sold::input * @todo Implement testInput(). */ public function testInput() { $_REQUEST['ac'] = 'VEN'; $info = $this->object->input(); if (!is_string($info)) { $this->assertTrue(FALSE); } }
$url = http_build_query(array('p_jrn_predef' => $Ledger->id, 'ac' => $_REQUEST['ac'], 'gDossier' => dossier::id())); echo $op->form_get('do.php?' . $url); echo '</div>'; echo '<div class="content">'; echo '<p class="notice">' . $p_msg . '</p>'; try { echo "<FORM class=\"print\" NAME=\"form_detail\" METHOD=\"POST\" >"; /* request for a predefined operation */ if (isset($_REQUEST['pre_def']) && !isset($_POST['correct'])) { // used a predefined operation // $op = new Pre_op_ven($cn); $op->set_od_id($_REQUEST['pre_def']); $p_post = $op->compute_array(); $Ledger->id = $_REQUEST['p_jrn_predef']; echo $Ledger->input($p_post); echo '<div class="content">'; echo $Ledger->input_paid(); echo '</div>'; echo '<script>'; echo 'compute_all_ledger();'; echo '</script>'; } else { if (isset($_GET['create_invoice'])) { $array = $Ledger->convert_from_follow($_GET['ag_id']); echo HtmlInput::hidden("ledger_type", "VEN"); echo HtmlInput::hidden("ac", $_REQUEST['ac']); echo HtmlInput::hidden("sa", "p"); echo $Ledger->input($array); echo '<div class="content">'; echo $Ledger->input_paid();
static function test_me($p_string = '') { $cn = new Database(dossier::id()); $a = new Acc_Ledger_Sold($cn, 2); echo $a->input(); }