} $Ledger->id = $def_ledger['jrn_def_id']; } $jrn_priv = $g_user->get_ledger_access($Ledger->id); // Check privilege if (isset($_REQUEST['p_jrn']) && $jrn_priv == 'X') { NoAccess(); exit - 1; } $p_msg = ""; //---------------------------------------- // Confirm the operations //---------------------------------------- if (isset($_POST['save'])) { try { $Ledger->verify($_POST); } catch (Exception $e) { alert($e->getMessage()); $p_msg = $e->getMessage(); $correct = 1; } if (!isset($correct)) { echo '<div class="content">'; echo h1(_('Confirmation'), ''); echo_warning(_("Attention, cette opération n'est pas encore sauvée : vous devez encore confirmer")); echo '<form name="form_detail" class="print" enctype="multipart/form-data" class="print" METHOD="POST">'; echo HtmlInput::hidden('ac', $_REQUEST['ac']); echo $Ledger->confirm($_POST); echo HtmlInput::submit('confirm', _('Confirmer')); echo HtmlInput::submit('correct', _('Corriger')); echo '</form>';
/** * @covers Acc_Ledger_Fin::verify * @todo Implement testVerify(). * @expectedException Exception */ public function testVerify() { $this->object->verify(null); }