altocompta/doc/developper/html/jrn_8php.html

978 lines
41 KiB
HTML
Raw Blame History

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>phpcompta: /home/dany/developpement/phpcompta-dev/phpcompta/include/jrn.php File Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.4 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a></div>
<div class="nav">
<a class="el" href="dir_000000.html">developpement</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_000001.html">phpcompta-dev</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_000002.html">phpcompta</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_000006.html">include</a></div>
<h1>jrn.php File Reference</h1>work with the ledger <a href="#_details">More...</a>
<p>
<p>
<a href="jrn_8php-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="jrn_8php.html#a0">RecordJrn</a> ($p_dossier, $p_user, $p_jrn, $p_MaxDeb, $p_MaxCred, $p_array=null, $p_update=0)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Record an entry in the selected journal. <a href="#a0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="jrn_8php.html#a1">UpdateJrn</a> ($p_cn, $p_jr_id)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Display the form to UPDATE account operation. <a href="#a1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="jrn_8php.html#a2">ViewRec</a> ($p_array=null)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">debug function to be dropped <a href="#a2"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="jrn_8php.html#a3">CorrectRecord</a> ($p_dossier, $p_user, $p_jrn, $p_MaxDeb, $p_MaxCred, $p_array)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Call the RecordJrn. In fact does nothing. <a href="#a3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="jrn_8php.html#a4">ViewRecord</a> ($p_dossier, $p_jrn, $p_id, $p_MaxDeb, $p_MaxCred, $p_array)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">View the added operation. <a href="#a4"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="jrn_8php.html#a5">GetJrnProperty</a> ($p_cn, $p_jrn)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the properties of a journal. <a href="#a5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="jrn_8php.html#a6">GetJrnProp</a> ($p_dossier, $p_jrn, $is_connected=0)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the properties of a journal. <a href="#a6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="jrn_8php.html#a7">ViewJrn</a> ($p_dossier, $p_user, $p_jrn, $p_url, $p_array=null)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Vue des <20>critures comptables. <a href="#a7"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="jrn_8php.html#a8">GetData</a> ($p_cn, $p_grpt)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get data from jrnx where p_grpt=jrnx(j_grpt). <a href="#a8"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="jrn_8php.html#a9">GetInternal</a> ($p_cn, $p_id)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">parm :<ul>
<li>gen :</li><li>return:</li><li>-1 si aucune valeur de trouv<75>eReturn the internal value </li></ul>
<a href="#a9"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="jrn_8php.html#a10">GetAmount</a> ($p_cn, $p_id)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">return the sum of jrn where the internal_code is the p_id <a href="#a10"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="jrn_8php.html#a11">VerifData</a> ($p_cn, $p_array, $p_user)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Verify the data before inserting or updating. <a href="#a11"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="jrn_8php.html#a12">GetJrnName</a> ($p_cn, $p_id)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the name of the jrn. <a href="#a12"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="jrn_8php.html#a13">NextJrn</a> ($p_cn, $p_type)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the number of the next jrn from the jrn_def.jrn_code. <a href="#a13"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="jrn_8php.html#a14">SetInternalCode</a> ($p_cn, $p_grpt, $p_jrn)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">parm :<ul>
<li>$p_cn connection</li></ul>
<p>
$p_grpt id in jr_grpt_id<ul>
<li>$p_jrn jrn id jrn_def_id</li><li>$p_dossier dossier id gen :<ul>
<li>return:</li><li></li></ul>
</li></ul>
<a href="#a14"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="jrn_8php.html#a15">GetDataJrnJrId</a> ($p_cn, $p_jr_id)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get data from jrn and jrnx thanks the jr_id. <a href="#a15"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
work with the ledger
<p>
<p>
Definition in file <a class="el" href="jrn_8php-source.html">jrn.php</a>.<hr><h2>Function Documentation</h2>
<a class="anchor" name="a3"></a><!-- doxytag: member="jrn.php::CorrectRecord" ref="a3" args="($p_dossier, $p_user, $p_jrn, $p_MaxDeb, $p_MaxCred, $p_array)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">CorrectRecord </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname" nowrap> <em>p_dossier</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_user</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_jrn</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_MaxDeb</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_MaxCred</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_array</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Call the RecordJrn. In fact does nothing.
<p>
parm :<ul>
<li>the same as RecordJrn gen :</li><li>none return:</li><li>none</li></ul>
<p>
Definition at line <a class="el" href="jrn_8php-source.html#l00436">436</a> of file <a class="el" href="jrn_8php-source.html">jrn.php</a>.
<p>
References <a class="el" href="jrn_8php-source.html#l00038">RecordJrn()</a>. </td>
</tr>
</table>
<a class="anchor" name="a10"></a><!-- doxytag: member="jrn.php::GetAmount" ref="a10" args="($p_cn, $p_id)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">GetAmount </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname" nowrap> <em>p_cn</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_id</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
return the sum of jrn where the internal_code is the p_id
<p>
parm :<ul>
<li>$p_cn database connection</li></ul>
<p>
p_id = jrn.jr_internal gen :<ul>
<li>return:</li><li>number</li></ul>
<p>
Definition at line <a class="el" href="jrn_8php-source.html#l00814">814</a> of file <a class="el" href="jrn_8php-source.html">jrn.php</a>.
<p>
References <a class="el" href="jrn__detail_8php-source.html#l00124">$l_line</a>, <a class="el" href="eub__be_8inc_8php-source.html#l00074">$Res</a>, and <a class="el" href="postgres_8php-source.html#l00099">ExecSql()</a>. </td>
</tr>
</table>
<a class="anchor" name="a8"></a><!-- doxytag: member="jrn.php::GetData" ref="a8" args="($p_cn, $p_grpt)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">GetData </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname" nowrap> <em>p_cn</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_grpt</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Get data from jrnx where p_grpt=jrnx(j_grpt).
<p>
parm :<ul>
<li>connection</li></ul>
<p>
p_grpt gen :<ul>
<li>none return:</li><li>return array</li></ul>
<p>
Definition at line <a class="el" href="jrn_8php-source.html#l00711">711</a> of file <a class="el" href="jrn_8php-source.html">jrn.php</a>.
<p>
References <a class="el" href="admin__repo_8php-source.html#l00124">$l_id</a>, <a class="el" href="jrn__detail_8php-source.html#l00124">$l_line</a>, <a class="el" href="jrn__search_8php-source.html#l00147">$MaxLine</a>, <a class="el" href="eub__be_8inc_8php-source.html#l00074">$Res</a>, <a class="el" href="debug_8php-source.html#l00034">echo_debug()</a>, and <a class="el" href="postgres_8php-source.html#l00099">ExecSql()</a>. </td>
</tr>
</table>
<a class="anchor" name="a15"></a><!-- doxytag: member="jrn.php::GetDataJrnJrId" ref="a15" args="($p_cn, $p_jr_id)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">GetDataJrnJrId </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname" nowrap> <em>p_cn</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_jr_id</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Get data from jrn and jrnx thanks the jr_id.
<p>
parm :<ul>
<li>connection</li></ul>
<p>
p_jr_id (jrn.jr_id) gen :<ul>
<li>none return:</li><li>return array</li></ul>
<p>
Definition at line <a class="el" href="jrn_8php-source.html#l00973">973</a> of file <a class="el" href="jrn_8php-source.html">jrn.php</a>.
<p>
References <a class="el" href="recherche_8php-source.html#l00066">$array</a>, <a class="el" href="balance_8php-source.html#l00113">$i</a>, <a class="el" href="jrn__search_8php-source.html#l00147">$MaxLine</a>, <a class="el" href="eub__be_8inc_8php-source.html#l00074">$Res</a>, <a class="el" href="debug_8php-source.html#l00034">echo_debug()</a>, and <a class="el" href="postgres_8php-source.html#l00099">ExecSql()</a>.
<p>
Referenced by <a class="el" href="jrn_8php-source.html#l00282">UpdateJrn()</a>. </td>
</tr>
</table>
<a class="anchor" name="a9"></a><!-- doxytag: member="jrn.php::GetInternal" ref="a9" args="($p_cn, $p_id)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">GetInternal </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname" nowrap> <em>p_cn</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_id</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
parm :<ul>
<li>gen :</li><li>return:</li><li>-1 si aucune valeur de trouv<75>eReturn the internal value </li></ul>
<p>
parm :<ul>
<li>p_cn database connection</li></ul>
<p>
p_id : jrn.jr_id gen :<ul>
<li>none return:</li><li>null si aucune valeur de trouv<75>e</li></ul>
<p>
Definition at line <a class="el" href="jrn_8php-source.html#l00793">793</a> of file <a class="el" href="jrn_8php-source.html">jrn.php</a>.
<p>
References <a class="el" href="jrn__detail_8php-source.html#l00124">$l_line</a>, <a class="el" href="eub__be_8inc_8php-source.html#l00074">$Res</a>, and <a class="el" href="postgres_8php-source.html#l00099">ExecSql()</a>.
<p>
Referenced by <a class="el" href="user__common_8php-source.html#l00321">ListJrn()</a>, and <a class="el" href="jrn_8php-source.html#l00282">UpdateJrn()</a>. </td>
</tr>
</table>
<a class="anchor" name="a12"></a><!-- doxytag: member="jrn.php::GetJrnName" ref="a12" args="($p_cn, $p_id)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">GetJrnName </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname" nowrap> <em>p_cn</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_id</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Return the name of the jrn.
<p>
parm :<ul>
<li>p_cn connexion resource</li></ul>
<p>
jrn id gen :<ul>
<li>none return:</li><li>string or null if not found</li></ul>
<p>
Definition at line <a class="el" href="jrn_8php-source.html#l00907">907</a> of file <a class="el" href="jrn_8php-source.html">jrn.php</a>.
<p>
References <a class="el" href="setup_8php-source.html#l00374">$Max</a>, <a class="el" href="eub__be_8inc_8php-source.html#l00074">$Res</a>, <a class="el" href="class__operation_8php-source.html#l00087">$ret</a>, and <a class="el" href="postgres_8php-source.html#l00099">ExecSql()</a>. </td>
</tr>
</table>
<a class="anchor" name="a6"></a><!-- doxytag: member="jrn.php::GetJrnProp" ref="a6" args="($p_dossier, $p_jrn, $is_connected=0)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">GetJrnProp </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname" nowrap> <em>p_dossier</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_jrn</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>is_connected</em> = <code>0</code></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Get the properties of a journal.
<p>
parm :<ul>
<li>p_dossier the folder id</li></ul>
<p>
p_jrn the jrn id gen :<ul>
<li>none return:</li><li>an array containing properties</li></ul>
<p>
Definition at line <a class="el" href="jrn_8php-source.html#l00549">549</a> of file <a class="el" href="jrn_8php-source.html">jrn.php</a>.
<p>
References <a class="el" href="impress__fiche_8php-source.html#l00026">$cn</a>, <a class="el" href="eub__be_8inc_8php-source.html#l00074">$Res</a>, <a class="el" href="postgres_8php-source.html#l00072">DbConnect()</a>, and <a class="el" href="postgres_8php-source.html#l00099">ExecSql()</a>.
<p>
Referenced by <a class="el" href="user__common_8php-source.html#l00321">ListJrn()</a>, <a class="el" href="jrn_8php-source.html#l00583">ViewJrn()</a>, and <a class="el" href="jrn_8php-source.html#l00457">ViewRecord()</a>. </td>
</tr>
</table>
<a class="anchor" name="a5"></a><!-- doxytag: member="jrn.php::GetJrnProperty" ref="a5" args="($p_cn, $p_jrn)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">GetJrnProperty </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname" nowrap> <em>p_cn</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_jrn</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Get the properties of a journal.
<p>
parm :<ul>
<li>p_cn database connection</li></ul>
<p>
p_jrn the jrn id gen :<ul>
<li>none return:</li><li>an array containing properties</li></ul>
<p>
Definition at line <a class="el" href="jrn_8php-source.html#l00523">523</a> of file <a class="el" href="jrn_8php-source.html">jrn.php</a>.
<p>
References <a class="el" href="eub__be_8inc_8php-source.html#l00074">$Res</a>, and <a class="el" href="postgres_8php-source.html#l00099">ExecSql()</a>.
<p>
Referenced by <a class="el" href="user__form__ods_8php-source.html#l00045">FormODS()</a>, <a class="el" href="jrn_8php-source.html#l00038">RecordJrn()</a>, and <a class="el" href="jrn_8php-source.html#l00949">SetInternalCode()</a>. </td>
</tr>
</table>
<a class="anchor" name="a13"></a><!-- doxytag: member="jrn.php::NextJrn" ref="a13" args="($p_cn, $p_type)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">NextJrn </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname" nowrap> <em>p_cn</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_type</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Get the number of the next jrn from the jrn_def.jrn_code.
<p>
parm :<ul>
<li>$p_cn connection</li></ul>
<p>
$p_type jrn type gen :<ul>
<li>none return:</li><li>string containing the next code</li></ul>
<p>
Definition at line <a class="el" href="jrn_8php-source.html#l00930">930</a> of file <a class="el" href="jrn_8php-source.html">jrn.php</a>.
<p>
References <a class="el" href="line__update_8php-source.html#l00070">$Ret</a>, and <a class="el" href="postgres_8php-source.html#l00222">CountSql()</a>. </td>
</tr>
</table>
<a class="anchor" name="a0"></a><!-- doxytag: member="jrn.php::RecordJrn" ref="a0" args="($p_dossier, $p_user, $p_jrn, $p_MaxDeb, $p_MaxCred, $p_array=null, $p_update=0)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">RecordJrn </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname" nowrap> <em>p_dossier</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_user</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_jrn</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_MaxDeb</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_MaxCred</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_array</em> = <code>null</code>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_update</em> = <code>0</code></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Record an entry in the selected journal.
<p>
parm :<ul>
<li>p_dossier dossier id</li></ul>
<p>
p_user user id<ul>
<li>p_jrn selected journal gen :<ul>
<li>none return:</li><li>none</li></ul>
</li></ul>
<p>
Definition at line <a class="el" href="jrn_8php-source.html#l00038">38</a> of file <a class="el" href="jrn_8php-source.html">jrn.php</a>.
<p>
References <a class="el" href="balance_8php-source.html#l00108">$a</a>, <a class="el" href="impress__fiche_8php-source.html#l00026">$cn</a>, <a class="el" href="impress__fiche_8php-source.html#l00079">$e</a>, <a class="el" href="user__sec_8php-source.html#l00141">$l2_line</a>, <a class="el" href="jrn__detail_8php-source.html#l00124">$l_line</a>, <a class="el" href="send__poste__pdf_8php-source.html#l00044">$poste</a>, <a class="el" href="eub__be_8inc_8php-source.html#l00074">$Res</a>, <a class="el" href="client_8inc_8php-source.html#l00128">$search</a>, <a class="el" href="user__action__ach_8php-source.html#l00299">$sessid</a>, <a class="el" href="eub__be_8inc_8php-source.html#l00055">$Sql</a>, <a class="el" href="postgres_8php-source.html#l00072">DbConnect()</a>, <a class="el" href="debug_8php-source.html#l00034">echo_debug()</a>, <a class="el" href="postgres_8php-source.html#l00099">ExecSql()</a>, <a class="el" href="jrn_8php-source.html#l00523">GetJrnProperty()</a>, <a class="el" href="preference_8php-source.html#l00122">GetPeriode()</a>, <a class="el" href="pref_8inc_8php-source.html#l00045">METHOD</a>, <a class="el" href="client_8inc_8php-source.html#l00116">name</a>, <a class="el" href="facture_8inc_8php-source.html#l00124">selected</a>, and <a class="el" href="client_8inc_8php-source.html#l00117">value</a>.
<p>
Referenced by <a class="el" href="jrn_8php-source.html#l00436">CorrectRecord()</a>. </td>
</tr>
</table>
<a class="anchor" name="a14"></a><!-- doxytag: member="jrn.php::SetInternalCode" ref="a14" args="($p_cn, $p_grpt, $p_jrn)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">SetInternalCode </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname" nowrap> <em>p_cn</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_grpt</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_jrn</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
parm :<ul>
<li>$p_cn connection</li></ul>
<p>
$p_grpt id in jr_grpt_id<ul>
<li>$p_jrn jrn id jrn_def_id</li><li>$p_dossier dossier id gen :<ul>
<li>return:</li><li></li></ul>
</li></ul>
<p>
<p>
Definition at line <a class="el" href="jrn_8php-source.html#l00949">949</a> of file <a class="el" href="jrn_8php-source.html">jrn.php</a>.
<p>
References <a class="el" href="jrn__add_8php-source.html#l00181">$num</a>, <a class="el" href="eub__be_8inc_8php-source.html#l00074">$Res</a>, <a class="el" href="postgres_8php-source.html#l00099">ExecSql()</a>, <a class="el" href="jrn_8php-source.html#l00523">GetJrnProperty()</a>, and <a class="el" href="postgres_8php-source.html#l00251">NextSequence()</a>.
<p>
Referenced by <a class="el" href="user__form__fin_8php-source.html#l00349">RecordFin()</a>, <a class="el" href="user__form__ven_8php-source.html#l00630">RecordInvoice()</a>, <a class="el" href="user__form__ach_8php-source.html#l00627">RecordSell()</a>, and <a class="el" href="import__inc_8php-source.html#l00090">TransferCSV()</a>. </td>
</tr>
</table>
<a class="anchor" name="a1"></a><!-- doxytag: member="jrn.php::UpdateJrn" ref="a1" args="($p_cn, $p_jr_id)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">UpdateJrn </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname" nowrap> <em>p_cn</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_jr_id</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Display the form to UPDATE account operation.
<p>
parm :<ul>
<li>p_dossier</li></ul>
<p>
p_jrn<ul>
<li>p_MaxDeb number of debit line</li><li>p_MaxCred " " credit " " - p_array array containing the others datas gen :<ul>
<li>none return:</li><li>none</li></ul>
</li></ul>
<p>
Definition at line <a class="el" href="jrn_8php-source.html#l00282">282</a> of file <a class="el" href="jrn_8php-source.html">jrn.php</a>.
<p>
References <a class="el" href="balance_8php-source.html#l00108">$a</a>, <a class="el" href="fortis__be_8inc_8php-source.html#l00054">$check</a>, <a class="el" href="jrn__search_8php-source.html#l00168">$col_vide</a>, <a class="el" href="show__document__modele_8php-source.html#l00060">$file</a>, <a class="el" href="balance_8php-source.html#l00113">$i</a>, <a class="el" href="user__action__ach_8php-source.html#l00052">$r</a>, <a class="el" href="client_8inc_8php-source.html#l00128">$search</a>, <a class="el" href="user__action__ach_8php-source.html#l00299">$sessid</a>, <a class="el" href="debug_8php-source.html#l00034">echo_debug()</a>, <a class="el" href="ac__common_8php-source.html#l00036">echo_error()</a>, <a class="el" href="user__common_8php-source.html#l00761">GetConcerned()</a>, <a class="el" href="jrn_8php-source.html#l00973">GetDataJrnJrId()</a>, <a class="el" href="user__common_8php-source.html#l00792">GetGrpt()</a>, <a class="el" href="jrn_8php-source.html#l00793">GetInternal()</a>, <a class="el" href="client_8inc_8php-source.html#l00116">name</a>, <a class="el" href="impress__listing__client_8php-source.html#l00059">return</a>, and <a class="el" href="client_8inc_8php-source.html#l00117">value</a>. </td>
</tr>
</table>
<a class="anchor" name="a11"></a><!-- doxytag: member="jrn.php::VerifData" ref="a11" args="($p_cn, $p_array, $p_user)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">VerifData </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname" nowrap> <em>p_cn</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_array</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_user</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Verify the data before inserting or updating.
<p>
parm :<ul>
<li>p_cn connection</li></ul>
<p>
p_array array with all the values<ul>
<li>p_user gen :<ul>
<li>none return:</li><li>errorcode or ok</li></ul>
</li></ul>
<p>
Definition at line <a class="el" href="jrn_8php-source.html#l00834">834</a> of file <a class="el" href="jrn_8php-source.html">jrn.php</a>.
<p>
References <a class="el" href="ac__common_8php-source.html#l00053">cmpDate()</a>, <a class="el" href="debug_8php-source.html#l00034">echo_debug()</a>, <a class="el" href="ac__common_8php-source.html#l00036">echo_error()</a>, <a class="el" href="preference_8php-source.html#l00122">GetPeriode()</a>, <a class="el" href="ac__common_8php-source.html#l00097">isDate()</a>, <a class="el" href="client_8inc_8php-source.html#l00116">name</a>, and <a class="el" href="preference_8php-source.html#l00143">PeriodeClosed()</a>. </td>
</tr>
</table>
<a class="anchor" name="a7"></a><!-- doxytag: member="jrn.php::ViewJrn" ref="a7" args="($p_dossier, $p_user, $p_jrn, $p_url, $p_array=null)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">ViewJrn </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname" nowrap> <em>p_dossier</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_user</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_jrn</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_url</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_array</em> = <code>null</code></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Vue des <20>critures comptables.
<p>
parm :<ul>
<li>p_dossier,</li></ul>
<p>
p_user,<ul>
<li>p_jrn</li><li>p_url for modif</li><li>array gen :<ul>
<li>return:</li><li></li></ul>
</li></ul>
<p>
Definition at line <a class="el" href="jrn_8php-source.html#l00583">583</a> of file <a class="el" href="jrn_8php-source.html">jrn.php</a>.
<p>
References <a class="el" href="impress__fiche_8php-source.html#l00026">$cn</a>, <a class="el" href="jrn__search_8php-source.html#l00168">$col_vide</a>, <a class="el" href="setup_8php-source.html#l00366">$db</a>, <a class="el" href="admin__repo_8php-source.html#l00124">$l_id</a>, <a class="el" href="jrn__detail_8php-source.html#l00124">$l_line</a>, <a class="el" href="jrn__search_8php-source.html#l00147">$MaxLine</a>, <a class="el" href="eub__be_8inc_8php-source.html#l00074">$Res</a>, <a class="el" href="user__action__ach_8php-source.html#l00299">$sessid</a>, <a class="el" href="facture_8inc_8php-source.html#l00082">$sql</a>, <a class="el" href="postgres_8php-source.html#l00072">DbConnect()</a>, <a class="el" href="debug_8php-source.html#l00034">echo_debug()</a>, <a class="el" href="postgres_8php-source.html#l00099">ExecSql()</a>, <a class="el" href="ac__common_8php-source.html#l00207">FormatString()</a>, <a class="el" href="jrn_8php-source.html#l00549">GetJrnProp()</a>, and <a class="el" href="ac__common_8php-source.html#l00097">isDate()</a>. </td>
</tr>
</table>
<a class="anchor" name="a2"></a><!-- doxytag: member="jrn.php::ViewRec" ref="a2" args="($p_array=null)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">ViewRec </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>p_array</em> = <code>null</code> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
debug function to be dropped
<p>
parm :<ul>
<li>gen :</li><li>return:</li><li></li></ul>
<p>
Definition at line <a class="el" href="jrn_8php-source.html#l00415">415</a> of file <a class="el" href="jrn_8php-source.html">jrn.php</a>.
<p>
References <a class="el" href="debug_8php-source.html#l00034">echo_debug()</a>. </td>
</tr>
</table>
<a class="anchor" name="a4"></a><!-- doxytag: member="jrn.php::ViewRecord" ref="a4" args="($p_dossier, $p_jrn, $p_id, $p_MaxDeb, $p_MaxCred, $p_array)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">ViewRecord </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname" nowrap> <em>p_dossier</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_jrn</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_id</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_MaxDeb</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_MaxCred</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_array</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
View the added operation.
<p>
parm :<ul>
<li>p_dossier</li></ul>
<p>
p_jrn<ul>
<li>p_id</li><li>p_MaxDeb</li><li>p_MaxCred</li><li>p_array gen :<ul>
<li>none return:</li><li>none</li></ul>
</li></ul>
<p>
Definition at line <a class="el" href="jrn_8php-source.html#l00457">457</a> of file <a class="el" href="jrn_8php-source.html">jrn.php</a>.
<p>
References <a class="el" href="jrn__search_8php-source.html#l00168">$col_vide</a>, <a class="el" href="debug_8php-source.html#l00034">echo_debug()</a>, <a class="el" href="jrn_8php-source.html#l00549">GetJrnProp()</a>, <a class="el" href="poste_8php-source.html#l00036">GetPosteLibelle()</a>, and <a class="el" href="balance_8php-source.html#l00068">table</a>. </td>
</tr>
</table>
<hr size="1"><address style="align: right;"><small>Generated on Fri Jun 23 00:12:46 2006 for phpcompta by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4 </small></address>
</body>
</html>