268 lines
14 KiB
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 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_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"> </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"> </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"> </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"> </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"> </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"> </td><td class="mdescRight">Verify the import. <a href="#a2"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </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"> </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"> </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"> </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">( </td>
|
|
<td class="md" nowrap valign="top">$ </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>$ </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>$ </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>$ </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>$ </td>
|
|
<td class="mdname" nowrap> <em>p_jrn</em></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md"></td>
|
|
<td class="md">) </td>
|
|
<td class="md" colspan="2"></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</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> </td><td>database connection </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>$file</em> </td><td>the uploaded file </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>$p_bq_account</em> </td><td>the bank account (target) </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>$p_format_csv</em> </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="class__operation_8php-source.html#l00101">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">( </td>
|
|
<td class="md" nowrap valign="top">$ </td>
|
|
<td class="mdname1" valign="top" nowrap> <em>p_cn</em> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</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="balance_8php-source.html#l00067">$w</a>, <a class="el" href="ac__common_8php-source.html#l00281">make_array()</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>, 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">( </td>
|
|
<td class="md" nowrap valign="top">$ </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>$ </td>
|
|
<td class="mdname" nowrap> <em>periode</em></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md"></td>
|
|
<td class="md">) </td>
|
|
<td class="md" colspan="2"></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</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#l00374">$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="eub__be_8inc_8php-source.html#l00074">$Res</a>, <a class="el" href="setup_8php-source.html#l00403">$Res2</a>, <a class="el" href="annulation_8php-source.html#l00136">$seq</a>, <a class="el" href="facture_8inc_8php-source.html#l00082">$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#l00033">exit</a>, <a class="el" href="user__common_8php-source.html#l00287">InsertJrn()</a>, <a class="el" href="user__common_8php-source.html#l00243">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">( </td>
|
|
<td class="md" nowrap valign="top">$ </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>$ </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>$ </td>
|
|
<td class="mdname" nowrap> <em>poste</em></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md"></td>
|
|
<td class="md">) </td>
|
|
<td class="md" colspan="2"></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</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="eub__be_8inc_8php-source.html#l00074">$Res</a>, <a class="el" href="facture_8inc_8php-source.html#l00082">$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">( </td>
|
|
<td class="md" nowrap valign="top">$ </td>
|
|
<td class="mdname1" valign="top" nowrap> <em>p_cn</em> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</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#l00113">$i</a>, <a class="el" href="fortis__be_8inc_8php-source.html#l00076">$Num</a>, <a class="el" href="eub__be_8inc_8php-source.html#l00074">$Res</a>, <a class="el" href="facture_8inc_8php-source.html#l00082">$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#l00045">METHOD</a>, <a class="el" href="client_8inc_8php-source.html#l00116">name</a>, <a class="el" href="tva_8inc_8php-source.html#l00212">size</a>, <a class="el" href="balance_8php-source.html#l00068">table</a>, <a class="el" href="client_8inc_8php-source.html#l00117">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 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>
|