339 lines
19 KiB
HTML
339 lines
19 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_ach.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>user_form_ach.php File Reference</h1>Functions for the ledger of expenses. <a href="#_details">More...</a>
|
|
<p>
|
|
|
|
<p>
|
|
<a href="user__form__ach_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="user__form__ach_8php.html#a0">FormAchInput</a> ($p_cn, $p_jrn, $p_periode, $p_array=null, $p_submit="", $pview_only=true, $p_article=1)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Display the form for a sell Used to show detail, encode a new invoice or update one. <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="user__form__ach_8php.html#a1">form_verify_input</a> ($p_cn, $p_jrn, $p_periode, $p_array, $p_number)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">verify if the data to insert are valid <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="user__form__ach_8php.html#a2">FormAchView</a> ($p_cn, $p_jrn, $p_periode, $p_array, $p_submit, $p_number, $p_piece=true)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Show the invoice before inserting it the database. <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="user__form__ach_8php.html#a3">RecordSell</a> ($p_cn, $p_array, $p_user, $p_jrn)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Record an invoice in the table jrn & jrnx. <a href="#a3"></a><br></td></tr>
|
|
</table>
|
|
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
|
Functions for the ledger of expenses.
|
|
<p>
|
|
|
|
<p>
|
|
Definition in file <a class="el" href="user__form__ach_8php-source.html">user_form_ach.php</a>.<hr><h2>Function Documentation</h2>
|
|
<a class="anchor" name="a1"></a><!-- doxytag: member="user_form_ach.php::form_verify_input" ref="a1" 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">( </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>p_jrn</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_periode</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_array</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_number</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>
|
|
verify if the data to insert are valid
|
|
<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>$p_jrn</em> </td><td>concerned ledger </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>$p_periode</em> </td><td>User periode </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>$p_array</em> </td><td>array with the post data </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>$p_number</em> </td><td>number of items</td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Returns:</b></dt><dd>null if error</dd></dl>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="user__form__ach_8php-source.html#l00251">251</a> of file <a class="el" href="user__form__ach_8php-source.html">user_form_ach.php</a>.
|
|
<p>
|
|
References <a class="el" href="postgres_8php-source.html#l00222">CountSql()</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="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="a0"></a><!-- doxytag: member="user_form_ach.php::FormAchInput" ref="a0" args="($p_cn, $p_jrn, $p_periode, $p_array=null, $p_submit="", $pview_only=true, $p_article=1)" --><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">FormAchInput </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>p_jrn</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_periode</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_array</em> = <code>null</code>, </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_submit</em> = <code>""</code>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md" nowrap align="right"></td>
|
|
<td class="md"></td>
|
|
<td class="md" nowrap>$ </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>$ </td>
|
|
<td class="mdname" nowrap> <em>p_article</em> = <code>1</code></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>
|
|
Display the form for a sell Used to show detail, encode a new invoice or update one.
|
|
<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_array</em> </td><td>which can be empty (normally = $_POST) </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>$p_jrn</em> </td><td>the ledger </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>$p_periode</em> </td><td>= periode </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>$pview_only</em> </td><td>if we cannot change it (no right or centralized op) </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>$p_article</em> </td><td>number of article</td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Returns:</b></dt><dd>: string with the form</dd></dl>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="user__form__ach_8php-source.html#l00044">44</a> of file <a class="el" href="user__form__ach_8php-source.html">user_form_ach.php</a>.
|
|
<p>
|
|
References <a class="el" href="impress__fiche_8php-source.html#l00078">$fiche</a>, <a class="el" href="poste_8inc_8php-source.html#l00069">$h</a>, <a class="el" href="fiche__new_8php-source.html#l00136">$list</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="facture_8inc_8php-source.html#l00082">$sql</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#l00353">GetArray()</a>, <a class="el" href="preference_8php-source.html#l00122">GetPeriode()</a>, <a class="el" href="ac__common_8php-source.html#l00076">isNumber()</a>, and <a class="el" href="ac__common_8php-source.html#l00281">make_array()</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a2"></a><!-- doxytag: member="user_form_ach.php::FormAchView" ref="a2" args="($p_cn, $p_jrn, $p_periode, $p_array, $p_submit, $p_number, $p_piece=true)" --><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">FormAchView </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>p_jrn</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_periode</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_array</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_submit</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_number</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_piece</em> = <code>true</code></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>
|
|
Show the invoice before inserting it the database.
|
|
<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>p_jrn</em> </td><td>journal </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>$p_periode</em> </td><td></td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>$p_array</em> </td><td>array of value </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>$p_number</em> </td><td>nb of item </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>$piece</em> </td><td>== true we can upload a doc.</td></tr>
|
|
</table>
|
|
</dl>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="user__form__ach_8php-source.html#l00453">453</a> of file <a class="el" href="user__form__ach_8php-source.html">user_form_ach.php</a>.
|
|
<p>
|
|
References <a class="el" href="print__invoice_8php-source.html#l00078">$a_vat</a>, <a class="el" href="readme_8php-source.html#l00150">$data</a>, <a class="el" href="show__document__modele_8php-source.html#l00060">$file</a>, <a class="el" href="poste_8inc_8php-source.html#l00069">$h</a>, <a class="el" href="user__action__ach_8php-source.html#l00052">$r</a>, <a class="el" href="fiche__inc_8php-source.html#l01471">getFicheAttribut()</a>, <a class="el" href="fiche__inc_8php-source.html#l00985">getFicheName()</a>, <a class="el" href="user__common_8php-source.html#l00039">GetTvaRate()</a>, <a class="el" href="ac__common_8php-source.html#l00076">isNumber()</a>, <a class="el" href="pref_8inc_8php-source.html#l00045">METHOD</a>, and <a class="el" href="client_8inc_8php-source.html#l00116">name</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a3"></a><!-- doxytag: member="user_form_ach.php::RecordSell" ref="a3" 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">RecordSell </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>p_array</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_user</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>
|
|
Record an invoice in the table jrn & jrnx.
|
|
<p>
|
|
parm :<ul>
|
|
<li>$p_cn Database connection</li></ul>
|
|
<p>
|
|
$p_array contains all the invoice data e_date => e : 01.01.2003 e_client => e : 3 nb_item => e : 3 e_march0 => e : 6 e_quant0 => e : 0 e_march0_sell=>e:1 e_march1 => e : 6 e_quant1 => e : 2 e_march1_sell=>e:1 e_march2 => e : 7 e_quant2 => e : 3 e_march2_sell=>e:1 V : view_invoice => e : Voir cette facture V : record_invoice => e : Sauver<ul>
|
|
<li>$p_periode periode</li><li>$p_jrn current folder (journal) gen :<ul>
|
|
<li>none return: true on success</li></ul>
|
|
</li></ul>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="user__form__ach_8php-source.html#l00627">627</a> of file <a class="el" href="user__form__ach_8php-source.html">user_form_ach.php</a>.
|
|
<p>
|
|
References <a class="el" href="print__invoice_8php-source.html#l00078">$a_vat</a>, <a class="el" href="print__invoice_8php-source.html#l00051">$amount</a>, <a class="el" href="user__action__ven_8php-source.html#l00118">$comment</a>, <a class="el" href="impress__fiche_8php-source.html#l00079">$e</a>, <a class="el" href="balance_8php-source.html#l00113">$i</a>, <a class="el" href="send__poste__pdf_8php-source.html#l00044">$poste</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="annulation_8php-source.html#l00136">$seq</a>, <a class="el" href="postgres_8php-source.html#l00263">Commit()</a>, <a class="el" href="user__common_8php-source.html#l00068">ComputeTotalVat()</a>, <a class="el" href="user__common_8php-source.html#l00171">ComputeVat()</a>, <a class="el" href="debug_8php-source.html#l00034">echo_debug()</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#l00210">GetTvaPoste()</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#l00595">InsertStockGoods()</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="postgres_8php-source.html#l00368">save_upload_document()</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
|
|
<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>
|