28if (!defined(
'ALLOWED'))
29 die(
'Appel direct ne sont pas permis');
34 $obj_type=
$http->get(
"obj_type");
46if (
$g_user->check_module(
"LETCARD")==0 &&
$g_user->check_module(
"LETACC")==0)
53$ret->javascript=
"$('detail').hide();$('list').show();$('search').show();";
56$sql=
"select j_date,to_char(j_date,'DD.MM.YYYY') as j_date_fmt,J_POSTE,j_qcode,jr_id,
57 jr_comment,j_montant, j_debit,jr_internal from jrnx join jrn on (j_grpt=jr_grpt_id)
62$r.=
'<fieldset><legend>'._(
'Lettrage').
'</legend>';
63$r.=_(
'Poste').
" ".
$row[
'j_poste'].
' '.
$row[
'j_qcode'].
'<br>';
65$detail=
"<A class=\"detail\" style=\"display:inline\" HREF=\"javascript:modifyOperation('".$row[
'jr_id'].
"',".
$gDossier.
")\" > ".
$row[
'jr_internal'].
"</A>";
67$r.=_(
'Date').
' : '.
$row[
'j_date_fmt'].
' ref :'.
$detail.
' <br> ';
68$r.=
h(
$row[
'jr_comment']).
" "._(
"montant").
" : ".(
$row[
'j_montant']).
" ".((
$row[
'j_debit']==
't')?
'D':
'C');
70$r.=
'<div id="filtre" style="float:left;display:block">';
71$r.=
'<form method="get" id="search_form" onsubmit="search_letter(this);return false">';
72$r.=
'<div style="float:left;">';
111 alert(_(
'Date malformée'));
127 alert(_(
'Date malformée'));
139 array(
'label'=>_(
'Debit'),
'value'=>0),
140 array(
'label'=>_(
'Credit'),
'value'=>1),
141 array(
'label'=>_(
'Les 2'),
'value'=>3)
153 $jl_id=
$cn->get_value(
'select comptaproc.get_letter_jnt($1)', array(
$j_id));
175$r.=
'<div style="float:left;padding-left:100">';
181$form=
'<div id="result" style="float:top;clear:both">';
183$form.=
'<FORM id="letter_form" METHOD="post">';
184$form.=dossier::hidden();
189if ($obj_type==
'account')
205else if ($obj_type==
'card')
222 $form.=_(
'Mauvais type objet');
234header(
'Content-type: text/xml; charset=UTF-8');
236<?xml version=
"1.0" encoding=
"UTF-8"?>
tr($p_string, $p_extra='')
record_log($p_message)
Record an error message into the log file of the server.
td($p_string='', $p_extra='')
surround the string with td
alert($p_msg, $buffer=false)
alert in javascript
global $g_user
if no group available , then stop
h( $row[ 'oa_description'])
catch(Exception $e) $exercice
Html Input : Input a date format dd.mm.yyyy The property title should be set to indicate what it is e...
This class handles only the numeric input, the input will call a javascript to change comma to period...
Html Input , create a tag <SELECT> ... </SELECT> if readonly == true then display the label correspon...
only for operation retrieved thanks a account (jrnx.j_poste) manage the accounting entries for a give...
only for operation retrieved thanks a quick_code manage the accounting entries for a given card
For the periode tables parm_periode and jrn_periode.
for($e=0; $e< count($afiche); $e++) exit
escape_xml($p_xml)
When data are transfered thanks ajax in a xml document, the xml can not contains some character,...