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
'<div class="bt-center">';
89 echo
'<ul class="aligned-block">';
91 echo HtmlInput::submit(
"confirm",
_(
"Confirmer"),
'onClick="return verify_ca(\'\');"', p_class:
"button");
94 echo HtmlInput::submit(
'correct',
_(
"Corriger"), p_class:
"button");
107if ( isset(
$_POST[
'confirm']))
119 if ( !isset($correct))
121 echo
'<div id="jrn_name_div">';
122 echo
'<h1 id="jrn_name" style="display:inline">' .
$Ledger->get_name() .
'</h1>';
125 echo
'<div class="content">';
129 }
catch (\Exception
$e) {
131 echo_warning(
_(
"enregistrement annulé: balance , voyer le fichier log"));
136 echo
'<h1>'._(
'Enregistrement').
' </h1>';
137 echo
'<div class="content">';
142 echo
'<div class="bt-center">';
143 echo
'<ul class="aligned-block">';
145 echo
$Ledger->button_new_operation();
162echo
'<div class="content">';
163if (
$p_msg !=
"" ) echo
'<span class="warning">'.$p_msg.
'</span>';
164echo
'<form class="print" name="form_detail" enctype="multipart/form-data" class="print" METHOD="POST">';
175 echo
'<div class="bt-center">';
176 echo
'<ul class="aligned-block">';
197 if ( ! isset (
$_REQUEST[
'first_sold']) ) {
198 $script.=
" ajax_saldo('first_sold');";
201}
catch (Exception
$ex) {
202 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