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
'<div class="bt-center">';
78 echo
'<ul class="aligned-block">';
80 echo HtmlInput::submit(
"record",
_(
"Confirmer"),
'onClick="return verify_ca(\'\');"', p_class:
"button");
83 echo HtmlInput::submit(
'correct',
_(
"Corriger"), p_class:
"button");
89 if (DEBUGNOALYSS>1) { echo
"<!-- confirm_div_id -->";}
97if (isset(
$_POST[
'record']))
111 if (!isset($correct))
113 echo
'<div class="content">';
120 }
catch (\Exception
$e) {
124 echo_warning(
_(
"enregistrement annulé: balance , voyer le fichier log"));
135 if ( isset(
$_POST[
'opd_name']) && trim(
$_POST[
'opd_name']) !=
"" )
143 $jr_id =
$cn->get_value(
'select jr_id from jrn where jr_internal=$1', array($internal));
145 echo
'<h1> '._(
'Enregistrement').
' </h1>';
151 $Ledger->save_followup(
$http->request(
"action_gestion",
"string",
""));
157 echo
'<h2>'._(
'Document').
'</h2>';
161 if (isset(
$_POST[
'reverse_ck']))
172 printf (
_(
'Extourné au %s'),
$p_date);
177 echo
'<p class="error">'.
178 _(
'Opération non extournée').
187 echo
'<span class="warning">'._(
'Date invalide, opération non extournée').
'</span>';
190 echo
'<div class="bt-center">';
191 echo
'<ul class="aligned-block">';
193 echo
$Ledger->button_new_operation();
196 echo
$Ledger->button_copy_operation();
218 $def_ledger =
$Ledger->get_first(
'ach',2);
219 if ( empty ($def_ledger))
221 exit(
_(
'Pas de journal disponible'));
223 $Ledger->id = $def_ledger[
'jrn_def_id'];
234echo
'<div class="content">';
236if (
$p_msg !=
"" ) echo
'<span class="warning">'.$p_msg.
'</span>';
240 $payment=
$http->request(
"e_mp",
"string",0);
245 echo
"<FORM class=\"print\"NAME=\"form_detail\" METHOD=\"POST\" >";
248 if (isset(
$_REQUEST[
'pre_def'])&&!isset(
$_POST[
'correct']) && ! isset($correct) )
251 $predef=
$http->request(
"pre_def",
"string",
"0");
252 $p_jrn_predef=
$http->request(
"p_jrn_predef",
"string",
"0");
254 $op->set_od_id($predef);
259 echo
'<div class="content">';
263 echo
'compute_all_ledger();';
266 else if (isset(
$_GET[
'create_feenote']))
269 $cp=
$http->get(
'cp',
'number',0);
276 echo
'<div class="content">';
280 echo
'compute_all_ledger();';
288 echo
'<div class="content">';
292 echo
'compute_all_ledger();';
295 echo
'<div class="content">';
296 echo
'<div class="bt-center">';
297 echo
'<ul class="aligned-block">';
299 echo
HtmlInput::button(
'act',
_(
'Actualiser'),
'onClick="compute_all_ledger();"', p_class:
"button");
span($p_string, $p_extra='')
isDate($p_date)
Verifie qu'une date est bien formaté en d.m.y et est valable.
echo_warning($p_string)
warns
h1($p_string, $p_class="")
NoAccess($js=1)
Echo no access and stop.
record_log($p_message)
Record an error message into the log file of the server or in the log folder of NOALYSS Record also t...
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,...
: input, confirm and save new operations in edger of purchase the $_POST data is an array with these ...
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