/** * @covers Acc_Balance::get_row * @todo Implement testGet_row(). */ public function testGet_row() { $this->object->get_row(1, 200); // Remove the following lines when you implement this test. $this->markTestIncomplete('DATA : cannot be tested'); }
} } } if ($_GET['p_filter'] == 0) { $bal->jrn = null; } if ($_GET['p_filter'] == 2 && isset($_GET['r_cat'])) { $bal->filter_cat($_GET['r_cat']); } $bal->from_poste = $_GET['from_poste']; $bal->to_poste = $_GET['to_poste']; if (isset($_GET['unsold'])) { $bal->unsold = true; } $previous = isset($_GET['previous_exc']) ? 1 : 0; $row = $bal->get_row($_GET['from_periode'], $_GET['to_periode'], $previous); $previous = isset($row[0]['sum_cred_previous']) ? 1 : 0; $periode = new Periode($cn); $a = $periode->get_date_limit($_GET['from_periode']); $b = $periode->get_date_limit($_GET['to_periode']); echo "<h2 class=\"info\"> période du " . $a['p_start'] . " au " . $b['p_end'] . "</h2>"; echo '<span style="display:block">'; echo _('Filtre') . HtmlInput::infobulle(24); echo HtmlInput::filter_table("t_balance", "0,1", "1"); echo '</span>'; echo '<table id="t_balance" width="100%">'; echo '<th>Poste Comptable</th>'; echo '<th>Libellé</th>'; if ($previous == 1) { echo '<th>Débit N-1</th>'; echo '<th>Crédit N-1</th>';
static function test_me() { require 'class_user.php'; global $g_user; $cn = new Database(dossier::id()); $g_user = new User($cn); $a = new Acc_Balance($cn); $a->get_row(163, 175, 1); var_dump($a); }
} } break; case 2: if (isset($_GET['r_cat'])) { $bal->filter_cat($_GET['r_cat']); } break; } $bal->from_poste = $_GET['from_poste']; $bal->to_poste = $_GET['to_poste']; if (isset($_GET['unsold'])) { $bal->unsold = true; } $previous = isset($_GET['previous_exc']) ? 1 : 0; $array = $bal->get_row($from_periode, $to_periode, $previous); $previous = isset($array[0]['sum_cred_previous']) ? 1 : 0; if (sizeof($array) == 0) { exit; } $pPeriode = new Periode($cn); $a = $pPeriode->get_date_limit($from_periode); $b = $pPeriode->get_date_limit($to_periode); $per_text = " du " . $a['p_start'] . " au " . $b['p_end']; if ($previous == 1) { $pdf = new PDFLand($cn); } else { $pdf = new PDF($cn); } $pdf->setDossierInfo(" Balance " . $per_text); $pdf->AliasNbPages();