static function test_me() { $_SESSION['g_user'] = '******'; $_SESSION['g_pass'] = '******'; global $g_user; $cn = new Database(dossier::id()); $g_user = new User($cn); $a = new Acc_Operation($cn); $a->jr_id = 1444; $b = $a->get_quant(); var_dump($b); }
$html = _("Effacement refusé"); } break; ////////////////////////////////////////////////////////////////////// // DE Detail ////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////// // DE Detail ////////////////////////////////////////////////////////////////////// case 'de': ob_start(); try { /* get detail op (D/C) */ $op->get(); /* return an obj. ACH / FIN or VEN or null if nothing is found*/ $obj = $op->get_quant(); $oLedger = new Acc_Ledger($cn, $ledger); if ($obj == null || $obj->signature == 'ODS') { /* only the details */ require_once NOALYSS_INCLUDE . '/template/ledger_detail_misc.php'; } elseif ($obj->signature == 'ACH') { require_once NOALYSS_INCLUDE . '/template/ledger_detail_ach.php'; } elseif ($obj->signature == 'FIN') { require_once NOALYSS_INCLUDE . '/template/ledger_detail_fin.php'; } elseif ($obj->signature == 'VEN') { require_once NOALYSS_INCLUDE . '/template/ledger_detail_ven.php'; } } catch (Exception $e) { echo HtmlInput::anchor_close($div); echo '<h2 class="error">' . _("Désolé il y a une erreur") . '</h2>'; }