25if ( ! defined (
'ALLOWED') ) die(
'Appel direct ne sont pas permis');
31$cn=Dossier::connect();
32$menu_action=
"?ledger_type=fin&ac=".$http->request(
'ac').
"&".dossier::get();
46 $def_ledger=
$Ledger->get_first(
'fin');
47 if ( empty ($def_ledger))
49 exit(
_(
'Pas de journal disponible'));
80 if ( ! isset ($correct ))
82 echo
'<div class="content">';
83 echo
h1(
_(
'Confirmation'),
'');
84 echo_warning(
_(
"Attention, cette opération n'est pas encore sauvée : vous devez encore confirmer"));
85 echo
'<form name="form_detail" class="print" enctype="multipart/form-data" class="print" METHOD="POST">';
86 echo HtmlInput::hidden(
'ac',
$_REQUEST[
'ac']);
88 echo HtmlInput::submit(
'confirm',
_(
'Confirmer'));
89 echo HtmlInput::submit(
'correct',
_(
'Corriger'));
100if ( isset(
$_POST[
'confirm']))
112 if ( !isset($correct))
114 echo
'<div id="jrn_name_div">';
115 echo
'<h1 id="jrn_name" style="display:inline">' .
$Ledger->get_name() .
'</h1>';
118 echo
'<div class="content">';
122 }
catch (\Exception
$e) {
124 echo_warning(
_(
"enregistrement annulé: balance , voyer le fichier log"));
129 echo
'<h1>'._(
'Enregistrement').
' </h1>';
130 echo
'<div class="content">';
135 echo
$Ledger->button_new_operation();
142if ( isset(
$_POST[
'correct']))
149if (
$p_msg !=
"" ) echo
'<span class="warning">'.$p_msg.
'</span>';
151echo
'<form class="print" name="form_detail" enctype="multipart/form-data" class="print" METHOD="POST">';
173 if ( ! isset (
$_REQUEST[
'first_sold']) ) {
174 $script.=
" ajax_saldo('first_sold');";
177}
catch (Exception
$ex) {
178 echo
$ex->getMessage();
echo_warning($p_string)
warns
h1($p_string, $p_class="")
NoAccess($js=1)
Echo no access and stop.
alert($p_msg, $buffer=false)
alert in javascript
global $g_user
if no group available , then stop
foreach(array( 'l', 'gDossier') as $a) if(is_numeric($l)==false) $Ledger
_("actif, passif,charge,...")
the class Acc_Ledger_Fin inherits from Acc_Ledger, this object permit to manage the financial ledger
if($request_jrn !="" && $g_user->check_jrn($request_jrn) !='W' $p_msg)
if( $g_parameter->MY_PJ_SUGGEST=='Y') $e_date
for($e=0; $e< count($afiche); $e++) exit
create_script($p_string)
create the HTML for adding the script tags around of the script