altocompta/doc/developper/html/import__inc_8php.html

268 lines
14 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/include/import_inc.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>import_inc.php File Reference</h1>
<p>
<a href="import__inc_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="import__inc_8php.html#a0">ImportCSV</a> ($p_cn, $file, $p_bq_account, $p_format_csv, $p_jrn)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Parse the file and insert the record into the table import_tmp. Insert in a temporary table, if no confirmation is given then the data are removed otherwise records are inserted into import_tmp. <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="import__inc_8php.html#a1">UpdateCSV</a> ($p_cn, $code, $<a class="el" href="classposte.html">poste</a>)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Update import_tmp with the bank account. <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="import__inc_8php.html#a2">VerifImport</a> ($p_cn)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Verify the import. <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="import__inc_8php.html#a3">TransferCSV</a> ($p_cn, $periode)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Transfert data into the ledger. <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="import__inc_8php.html#a4">ShowFormTransfert</a> ($p_cn)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">ShowForm for getting data about the bank transfert in cvs. <a href="#a4"></a><br></td></tr>
</table>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="a0"></a><!-- doxytag: member="import_inc.php::ImportCSV" ref="a0" args="($p_cn, $file, $p_bq_account, $p_format_csv, $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">ImportCSV </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>file</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_bq_account</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_format_csv</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>
Parse the file and insert the record into the table import_tmp. Insert in a temporary table, if no confirmation is given then the data are removed otherwise records are inserted into import_tmp.
<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_cn</em>&nbsp;</td><td>database connection </td></tr>
<tr><td valign="top"></td><td valign="top"><em>$file</em>&nbsp;</td><td>the uploaded file </td></tr>
<tr><td valign="top"></td><td valign="top"><em>$p_bq_account</em>&nbsp;</td><td>the bank account (target) </td></tr>
<tr><td valign="top"></td><td valign="top"><em>$p_format_csv</em>&nbsp;</td><td>file to include (depending of the bank)</td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="import__inc_8php-source.html#l00037">37</a> of file <a class="el" href="import__inc_8php-source.html">import_inc.php</a>.
<p>
References <a class="el" href="postgres_8php-source.html#l00263">Commit()</a>, <a class="el" href="impress__bilan_8php-source.html#l00041">print</a>, and <a class="el" href="postgres_8php-source.html#l00257">StartSql()</a>. </td>
</tr>
</table>
<a class="anchor" name="a4"></a><!-- doxytag: member="import_inc.php::ShowFormTransfert" ref="a4" args="($p_cn)" --><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">ShowFormTransfert </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>p_cn</em> </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>
ShowForm for getting data about the bank transfert in cvs.
<p>
parm : database connection<ul>
<li>gen :</li><li>return: none</li></ul>
<p>
Definition at line <a class="el" href="import__inc_8php-source.html#l00174">174</a> of file <a class="el" href="import__inc_8php-source.html">import_inc.php</a>.
<p>
References <a class="el" href="show__pj_8php-source.html#l00046">$jrn</a>, <a class="el" href="admin_8inc_8php-source.html#l00115">$w</a>, <a class="el" href="ac__common_8php-source.html#l00282">make_array()</a>, <a class="el" href="pref_8inc_8php-source.html#l00048">METHOD</a>, <a class="el" href="action_8inc_8php-source.html#l00170">name</a>, and <a class="el" href="tva_8inc_8php-source.html#l00212">size</a>. </td>
</tr>
</table>
<a class="anchor" name="a3"></a><!-- doxytag: member="import_inc.php::TransferCSV" ref="a3" args="($p_cn, $periode)" --><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">TransferCSV </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>periode</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>
Transfert data into the ledger.
<p>
<p>
Definition at line <a class="el" href="import__inc_8php-source.html#l00090">90</a> of file <a class="el" href="import__inc_8php-source.html">import_inc.php</a>.
<p>
References <a class="el" href="commercial_8php-source.html#l00035">$_SESSION</a>, <a class="el" href="eub__be_8inc_8php-source.html#l00052">$code</a>, <a class="el" href="eub__be_8inc_8php-source.html#l00039">$date_exec</a>, <a class="el" href="bilan_8php-source.html#l00059">$end</a>, <a class="el" href="show__pj_8php-source.html#l00046">$jrn</a>, <a class="el" href="setup_8php-source.html#l00379">$Max</a>, <a class="el" href="eub__be_8inc_8php-source.html#l00044">$montant</a>, <a class="el" href="fortis__be_8inc_8php-source.html#l00060">$poste_comptable</a>, <a class="el" href="user__action__ach_8php-source.html#l00052">$r</a>, <a class="el" href="depense_8inc_8php-source.html#l00073">$Res</a>, <a class="el" href="setup_8php-source.html#l00408">$Res2</a>, <a class="el" href="annulation_8php-source.html#l00136">$seq</a>, <a class="el" href="bank_8inc_8php-source.html#l00104">$sql</a>, <a class="el" href="bilan_8php-source.html#l00058">$start</a>, <a class="el" href="tva_8inc_8php-source.html#l00094">$val</a>, <a class="el" href="postgres_8php-source.html#l00263">Commit()</a>, <a class="el" href="postgres_8php-source.html#l00099">ExecSql()</a>, <a class="el" href="balance_8php-source.html#l00036">exit</a>, <a class="el" href="user__common_8php-source.html#l00288">InsertJrn()</a>, <a class="el" href="user__common_8php-source.html#l00244">InsertJrnx()</a>, <a class="el" href="postgres_8php-source.html#l00251">NextSequence()</a>, <a class="el" href="postgres_8php-source.html#l00266">Rollback()</a>, <a class="el" href="jrn_8php-source.html#l00949">SetInternalCode()</a>, and <a class="el" href="postgres_8php-source.html#l00257">StartSql()</a>. </td>
</tr>
</table>
<a class="anchor" name="a1"></a><!-- doxytag: member="import_inc.php::UpdateCSV" ref="a1" args="($p_cn, $code, $poste)" --><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">UpdateCSV </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>code</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>poste</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>
Update import_tmp with the bank account.
<p>
<dl compact><dt><b>Note:</b></dt><dd>still used ?</dd></dl>
<p>
Definition at line <a class="el" href="import__inc_8php-source.html#l00060">60</a> of file <a class="el" href="import__inc_8php-source.html">import_inc.php</a>.
<p>
References <a class="el" href="eub__be_8inc_8php-source.html#l00052">$code</a>, <a class="el" href="depense_8inc_8php-source.html#l00073">$Res</a>, <a class="el" href="bank_8inc_8php-source.html#l00104">$sql</a>, and <a class="el" href="postgres_8php-source.html#l00099">ExecSql()</a>. </td>
</tr>
</table>
<a class="anchor" name="a2"></a><!-- doxytag: member="import_inc.php::VerifImport" ref="a2" args="($p_cn)" --><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">VerifImport </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>p_cn</em> </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>
Verify the import.
<p>
<p>
Definition at line <a class="el" href="import__inc_8php-source.html#l00067">67</a> of file <a class="el" href="import__inc_8php-source.html">import_inc.php</a>.
<p>
References <a class="el" href="balance_8php-source.html#l00118">$i</a>, <a class="el" href="fortis__be_8inc_8php-source.html#l00076">$Num</a>, <a class="el" href="depense_8inc_8php-source.html#l00073">$Res</a>, <a class="el" href="bank_8inc_8php-source.html#l00104">$sql</a>, <a class="el" href="tva_8inc_8php-source.html#l00094">$val</a>, <a class="el" href="postgres_8php-source.html#l00099">ExecSql()</a>, <a class="el" href="pref_8inc_8php-source.html#l00048">METHOD</a>, <a class="el" href="action_8inc_8php-source.html#l00170">name</a>, <a class="el" href="tva_8inc_8php-source.html#l00212">size</a>, <a class="el" href="balance_8php-source.html#l00071">table</a>, <a class="el" href="action_8inc_8php-source.html#l00171">value</a>, and <a class="el" href="tva_8inc_8php-source.html#l00215">width</a>. </td>
</tr>
</table>
<hr size="1"><address style="align: right;"><small>Generated on Tue Jun 27 01:39:29 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>