altocompta/doc/developper/html/user__form__fin_8php.html

249 lines
13 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/user_form_fin.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>user_form_fin.php File Reference</h1>Functions for the financial ledger. <a href="#_details">More...</a>
<p>
<p>
<a href="user__form__fin_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="user__form__fin_8php.html#a0">form_verify_input</a> ($p_cn, $p_jrn, $p_periode, $p_array, $p_number)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="user__form__fin_8php.html#a1">FormFin</a> ($p_cn, $p_jrn, $p_periode, $p_submit, $p_array=null, $pview_only=true, $p_item=4, $p_save=false)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="user__form__fin_8php.html#a2">RecordFin</a> ($p_cn, $p_array, $p_user, $p_jrn)</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Functions for the financial ledger.
<p>
<p>
Definition in file <a class="el" href="user__form__fin_8php-source.html">user_form_fin.php</a>.<hr><h2>Function Documentation</h2>
<a class="anchor" name="a0"></a><!-- doxytag: member="user_form_fin.php::form_verify_input" ref="a0" args="($p_cn, $p_jrn, $p_periode, $p_array, $p_number)" --><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">form_verify_input </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" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_periode</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_number</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>
form_verify_input<p>
verify if the data to insert are valid<p>
parm :<ul>
<li>p_cn database connection</li></ul>
<p>
p_jrn concerned ledger<ul>
<li>User periode</li><li>array with the post data</li><li>p_number number of items gen :<ul>
<li>return:</li></ul>
</li></ul>
<p>
Definition at line <a class="el" href="user__form__fin_8php-source.html#l00043">43</a> of file <a class="el" href="user__form__fin_8php-source.html">user_form_fin.php</a>.
<p>
References <a class="el" href="send__poste__pdf_8php-source.html#l00044">$poste</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="ac__common_8php-source.html#l00097">isDate()</a>, <a class="el" href="fiche__inc_8php-source.html#l01511">IsFicheOfJrn()</a>, <a class="el" href="ac__common_8php-source.html#l00076">isNumber()</a>, and <a class="el" href="client_8inc_8php-source.html#l00116">name</a>. </td>
</tr>
</table>
<a class="anchor" name="a1"></a><!-- doxytag: member="user_form_fin.php::FormFin" ref="a1" args="($p_cn, $p_jrn, $p_periode, $p_submit, $p_array=null, $pview_only=true, $p_item=4, $p_save=false)" --><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">FormFin </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" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_periode</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_submit</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>pview_only</em> = <code>true</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_item</em> = <code>4</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_save</em> = <code>false</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>
FormFin($p_cn,$p_jrn,$p_user,$p_array=null,$pview_only=true,$p_item=1) Display the form for financial Used to show detail, encode a new fin op or update one<p>
parm :<ul>
<li>p_array which can be empty</li></ul>
<p>
the "journal"<ul>
<li>$p_user = $g_user</li><li>$p_submit contains the submit string</li><li>view_only if we cannot change it (no right or centralized op)</li><li>$p_item number of article gen :<ul>
<li>return: string with the form</li></ul>
</li></ul>
<p>
Definition at line <a class="el" href="user__form__fin_8php-source.html#l00147">147</a> of file <a class="el" href="user__form__fin_8php-source.html">user_form_fin.php</a>.
<p>
References <a class="el" href="show__document__modele_8php-source.html#l00060">$file</a>, <a class="el" href="setup_8php-source.html#l00255">$flag</a>, <a class="el" href="poste_8inc_8php-source.html#l00069">$h</a>, <a class="el" href="modify__op_8php-source.html#l00054">$p_jrn</a>, <a class="el" href="user__action__ach_8php-source.html#l00052">$r</a>, <a class="el" href="impress__fiche_8php-source.html#l00110">$solde</a>, <a class="el" href="preference_8php-source.html#l00122">GetPeriode()</a>, <a class="el" href="poste_8php-source.html#l00114">GetSolde()</a>, <a class="el" href="client_8inc_8php-source.html#l00116">name</a>, <a class="el" href="client_8inc_8php-source.html#l00117">value</a>, and <a class="el" href="user__common_8php-source.html#l00653">VerifyOperationDate()</a>. </td>
</tr>
</table>
<a class="anchor" name="a2"></a><!-- doxytag: member="user_form_fin.php::RecordFin" ref="a2" args="($p_cn, $p_array, $p_user, $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">RecordFin </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" 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>
RecordFin<p>
Record an invoice in the table jrn &amp; jrnx<p>
parm :<ul>
<li>$p_cn Database connection</li></ul>
<p>
$p_array contains all the invoice data e_date =&gt; e : 01.01.2003 e_bank_account =&gt; e : 3<ul>
<li>$p_user userid</li><li>$p_jrn current folder (journal)</li><li>array e_other$i, e_other$i_amount, e_other$i_label gen :<ul>
<li>none return: true on success</li></ul>
</li></ul>
<p>
Definition at line <a class="el" href="user__form__fin_8php-source.html#l00349">349</a> of file <a class="el" href="user__form__fin_8php-source.html">user_form_fin.php</a>.
<p>
References <a class="el" href="print__invoice_8php-source.html#l00051">$amount</a>, <a class="el" href="impress__fiche_8php-source.html#l00079">$e</a>, <a class="el" href="send__poste__pdf_8php-source.html#l00044">$poste</a>, <a class="el" href="annulation_8php-source.html#l00136">$seq</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="postgres_8php-source.html#l00099">ExecSql()</a>, <a class="el" href="balance_8php-source.html#l00033">exit</a>, <a class="el" href="ac__common_8php-source.html#l00207">FormatString()</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="user__common_8php-source.html#l00699">InsertRapt()</a>, <a class="el" href="ac__common_8php-source.html#l00097">isDate()</a>, <a class="el" href="ac__common_8php-source.html#l00076">isNumber()</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>
<hr size="1"><address style="align: right;"><small>Generated on Fri Jun 23 00:12:47 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>