25if ( ! defined (
'ALLOWED') ) die(
'Appel direct ne sont pas permis');
28$cn=Dossier::connect();
46 $g_user->check_jrn(
$http->request(
"p_jrn",
"number")) !=
'W' )
54if ( isset (
$_POST[
'view_invoice'] ) )
69 if ( ! isset($correct))
71 echo
'<div class="content">';
73 echo
'<div id="confirm_div_id" style="width: 47%; float: left;">';
74 echo
h1(
_(
"Confirmation"));
75 echo
span(
_(
"Vous devez encore confirmer"),
' class="notice"');
78 echo
'<div id="confirm_div_id" style="width: 100%; float: left;">';
79 echo
'<form class="print" enctype="multipart/form-data" method="post">';
80 echo dossier::hidden();
84 echo
HtmlInput::submit(
"record",
_(
"Enregistrement"),
'onClick="return verify_ca(\'\');"');
88 if (DEBUGNOALYSS>1) { echo
"<!-- confirm_div_id -->";}
96if ( isset(
$_POST[
'record']) )
117 if ( ! isset($correct))
120 echo
'<div style="position:absolute" class="content">';
122 echo
'<div class="content">';
129 catch (\Exception
$e) {
131 echo_warning(
_(
"enregistrement annulé: balance , voyer le fichier log"));
139 if ( isset(
$_POST[
'opd_name']) && trim(
$_POST[
'opd_name']) !=
"" )
147 echo
'<h1> Enregistrement </h1>';
153 echo
'<h2 class="h-section">'._(
'Document').
' </h2>';
163 $Ledger->save_followup(
$http->request(
"action_gestion",
"string",
""));
166 if (isset(
$_POST[
'reverse_ck']))
177 echo
_(
'Extourné au ').$p_date;
183 echo
'<span class="warning">'._(
'Opération non extournée').
191 echo
'<span class="warning">'._(
'Date invalide, opération non extournée').
'</span>';
194 echo
'<ul class="aligned-block">';
196 echo
$Ledger->button_new_operation();
199 echo
$Ledger->button_copy_operation();
215echo
'<div class="content">';
219 $def_ledger=
$Ledger->get_first(
'ven', 2);
220 if (empty($def_ledger))
222 exit(
_(
'Pas de journal disponible'));
224 $Ledger->id=$def_ledger[
'jrn_def_id'];
236echo
'<div class="content">';
239 echo
'<span class="warning">'.$p_msg.
'</span>';
243 $payment=
$http->request(
"e_mp",
"string", 0);
248 echo
"<FORM class=\"print\" NAME=\"form_detail\" METHOD=\"POST\" >";
250 if (isset(
$_REQUEST[
'pre_def'])&&!isset(
$_POST[
'correct']) && ! isset($correct))
255 $op->set_od_id(
$http->request(
'pre_def'));
260 echo
'<div class="content">';
261 echo
$Ledger->input_paid($payment);
264 echo
'compute_all_ledger();';
267 else if (isset(
$_GET[
'create_invoice']))
270 $cp=
$http->get(
'cp',
'number',0);
277 echo
'<div class="content">';
281 echo
'compute_all_ledger();';
286 echo HtmlInput::hidden(
"ledger_type",
"VEN");
287 echo HtmlInput::hidden(
"ac",
$strac);
288 echo HtmlInput::hidden(
"sa",
"p");
290 echo HtmlInput::hidden(
"action_gestion",
$action_id);
292 echo
'<div class="content">';
296 echo
'compute_all_ledger();';
305echo
'<div class="content">';
317 echo
'<script> update_receipt()</script>';
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
is_msie()
Check if we use IE 8 or 9.
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 sold,.
static echo_file($msg, $print=true)
display the file
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