280 lines
12 KiB
HTML
280 lines
12 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: /home/dany/developpement/phpcompta-dev/phpcompta/html/export_ouv.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 Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related Pages</a></div>
|
|
<div class="nav">
|
|
<a class="el" href="dir_000000.html">developpement</a> » <a class="el" href="dir_000001.html">phpcompta-dev</a> » <a class="el" href="dir_000002.html">phpcompta</a> » <a class="el" href="dir_000003.html">html</a></div>
|
|
<h1>export_ouv.php File Reference</h1>Send the final balance in CSV this balance is used to open an exercice. <a href="#_details">More...</a>
|
|
<p>
|
|
|
|
<p>
|
|
<a href="export__ouv_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>Variables</h2></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="export__ouv_8php.html#a0">$rep</a> = DbConnect()</td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="export__ouv_8php.html#a1">$User</a> = new <a class="el" href="classcl__user.html">cl_user</a>($rep)</td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="export__ouv_8php.html#a2">$cn</a> = DbConnect($_SESSION['g_dossier'])</td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="export__ouv_8php.html#a3">exit</a></td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="export__ouv_8php.html#a4">$sql_from</a> = GetArray($cn,"select min(p_id) from parm_periode where p_exercice=".$_GET['p_periode'])</td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="export__ouv_8php.html#a5">$sql_to</a> = GetArray($cn,"select max(p_id) from parm_periode where p_exercice=".$_GET['p_periode'])</td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="export__ouv_8php.html#a6">$ret</a></td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="export__ouv_8php.html#a7">$sql</a> = "j_tech_per >=". $sql_from[0]['min']." and j_tech_per <=".$sql_to[0]['max']</td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="export__ouv_8php.html#a8">$result</a> = $Poste->GetSoldeDetail($sql )</td></tr>
|
|
|
|
</table>
|
|
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
|
Send the final balance in CSV this balance is used to open an exercice.
|
|
<p>
|
|
|
|
<p>
|
|
Definition in file <a class="el" href="export__ouv_8php-source.html">export_ouv.php</a>.<hr><h2>Variable Documentation</h2>
|
|
<a class="anchor" name="a2"></a><!-- doxytag: member="export_ouv.php::$cn" 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">$cn = DbConnect($_SESSION['g_dossier']) </td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="export__ouv_8php-source.html#l00044">44</a> of file <a class="el" href="export__ouv_8php-source.html">export_ouv.php</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a0"></a><!-- doxytag: member="export_ouv.php::$rep" ref="a0" 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">$rep = DbConnect() </td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="export__ouv_8php-source.html#l00035">35</a> of file <a class="el" href="export__ouv_8php-source.html">export_ouv.php</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a8"></a><!-- doxytag: member="export_ouv.php::$result" ref="a8" 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">$result = $Poste->GetSoldeDetail($sql ) </td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="export__ouv_8php-source.html#l00072">72</a> of file <a class="el" href="export__ouv_8php-source.html">export_ouv.php</a>.
|
|
<p>
|
|
Referenced by <a class="el" href="stock__inc_8php-source.html#l00111">getFicheNameCode()</a>, <a class="el" href="user__menu_8php-source.html#l00524">ShowJrn()</a>, <a class="el" href="user__menu_8php-source.html#l00166">ShowMenuCompta()</a>, <a class="el" href="user__menu_8php-source.html#l00037">u_ShowDossier()</a>, and <a class="el" href="stock__inc_8php-source.html#l00035">ViewStock()</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a6"></a><!-- doxytag: member="export_ouv.php::$ret" ref="a6" 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">$ret </td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
<b>Initial value:</b><div class="fragment"><pre class="fragment"><a class="code" href="postgres_8php.html#a23">GetArray</a>($cn,<span class="stringliteral">"select distinct j_poste::text </span>
|
|
<span class="stringliteral"> from jrnx inner join tmp_pcmn on (pcm_val=j_poste)</span>
|
|
<span class="stringliteral"> where </span>
|
|
<span class="stringliteral"> j_tech_per >= "</span>.$sql_from[0]['min'].<span class="stringliteral">" and </span>
|
|
<span class="stringliteral"> j_tech_per <= "</span>.$sql_to[0]['max'].<span class="stringliteral">" and j_poste not like '7%'</span>
|
|
<span class="stringliteral"> and j_poste not like '6%'</span>
|
|
<span class="stringliteral"> order by j_poste::text"</span>)
|
|
</pre></div>
|
|
<p>
|
|
Definition at line <a class="el" href="export__ouv_8php-source.html#l00059">59</a> of file <a class="el" href="export__ouv_8php-source.html">export_ouv.php</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a7"></a><!-- doxytag: member="export_ouv.php::$sql" ref="a7" 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">$sql = "j_tech_per >=". $sql_from[0]['min']." and j_tech_per <=".$sql_to[0]['max'] </td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="export__ouv_8php-source.html#l00071">71</a> of file <a class="el" href="export__ouv_8php-source.html">export_ouv.php</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a4"></a><!-- doxytag: member="export_ouv.php::$sql_from" ref="a4" 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">$sql_from = GetArray($cn,"select min(p_id) from parm_periode where p_exercice=".$_GET['p_periode']) </td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="export__ouv_8php-source.html#l00055">55</a> of file <a class="el" href="export__ouv_8php-source.html">export_ouv.php</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a5"></a><!-- doxytag: member="export_ouv.php::$sql_to" ref="a5" 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">$sql_to = GetArray($cn,"select max(p_id) from parm_periode where p_exercice=".$_GET['p_periode']) </td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="export__ouv_8php-source.html#l00057">57</a> of file <a class="el" href="export__ouv_8php-source.html">export_ouv.php</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a1"></a><!-- doxytag: member="export_ouv.php::$User" ref="a1" 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">$User = new <a class="el" href="classcl__user.html">cl_user</a>($rep) </td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="export__ouv_8php-source.html#l00037">37</a> of file <a class="el" href="export__ouv_8php-source.html">export_ouv.php</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a3"></a><!-- doxytag: member="export_ouv.php::exit" 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"><a class="el" href="user__sec_8php.html#a3">exit</a> </td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="export__ouv_8php-source.html#l00049">49</a> of file <a class="el" href="export__ouv_8php-source.html">export_ouv.php</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<hr size="1"><address style="align: right;"><small>Generated on Fri Jun 23 00:12:46 2006 for phpcompta by
|
|
<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>
|