request('p_jrn_predef','number',-1); $id_ledger = $http->request('p_jrn','number',$id_predef); $ledger = new Acc_Ledger($cn, $id_ledger); $first_ledger=$ledger->get_first('ODS'); $ledger->id = ($ledger->id == -1) ? $first_ledger['jrn_def_id'] : $id_ledger; // check if we can write in the ledger if ( $g_user->check_jrn($ledger->id)=='X') { alert(_("Vous ne pouvez pas écrire dans ce journal, contactez votre administrateur")); echo ''. _("Vous ne pouvez pas écrire dans ce journal, contactez votre administrateur"). ''; return; } echo '
'; echo '
'; echo '

' . $ledger->get_name() . '

'; echo '
'; // Show the predef operation // Don't forget the p_jrn $p_post=$_POST; if ( isset ($_GET['action']) && ! isset($_POST['correct']) && ! isset($correct) ) { if ( $_GET['action']=='use_opd') { // get data from predef. operation $op=new Pre_operation($cn); $p_post=null; if ( isset($_REQUEST['pre_def']) && $_REQUEST['pre_def'] != '') { $op->set_od_id($http->request('pre_def','number')); $p_post=$op->compute_array(); // operation description are not in the same variable $p_post['desc']=$p_post['e_comm']; } } } $p_msg=(isset($p_msg))?$p_msg:""; if ( !empty ($p_msg)) { print ''.$p_msg.''; } echo '
'; echo dossier::hidden(); echo HtmlInput::request_to_hidden(array('ac','jr_optype')); $default_currency=new Acc_Currency($cn,0); echo $ledger->input($p_post); $style=' style="display:inline-block;width: 15rem;text-align: right"'; ?>
> > >
get_code()?> > >
amount_id="totalDeb"; printf (_("Opération rapprochée : %s"),$iconcerned->input()); echo '

'; echo Html_Input_Noalyss::ledger_add_item("M"); echo '

'; echo '
'; echo '
    '; echo '
  • '; echo HtmlInput::button('act', _('Actualiser'), 'onClick="checkTotalDirect()();"', p_class: "button"); echo '
  • '; echo '
  • '; echo HtmlInput::submit("summary", _("Enregistrer"), p_class: "button"); echo '
  • '; echo '
  • '; echo HtmlInput::reset(_('Effacer '), p_class: "button"); echo '
  • '; echo '
'; echo '
'; echo '
'; echo ""; echo create_script(" update_name()"); $e_date=$http->request("e_date","string",""); if ($e_date=="" && $g_parameter->MY_DATE_SUGGEST=='Y') { echo create_script(" get_last_date()"); } echo '
'; ?>