altocompta/doc/developper/html/classposte.html
2006-07-12 21:24:48 +00:00

512 lines
26 KiB
HTML

<!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: poste Class 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>
<h1>poste Class Reference</h1><!-- doxytag: class="poste" -->Manage the account.
<a href="#_details">More...</a>
<p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classposte.html#a0">poste</a> ($p_cn, $p_id)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classposte.html#a1">GetRow</a> ($p_from, $p_to)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get dat for poste. <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="classposte.html#a2">GetName</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the name of a account it doesn't change any data member. <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="classposte.html#a3">get</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get all the value for this object from the database the data member are set. <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="classposte.html#a4">GetSolde</a> ($p_cond=&quot;&quot;)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">give the balance of an account <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="classposte.html#a5">GetSoldeDetail</a> ($p_cond=&quot;&quot;)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">give the balance of an account <a href="#a5"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Data Fields</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classposte.html#o0">$db</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classposte.html#o1">$id</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classposte.html#o2">$label</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classposte.html#o3">$parent</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classposte.html#o4">$row</a></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Manage the account.
<p>
<p>
Definition at line <a class="el" href="class__poste_8php-source.html#l00028">28</a> of file <a class="el" href="class__poste_8php-source.html">class_poste.php</a>.<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="a0"></a><!-- doxytag: member="poste::poste" ref="a0" 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">poste::poste </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>
<p>
Definition at line <a class="el" href="class__poste_8php-source.html#l00034">34</a> of file <a class="el" href="class__poste_8php-source.html">class_poste.php</a>.
<p>
References <a class="el" href="user__update_8php-source.html#l00032">$p_id</a>.<div class="fragment"><pre class="fragment"><a name="l00034"></a>00034 {
<a name="l00035"></a>00035 $this-&gt;db=$p_cn;
<a name="l00036"></a>00036 $this-&gt;<span class="keywordtype">id</span>=<a class="code" href="user__update_8php.html#a1">$p_id</a>;
<a name="l00037"></a>00037 }
</pre></div>
<p>
</td>
</tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="a3"></a><!-- doxytag: member="poste::get" ref="a3" args="()" --><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">poste::get </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </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>
Get all the value for this object from the database the data member are set.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>false if this account doesn't exist otherwise true</dd></dl>
<p>
Definition at line <a class="el" href="class__poste_8php-source.html#l00100">100</a> of file <a class="el" href="class__poste_8php-source.html">class_poste.php</a>.
<p>
References <a class="el" href="bank_8inc_8php-source.html#l00237">$r</a>, <a class="el" href="impress__bilan_8php-source.html#l00032">$ret</a>, <a class="el" href="postgres_8php-source.html#l00099">ExecSql()</a>, and <a class="el" href="balance_8php-source.html#l00076">label</a>.<div class="fragment"><pre class="fragment"><a name="l00101"></a>00101 {
<a name="l00102"></a>00102 <a class="code" href="impress__bilan_8php.html#a0">$ret</a>=<a class="code" href="postgres_8php.html#a2">ExecSql</a>($this-&gt;db,<span class="stringliteral">"select pcm_lib,pcm_val_parent from </span>
<a name="l00103"></a>00103 <span class="stringliteral"> tmp_pcmn where pcm_val="</span>.$this-&gt;id);
<a name="l00104"></a>00104 <a class="code" href="bank_8inc_8php.html#a29">$r</a>=pg_fetch_all($ret);
<a name="l00105"></a>00105
<a name="l00106"></a>00106 <span class="keywordflow">if</span> ( ! $r ) <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00107"></a>00107 $this-&gt;<a class="code" href="balance_8php.html#a6">label</a>=<a class="code" href="bank_8inc_8php.html#a29">$r</a>[0]['pcm_lib'];
<a name="l00108"></a>00108 $this-&gt;parent=<a class="code" href="bank_8inc_8php.html#a29">$r</a>[0]['pcm_val_parent'];
<a name="l00109"></a>00109 <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00110"></a>00110 }
</pre></div>
<p>
</td>
</tr>
</table>
<a class="anchor" name="a2"></a><!-- doxytag: member="poste::GetName" ref="a2" args="()" --><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">poste::GetName </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </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>
Return the name of a account it doesn't change any data member.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>string with the pcm_lib</dd></dl>
<p>
Definition at line <a class="el" href="class__poste_8php-source.html#l00084">84</a> of file <a class="el" href="class__poste_8php-source.html">class_poste.php</a>.
<p>
References <a class="el" href="bank_8inc_8php-source.html#l00237">$r</a>, <a class="el" href="impress__bilan_8php-source.html#l00032">$ret</a>, and <a class="el" href="action_8inc_8php-source.html#l00240">name</a>.<div class="fragment"><pre class="fragment"><a name="l00084"></a>00084 {
<a name="l00085"></a>00085 <a class="code" href="impress__bilan_8php.html#a0">$ret</a>=pg_exec($this-&gt;db,
<a name="l00086"></a>00086 <span class="stringliteral">"select pcm_lib from tmp_pcmn where</span>
<a name="l00087"></a>00087 <span class="stringliteral"> pcm_val="</span>.$this-&gt;id);
<a name="l00088"></a>00088 <span class="keywordflow">if</span> ( pg_NumRows($ret) != 0) {
<a name="l00089"></a>00089 <a class="code" href="bank_8inc_8php.html#a29">$r</a>=pg_fetch_array($ret);
<a name="l00090"></a>00090 $this-&gt;<a class="code" href="action_8inc_8php.html#a18">name</a>=<a class="code" href="bank_8inc_8php.html#a29">$r</a>['pcm_lib'];
<a name="l00091"></a>00091 } <span class="keywordflow">else</span> {
<a name="l00092"></a>00092 $this-&gt;<a class="code" href="action_8inc_8php.html#a18">name</a>=<span class="stringliteral">"Poste inconnu"</span>;
<a name="l00093"></a>00093 }
<a name="l00094"></a>00094 <span class="keywordflow">return</span> $this-&gt;<a class="code" href="action_8inc_8php.html#a18">name</a>;
<a name="l00095"></a>00095 }
</pre></div>
<p>
</td>
</tr>
</table>
<a class="anchor" name="a1"></a><!-- doxytag: member="poste::GetRow" ref="a1" args="($p_from, $p_to)" --><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">poste::GetRow </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname" nowrap> <em>p_from</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_to</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 dat for poste.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>$p_from</em>&nbsp;</td><td>periode from </td></tr>
<tr><td valign="top"></td><td valign="top"><em>$p_to</em>&nbsp;</td><td>end periode </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>double array (j_date,deb_montant,cred_montant,description,jrn_name,j_debit,jr_internal) (tot_deb,tot_credit</dd></dl>
<p>
Definition at line <a class="el" href="class__poste_8php-source.html#l00048">48</a> of file <a class="el" href="class__poste_8php-source.html">class_poste.php</a>.
<p>
References <a class="el" href="recherche_8php-source.html#l00066">$array</a>, <a class="el" href="balance_8php-source.html#l00118">$i</a>, <a class="el" href="setup_8php-source.html#l00397">$Max</a>, <a class="el" href="depense_8inc_8php-source.html#l00077">$Res</a>, and <a class="el" href="postgres_8php-source.html#l00099">ExecSql()</a>.<div class="fragment"><pre class="fragment"><a name="l00049"></a>00049 {
<a name="l00050"></a>00050 <span class="keywordflow">if</span> ( $p_from == $p_to )
<a name="l00051"></a>00051 $periode=<span class="stringliteral">" jr_tech_per = $p_from "</span>;
<a name="l00052"></a>00052 <span class="keywordflow">else</span>
<a name="l00053"></a>00053 $periode = <span class="stringliteral">"(jr_tech_per &gt;= $p_from and jr_tech_per &lt;= $p_to) "</span>;
<a name="l00054"></a>00054
<a name="l00055"></a>00055 <a class="code" href="depense_8inc_8php.html#a4">$Res</a>=<a class="code" href="postgres_8php.html#a2">ExecSql</a>($this-&gt;db,<span class="stringliteral">"select to_char(j_date,'DD.MM.YYYY') as j_date,"</span>.
<a name="l00056"></a>00056 <span class="stringliteral">"case when j_debit='t' then j_montant else 0 end as deb_montant,"</span>.
<a name="l00057"></a>00057 <span class="stringliteral">"case when j_debit='f' then j_montant else 0 end as cred_montant,"</span>.
<a name="l00058"></a>00058 <span class="stringliteral">" jr_comment as description,jrn_def_name as jrn_name,"</span>.
<a name="l00059"></a>00059 <span class="stringliteral">"j_debit, jr_internal "</span>.
<a name="l00060"></a>00060 <span class="stringliteral">" from jrnx left join jrn_def on jrn_def_id=j_jrn_def "</span>.
<a name="l00061"></a>00061 <span class="stringliteral">" left join jrn on jr_grpt_id=j_grpt"</span>.
<a name="l00062"></a>00062 <span class="stringliteral">" where j_poste="</span>.$this-&gt;id.<span class="stringliteral">" and "</span>.$periode.
<a name="l00063"></a>00063 <span class="stringliteral">" order by j_date::date"</span>);
<a name="l00064"></a>00064 <a class="code" href="recherche_8php.html#a4">$array</a>=array();
<a name="l00065"></a>00065 $tot_cred=0.0;
<a name="l00066"></a>00066 $tot_deb=0.0;
<a name="l00067"></a>00067 <a class="code" href="setup_8php.html#a11">$Max</a>=pg_NumRows($Res);
<a name="l00068"></a>00068 <span class="keywordflow">if</span> ( $Max == 0 ) <span class="keywordflow">return</span> null;
<a name="l00069"></a>00069 <span class="keywordflow">for</span> ($i=0;$i&lt;$Max;$i++) {
<a name="l00070"></a>00070 <a class="code" href="recherche_8php.html#a4">$array</a>[]=pg_fetch_array($Res,$i);
<a name="l00071"></a>00071 <span class="keywordflow">if</span> ($array[$i]['j_debit']==<span class="charliteral">'t'</span>) {
<a name="l00072"></a>00072 $tot_deb+=<a class="code" href="recherche_8php.html#a4">$array</a>[<a class="code" href="balance_8php.html#a12">$i</a>]['deb_montant'] ;
<a name="l00073"></a>00073 } <span class="keywordflow">else</span> {
<a name="l00074"></a>00074 $tot_cred+=<a class="code" href="recherche_8php.html#a4">$array</a>[<a class="code" href="balance_8php.html#a12">$i</a>]['cred_montant'] ;
<a name="l00075"></a>00075 }
<a name="l00076"></a>00076 }
<a name="l00077"></a>00077 $this-&gt;row=<a class="code" href="recherche_8php.html#a4">$array</a>;
<a name="l00078"></a>00078 <span class="keywordflow">return</span> array($array,$tot_deb,$tot_cred);
<a name="l00079"></a>00079 }
</pre></div>
<p>
</td>
</tr>
</table>
<a class="anchor" name="a4"></a><!-- doxytag: member="poste::GetSolde" ref="a4" args="($p_cond=&quot;&quot;)" --><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">poste::GetSolde </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>p_cond</em> = <code>&quot;&quot;</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>
give the balance of an account
<p>
<dl compact><dt><b>Returns:</b></dt><dd>balance of the account</dd></dl>
<p>
Definition at line <a class="el" href="class__poste_8php-source.html#l00119">119</a> of file <a class="el" href="class__poste_8php-source.html">class_poste.php</a>.
<p>
References <a class="el" href="setup_8php-source.html#l00397">$Max</a>, <a class="el" href="bank_8inc_8php-source.html#l00237">$r</a>, <a class="el" href="depense_8inc_8php-source.html#l00077">$Res</a>, and <a class="el" href="postgres_8php-source.html#l00099">ExecSql()</a>.<div class="fragment"><pre class="fragment"><a name="l00119"></a>00119 {
<a name="l00120"></a>00120 <a class="code" href="depense_8inc_8php.html#a4">$Res</a>=<a class="code" href="postgres_8php.html#a2">ExecSql</a>($this-&gt;db,<span class="stringliteral">"select sum(deb) as sum_deb, sum(cred) as sum_cred from </span>
<a name="l00121"></a>00121 <span class="stringliteral"> ( select j_poste, </span>
<a name="l00122"></a>00122 <span class="stringliteral"> case when j_debit='t' then j_montant else 0 end as deb, </span>
<a name="l00123"></a>00123 <span class="stringliteral"> case when j_debit='f' then j_montant else 0 end as cred </span>
<a name="l00124"></a>00124 <span class="stringliteral"> from jrnx join tmp_pcmn on j_poste=pcm_val </span>
<a name="l00125"></a>00125 <span class="stringliteral"> where </span>
<a name="l00126"></a>00126 <span class="stringliteral"> j_poste like ('$this-&gt;id'::text) and</span>
<a name="l00127"></a>00127 <span class="stringliteral"> $p_cond</span>
<a name="l00128"></a>00128 <span class="stringliteral"> ) as m "</span>);
<a name="l00129"></a>00129 <a class="code" href="setup_8php.html#a11">$Max</a>=pg_NumRows($Res);
<a name="l00130"></a>00130 <span class="keywordflow">if</span> ($Max==0) <span class="keywordflow">return</span> 0;
<a name="l00131"></a>00131 <a class="code" href="bank_8inc_8php.html#a29">$r</a>=pg_fetch_array($Res,0);
<a name="l00132"></a>00132
<a name="l00133"></a>00133 <span class="keywordflow">return</span> abs($r['sum_deb']-$r['sum_cred']);
<a name="l00134"></a>00134 }
</pre></div>
<p>
</td>
</tr>
</table>
<a class="anchor" name="a5"></a><!-- doxytag: member="poste::GetSoldeDetail" ref="a5" args="($p_cond=&quot;&quot;)" --><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">poste::GetSoldeDetail </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>p_cond</em> = <code>&quot;&quot;</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>
give the balance of an account
<p>
<dl compact><dt><b>Returns:</b></dt><dd>balance of the account</dd></dl>
<p>
Definition at line <a class="el" href="class__poste_8php-source.html#l00141">141</a> of file <a class="el" href="class__poste_8php-source.html">class_poste.php</a>.
<p>
References <a class="el" href="setup_8php-source.html#l00397">$Max</a>, <a class="el" href="bank_8inc_8php-source.html#l00237">$r</a>, <a class="el" href="depense_8inc_8php-source.html#l00077">$Res</a>, and <a class="el" href="postgres_8php-source.html#l00099">ExecSql()</a>.<div class="fragment"><pre class="fragment"><a name="l00141"></a>00141 {
<a name="l00142"></a>00142 <span class="keywordflow">if</span> ( $p_cond != <span class="stringliteral">""</span>) $p_cond=<span class="stringliteral">" and "</span>.$p_cond;
<a name="l00143"></a>00143 <a class="code" href="depense_8inc_8php.html#a4">$Res</a>=<a class="code" href="postgres_8php.html#a2">ExecSql</a>($this-&gt;db,<span class="stringliteral">"select sum(deb) as sum_deb, sum(cred) as sum_cred from </span>
<a name="l00144"></a>00144 <span class="stringliteral"> ( select j_poste, </span>
<a name="l00145"></a>00145 <span class="stringliteral"> case when j_debit='t' then j_montant else 0 end as deb, </span>
<a name="l00146"></a>00146 <span class="stringliteral"> case when j_debit='f' then j_montant else 0 end as cred </span>
<a name="l00147"></a>00147 <span class="stringliteral"> from jrnx join tmp_pcmn on j_poste=pcm_val </span>
<a name="l00148"></a>00148 <span class="stringliteral"> where </span>
<a name="l00149"></a>00149 <span class="stringliteral"> j_poste like ('$this-&gt;id'::text)</span>
<a name="l00150"></a>00150 <span class="stringliteral"> $p_cond</span>
<a name="l00151"></a>00151 <span class="stringliteral"> ) as m "</span>);
<a name="l00152"></a>00152 <a class="code" href="setup_8php.html#a11">$Max</a>=pg_NumRows($Res);
<a name="l00153"></a>00153 <span class="keywordflow">if</span> ($Max==0) <span class="keywordflow">return</span> 0;
<a name="l00154"></a>00154 <a class="code" href="bank_8inc_8php.html#a29">$r</a>=pg_fetch_array($Res,0);
<a name="l00155"></a>00155
<a name="l00156"></a>00156 <span class="keywordflow">return</span> array('debit'=&gt;$r['sum_deb'],
<a name="l00157"></a>00157 'credit'=&gt;$r['sum_cred'],
<a name="l00158"></a>00158 'solde'=&gt;abs($r['sum_deb']-$r['sum_cred']));
<a name="l00159"></a>00159 }
</pre></div>
<p>
</td>
</tr>
</table>
<hr><h2>Field Documentation</h2>
<a class="anchor" name="o0"></a><!-- doxytag: member="poste::$db" ref="o0" args="" --><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">poste::$db </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
database connection
<p>
Definition at line <a class="el" href="class__poste_8php-source.html#l00029">29</a> of file <a class="el" href="class__poste_8php-source.html">class_poste.php</a>. </td>
</tr>
</table>
<a class="anchor" name="o1"></a><!-- doxytag: member="poste::$id" ref="o1" args="" --><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">poste::$<a class="el" href="impress__fiche_8php.html#a6">id</a> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
poste_id
<p>
Definition at line <a class="el" href="class__poste_8php-source.html#l00030">30</a> of file <a class="el" href="class__poste_8php-source.html">class_poste.php</a>. </td>
</tr>
</table>
<a class="anchor" name="o2"></a><!-- doxytag: member="poste::$label" ref="o2" args="" --><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">poste::$<a class="el" href="export__ouv_8php.html#a10">label</a> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
label of the poste
<p>
Definition at line <a class="el" href="class__poste_8php-source.html#l00031">31</a> of file <a class="el" href="class__poste_8php-source.html">class_poste.php</a>. </td>
</tr>
</table>
<a class="anchor" name="o3"></a><!-- doxytag: member="poste::$parent" ref="o3" args="" --><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">poste::$parent </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
parent account
<p>
Definition at line <a class="el" href="class__poste_8php-source.html#l00032">32</a> of file <a class="el" href="class__poste_8php-source.html">class_poste.php</a>. </td>
</tr>
</table>
<a class="anchor" name="o4"></a><!-- doxytag: member="poste::$row" ref="o4" args="" --><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">poste::$row </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
double array see GetRow
<p>
Definition at line <a class="el" href="class__poste_8php-source.html#l00033">33</a> of file <a class="el" href="class__poste_8php-source.html">class_poste.php</a>. </td>
</tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="class__poste_8php-source.html">class_poste.php</a></ul>
</BODY>
</HTML>