27if ( ! defined (
'ALLOWED') ) die(
'Appel direct ne sont pas permis');
32$cn = Dossier::connect();
48if (isset(
$_POST[
'view_invoice']))
64 echo
'<div class="content">';
65 echo
'<div id="confirm_div_id" style="width: 47%; float: left;">';
66 echo
h1(
_(
"Confirmation"));
67 echo
span(
_(
"Vous devez encore confirmer"),
' class="notice"');
70 echo
'<div id="confirm_div_id" style="width: 100%; float: left;">';
71 echo
'<form enctype="multipart/form-data" method="post" class="print">';
72 echo dossier::hidden();
75 echo HtmlInput::hidden(
'ac',
$ac);
77 echo HtmlInput::submit(
"record",
_(
"Enregistrement"),
'onClick="return verify_ca(\'\');"');
78 echo HtmlInput::submit(
'correct',
_(
"Corriger"));
81 if (DEBUGNOALYSS>1) { echo
"<!-- confirm_div_id -->";}
103 if (!isset($correct))
105 echo
'<div class="content">';
111 }
catch (\Exception
$e) {
113 echo_warning(
_(
"enregistrement annulé: balance , voyer le fichier log"));
121 if ( isset(
$_POST[
'opd_name']) && trim(
$_POST[
'opd_name']) !=
"" )
129 $jr_id =
$cn->get_value(
'select jr_id from jrn where jr_internal=$1', array($internal));
131 echo
'<h1> '._(
'Enregistrement').
' </h1>';
137 $Ledger->save_followup(
$http->request(
"action_gestion",
"string",
""));
143 echo
'<h2>'._(
'Document').
'</h2>';
147 if (isset(
$_POST[
'reverse_ck']))
158 printf (
_(
'Extourné au %s'),
$p_date);
163 echo
'<p class="error">'.
164 _(
'Opération non extournée').
173 echo
'<span class="warning">'._(
'Date invalide, opération non extournée').
'</span>';
176 echo
'<ul class="aligned-block">';
178 echo
$Ledger->button_new_operation();
181 echo
$Ledger->button_copy_operation();
193echo
'<div class="content">';
203 $def_ledger =
$Ledger->get_first(
'ach',2);
204 if ( empty ($def_ledger))
206 exit(
_(
'Pas de journal disponible'));
208 $Ledger->id = $def_ledger[
'jrn_def_id'];
220echo
'<div class="content">';
222if (
$p_msg !=
"" ) echo
'<span class="warning">'.$p_msg.
'</span>';
226 $payment=
$http->request(
"e_mp",
"string",0);
231 echo
"<FORM class=\"print\"NAME=\"form_detail\" METHOD=\"POST\" >";
234 if (isset(
$_REQUEST[
'pre_def'])&&!isset(
$_POST[
'correct']) && ! isset($correct) )
237 $predef=
$http->request(
"pre_def",
"string",
"0");
238 $p_jrn_predef=
$http->request(
"p_jrn_predef",
"string",
"0");
240 $op->set_od_id($predef);
245 echo
'<div class="content">';
249 echo
'compute_all_ledger();';
252 else if (isset(
$_GET[
'create_feenote']))
255 $cp=
$http->get(
'cp',
'number',0);
262 echo
'<div class="content">';
266 echo
'compute_all_ledger();';
274 echo
'<div class="content">';
278 echo
'compute_all_ledger();';
281 echo
'<div class="content">';
283 'onClick="compute_all_ledger();"');
span($p_string, $p_extra='')
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
if(isset( $_REQUEST[ 'show'])) if(isset($_REQUEST['del'])) $ac
_("actif, passif,charge,...")
Manage the additionnal info for operation (from jrn), when an invoice is generated,...
Handle the ledger of purchase,.
manage the predefined operation, link to the table op_def and op_def_detail
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