25if ( ! defined (
'ALLOWED') ) die(
'Appel direct ne sont pas permis');
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">';
128 if ( isset(
$_POST[
'opd_name']) && trim(
$_POST[
'opd_name']) !=
"" )
136 echo
'<h1> Enregistrement </h1>';
142 echo
'<h2>'._(
'Document').
' </h2>';
152 $Ledger->save_followup(
$http->request(
"action_gestion",
"string",
""));
155 if (isset(
$_POST[
'reverse_ck']))
166 echo _(
'Extourné au ').$p_date;
172 echo
'<span class="warning">'._(
'Opération non extournée').
180 echo
'<span class="warning">'._(
'Date invalide, opération non extournée').
'</span>';
183 echo
'<ul class="aligned-block">';
185 echo
$Ledger->button_new_operation();
188 echo
$Ledger->button_copy_operation();
204echo
'<div class="content">';
208 $def_ledger=
$Ledger->get_first(
'ven', 2);
209 if (empty($def_ledger))
211 exit(_(
'Pas de journal disponible'));
213 $Ledger->id=$def_ledger[
'jrn_def_id'];
225echo
'<div class="content">';
228 echo
'<span class="warning">'.$p_msg.
'</span>';
232 $payment=
$http->request(
"e_mp",
"string", 0);
237 echo
"<FORM class=\"print\" NAME=\"form_detail\" METHOD=\"POST\" >";
239 if (isset(
$_REQUEST[
'pre_def'])&&!isset(
$_POST[
'correct']) && ! isset($correct))
244 $op->set_od_id(
$http->request(
'pre_def'));
249 echo
'<div class="content">';
250 echo
$Ledger->input_paid($payment);
253 echo
'compute_all_ledger();';
256 else if (isset(
$_GET[
'create_invoice']))
265 echo
'<div class="content">';
269 echo
'compute_all_ledger();';
280 echo
'<div class="content">';
284 echo
'compute_all_ledger();';
293echo
'<div class="content">';
305 echo
'<script> update_pj()</script>';
span($p_string, $p_extra='')
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
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( $g_parameter->MY_PJ_SUGGEST=='Y') $e_date
if(isset($_REQUEST['p_jrn']) && $g_user->check_jrn($http->request("p_jrn","number")) !='W') if(isset( $_POST[ 'view_invoice'])) if(isset($_POST['record'])) $array
for($e=0; $e< count($afiche); $e++) exit
create_script($p_string)
create the HTML for adding the script tags around of the script