27if ( ! defined (
'ALLOWED') ) die(
'Appel direct ne sont pas permis');
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();
77 echo
HtmlInput::submit(
"record", _(
"Enregistrement"),
'onClick="return verify_ca(\'\');"');
81 if (DEBUGNOALYSS>1) { echo
"<!-- confirm_div_id -->";}
103 if (!isset($correct))
105 echo
'<div class="content">';
112 if ( isset(
$_POST[
'opd_name']) && trim(
$_POST[
'opd_name']) !=
"" )
120 $jr_id =
$cn->get_value(
'select jr_id from jrn where jr_internal=$1', array($internal));
122 echo
'<h1> '._(
'Enregistrement').
' </h1>';
128 $Ledger->save_followup(
$http->request(
"action_gestion",
"string",
""));
134 echo
'<h2>'._(
'Document').
'</h2>';
138 if (isset(
$_POST[
'reverse_ck']))
149 printf ( _(
'Extourné au %s'),
$p_date);
154 echo
'<p class="notice">'.
155 _(
'Opération non extournée').
163 echo
'<span class="warning">'._(
'Date invalide, opération non extournée').
'</span>';
166 echo
'<ul class="aligned-block">';
168 echo
$Ledger->button_new_operation();
171 echo
$Ledger->button_copy_operation();
183echo
'<div class="content">';
193 $def_ledger =
$Ledger->get_first(
'ach',2);
194 if ( empty ($def_ledger))
196 exit(_(
'Pas de journal disponible'));
198 $Ledger->id = $def_ledger[
'jrn_def_id'];
210echo
'<div class="content">';
212if (
$p_msg !=
"" ) echo
'<span class="warning">'.$p_msg.
'</span>';
216 $payment=
$http->request(
"e_mp",
"string",0);
221 echo
"<FORM class=\"print\"NAME=\"form_detail\" METHOD=\"POST\" >";
224 if (isset(
$_REQUEST[
'pre_def'])&&!isset(
$_POST[
'correct']) && ! isset($correct) )
227 $predef=
$http->request(
"pre_def",
"string",
"0");
228 $p_jrn_predef=
$http->request(
"p_jrn_predef",
"string",
"0");
230 $op->set_od_id($predef);
235 echo
'<div class="content">';
239 echo
'compute_all_ledger();';
242 else if (isset(
$_GET[
'create_feenote']))
251 echo
'<div class="content">';
255 echo
'compute_all_ledger();';
263 echo
'<div class="content">';
267 echo
'compute_all_ledger();';
270 echo
'<div class="content">';
272 'onClick="compute_all_ledger();"');
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
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 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