25if ( ! defined (
'ALLOWED') ) die(
'Appel direct ne sont pas permis');
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">';
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">';
120 echo
'<h1>'._(
'Enregistrement').
' </h1>';
121 echo
'<div class="content">';
126 echo
$Ledger->button_new_operation();
133if ( isset(
$_POST[
'correct']))
140if (
$p_msg !=
"" ) echo
'<span class="warning">'.$p_msg.
'</span>';
142echo
'<form class="print" name="form_detail" enctype="multipart/form-data" class="print" METHOD="POST">';
164 if ( ! isset (
$_REQUEST[
'first_sold']) ) {
165 $script.=
" ajax_saldo('first_sold');";
168}
catch (Exception
$ex) {
169 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
the class Acc_Ledger_Fin inherits from Acc_Ledger, this object permit to manage the financial ledger
if(empty($def_ledger)) $Ledger id
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